@hmcts/ccd-case-ui-toolkit 4.12.7-task-event-completion-release → 4.12.8-task-event-completion
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/RELEASE-NOTES.md +1 -10
- package/dist/index.umd.js +54 -56
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.LICENSE.txt +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/dist/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts +1 -1
- package/dist/shared/components/case-editor/case-edit-page/case-edit-page.component.js +11 -19
- package/dist/shared/components/case-editor/case-edit-page/case-edit-page.component.js.map +1 -1
- package/dist/shared/components/case-editor/case-edit-submit/case-edit-submit.component.js +1 -4
- package/dist/shared/components/case-editor/case-edit-submit/case-edit-submit.component.js.map +1 -1
- package/dist/shared/components/case-editor/case-edit-submit/case-edit-submit.component.metadata.json +1 -1
- package/dist/shared/components/case-editor/services/cases.service.js +13 -10
- package/dist/shared/components/case-editor/services/cases.service.js.map +1 -1
- package/dist/shared/components/case-editor/services/event-completion-state-machine.service.js +19 -2
- package/dist/shared/components/case-editor/services/event-completion-state-machine.service.js.map +1 -1
- package/dist/shared/components/case-editor/services/page-validation.service.d.ts +1 -1
- package/dist/shared/components/case-editor/services/page-validation.service.js +2 -5
- package/dist/shared/components/case-editor/services/page-validation.service.js.map +1 -1
- package/dist/shared/components/event-start/services/event-start-state-machine.service.js +2 -3
- package/dist/shared/components/event-start/services/event-start-state-machine.service.js.map +1 -1
- package/dist/shared/components/markdown/markdown.component.js +1 -1
- package/dist/shared/components/markdown/markdown.component.js.map +1 -1
- package/dist/shared/components/markdown/markdown.component.metadata.json +1 -1
- package/dist/shared/components/markdown/markdown.module.js +1 -3
- package/dist/shared/components/markdown/markdown.module.js.map +1 -1
- package/dist/shared/components/markdown/markdown.module.metadata.json +1 -1
- package/dist/shared/components/palette/case-link/write-case-link-field.component.js +2 -7
- package/dist/shared/components/palette/case-link/write-case-link-field.component.js.map +1 -1
- package/dist/shared/pipes/case-reference/case-reference.pipe.js +1 -1
- package/dist/shared/pipes/case-reference/case-reference.pipe.js.map +1 -1
- package/package.json +1 -1
package/RELEASE-NOTES.md
CHANGED
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
## RELEASE NOTES
|
|
2
2
|
|
|
3
|
-
### Version 4.14.1-EUI-5305-change-link-accessibility-update
|
|
4
|
-
**EUI-5305** Accessibility improvement for 'Change' links
|
|
5
|
-
|
|
6
3
|
### Version 4.12.0
|
|
7
4
|
Add refunds functionality
|
|
8
5
|
|
|
9
|
-
### Version 4.
|
|
6
|
+
### Version 4.12.8-task-event-completion"
|
|
10
7
|
**Task event completion and state machine** Task event completion and state machine
|
|
11
8
|
|
|
12
|
-
### Version 4.3.9-markdown-case-ref-EUI-3650
|
|
13
|
-
**EUI-3650** Added formatting for case reference inside markdown
|
|
14
|
-
|
|
15
9
|
### Version 4.7.6-tab-not-defined-error"
|
|
16
10
|
**EUI-4562** Case details Active tasks tab on success not returning to active tasks page
|
|
17
11
|
|
|
@@ -21,9 +15,6 @@ Add refunds functionality
|
|
|
21
15
|
### Version 4.7.6-tab-not-defined-error"
|
|
22
16
|
**EUI-4562** Case details Active tasks tab on success not returning to active tasks page
|
|
23
17
|
|
|
24
|
-
### Version 4.7.6-hearings-tab
|
|
25
|
-
**EUI-4441** Add hearings tab in case details
|
|
26
|
-
|
|
27
18
|
### Version 4.7.6-hearings-tab
|
|
28
19
|
**EUI-4441** Add hearings tab in case details
|
|
29
20
|
**EUI-4627** Can't access /hearings tab from URL
|
package/dist/index.umd.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @hmcts/ccd-case-ui-toolkit - Case UI Toolkit
|
|
3
|
-
* @version
|
|
3
|
+
* @version v4.12.8-task-event-completion
|
|
4
4
|
* @link undefined
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -19090,55 +19090,47 @@ var CaseEditPageComponent = /** @class */ (function () {
|
|
|
19090
19090
|
CaseEditPageComponent_1.setFocusToTop();
|
|
19091
19091
|
};
|
|
19092
19092
|
// Adding validation message to show it as Error Summary
|
|
19093
|
-
CaseEditPageComponent.prototype.generateErrorMessage = function (fields, container
|
|
19093
|
+
CaseEditPageComponent.prototype.generateErrorMessage = function (fields, container) {
|
|
19094
19094
|
var _this = this;
|
|
19095
19095
|
var group = container || this.editForm.controls['data'];
|
|
19096
19096
|
fields.filter(function (casefield) { return !_this.caseFieldService.isReadOnly(casefield); })
|
|
19097
|
-
.filter(function (casefield) { return !_this.pageValidationService.isHidden(casefield, _this.editForm
|
|
19097
|
+
.filter(function (casefield) { return !_this.pageValidationService.isHidden(casefield, _this.editForm); })
|
|
19098
19098
|
.forEach(function (casefield) {
|
|
19099
19099
|
var fieldElement = group.get(casefield.id);
|
|
19100
19100
|
if (fieldElement) {
|
|
19101
19101
|
var label = casefield.label || 'Field';
|
|
19102
|
-
var
|
|
19102
|
+
var id = casefield.id;
|
|
19103
19103
|
if (fieldElement['component'] && fieldElement['component'].parent) {
|
|
19104
|
-
|
|
19105
|
-
id_1 = "" + fieldElement['component'].idPrefix + id_1;
|
|
19106
|
-
}
|
|
19107
|
-
else {
|
|
19108
|
-
id_1 = "" + fieldElement['component'].idPrefix;
|
|
19109
|
-
}
|
|
19104
|
+
id = "" + fieldElement['component'].idPrefix + id;
|
|
19110
19105
|
}
|
|
19111
19106
|
if (fieldElement.hasError('required')) {
|
|
19112
|
-
_this.validationErrors.push({ id:
|
|
19107
|
+
_this.validationErrors.push({ id: id, message: label + " is required" });
|
|
19113
19108
|
fieldElement.markAsDirty();
|
|
19114
19109
|
}
|
|
19115
19110
|
else if (fieldElement.hasError('pattern')) {
|
|
19116
|
-
_this.validationErrors.push({ id:
|
|
19111
|
+
_this.validationErrors.push({ id: id, message: label + " is not valid" });
|
|
19117
19112
|
fieldElement.markAsDirty();
|
|
19118
19113
|
}
|
|
19119
19114
|
else if (fieldElement.hasError('minlength')) {
|
|
19120
|
-
_this.validationErrors.push({ id:
|
|
19115
|
+
_this.validationErrors.push({ id: id, message: label + " is below the minimum length" });
|
|
19121
19116
|
fieldElement.markAsDirty();
|
|
19122
19117
|
}
|
|
19123
19118
|
else if (fieldElement.hasError('maxlength')) {
|
|
19124
|
-
_this.validationErrors.push({ id:
|
|
19119
|
+
_this.validationErrors.push({ id: id, message: label + " exceeds the maximum length" });
|
|
19125
19120
|
fieldElement.markAsDirty();
|
|
19126
19121
|
}
|
|
19127
19122
|
else if (fieldElement.invalid) {
|
|
19128
19123
|
if (casefield.isComplex()) {
|
|
19129
|
-
_this.generateErrorMessage(casefield.field_type.complex_fields, fieldElement
|
|
19124
|
+
_this.generateErrorMessage(casefield.field_type.complex_fields, fieldElement);
|
|
19130
19125
|
}
|
|
19131
19126
|
else if (casefield.isCollection() && casefield.field_type.collection_field_type.type === 'Complex') {
|
|
19132
19127
|
var fieldArray = fieldElement;
|
|
19133
|
-
if (fieldArray['component'] && fieldArray['component']['collItems'] && fieldArray['component']['collItems'].length > 0) {
|
|
19134
|
-
id_1 = "" + fieldArray['component']['collItems'][0].prefix;
|
|
19135
|
-
}
|
|
19136
19128
|
fieldArray.controls.forEach(function (c) {
|
|
19137
|
-
_this.generateErrorMessage(casefield.field_type.collection_field_type.complex_fields, c.get('value')
|
|
19129
|
+
_this.generateErrorMessage(casefield.field_type.collection_field_type.complex_fields, c.get('value'));
|
|
19138
19130
|
});
|
|
19139
19131
|
}
|
|
19140
19132
|
else {
|
|
19141
|
-
_this.validationErrors.push({ id:
|
|
19133
|
+
_this.validationErrors.push({ id: id, message: "Select or fill the required " + casefield.label + " field" });
|
|
19142
19134
|
fieldElement.markAsDirty();
|
|
19143
19135
|
}
|
|
19144
19136
|
}
|
|
@@ -19553,9 +19545,6 @@ var CaseEditSubmitComponent = /** @class */ (function () {
|
|
|
19553
19545
|
this.formValueService.removeEmptyCollectionsWithMinValidation(caseEventData.data, this.eventTrigger.case_fields);
|
|
19554
19546
|
caseEventData.event_token = this.eventTrigger.event_token;
|
|
19555
19547
|
caseEventData.ignore_warning = this.ignoreWarning;
|
|
19556
|
-
if (this.caseEdit.confirmation) {
|
|
19557
|
-
caseEventData.data = {};
|
|
19558
|
-
}
|
|
19559
19548
|
return caseEventData;
|
|
19560
19549
|
};
|
|
19561
19550
|
/**
|
|
@@ -21271,16 +21260,19 @@ var CasesService = /** @class */ (function () {
|
|
|
21271
21260
|
});
|
|
21272
21261
|
};
|
|
21273
21262
|
CasesService.prototype.processTasksOnSuccess = function (caseData, eventData) {
|
|
21274
|
-
//
|
|
21275
|
-
|
|
21276
|
-
|
|
21277
|
-
|
|
21278
|
-
|
|
21279
|
-
|
|
21280
|
-
|
|
21281
|
-
|
|
21282
|
-
|
|
21283
|
-
|
|
21263
|
+
// The following code is work allocation 1 related
|
|
21264
|
+
if (this.appConfig.getWorkAllocationApiUrl().toLowerCase() === 'workallocation') {
|
|
21265
|
+
// This is used a feature toggle to
|
|
21266
|
+
// control the work allocation
|
|
21267
|
+
if (!this.isPuiCaseManager()) {
|
|
21268
|
+
this.workAllocationService.completeAppropriateTask(caseData.id, eventData.id, caseData.jurisdiction, caseData.case_type)
|
|
21269
|
+
.subscribe(function () {
|
|
21270
|
+
// Success. Do nothing.
|
|
21271
|
+
}, function (error) {
|
|
21272
|
+
// Show an appropriate warning about something that went wrong.
|
|
21273
|
+
console.warn('Could not process tasks for this case event', error);
|
|
21274
|
+
});
|
|
21275
|
+
}
|
|
21284
21276
|
}
|
|
21285
21277
|
};
|
|
21286
21278
|
/*
|
|
@@ -21441,8 +21433,25 @@ var EventCompletionStateMachineService = /** @class */ (function () {
|
|
|
21441
21433
|
EventCompletionStateMachineService.prototype.entryActionForStateCompleteEventAndTask = function (state, context) {
|
|
21442
21434
|
// Trigger final state to complete processing of state machine
|
|
21443
21435
|
state.trigger(domain_1.EventCompletionStates.Final);
|
|
21444
|
-
|
|
21445
|
-
|
|
21436
|
+
var taskStr = context.sessionStorageService.getItem('taskToComplete');
|
|
21437
|
+
if (taskStr) {
|
|
21438
|
+
// Task is in session storage
|
|
21439
|
+
var task = JSON.parse(taskStr);
|
|
21440
|
+
// Task already assigned to current user, just complete task
|
|
21441
|
+
context.workAllocationService.completeTask(task.id).subscribe(function (response) {
|
|
21442
|
+
// Emit event can be completed event
|
|
21443
|
+
context.component.eventCanBeCompleted.emit(true);
|
|
21444
|
+
}, function (error) {
|
|
21445
|
+
// Emit event cannot be completed event
|
|
21446
|
+
context.component.eventCanBeCompleted.emit(false);
|
|
21447
|
+
context.alertService.error(error.message);
|
|
21448
|
+
return rxjs_1.throwError(error);
|
|
21449
|
+
});
|
|
21450
|
+
}
|
|
21451
|
+
else {
|
|
21452
|
+
// Emit event cannot be completed event
|
|
21453
|
+
context.component.eventCanBeCompleted.emit(false);
|
|
21454
|
+
}
|
|
21446
21455
|
};
|
|
21447
21456
|
EventCompletionStateMachineService.prototype.entryActionForStateTaskAssignedToAnotherUser = function (state, context) {
|
|
21448
21457
|
// Trigger final state to complete processing of state machine
|
|
@@ -21651,13 +21660,10 @@ var PageValidationService = /** @class */ (function () {
|
|
|
21651
21660
|
}
|
|
21652
21661
|
return !(this.checkMandatoryField(caseField, theControl));
|
|
21653
21662
|
};
|
|
21654
|
-
PageValidationService.prototype.isHidden = function (caseField, editForm
|
|
21663
|
+
PageValidationService.prototype.isHidden = function (caseField, editForm) {
|
|
21655
21664
|
var formFields = editForm.getRawValue();
|
|
21656
21665
|
var condition = conditional_show_model_1.ShowCondition.getInstance(caseField.show_condition);
|
|
21657
|
-
|
|
21658
|
-
path = "" + path + caseField.id;
|
|
21659
|
-
}
|
|
21660
|
-
return !condition.match(formFields.data, path);
|
|
21666
|
+
return !condition.match(formFields.data);
|
|
21661
21667
|
};
|
|
21662
21668
|
PageValidationService.prototype.checkOptionalField = function (caseField, theControl) {
|
|
21663
21669
|
if (!theControl) {
|
|
@@ -26607,9 +26613,8 @@ var EventStartStateMachineService = /** @class */ (function () {
|
|
|
26607
26613
|
context.router.navigate(["/cases/case-details/" + context.caseId + "/multiple-tasks-exist"], { relativeTo: context.route });
|
|
26608
26614
|
};
|
|
26609
26615
|
EventStartStateMachineService.prototype.finalAction = function (state) {
|
|
26610
|
-
//
|
|
26611
|
-
console.log('FINAL
|
|
26612
|
-
console.log('State is complete', state.isComplete);
|
|
26616
|
+
// Final actions can be performed here, the state machine finished running
|
|
26617
|
+
console.log('FINAL', state);
|
|
26613
26618
|
};
|
|
26614
26619
|
EventStartStateMachineService.prototype.addTransitionsForStateCheckForMatchingTasks = function () {
|
|
26615
26620
|
// No tasks
|
|
@@ -26977,7 +26982,6 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
26977
26982
|
var core_1 = __webpack_require__(57208);
|
|
26978
26983
|
var markdown_component_1 = __webpack_require__(86843);
|
|
26979
26984
|
var ngx_md_1 = __webpack_require__(99978);
|
|
26980
|
-
var pipes_1 = __webpack_require__(32741);
|
|
26981
26985
|
exports.forRoot = ngx_md_1.NgxMdModule.forRoot();
|
|
26982
26986
|
var MarkdownModule = /** @class */ (function () {
|
|
26983
26987
|
function MarkdownModule() {
|
|
@@ -26985,8 +26989,7 @@ var MarkdownModule = /** @class */ (function () {
|
|
|
26985
26989
|
MarkdownModule = __decorate([
|
|
26986
26990
|
core_1.NgModule({
|
|
26987
26991
|
imports: [
|
|
26988
|
-
exports.forRoot
|
|
26989
|
-
pipes_1.PipesModule
|
|
26992
|
+
exports.forRoot
|
|
26990
26993
|
],
|
|
26991
26994
|
declarations: [
|
|
26992
26995
|
markdown_component_1.MarkdownComponent
|
|
@@ -28206,12 +28209,12 @@ var WriteCaseLinkFieldComponent = /** @class */ (function (_super) {
|
|
|
28206
28209
|
WriteCaseLinkFieldComponent.prototype.ngOnInit = function () {
|
|
28207
28210
|
if (this.caseField.value) {
|
|
28208
28211
|
this.caseLinkGroup = this.registerControl(new forms_1.FormGroup({
|
|
28209
|
-
'CaseReference': new forms_1.FormControl(this.caseField.value.CaseReference
|
|
28212
|
+
'CaseReference': new forms_1.FormControl(this.caseField.value.CaseReference),
|
|
28210
28213
|
}), true);
|
|
28211
28214
|
}
|
|
28212
28215
|
else {
|
|
28213
28216
|
this.caseLinkGroup = this.registerControl(new forms_1.FormGroup({
|
|
28214
|
-
'CaseReference': new forms_1.FormControl(
|
|
28217
|
+
'CaseReference': new forms_1.FormControl(),
|
|
28215
28218
|
}), true);
|
|
28216
28219
|
}
|
|
28217
28220
|
this.caseReferenceControl = this.caseLinkGroup.controls['CaseReference'];
|
|
@@ -28234,11 +28237,6 @@ var WriteCaseLinkFieldComponent = /** @class */ (function (_super) {
|
|
|
28234
28237
|
}
|
|
28235
28238
|
return { 'error': 'Please use a valid 16 Digit Case Reference' };
|
|
28236
28239
|
}
|
|
28237
|
-
else {
|
|
28238
|
-
if (control.touched) {
|
|
28239
|
-
return { 'error': 'Please use a valid 16 Digit Case Reference' };
|
|
28240
|
-
}
|
|
28241
|
-
}
|
|
28242
28240
|
return null;
|
|
28243
28241
|
};
|
|
28244
28242
|
};
|
|
@@ -40009,7 +40007,7 @@ var CaseReferencePipe = /** @class */ (function () {
|
|
|
40009
40007
|
return draft_model_1.DRAFT_PREFIX;
|
|
40010
40008
|
}
|
|
40011
40009
|
else {
|
|
40012
|
-
return String(caseReference).replace(/(
|
|
40010
|
+
return String(caseReference).replace(/(\d{4})(\d{4})(\d{4})(\d{4})/, '$1-$2-$3-$4');
|
|
40013
40011
|
}
|
|
40014
40012
|
};
|
|
40015
40013
|
CaseReferencePipe = __decorate([
|
|
@@ -89177,7 +89175,7 @@ module.exports = "<ccd-loading-spinner *ngIf=\"showSpinner\"></ccd-loading-spin
|
|
|
89177
89175
|
/***/ 81278:
|
|
89178
89176
|
/***/ ((module) => {
|
|
89179
89177
|
|
|
89180
|
-
module.exports = "<div *ngIf=\"!eventCompletionChecksRequired\">\n <!-- Event trigger name -->\n <h1 class=\"govuk-heading-l\">{{ eventTrigger.name}}</h1>\n\n <!--Case ID or Title -->\n <div *ngIf=\"getCaseTitle(); then titleBlock; else idBlock\"></div>\n <ng-template #titleBlock>\n <ccd-markdown [content]=\"getCaseTitle() | ccdCaseTitle: contextFields : editForm.controls['data']\"></ccd-markdown>\n </ng-template>\n <ng-template #idBlock>\n <h2 *ngIf=\"getCaseId()\" class=\"heading-h2\">#{{ getCaseId() | ccdCaseReference }}</h2>\n </ng-template>\n\n <!-- Generic error heading and error message to be displayed only if there are no specific callback errors or warnings, or no error details -->\n <div *ngIf=\"error && (!(error.callbackErrors || error.callbackWarnings || error.details) && !error.message)\" class=\"error-summary\" role=\"group\" aria-labelledby=\"edit-case-event_error-summary-heading\" tabindex=\"-1\">\n <h1 class=\"heading-h1 error-summary-heading\" id=\"edit-case-event_error-summary-heading\">\n Something went wrong\n </h1>\n <div class=\"govuk-error-summary__body\" id=\"edit-case-event_error-summary-body\">\n <p>We're working to fix the problem. Try again shortly.</p>\n <p><a href=\"get-help\" target=\"_blank\">Contact us</a> if you're still having problems.</p>\n </div>\n </div>\n <!-- Event error heading and error message to be displayed if there are specific error details -->\n <div *ngIf=\"error && (error.details || error.message)\" class=\"error-summary\" role=\"group\" aria-labelledby=\"edit-case-event_error-summary-heading\" tabindex=\"-1\">\n <h3 class=\"heading-h3 error-summary-heading\" id=\"edit-case-event_error-summary-heading\">\n The event could not be created\n </h3>\n <p>{{error.message}}</p>\n <ul *ngIf=\"error.details?.field_errors\" class=\"error-summary-list\">\n <li *ngFor=\"let fieldError of error.details.field_errors\" class=\"ccd-error-summary-li\">{{fieldError.message}}</li>\n </ul>\n </div>\n <ccd-callback-errors [callbackErrorsSubject]=\"callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\"></ccd-callback-errors>\n\n <form class=\"check-your-answers\" [formGroup]=\"editForm\" (submit)=\"submit()\">\n <ng-container *ngIf=\"checkYourAnswerFieldsToDisplayExists()\">\n\n <h2 class=\"heading-h2\">Check your answers</h2>\n <span class=\"text-16\">Check the information below carefully.</span>\n\n <table class=\"form-table\">\n <tbody>\n <ng-container *ngFor=\"let page of this.wizard.pages\">\n <ng-container *ngIf=\"isShown(page)\">\n <ng-container *ngFor=\"let field of page\n | ccdPageFields: editForm.controls['data']\n | ccdReadFieldsFilter: false :undefined :true : editForm.controls['data']\n | ccdCYAPageLabelFilter\">\n <ng-container *ngIf=\"canShowFieldInCYA(field)\">\n <tr ccdLabelSubstitutor [caseField]=\"field\" [hidden]=\"field.hidden\"\n [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <th *ngIf=\"!isLabel(field)\" class=\"valign-top case-field-label\"><span class=\"text-16\">{{field.label}}</span></th>\n <td class=\"form-cell case-field-content\" [attr.colspan]=\"isLabel(field) ? '2' : '1'\">\n <ccd-field-read\n [formGroup]=\"editForm.controls['data']\" [topLevelFormGroup]=\"editForm.controls['data']\"\n [caseField]=\"summaryCaseField(field)\" [context]=\"paletteContext\" [caseFields]=\"contextFields\"></ccd-field-read>\n </td>\n <td class=\"valign-top check-your-answers__change case-field-change\">\n <a *ngIf=\"isChangeAllowed(field)\" (click)=\"navigateToPage(page.id)\"\n href=\"javascript:void(0)\"><span class=\"text-16\"
|
|
89178
|
+
module.exports = "<div *ngIf=\"!eventCompletionChecksRequired\">\n <!-- Event trigger name -->\n <h1 class=\"govuk-heading-l\">{{ eventTrigger.name}}</h1>\n\n <!--Case ID or Title -->\n <div *ngIf=\"getCaseTitle(); then titleBlock; else idBlock\"></div>\n <ng-template #titleBlock>\n <ccd-markdown [content]=\"getCaseTitle() | ccdCaseTitle: contextFields : editForm.controls['data']\"></ccd-markdown>\n </ng-template>\n <ng-template #idBlock>\n <h2 *ngIf=\"getCaseId()\" class=\"heading-h2\">#{{ getCaseId() | ccdCaseReference }}</h2>\n </ng-template>\n\n <!-- Generic error heading and error message to be displayed only if there are no specific callback errors or warnings, or no error details -->\n <div *ngIf=\"error && (!(error.callbackErrors || error.callbackWarnings || error.details) && !error.message)\" class=\"error-summary\" role=\"group\" aria-labelledby=\"edit-case-event_error-summary-heading\" tabindex=\"-1\">\n <h1 class=\"heading-h1 error-summary-heading\" id=\"edit-case-event_error-summary-heading\">\n Something went wrong\n </h1>\n <div class=\"govuk-error-summary__body\" id=\"edit-case-event_error-summary-body\">\n <p>We're working to fix the problem. Try again shortly.</p>\n <p><a href=\"get-help\" target=\"_blank\">Contact us</a> if you're still having problems.</p>\n </div>\n </div>\n <!-- Event error heading and error message to be displayed if there are specific error details -->\n <div *ngIf=\"error && (error.details || error.message)\" class=\"error-summary\" role=\"group\" aria-labelledby=\"edit-case-event_error-summary-heading\" tabindex=\"-1\">\n <h3 class=\"heading-h3 error-summary-heading\" id=\"edit-case-event_error-summary-heading\">\n The event could not be created\n </h3>\n <p>{{error.message}}</p>\n <ul *ngIf=\"error.details?.field_errors\" class=\"error-summary-list\">\n <li *ngFor=\"let fieldError of error.details.field_errors\" class=\"ccd-error-summary-li\">{{fieldError.message}}</li>\n </ul>\n </div>\n <ccd-callback-errors [callbackErrorsSubject]=\"callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\"></ccd-callback-errors>\n\n <form class=\"check-your-answers\" [formGroup]=\"editForm\" (submit)=\"submit()\">\n <ng-container *ngIf=\"checkYourAnswerFieldsToDisplayExists()\">\n\n <h2 class=\"heading-h2\">Check your answers</h2>\n <span class=\"text-16\">Check the information below carefully.</span>\n\n <table class=\"form-table\">\n <tbody>\n <ng-container *ngFor=\"let page of this.wizard.pages\">\n <ng-container *ngIf=\"isShown(page)\">\n <ng-container *ngFor=\"let field of page\n | ccdPageFields: editForm.controls['data']\n | ccdReadFieldsFilter: false :undefined :true : editForm.controls['data']\n | ccdCYAPageLabelFilter\">\n <ng-container *ngIf=\"canShowFieldInCYA(field)\">\n <tr ccdLabelSubstitutor [caseField]=\"field\" [hidden]=\"field.hidden\"\n [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <th *ngIf=\"!isLabel(field)\" class=\"valign-top case-field-label\"><span class=\"text-16\">{{field.label}}</span></th>\n <td class=\"form-cell case-field-content\" [attr.colspan]=\"isLabel(field) ? '2' : '1'\">\n <ccd-field-read\n [formGroup]=\"editForm.controls['data']\" [topLevelFormGroup]=\"editForm.controls['data']\"\n [caseField]=\"summaryCaseField(field)\" [context]=\"paletteContext\" [caseFields]=\"contextFields\"></ccd-field-read>\n </td>\n <td class=\"valign-top check-your-answers__change case-field-change\">\n <a *ngIf=\"isChangeAllowed(field)\" (click)=\"navigateToPage(page.id)\"\n href=\"javascript:void(0)\"><span class=\"text-16\">Change</span></a>\n </td>\n </tr>\n </ng-container>\n </ng-container>\n </ng-container>\n </ng-container>\n </tbody>\n </table>\n </ng-container>\n <ng-container *ngIf=\"readOnlySummaryFieldsToDisplayExists()\">\n\n <table class=\"summary-fields\">\n <tbody>\n <ng-container *ngFor=\"let field of this.showSummaryFields\">\n <ng-container [ngSwitch]=\"!(field | ccdIsCompound)\">\n <tr *ngSwitchCase=\"true\" ccdLabelSubstitutor [caseField]=\"field\" [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <th>{{field.label}}</th>\n <td class=\"form-cell\">\n <ccd-field-read [formGroup]=\"editForm.controls['data']\" [caseField]=\"summaryCaseField(field)\"></ccd-field-read>\n </td>\n </tr>\n <tr *ngSwitchCase=\"false\" class=\"compound-field\" ccdLabelSubstitutor [caseField]=\"field\" [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <td colspan=\"2\">\n <ccd-field-read [formGroup]=\"editForm.controls['data']\" [caseField]=\"summaryCaseField(field)\" [caseFields]=\"contextFields\"></ccd-field-read>\n </td>\n </tr>\n </ng-container>\n </ng-container>\n </tbody>\n </table>\n </ng-container>\n <ng-container *ngIf=\"showEventNotes()\">\n <fieldset id=\"fieldset-event\" formGroupName=\"event\" *ngIf=\"profile && !isSolicitor()\">\n <div class=\"form-group\">\n <label for=\"field-trigger-summary\" class=\"form-label\">\n Event summary (optional)\n <span class=\"form-hint\">A few words describing the purpose of the event.</span>\n </label>\n <input type=\"text\" id=\"field-trigger-summary\" class=\"form-control bottom-30 width-50\" formControlName=\"summary\" maxlength=\"1024\">\n </div>\n <div class=\"form-group\">\n <label for=\"field-trigger-description\" class=\"form-label\">Event description (optional)</label>\n <textarea id=\"field-trigger-description\" class=\"form-control bottom-30 width-50\" formControlName=\"description\"\n maxlength=\"65536\"></textarea>\n </div>\n </fieldset>\n </ng-container>\n <div class=\"form-group form-group-related\">\n <button class=\"button button-secondary\" type=\"button\" [disabled]=\"!hasPrevious() || isSubmitting\" (click)=\"previous()\">Previous</button>\n <button type=\"submit\" [disabled]=\"isDisabled\" class=\"button\">{{triggerText}}</button>\n </div>\n <p class=\"cancel\"><a (click)=\"cancel()\" href=\"javascript:void(0)\" [class.disabled]=\"isSubmitting\">{{getCancelText()}}</a></p>\n </form>\n</div>\n<ccd-case-event-completion *ngIf=\"eventCompletionChecksRequired\"\n [eventCompletionParams]=\"eventCompletionParams\"\n (eventCanBeCompleted)=\"onEventCanBeCompleted($event)\">\n</ccd-case-event-completion>"
|
|
89181
89179
|
|
|
89182
89180
|
/***/ }),
|
|
89183
89181
|
|
|
@@ -89443,7 +89441,7 @@ module.exports = "<div class=\"spinner-container\">\n <div class=\"spinner-in
|
|
|
89443
89441
|
/***/ 6961:
|
|
89444
89442
|
/***/ ((module) => {
|
|
89445
89443
|
|
|
89446
|
-
module.exports = "<div><markdown class=\"markdown\" [innerHTML]=\"content
|
|
89444
|
+
module.exports = "<div><markdown class=\"markdown\" [innerHTML]=\"content\"></markdown></div>"
|
|
89447
89445
|
|
|
89448
89446
|
/***/ }),
|
|
89449
89447
|
|