@hmcts/ccd-case-ui-toolkit 4.12.6 → 4.12.9-strip-trailing-input
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 +71 -25
- 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 +19 -11
- 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/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/text/write-text-field.component.d.ts +1 -0
- package/dist/shared/components/palette/text/write-text-field.component.js +4 -1
- package/dist/shared/components/palette/text/write-text-field.component.js.map +1 -1
- package/dist/shared/components/palette/text/write-text-field.component.metadata.json +1 -1
- package/dist/shared/components/palette/text-area/write-text-area-field.component.js +1 -1
- package/dist/shared/components/palette/text-area/write-text-area-field.component.js.map +1 -1
- package/dist/shared/components/palette/text-area/write-text-area-field.component.metadata.json +1 -1
- package/dist/shared/components/search-result/search-result.component.d.ts +3 -0
- package/dist/shared/components/search-result/search-result.component.js +15 -2
- package/dist/shared/components/search-result/search-result.component.js.map +1 -1
- package/dist/shared/components/search-result/search-result.component.metadata.json +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/dist/shared/services/form/form-validators.service.d.ts +2 -1
- package/dist/shared/services/form/form-validators.service.js +10 -1
- package/dist/shared/services/form/form-validators.service.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.14.1-EUI-5305-change-link-accessibility-update
|
|
4
|
+
**EUI-5305** Accessibility improvement for 'Change' links
|
|
5
|
+
|
|
3
6
|
### Version 4.12.0
|
|
4
7
|
Add refunds functionality
|
|
5
8
|
|
|
9
|
+
### Version 4.12.6-limit-search-results-10k-400-5"
|
|
10
|
+
**Limit search results to 10k / 400 pages** Limit search results to 10k / 400 pages
|
|
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
|
|
3
|
+
* @version vv4.12.9-strip-trailing-input
|
|
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
|
}
|
|
@@ -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) {
|
|
@@ -26945,6 +26959,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
26945
26959
|
var core_1 = __webpack_require__(57208);
|
|
26946
26960
|
var markdown_component_1 = __webpack_require__(86843);
|
|
26947
26961
|
var ngx_md_1 = __webpack_require__(99978);
|
|
26962
|
+
var pipes_1 = __webpack_require__(32741);
|
|
26948
26963
|
exports.forRoot = ngx_md_1.NgxMdModule.forRoot();
|
|
26949
26964
|
var MarkdownModule = /** @class */ (function () {
|
|
26950
26965
|
function MarkdownModule() {
|
|
@@ -26952,7 +26967,8 @@ var MarkdownModule = /** @class */ (function () {
|
|
|
26952
26967
|
MarkdownModule = __decorate([
|
|
26953
26968
|
core_1.NgModule({
|
|
26954
26969
|
imports: [
|
|
26955
|
-
exports.forRoot
|
|
26970
|
+
exports.forRoot,
|
|
26971
|
+
pipes_1.PipesModule
|
|
26956
26972
|
],
|
|
26957
26973
|
declarations: [
|
|
26958
26974
|
markdown_component_1.MarkdownComponent
|
|
@@ -28172,12 +28188,12 @@ var WriteCaseLinkFieldComponent = /** @class */ (function (_super) {
|
|
|
28172
28188
|
WriteCaseLinkFieldComponent.prototype.ngOnInit = function () {
|
|
28173
28189
|
if (this.caseField.value) {
|
|
28174
28190
|
this.caseLinkGroup = this.registerControl(new forms_1.FormGroup({
|
|
28175
|
-
'CaseReference': new forms_1.FormControl(this.caseField.value.CaseReference),
|
|
28191
|
+
'CaseReference': new forms_1.FormControl(this.caseField.value.CaseReference, forms_1.Validators.required),
|
|
28176
28192
|
}), true);
|
|
28177
28193
|
}
|
|
28178
28194
|
else {
|
|
28179
28195
|
this.caseLinkGroup = this.registerControl(new forms_1.FormGroup({
|
|
28180
|
-
'CaseReference': new forms_1.FormControl(),
|
|
28196
|
+
'CaseReference': new forms_1.FormControl(null, forms_1.Validators.required),
|
|
28181
28197
|
}), true);
|
|
28182
28198
|
}
|
|
28183
28199
|
this.caseReferenceControl = this.caseLinkGroup.controls['CaseReference'];
|
|
@@ -28200,6 +28216,11 @@ var WriteCaseLinkFieldComponent = /** @class */ (function (_super) {
|
|
|
28200
28216
|
}
|
|
28201
28217
|
return { 'error': 'Please use a valid 16 Digit Case Reference' };
|
|
28202
28218
|
}
|
|
28219
|
+
else {
|
|
28220
|
+
if (control.touched) {
|
|
28221
|
+
return { 'error': 'Please use a valid 16 Digit Case Reference' };
|
|
28222
|
+
}
|
|
28223
|
+
}
|
|
28203
28224
|
return null;
|
|
28204
28225
|
};
|
|
28205
28226
|
};
|
|
@@ -34602,6 +34623,9 @@ var WriteTextFieldComponent = /** @class */ (function (_super) {
|
|
|
34602
34623
|
WriteTextFieldComponent.prototype.ngOnInit = function () {
|
|
34603
34624
|
this.textControl = this.registerControl(new forms_1.FormControl(this.caseField.value));
|
|
34604
34625
|
};
|
|
34626
|
+
WriteTextFieldComponent.prototype.onBlur = function ($event) {
|
|
34627
|
+
$event.target.value = $event.target.value.trim();
|
|
34628
|
+
};
|
|
34605
34629
|
WriteTextFieldComponent = __decorate([
|
|
34606
34630
|
core_1.Component({
|
|
34607
34631
|
selector: 'ccd-write-text-field',
|
|
@@ -35869,6 +35893,7 @@ var SearchResultComponent = /** @class */ (function () {
|
|
|
35869
35893
|
this.caseReferencePipe = caseReferencePipe;
|
|
35870
35894
|
this.placeholderService = placeholderService;
|
|
35871
35895
|
this.browserService = browserService;
|
|
35896
|
+
this.PAGINATION_MAX_ITEM_RESULT = 10000;
|
|
35872
35897
|
this.ICON = domain_1.DisplayMode.ICON;
|
|
35873
35898
|
this.selectionEnabled = false;
|
|
35874
35899
|
this.showOnlySelected = false;
|
|
@@ -35878,6 +35903,7 @@ var SearchResultComponent = /** @class */ (function () {
|
|
|
35878
35903
|
this.changePage = new core_1.EventEmitter();
|
|
35879
35904
|
this.clickCase = new core_1.EventEmitter();
|
|
35880
35905
|
this.sortHandler = new core_1.EventEmitter();
|
|
35906
|
+
this.paginationLimitEnforced = false;
|
|
35881
35907
|
this.selected = {};
|
|
35882
35908
|
this.consumerSortParameters = { column: null, order: null, type: null };
|
|
35883
35909
|
this.selectedCases = [];
|
|
@@ -35921,6 +35947,16 @@ var SearchResultComponent = /** @class */ (function () {
|
|
|
35921
35947
|
this.selected.page = (changes['page']).currentValue;
|
|
35922
35948
|
}
|
|
35923
35949
|
};
|
|
35950
|
+
Object.defineProperty(SearchResultComponent.prototype, "resultTotal", {
|
|
35951
|
+
get: function () {
|
|
35952
|
+
var total = this.paginationMetadata.total_results_count;
|
|
35953
|
+
var maximumResultReached = total >= this.PAGINATION_MAX_ITEM_RESULT;
|
|
35954
|
+
this.paginationLimitEnforced = maximumResultReached;
|
|
35955
|
+
return maximumResultReached ? this.PAGINATION_MAX_ITEM_RESULT : total;
|
|
35956
|
+
},
|
|
35957
|
+
enumerable: true,
|
|
35958
|
+
configurable: true
|
|
35959
|
+
});
|
|
35924
35960
|
SearchResultComponent.prototype.clearSelection = function () {
|
|
35925
35961
|
this.selectedCases = [];
|
|
35926
35962
|
this.selection.emit(this.selectedCases);
|
|
@@ -36163,7 +36199,8 @@ var SearchResultComponent = /** @class */ (function () {
|
|
|
36163
36199
|
return ((currentPage - 1) * this.paginationPageSize) + this.resultView.results.length + this.getDraftsCountIfNotPageOne(currentPage);
|
|
36164
36200
|
};
|
|
36165
36201
|
SearchResultComponent.prototype.getTotalResults = function () {
|
|
36166
|
-
|
|
36202
|
+
var total = this.paginationMetadata.total_results_count + this.draftsCount;
|
|
36203
|
+
return total >= this.PAGINATION_MAX_ITEM_RESULT ? this.PAGINATION_MAX_ITEM_RESULT : total;
|
|
36167
36204
|
};
|
|
36168
36205
|
SearchResultComponent.prototype.prepareCaseLinkUrl = function (caseId) {
|
|
36169
36206
|
var url = this.caseLinkUrlTemplate;
|
|
@@ -39970,7 +40007,7 @@ var CaseReferencePipe = /** @class */ (function () {
|
|
|
39970
40007
|
return draft_model_1.DRAFT_PREFIX;
|
|
39971
40008
|
}
|
|
39972
40009
|
else {
|
|
39973
|
-
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');
|
|
39974
40011
|
}
|
|
39975
40012
|
};
|
|
39976
40013
|
CaseReferencePipe = __decorate([
|
|
@@ -42627,7 +42664,7 @@ var FormValidatorsService = /** @class */ (function () {
|
|
|
42627
42664
|
validators.push(forms_1.Validators.pattern(caseField.field_type.regular_expression));
|
|
42628
42665
|
}
|
|
42629
42666
|
else {
|
|
42630
|
-
validators.push(
|
|
42667
|
+
validators.push(this.emptyValidator());
|
|
42631
42668
|
}
|
|
42632
42669
|
if (caseField.field_type.min && (typeof caseField.field_type.min === 'number')) {
|
|
42633
42670
|
validators.push(forms_1.Validators.minLength(caseField.field_type.min));
|
|
@@ -42643,6 +42680,15 @@ var FormValidatorsService = /** @class */ (function () {
|
|
|
42643
42680
|
}
|
|
42644
42681
|
return control;
|
|
42645
42682
|
};
|
|
42683
|
+
FormValidatorsService.emptyValidator = function () {
|
|
42684
|
+
var validator = function (control) {
|
|
42685
|
+
if (control && control.value && control.value.toString().trim().length === 0) {
|
|
42686
|
+
return { required: {} };
|
|
42687
|
+
}
|
|
42688
|
+
return null;
|
|
42689
|
+
};
|
|
42690
|
+
return validator;
|
|
42691
|
+
};
|
|
42646
42692
|
// TODO: Strip this out as it's only here for the moment because
|
|
42647
42693
|
// the service is being injected all over the place but it doesn't
|
|
42648
42694
|
// need to be as FormValidatorsService.addValidators is perfectly
|
|
@@ -89138,7 +89184,7 @@ module.exports = "<ccd-loading-spinner *ngIf=\"showSpinner\"></ccd-loading-spin
|
|
|
89138
89184
|
/***/ 81278:
|
|
89139
89185
|
/***/ ((module) => {
|
|
89140
89186
|
|
|
89141
|
-
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
|
|
89187
|
+
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"
|
|
89142
89188
|
|
|
89143
89189
|
/***/ }),
|
|
89144
89190
|
|
|
@@ -89404,7 +89450,7 @@ module.exports = "<div class=\"spinner-container\">\n <div class=\"spinner-in
|
|
|
89404
89450
|
/***/ 6961:
|
|
89405
89451
|
/***/ ((module) => {
|
|
89406
89452
|
|
|
89407
|
-
module.exports = "<div><markdown class=\"markdown\" [innerHTML]=\"content\"></markdown></div>"
|
|
89453
|
+
module.exports = "<div><markdown class=\"markdown\" [innerHTML]=\"content | ccdCaseReference\"></markdown></div>"
|
|
89408
89454
|
|
|
89409
89455
|
/***/ }),
|
|
89410
89456
|
|
|
@@ -89712,14 +89758,14 @@ module.exports = "<div class=\"form-group\" [ngClass]=\"{'form-group-error': !ph
|
|
|
89712
89758
|
/***/ 70945:
|
|
89713
89759
|
/***/ ((module) => {
|
|
89714
89760
|
|
|
89715
|
-
module.exports = "<div class=\"form-group\" [ngClass]=\"{'form-group-error': !textareaControl
|
|
89761
|
+
module.exports = "<div class=\"form-group\" [ngClass]=\"{'form-group-error': !textareaControl?.valid && textareaControl?.dirty}\">\n\n <label [for]=\"id()\">\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{caseField | ccdFieldLabel}}</span>\n </label>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text}}</span>\n <span class=\"error-message\" *ngIf=\"textareaControl?.errors && (textareaControl?.dirty || textareaControl?.touched)\">{{textareaControl?.errors | ccdFirstError:caseField.label}}</span>\n\n <textarea (input)=\"autoGrow($event)\" class=\"form-control bottom-30\" [ngClass]=\"{'govuk-textarea--error': textareaControl?.errors && (textareaControl?.dirty || textareaControl?.touched)}\"\n [id]=\"id()\" rows=\"3\" [formControl]=\"textareaControl\"></textarea>\n\n</div>\n"
|
|
89716
89762
|
|
|
89717
89763
|
/***/ }),
|
|
89718
89764
|
|
|
89719
89765
|
/***/ 36157:
|
|
89720
89766
|
/***/ ((module) => {
|
|
89721
89767
|
|
|
89722
|
-
module.exports = "<div class=\"form-group\" [ngClass]=\"{'form-group-error': !textControl.valid && (textControl.dirty || textControl.touched)}\">\n\n <label [for]=\"id()\">\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{caseField | ccdFieldLabel}}</span>\n </label>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text}}</span>\n <span class=\"error-message\" *ngIf=\"textControl
|
|
89768
|
+
module.exports = "<div class=\"form-group\" [ngClass]=\"{'form-group-error': !!textControl && !textControl.valid && (textControl.dirty || textControl.touched)}\">\n\n <label [for]=\"id()\">\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{caseField | ccdFieldLabel}}</span>\n </label>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text}}</span>\n <span class=\"error-message\" *ngIf=\"textControl?.errors && (textControl.dirty || textControl.touched)\">{{textControl.errors | ccdFirstError:caseField.label}}</span>\n <input class=\"form-control bottom-30\" [ngClass]=\"{'govuk-input--error': textControl?.errors && (textControl.dirty || textControl.touched)}\"\n [id]=\"id()\" type=\"text\" [formControl]=\"textControl\" (blur)=\"onBlur($event)\">\n\n</div>\n"
|
|
89723
89769
|
|
|
89724
89770
|
/***/ }),
|
|
89725
89771
|
|
|
@@ -89747,7 +89793,7 @@ module.exports = "<h2 class=\"heading-h2\" aria-label=\"Filters\">Filters</h2>\n
|
|
|
89747
89793
|
/***/ 45573:
|
|
89748
89794
|
/***/ ((module) => {
|
|
89749
89795
|
|
|
89750
|
-
module.exports = "<table *ngIf=\"hasResults() || hasDrafts()\">\n <caption>\n <h2 class=\"heading-h2\" id=\"search-result-heading__text\" tabindex=\"-1\">{{ caseState ? 'Your cases' : 'Search result' }}</h2>\n <div *ngIf=\"(hasResults() || hasDrafts())\" class=\"pagination-top\"\n attr.aria-label=\"{{ getTotalResults() }} results have been found\" role=\"status\">\n <span class=\"text-16\" id=\"search-result-summary__text\">Showing \n <span class=\"govuk-!-font-weight-bold\">{{ getFirstResult() }}</span>\n to\n <span class=\"govuk-!-font-weight-bold\">{{ getLastResult() }}</span>\n of\n <span class=\"govuk-!-font-weight-bold\">{{ getTotalResults() }}</span> results</span>\n </div>\n <div *ngIf=\"(hasResults() || hasDrafts()) && selectionEnabled\" class=\"reset-selection\"\n attr.aria-label=\"Reset selection\">\n <span><a class=\"search-result-reset-link\" href=\"javascript:void()\" (click)=\"clearSelection()\">Reset case selection</a></span>\n </div>\n </caption>\n <thead>\n <tr scope=\"row\">\n <th *ngIf=\"selectionEnabled\" class=\"govuk-table__checkbox\" scope=\"col\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"select-all\" name=\"select-all\" type=\"checkbox\" (change)=\"selectAll()\" [checked]=\"allOnPageSelected()\" [disabled]=\"!canAnyBeShared()\" />\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"select-all\">\n </label>\n </div>\n </th>\n <th *ngFor=\"let col of resultView.columns\">\n <table class=\"search-result-column-header\"\n attr.aria-label=\"Sort by {{col.label}} {{ isSortAscending(col)? 'ascending' : 'descending' }}\">\n <tr>\n <div class=\"search-result-column-label\" (click)=\"sort(col)\">{{col.label}}</div>\n <div *ngIf=\"comparator(col)\" class=\"search-result-column-sort\">\n <a (click)=\"sort(col)\" class=\"sort-widget\" [innerHTML]=\"sortWidget(col)\" href=\"javascript:void(0)\"></a>\n </div>\n </tr>\n </table>\n </th>\n <th *ngIf=\"activityEnabled()\" style=\"width: 110px;\"></th>\n </tr>\n </thead>\n <tbody>\n\n <!-- sorted by consumer -->\n <ng-container *ngIf=\"consumerSortingEnabled\">\n <tr *ngFor=\"let result of resultView.results | paginate: { itemsPerPage: paginationPageSize, currentPage: selected.page, totalItems:
|
|
89796
|
+
module.exports = "<table *ngIf=\"hasResults() || hasDrafts()\">\n <caption>\n <h2 class=\"heading-h2\" id=\"search-result-heading__text\" tabindex=\"-1\">{{ caseState ? 'Your cases' : 'Search result' }}</h2>\n\n <div class=\"govuk-warning-text pagination-limit-warning\" *ngIf=\"paginationLimitEnforced\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n The total size of the result set is {{paginationMetadata.total_results_count | number}}. Only the first 10,000 records are available for display.\n </strong>\n </div>\n\n <div *ngIf=\"(hasResults() || hasDrafts())\" class=\"pagination-top\"\n attr.aria-label=\"{{ getTotalResults() }} results have been found\" role=\"status\">\n <span class=\"text-16\" id=\"search-result-summary__text\">Showing \n <span class=\"govuk-!-font-weight-bold\">{{ getFirstResult() }}</span>\n to\n <span class=\"govuk-!-font-weight-bold\">{{ getLastResult() }}</span>\n of\n <span class=\"govuk-!-font-weight-bold\">{{ getTotalResults() }}</span> results</span>\n </div>\n <div *ngIf=\"(hasResults() || hasDrafts()) && selectionEnabled\" class=\"reset-selection\"\n attr.aria-label=\"Reset selection\">\n <span><a class=\"search-result-reset-link\" href=\"javascript:void()\" (click)=\"clearSelection()\">Reset case selection</a></span>\n </div>\n </caption>\n <thead>\n <tr scope=\"row\">\n <th *ngIf=\"selectionEnabled\" class=\"govuk-table__checkbox\" scope=\"col\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"select-all\" name=\"select-all\" type=\"checkbox\" (change)=\"selectAll()\" [checked]=\"allOnPageSelected()\" [disabled]=\"!canAnyBeShared()\" />\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"select-all\">\n </label>\n </div>\n </th>\n <th *ngFor=\"let col of resultView.columns\">\n <table class=\"search-result-column-header\"\n attr.aria-label=\"Sort by {{col.label}} {{ isSortAscending(col)? 'ascending' : 'descending' }}\">\n <tr>\n <div class=\"search-result-column-label\" (click)=\"sort(col)\">{{col.label}}</div>\n <div *ngIf=\"comparator(col)\" class=\"search-result-column-sort\">\n <a (click)=\"sort(col)\" class=\"sort-widget\" [innerHTML]=\"sortWidget(col)\" href=\"javascript:void(0)\"></a>\n </div>\n </tr>\n </table>\n </th>\n <th *ngIf=\"activityEnabled()\" style=\"width: 110px;\"></th>\n </tr>\n </thead>\n <tbody>\n\n <!-- sorted by consumer -->\n <ng-container *ngIf=\"consumerSortingEnabled\">\n <tr *ngFor=\"let result of resultView.results | paginate: { itemsPerPage: paginationPageSize, currentPage: selected.page, totalItems: resultTotal }\">\n <td *ngIf=\"selectionEnabled\" class=\"govuk-table__checkbox\" scope=\"col\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"select-{{ result.case_id }}\" name=\"select-{{ result.case_id }}\"\n type=\"checkbox\" (change)=\"changeSelection(result)\" [checked]=\"isSelected(result)\" [disabled]=\"!canBeShared(result)\" />\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"select-{{ result.case_id }}\">\n </label>\n </div>\n </td>\n <td class=\"search-result-column-cell\" *ngFor=\"let col of resultView.columns; let colIndex = index\" scope=\"row\">\n <a *ngIf=\"colIndex == 0\" [routerLink]=\"prepareCaseLinkUrl(result.case_id)\"\n attr.aria-label=\"go to case with Case reference:{{ result.case_id | ccdCaseReference }}\" class=\"govuk-link\">\n <ng-container class=\"text-16\" *ngIf=\"!hideRows\">\n <ccd-field-read *ngIf=\"draftPrefixOrGet(col, result); else case_reference\"\n ccdLabelSubstitutor [caseField]=\"getColumnsWithPrefix(result.columns[col.case_field_id], result)\"\n [contextFields]=\"result.hydrated_case_fields\"\n [elementsToSubstitute]=\"['value']\"></ccd-field-read>\n <ng-template #case_reference>{{result.case_id | ccdCaseReference}}</ng-template>\n </ng-container>\n </a>\n <div *ngIf=\"colIndex != 0\" class=\"text-16\" [style.visibility]=\"hideRows ? 'hidden' : 'visible'\">\n <ccd-field-read ccdLabelSubstitutor\n [caseField]=\"result.columns[col.case_field_id]\"\n [contextFields]=\"result.hydrated_case_fields\"\n [elementsToSubstitute]=\"['value']\"></ccd-field-read>\n </div>\n </td>\n <td *ngIf=\"activityEnabled()\">\n <div [style.visibility]=\"hideRows ? 'hidden' : 'visible'\">\n <ccd-activity [caseId]=\"result.case_id\" [displayMode]=\"ICON\"></ccd-activity>\n </div>\n </td>\n </tr>\n </ng-container>\n <!-- sorted by toolkit -->\n <ng-container *ngIf=\"!consumerSortingEnabled\">\n <tr *ngFor=\"let result of resultView.results | ccdSortSearchResult : sortParameters | paginate: { itemsPerPage: paginationPageSize, currentPage: selected.page, totalItems: resultTotal }\">\n <td *ngIf=\"selectionEnabled\" class=\"govuk-table__checkbox\" scope=\"col\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"select-{{ result.case_id }}\" name=\"select-{{ result.case_id }}\"\n type=\"checkbox\" (change)=\"changeSelection(result)\" [checked]=\"isSelected(result)\" [disabled]=\"!canBeShared(result)\" (keyup)=\"onKeyUp($event, result)\" />\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"select-{{ result.case_id }}\">\n </label>\n </div>\n </td>\n <td class=\"search-result-column-cell\" *ngFor=\"let col of resultView.columns; let colIndex = index\" scope=\"row\">\n\n <a *ngIf=\"colIndex == 0\" [routerLink]=\"prepareCaseLinkUrl(result.case_id)\"\n attr.aria-label=\"go to case with Case reference:{{ result.case_id | ccdCaseReference }}\" class=\"govuk-link\">\n <ng-container class=\"text-16\" *ngIf=\"!hideRows\">\n <ccd-field-read *ngIf=\"draftPrefixOrGet(col, result); else case_reference\"\n ccdLabelSubstitutor [caseField]=\"getColumnsWithPrefix(result.columns[col.case_field_id], result)\"\n [contextFields]=\"result.hydrated_case_fields\"\n [elementsToSubstitute]=\"['value']\"></ccd-field-read>\n <ng-template #case_reference>{{result.case_id | ccdCaseReference}}</ng-template>\n </ng-container>\n </a>\n <div *ngIf=\"colIndex != 0\" class=\"text-16\" [style.visibility]=\"hideRows ? 'hidden' : 'visible'\">\n <ccd-field-read ccdLabelSubstitutor\n [caseField]=\"result.columns[col.case_field_id]\"\n [contextFields]=\"result.hydrated_case_fields\"\n [elementsToSubstitute]=\"['value']\"></ccd-field-read>\n </div>\n </td>\n <td *ngIf=\"activityEnabled()\">\n <div [style.visibility]=\"hideRows ? 'hidden' : 'visible'\">\n <ccd-activity [caseId]=\"result.case_id\" [displayMode]=\"ICON\"></ccd-activity>\n </div>\n </td>\n </tr>\n </ng-container>\n\n </tbody>\n</table>\n\n<ccd-pagination \n *ngIf=\"hasResults()\"\n (pageChange)=\"goToPage($event)\"\n [visibilityLabel]=\"hideRows ? 'hidden' : 'visible'\" \n [autoHide]=\"true\"\n [maxSize]=\"8\"\n [screenReaderPaginationLabel]=\"Pagination\"\n [screenReaderPageLabel]=\"page\"\n [screenReaderCurrentLabel]=\"'You\\'re on page'\"></ccd-pagination>\n\n<div *ngIf=\"!(hasResults() || hasDrafts())\" class=\"notification\"\n aria-label=\"No cases found. Try using different filters.\">\n No cases found. Try using different filters.\n</div>\n"
|
|
89751
89797
|
|
|
89752
89798
|
/***/ }),
|
|
89753
89799
|
|