@hmcts/ccd-case-ui-toolkit 4.12.0 → 4.12.1-EUI-5225-organisation-search
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 +12 -0
- package/dist/index.umd.js +89 -35
- 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 +20 -12
- 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 +4 -1
- 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/page-validation.service.d.ts +1 -1
- package/dist/shared/components/case-editor/services/page-validation.service.js +5 -2
- package/dist/shared/components/case-editor/services/page-validation.service.js.map +1 -1
- package/dist/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js +26 -9
- package/dist/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.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 +3 -1
- 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 +7 -2
- package/dist/shared/components/palette/case-link/write-case-link-field.component.js.map +1 -1
- package/dist/shared/components/palette/organisation/write-organisation-field.component.js +21 -5
- package/dist/shared/components/palette/organisation/write-organisation-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,11 +1,20 @@
|
|
|
1
1
|
## RELEASE NOTES
|
|
2
2
|
|
|
3
|
+
### Version 4.12.1-EUI-5225-organisation-search
|
|
4
|
+
**EUI-5225** Bug fix the organisation search functionality
|
|
5
|
+
|
|
6
|
+
### Version 4.14.1-EUI-5305-change-link-accessibility-update
|
|
7
|
+
**EUI-5305** Accessibility improvement for 'Change' links
|
|
8
|
+
|
|
3
9
|
### Version 4.12.0
|
|
4
10
|
Add refunds functionality
|
|
5
11
|
|
|
6
12
|
### Version 4.9.15-state-machine"
|
|
7
13
|
**Task event completion and state machine** Task event completion and state machine
|
|
8
14
|
|
|
15
|
+
### Version 4.3.9-markdown-case-ref-EUI-3650
|
|
16
|
+
**EUI-3650** Added formatting for case reference inside markdown
|
|
17
|
+
|
|
9
18
|
### Version 4.7.6-tab-not-defined-error"
|
|
10
19
|
**EUI-4562** Case details Active tasks tab on success not returning to active tasks page
|
|
11
20
|
|
|
@@ -15,6 +24,9 @@ Add refunds functionality
|
|
|
15
24
|
### Version 4.7.6-tab-not-defined-error"
|
|
16
25
|
**EUI-4562** Case details Active tasks tab on success not returning to active tasks page
|
|
17
26
|
|
|
27
|
+
### Version 4.7.6-hearings-tab
|
|
28
|
+
**EUI-4441** Add hearings tab in case details
|
|
29
|
+
|
|
18
30
|
### Version 4.7.6-hearings-tab
|
|
19
31
|
**EUI-4441** Add hearings tab in case details
|
|
20
32
|
**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 v4.12.
|
|
3
|
+
* @version v4.12.1-EUI-5225-organisation-search
|
|
4
4
|
* @link undefined
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -19090,47 +19090,55 @@ 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, path) {
|
|
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, path); })
|
|
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_1 = casefield.id;
|
|
19103
19103
|
if (fieldElement['component'] && fieldElement['component'].parent) {
|
|
19104
|
-
|
|
19104
|
+
if (fieldElement['component'].idPrefix.indexOf('_' + id_1 + '_') === -1) {
|
|
19105
|
+
id_1 = "" + fieldElement['component'].idPrefix + id_1;
|
|
19106
|
+
}
|
|
19107
|
+
else {
|
|
19108
|
+
id_1 = "" + fieldElement['component'].idPrefix;
|
|
19109
|
+
}
|
|
19105
19110
|
}
|
|
19106
19111
|
if (fieldElement.hasError('required')) {
|
|
19107
|
-
_this.validationErrors.push({ id:
|
|
19112
|
+
_this.validationErrors.push({ id: id_1, message: label + " is required" });
|
|
19108
19113
|
fieldElement.markAsDirty();
|
|
19109
19114
|
}
|
|
19110
19115
|
else if (fieldElement.hasError('pattern')) {
|
|
19111
|
-
_this.validationErrors.push({ id:
|
|
19116
|
+
_this.validationErrors.push({ id: id_1, message: label + " is not valid" });
|
|
19112
19117
|
fieldElement.markAsDirty();
|
|
19113
19118
|
}
|
|
19114
19119
|
else if (fieldElement.hasError('minlength')) {
|
|
19115
|
-
_this.validationErrors.push({ id:
|
|
19120
|
+
_this.validationErrors.push({ id: id_1, message: label + " is below the minimum length" });
|
|
19116
19121
|
fieldElement.markAsDirty();
|
|
19117
19122
|
}
|
|
19118
19123
|
else if (fieldElement.hasError('maxlength')) {
|
|
19119
|
-
_this.validationErrors.push({ id:
|
|
19124
|
+
_this.validationErrors.push({ id: id_1, message: label + " exceeds the maximum length" });
|
|
19120
19125
|
fieldElement.markAsDirty();
|
|
19121
19126
|
}
|
|
19122
19127
|
else if (fieldElement.invalid) {
|
|
19123
19128
|
if (casefield.isComplex()) {
|
|
19124
|
-
_this.generateErrorMessage(casefield.field_type.complex_fields, fieldElement);
|
|
19129
|
+
_this.generateErrorMessage(casefield.field_type.complex_fields, fieldElement, id_1);
|
|
19125
19130
|
}
|
|
19126
19131
|
else if (casefield.isCollection() && casefield.field_type.collection_field_type.type === 'Complex') {
|
|
19127
19132
|
var fieldArray = fieldElement;
|
|
19133
|
+
if (fieldArray['component'] && fieldArray['component']['collItems'] && fieldArray['component']['collItems'].length > 0) {
|
|
19134
|
+
id_1 = "" + fieldArray['component']['collItems'][0].prefix;
|
|
19135
|
+
}
|
|
19128
19136
|
fieldArray.controls.forEach(function (c) {
|
|
19129
|
-
_this.generateErrorMessage(casefield.field_type.collection_field_type.complex_fields, c.get('value'));
|
|
19137
|
+
_this.generateErrorMessage(casefield.field_type.collection_field_type.complex_fields, c.get('value'), id_1);
|
|
19130
19138
|
});
|
|
19131
19139
|
}
|
|
19132
19140
|
else {
|
|
19133
|
-
_this.validationErrors.push({ id:
|
|
19141
|
+
_this.validationErrors.push({ id: id_1, message: "Select or fill the required " + casefield.label + " field" });
|
|
19134
19142
|
fieldElement.markAsDirty();
|
|
19135
19143
|
}
|
|
19136
19144
|
}
|
|
@@ -19196,7 +19204,7 @@ var CaseEditPageComponent = /** @class */ (function () {
|
|
|
19196
19204
|
};
|
|
19197
19205
|
CaseEditPageComponent.prototype.updateFormControlsValue = function (formGroup, caseFieldId, value) {
|
|
19198
19206
|
var theControl = formGroup.controls['data'].get(caseFieldId);
|
|
19199
|
-
if (theControl) {
|
|
19207
|
+
if (theControl && theControl['status'] !== 'DISABLED') {
|
|
19200
19208
|
if (Array.isArray(theControl.value) && Array.isArray(value)
|
|
19201
19209
|
&& theControl.value.length > value.length && theControl['caseField']
|
|
19202
19210
|
&& theControl['caseField']['display_context'] && theControl['caseField']['display_context'] === 'OPTIONAL'
|
|
@@ -19545,6 +19553,9 @@ var CaseEditSubmitComponent = /** @class */ (function () {
|
|
|
19545
19553
|
this.formValueService.removeEmptyCollectionsWithMinValidation(caseEventData.data, this.eventTrigger.case_fields);
|
|
19546
19554
|
caseEventData.event_token = this.eventTrigger.event_token;
|
|
19547
19555
|
caseEventData.ignore_warning = this.ignoreWarning;
|
|
19556
|
+
if (this.caseEdit.confirmation) {
|
|
19557
|
+
caseEventData.data = {};
|
|
19558
|
+
}
|
|
19548
19559
|
return caseEventData;
|
|
19549
19560
|
};
|
|
19550
19561
|
/**
|
|
@@ -21640,10 +21651,13 @@ var PageValidationService = /** @class */ (function () {
|
|
|
21640
21651
|
}
|
|
21641
21652
|
return !(this.checkMandatoryField(caseField, theControl));
|
|
21642
21653
|
};
|
|
21643
|
-
PageValidationService.prototype.isHidden = function (caseField, editForm) {
|
|
21654
|
+
PageValidationService.prototype.isHidden = function (caseField, editForm, path) {
|
|
21644
21655
|
var formFields = editForm.getRawValue();
|
|
21645
21656
|
var condition = conditional_show_model_1.ShowCondition.getInstance(caseField.show_condition);
|
|
21646
|
-
|
|
21657
|
+
if (path && path.indexOf('_' + caseField.id + '_') === -1) {
|
|
21658
|
+
path = "" + path + caseField.id;
|
|
21659
|
+
}
|
|
21660
|
+
return !condition.match(formFields.data, path);
|
|
21647
21661
|
};
|
|
21648
21662
|
PageValidationService.prototype.checkOptionalField = function (caseField, theControl) {
|
|
21649
21663
|
if (!theControl) {
|
|
@@ -23584,16 +23598,33 @@ var CaseFullAccessViewComponent = /** @class */ (function () {
|
|
|
23584
23598
|
var matTab;
|
|
23585
23599
|
var url = this.location.path(true);
|
|
23586
23600
|
var hashValue = url.substring(url.indexOf('#') + 1);
|
|
23587
|
-
|
|
23588
|
-
if (!url.includes('#') && this.prependedTabs && this.prependedTabs.length) {
|
|
23601
|
+
if (!url.includes('#')) {
|
|
23589
23602
|
var paths = url.split('/');
|
|
23590
|
-
|
|
23591
|
-
var
|
|
23592
|
-
var
|
|
23593
|
-
this.
|
|
23594
|
-
|
|
23595
|
-
|
|
23596
|
-
}
|
|
23603
|
+
// lastPath can be /caseId, or the tabs /tasks, /hearings etc.
|
|
23604
|
+
var lastPath_1 = decodeURIComponent(paths[paths.length - 1]);
|
|
23605
|
+
var foundTab_1 = null;
|
|
23606
|
+
var additionalTabs = this.prependedTabs.concat(this.appendedTabs);
|
|
23607
|
+
if (additionalTabs && additionalTabs.length) {
|
|
23608
|
+
foundTab_1 = additionalTabs.find(function (caseTab) { return caseTab.id.toLowerCase() === lastPath_1.toLowerCase(); });
|
|
23609
|
+
}
|
|
23610
|
+
// found tasks or hearing tab
|
|
23611
|
+
if (foundTab_1) {
|
|
23612
|
+
this.router.navigate(['cases', 'case-details', this.caseDetails.case_id, foundTab_1.id]).then(function () {
|
|
23613
|
+
matTab = _this.tabGroup._tabs.find(function (x) { return x.textLabel === foundTab_1.label; });
|
|
23614
|
+
_this.tabGroup.selectedIndex = matTab.position;
|
|
23615
|
+
});
|
|
23616
|
+
// last path is caseId
|
|
23617
|
+
}
|
|
23618
|
+
else {
|
|
23619
|
+
// sort with the order of CCD predefined tabs
|
|
23620
|
+
this.caseDetails.tabs.sort(function (aTab, bTab) { return aTab.order > bTab.order ? 1 : (bTab.order > aTab.order ? -1 : 0); });
|
|
23621
|
+
// preselect the 1st order of CCD predefined tabs
|
|
23622
|
+
var preSelectTab_1 = this.caseDetails.tabs[0];
|
|
23623
|
+
this.router.navigate(['cases', 'case-details', this.caseDetails.case_id]).then(function () {
|
|
23624
|
+
matTab = _this.tabGroup._tabs.find(function (x) { return x.textLabel === preSelectTab_1.label; });
|
|
23625
|
+
_this.tabGroup.selectedIndex = matTab.position;
|
|
23626
|
+
});
|
|
23627
|
+
}
|
|
23597
23628
|
}
|
|
23598
23629
|
else {
|
|
23599
23630
|
var regExp = new RegExp(CaseFullAccessViewComponent_1.UNICODE_SPACE, 'g');
|
|
@@ -26928,6 +26959,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
26928
26959
|
var core_1 = __webpack_require__(57208);
|
|
26929
26960
|
var markdown_component_1 = __webpack_require__(86843);
|
|
26930
26961
|
var ngx_md_1 = __webpack_require__(99978);
|
|
26962
|
+
var pipes_1 = __webpack_require__(32741);
|
|
26931
26963
|
exports.forRoot = ngx_md_1.NgxMdModule.forRoot();
|
|
26932
26964
|
var MarkdownModule = /** @class */ (function () {
|
|
26933
26965
|
function MarkdownModule() {
|
|
@@ -26935,7 +26967,8 @@ var MarkdownModule = /** @class */ (function () {
|
|
|
26935
26967
|
MarkdownModule = __decorate([
|
|
26936
26968
|
core_1.NgModule({
|
|
26937
26969
|
imports: [
|
|
26938
|
-
exports.forRoot
|
|
26970
|
+
exports.forRoot,
|
|
26971
|
+
pipes_1.PipesModule
|
|
26939
26972
|
],
|
|
26940
26973
|
declarations: [
|
|
26941
26974
|
markdown_component_1.MarkdownComponent
|
|
@@ -28155,12 +28188,12 @@ var WriteCaseLinkFieldComponent = /** @class */ (function (_super) {
|
|
|
28155
28188
|
WriteCaseLinkFieldComponent.prototype.ngOnInit = function () {
|
|
28156
28189
|
if (this.caseField.value) {
|
|
28157
28190
|
this.caseLinkGroup = this.registerControl(new forms_1.FormGroup({
|
|
28158
|
-
'CaseReference': new forms_1.FormControl(this.caseField.value.CaseReference),
|
|
28191
|
+
'CaseReference': new forms_1.FormControl(this.caseField.value.CaseReference, forms_1.Validators.required),
|
|
28159
28192
|
}), true);
|
|
28160
28193
|
}
|
|
28161
28194
|
else {
|
|
28162
28195
|
this.caseLinkGroup = this.registerControl(new forms_1.FormGroup({
|
|
28163
|
-
'CaseReference': new forms_1.FormControl(),
|
|
28196
|
+
'CaseReference': new forms_1.FormControl(null, forms_1.Validators.required),
|
|
28164
28197
|
}), true);
|
|
28165
28198
|
}
|
|
28166
28199
|
this.caseReferenceControl = this.caseLinkGroup.controls['CaseReference'];
|
|
@@ -28183,6 +28216,11 @@ var WriteCaseLinkFieldComponent = /** @class */ (function (_super) {
|
|
|
28183
28216
|
}
|
|
28184
28217
|
return { 'error': 'Please use a valid 16 Digit Case Reference' };
|
|
28185
28218
|
}
|
|
28219
|
+
else {
|
|
28220
|
+
if (control.touched) {
|
|
28221
|
+
return { 'error': 'Please use a valid 16 Digit Case Reference' };
|
|
28222
|
+
}
|
|
28223
|
+
}
|
|
28186
28224
|
return null;
|
|
28187
28225
|
};
|
|
28188
28226
|
};
|
|
@@ -33693,13 +33731,29 @@ var WriteOrganisationFieldComponent = /** @class */ (function (_super) {
|
|
|
33693
33731
|
this.simpleOrganisations$ = rxjs_1.of([]);
|
|
33694
33732
|
}
|
|
33695
33733
|
};
|
|
33734
|
+
// The way the search works divide into two phases
|
|
33735
|
+
// 1. go through collection of org items one by one by doing the comparsion of search string using includes to all the address fields
|
|
33736
|
+
// 2. split the search string into arrays and apply the each array item into the address fields
|
|
33737
|
+
// 3. both step 1, 2 will go until max count result reaches, and finally combine both result sets into final collection
|
|
33696
33738
|
WriteOrganisationFieldComponent.prototype.searchOrg = function (organisations, lowerOrgSearchText) {
|
|
33697
33739
|
var _this = this;
|
|
33698
|
-
|
|
33699
|
-
|
|
33700
|
-
|
|
33701
|
-
|
|
33702
|
-
|
|
33740
|
+
var partMatchingResultSet = [], withSpaceMatchingResultSet = [];
|
|
33741
|
+
var MAX_RESULT_COUNT = WriteOrganisationFieldComponent_1.MAX_RESULT_COUNT;
|
|
33742
|
+
organisations.forEach(function (organisation) {
|
|
33743
|
+
if (partMatchingResultSet.length < MAX_RESULT_COUNT && _this.searchCriteria(organisation, lowerOrgSearchText)) {
|
|
33744
|
+
partMatchingResultSet.push(organisation);
|
|
33745
|
+
}
|
|
33746
|
+
});
|
|
33747
|
+
organisations.forEach(function (org) {
|
|
33748
|
+
var matchingOrg = partMatchingResultSet.concat(withSpaceMatchingResultSet).find(function (item) { return item.organisationIdentifier === org.organisationIdentifier; });
|
|
33749
|
+
if (!matchingOrg && partMatchingResultSet.concat(withSpaceMatchingResultSet).length < MAX_RESULT_COUNT
|
|
33750
|
+
&& _this.searchWithSpace(org, lowerOrgSearchText)) {
|
|
33751
|
+
withSpaceMatchingResultSet.push(org);
|
|
33752
|
+
}
|
|
33753
|
+
});
|
|
33754
|
+
return partMatchingResultSet.concat(withSpaceMatchingResultSet).map(function (organisation) {
|
|
33755
|
+
return _this.organisationConverter.toSimpleOrganisationModel(organisation);
|
|
33756
|
+
});
|
|
33703
33757
|
};
|
|
33704
33758
|
WriteOrganisationFieldComponent.prototype.searchCriteria = function (organisation, lowerOrgSearchText) {
|
|
33705
33759
|
if (organisation.postCode && organisation.postCode.toLowerCase().includes(lowerOrgSearchText)) {
|
|
@@ -39953,7 +40007,7 @@ var CaseReferencePipe = /** @class */ (function () {
|
|
|
39953
40007
|
return draft_model_1.DRAFT_PREFIX;
|
|
39954
40008
|
}
|
|
39955
40009
|
else {
|
|
39956
|
-
return String(caseReference).replace(/(\d{4})(\d{4})(\d{4})(\d{4})
|
|
40010
|
+
return String(caseReference).replace(/(?<!\/)(\d{4})(\d{4})(\d{4})(\d{4})/g, '$1-$2-$3-$4');
|
|
39957
40011
|
}
|
|
39958
40012
|
};
|
|
39959
40013
|
CaseReferencePipe = __decorate([
|
|
@@ -89116,7 +89170,7 @@ module.exports = "<ccd-loading-spinner *ngIf=\"showSpinner\"></ccd-loading-spin
|
|
|
89116
89170
|
/***/ 81278:
|
|
89117
89171
|
/***/ ((module) => {
|
|
89118
89172
|
|
|
89119
|
-
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
|
|
89173
|
+
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\" attr.aria-label=\"Change {{ field.label }}\">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>\n"
|
|
89120
89174
|
|
|
89121
89175
|
/***/ }),
|
|
89122
89176
|
|
|
@@ -89382,7 +89436,7 @@ module.exports = "<div class=\"spinner-container\">\n <div class=\"spinner-in
|
|
|
89382
89436
|
/***/ 6961:
|
|
89383
89437
|
/***/ ((module) => {
|
|
89384
89438
|
|
|
89385
|
-
module.exports = "<div><markdown class=\"markdown\" [innerHTML]=\"content\"></markdown></div>"
|
|
89439
|
+
module.exports = "<div><markdown class=\"markdown\" [innerHTML]=\"content | ccdCaseReference\"></markdown></div>"
|
|
89386
89440
|
|
|
89387
89441
|
/***/ }),
|
|
89388
89442
|
|