@hmcts/ccd-case-ui-toolkit 7.1.33-accesible-errors3 → 7.1.33-accessible-tab-description-v2
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/esm2022/lib/shared/components/case-editor/case-edit/case-edit.component.mjs +3 -3
- package/esm2022/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.mjs +4 -4
- package/esm2022/lib/shared/components/case-editor/services/event-completion-state-machine.service.mjs +14 -2
- package/esm2022/lib/shared/components/case-editor/services/work-allocation.service.mjs +5 -1
- package/esm2022/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.mjs +23 -20
- package/esm2022/lib/shared/components/error-message/error-message.component.mjs +3 -3
- package/esm2022/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.mjs +8 -9
- package/esm2022/lib/shared/components/palette/case-file-view/test-data/categories-and-documents-test-data.mjs +2 -2
- package/esm2022/lib/shared/components/palette/document/write-document-field.component.mjs +17 -5
- package/esm2022/lib/shared/components/palette/history/event-log/event-log.component.mjs +9 -9
- package/esm2022/lib/shared/components/palette/linked-cases/components/link-cases/link-cases.component.mjs +17 -17
- package/esm2022/lib/shared/components/palette/linked-cases/components/unlink-cases/unlink-cases.component.mjs +10 -10
- package/esm2022/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.mjs +30 -13
- package/esm2022/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.mjs +1 -1
- package/esm2022/lib/shared/components/palette/query-management/components/query-write/query-write-raise-query/query-write-raise-query.component.mjs +114 -103
- package/esm2022/lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.mjs +45 -35
- package/esm2022/lib/shared/components/palette/unsupported-field.component.mjs +4 -3
- package/esm2022/lib/shared/components/palette/utils/date.pipe.mjs +2 -2
- package/esm2022/lib/shared/components/search-result/search-result.component.mjs +39 -35
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs +329 -256
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/lib/shared/components/case-editor/services/event-completion-state-machine.service.d.ts.map +1 -1
- package/lib/shared/components/case-editor/services/work-allocation.service.d.ts.map +1 -1
- package/lib/shared/components/palette/document/write-document-field.component.d.ts +3 -1
- package/lib/shared/components/palette/document/write-document-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/components/unlink-cases/unlink-cases.component.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/components/query-write/query-write-raise-query/query-write-raise-query.component.d.ts +2 -1
- package/lib/shared/components/palette/query-management/components/query-write/query-write-raise-query/query-write-raise-query.component.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.d.ts +2 -1
- package/lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.d.ts.map +1 -1
- package/lib/shared/components/palette/unsupported-field.component.d.ts +1 -1
- package/lib/shared/components/palette/unsupported-field.component.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -2744,7 +2744,7 @@ class DatePipe {
|
|
|
2744
2744
|
if (this.formatTrans && format && format !== 'short') {
|
|
2745
2745
|
// support for java style formatting strings for dates
|
|
2746
2746
|
format = this.translateDateFormat(format);
|
|
2747
|
-
resultDate = moment(
|
|
2747
|
+
resultDate = moment(offsetDate).format(format);
|
|
2748
2748
|
}
|
|
2749
2749
|
else {
|
|
2750
2750
|
// RDM-1149 changed the pipe logic so that it doesn't add an hour to 'Summer Time' dates on DateTime field type
|
|
@@ -8847,7 +8847,7 @@ class EventCompletionStateMachineService {
|
|
|
8847
8847
|
entryActionForStateCheckTasksCanBeCompleted(state, context) {
|
|
8848
8848
|
const assignNeeded = context.sessionStorageService.getItem('assignNeeded');
|
|
8849
8849
|
context.workAllocationService.getTask(context.task.id).subscribe(taskResponse => {
|
|
8850
|
-
if (taskResponse
|
|
8850
|
+
if (taskResponse?.task?.task_state) {
|
|
8851
8851
|
switch (taskResponse.task.task_state.toUpperCase()) {
|
|
8852
8852
|
case TaskState.Unassigned:
|
|
8853
8853
|
// Task unassigned
|
|
@@ -8882,6 +8882,14 @@ class EventCompletionStateMachineService {
|
|
|
8882
8882
|
break;
|
|
8883
8883
|
}
|
|
8884
8884
|
}
|
|
8885
|
+
else if (!taskResponse?.task) {
|
|
8886
|
+
context.alertService.setPreserveAlerts(true);
|
|
8887
|
+
context.alertService.warning({ phrase: 'Task statecheck : no task available for completion', replacements: {} });
|
|
8888
|
+
}
|
|
8889
|
+
else {
|
|
8890
|
+
context.alertService.setPreserveAlerts(true);
|
|
8891
|
+
context.alertService.warning({ phrase: 'Task statecheck : no task state available for completion', replacements: {} });
|
|
8892
|
+
}
|
|
8885
8893
|
}, error => {
|
|
8886
8894
|
context.alertService.error(error.message);
|
|
8887
8895
|
return throwError(error);
|
|
@@ -8904,6 +8912,8 @@ class EventCompletionStateMachineService {
|
|
|
8904
8912
|
context.component.eventCanBeCompleted.emit(true);
|
|
8905
8913
|
}
|
|
8906
8914
|
else {
|
|
8915
|
+
context.alertService.setPreserveAlerts(true);
|
|
8916
|
+
context.alertService.warning({ phrase: 'CompleteEventAndTask : no task available for completion', replacements: {} });
|
|
8907
8917
|
// Emit event cannot be completed event
|
|
8908
8918
|
context.component.eventCanBeCompleted.emit(false);
|
|
8909
8919
|
}
|
|
@@ -8924,6 +8934,8 @@ class EventCompletionStateMachineService {
|
|
|
8924
8934
|
context.component.eventCanBeCompleted.emit(true);
|
|
8925
8935
|
}
|
|
8926
8936
|
else {
|
|
8937
|
+
context.alertService.setPreserveAlerts(true);
|
|
8938
|
+
context.alertService.warning({ phrase: 'Unassigned task : no task available for completion', replacements: {} });
|
|
8927
8939
|
// Emit event cannot be completed event
|
|
8928
8940
|
context.component.eventCanBeCompleted.emit(false);
|
|
8929
8941
|
}
|
|
@@ -9131,6 +9143,8 @@ class WorkAllocationService {
|
|
|
9131
9143
|
*/
|
|
9132
9144
|
completeTask(taskId, eventName) {
|
|
9133
9145
|
if (!this.isWAEnabled()) {
|
|
9146
|
+
this.alertService.setPreserveAlerts(true);
|
|
9147
|
+
this.alertService.warning({ phrase: 'completeTask: Work Allocation is not enabled, so the task could not be completed. Please complete the task associated with the case manually.' });
|
|
9134
9148
|
return of(null);
|
|
9135
9149
|
}
|
|
9136
9150
|
this.appConfig.logMessage(`completeTask: completing ${taskId}`);
|
|
@@ -9152,6 +9166,8 @@ class WorkAllocationService {
|
|
|
9152
9166
|
*/
|
|
9153
9167
|
assignAndCompleteTask(taskId, eventName) {
|
|
9154
9168
|
if (!this.isWAEnabled()) {
|
|
9169
|
+
this.alertService.setPreserveAlerts(true);
|
|
9170
|
+
this.alertService.warning({ phrase: 'assignAndCompleteTask: Work Allocation is not enabled, so the task could not be completed. Please complete the task associated with the case manually.' });
|
|
9155
9171
|
return of(null);
|
|
9156
9172
|
}
|
|
9157
9173
|
this.appConfig.logMessage(`assignAndCompleteTask: completing ${taskId}`);
|
|
@@ -9618,8 +9634,8 @@ class CaseEditComponent {
|
|
|
9618
9634
|
const caseField = caseFieldsLookup[key];
|
|
9619
9635
|
// If caseField.hidden is NOT truthy and also NOT equal to false, then it must be null/undefined (remember that
|
|
9620
9636
|
// both null and undefined are equal to *neither false nor true*)
|
|
9621
|
-
if (caseField
|
|
9622
|
-
(caseField
|
|
9637
|
+
if (caseField?.retain_hidden_value &&
|
|
9638
|
+
(caseField?.hidden || (caseField?.hidden !== false && parentField?.hidden))) {
|
|
9623
9639
|
if (caseField.field_type.type === 'Complex') {
|
|
9624
9640
|
this.handleComplexField(caseField, formGroup, key, rawFormValueData);
|
|
9625
9641
|
}
|
|
@@ -10279,7 +10295,7 @@ function CaseEditPageComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
10279
10295
|
function CaseEditPageComponent_div_6_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
10280
10296
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
10281
10297
|
i0.ɵɵelementStart(0, "div", 19)(1, "ul", 20)(2, "li")(3, "a", 21);
|
|
10282
|
-
i0.ɵɵlistener("click", function CaseEditPageComponent_div_6_div_4_Template_a_click_3_listener() { const validationError_r4 = i0.ɵɵrestoreView(_r3).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.navigateToErrorElement(validationError_r4.id)); })
|
|
10298
|
+
i0.ɵɵlistener("click", function CaseEditPageComponent_div_6_div_4_Template_a_click_3_listener() { const validationError_r4 = i0.ɵɵrestoreView(_r3).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.navigateToErrorElement(validationError_r4.id)); });
|
|
10283
10299
|
i0.ɵɵtext(4);
|
|
10284
10300
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
10285
10301
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
@@ -10956,7 +10972,7 @@ class CaseEditPageComponent {
|
|
|
10956
10972
|
});
|
|
10957
10973
|
}
|
|
10958
10974
|
static ɵfac = function CaseEditPageComponent_Factory(t) { return new (t || CaseEditPageComponent)(i0.ɵɵdirectiveInject(CaseEditComponent), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(FormValueService), i0.ɵɵdirectiveInject(FormErrorService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(PageValidationService), i0.ɵɵdirectiveInject(i1$3.MatLegacyDialog), i0.ɵɵdirectiveInject(CaseFieldService), i0.ɵɵdirectiveInject(CaseEditDataService), i0.ɵɵdirectiveInject(LoadingService), i0.ɵɵdirectiveInject(ValidPageListCaseFieldsService), i0.ɵɵdirectiveInject(AddressesService)); };
|
|
10959
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseEditPageComponent, selectors: [["ccd-case-edit-page"]], decls: 12, vars: 11, consts: [["titleBlock", ""], ["idBlock", ""], [4, "ngIf"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], [3, "error"], [3, "callbackErrorsContext", "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject"], [1, "width-50"], ["class", "form", 3, "formGroup", "submit", 4, "ngIf"], [3, "eventCompletionParams", "eventCanBeCompleted", 4, "ngIf"], ["class", "govuk-heading-l", 4, "ngIf"], [1, "govuk-heading-l"], [1, "govuk-caption-l"], [3, "content"], ["class", "heading-h2", 4, "ngIf"], [1, "heading-h2"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], ["class", "govuk-error-summary__body", 4, "ngFor", "ngForOf"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [
|
|
10975
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseEditPageComponent, selectors: [["ccd-case-edit-page"]], decls: 12, vars: 11, consts: [["titleBlock", ""], ["idBlock", ""], [4, "ngIf"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], [3, "error"], [3, "callbackErrorsContext", "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject"], [1, "width-50"], ["class", "form", 3, "formGroup", "submit", 4, "ngIf"], [3, "eventCompletionParams", "eventCanBeCompleted", 4, "ngIf"], ["class", "govuk-heading-l", 4, "ngIf"], [1, "govuk-heading-l"], [1, "govuk-caption-l"], [3, "content"], ["class", "heading-h2", 4, "ngIf"], [1, "heading-h2"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], ["class", "govuk-error-summary__body", 4, "ngFor", "ngForOf"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [1, "validation-error", 3, "click"], [1, "form", 3, "submit", "formGroup"], ["id", "fieldset-case-data"], [2, "display", "none"], ["id", "caseEditForm", 3, "fields", "formGroup", "caseFields", "pageChangeSubject", "valuesChanged", 4, "ngIf"], ["class", "grid-row", 4, "ngIf"], [1, "form-group", "form-group-related"], ["type", "button", 1, "button", "button-secondary", 3, "click", "disabled"], ["type", "submit", 1, "button", 3, "disabled"], [1, "cancel"], ["href", "javascript:void(0)", 3, "click"], ["id", "caseEditForm", 3, "valuesChanged", "fields", "formGroup", "caseFields", "pageChangeSubject"], [1, "grid-row"], [1, "column-two-thirds", "rightBorderSeparator"], ["id", "caseEditForm1", 3, "fields", "formGroup", "caseFields"], [1, "column-one-third"], ["id", "caseEditForm2", 3, "fields", "formGroup", "caseFields"], [3, "eventCanBeCompleted", "eventCompletionParams"]], template: function CaseEditPageComponent_Template(rf, ctx) { if (rf & 1) {
|
|
10960
10976
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
10961
10977
|
i0.ɵɵtemplate(0, CaseEditPageComponent_ng_container_0_Template, 3, 2, "ng-container", 2)(1, CaseEditPageComponent_div_1_Template, 1, 0, "div", 3)(2, CaseEditPageComponent_ng_template_2_Template, 2, 5, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor)(4, CaseEditPageComponent_ng_template_4_Template, 1, 1, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor)(6, CaseEditPageComponent_div_6_Template, 5, 4, "div", 4);
|
|
10962
10978
|
i0.ɵɵelement(7, "ccd-case-edit-generic-errors", 5);
|
|
@@ -10987,7 +11003,7 @@ class CaseEditPageComponent {
|
|
|
10987
11003
|
}
|
|
10988
11004
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseEditPageComponent, [{
|
|
10989
11005
|
type: Component,
|
|
10990
|
-
args: [{ selector: 'ccd-case-edit-page', template: "<ng-container *ngIf=\"currentPage\">\n <h1 *ngIf=\"!currentPage.label\" class=\"govuk-heading-l\">{{eventTrigger.name | rpxTranslate}}</h1>\n <ng-container *ngIf=\"currentPage.label\">\n <span class=\"govuk-caption-l\">{{ eventTrigger.name | rpxTranslate}}</span>\n <h1 class=\"govuk-heading-l\">{{currentPage.label | rpxTranslate}}</h1>\n </ng-container>\n</ng-container>\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: caseFields : 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<!-- Error message summary -->\n<div *ngIf=\"validationErrors.length > 0\" class=\"govuk-error-summary\" aria-labelledby=\"error-summary-title\" role=\"alert\" tabindex=\"-1\" data-module=\"govuk-error-summary\">\n <h2 class=\"govuk-error-summary__title\" id=\"error-summary-title\">\n {{'There is a problem' | rpxTranslate}}\n </h2>\n <div *ngFor=\"let validationError of validationErrors\" class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li>\n <a (click)=\"navigateToErrorElement(validationError.id)\"
|
|
11006
|
+
args: [{ selector: 'ccd-case-edit-page', template: "<ng-container *ngIf=\"currentPage\">\n <h1 *ngIf=\"!currentPage.label\" class=\"govuk-heading-l\">{{eventTrigger.name | rpxTranslate}}</h1>\n <ng-container *ngIf=\"currentPage.label\">\n <span class=\"govuk-caption-l\">{{ eventTrigger.name | rpxTranslate}}</span>\n <h1 class=\"govuk-heading-l\">{{currentPage.label | rpxTranslate}}</h1>\n </ng-container>\n</ng-container>\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: caseFields : 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<!-- Error message summary -->\n<div *ngIf=\"validationErrors.length > 0\" class=\"govuk-error-summary\" aria-labelledby=\"error-summary-title\" role=\"alert\" tabindex=\"-1\" data-module=\"govuk-error-summary\">\n <h2 class=\"govuk-error-summary__title\" id=\"error-summary-title\">\n {{'There is a problem' | rpxTranslate}}\n </h2>\n <div *ngFor=\"let validationError of validationErrors\" class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li>\n <a (click)=\"navigateToErrorElement(validationError.id)\" class=\"validation-error\">\n {{ validationError.message | rpxTranslate: getRpxTranslatePipeArgs(validationError.label | rpxTranslate): null }}\n </a>\n </li>\n </ul>\n </div>\n</div>\n\n<ccd-case-edit-generic-errors [error]=\"caseEdit.error\"></ccd-case-edit-generic-errors>\n\n<ccd-callback-errors\n [triggerTextContinue]=\"triggerTextStart\"\n [triggerTextIgnore]=\"triggerTextIgnoreWarnings\"\n [callbackErrorsSubject]=\"caseEdit.callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\">\n</ccd-callback-errors>\n<div class=\"width-50\">\n <form *ngIf=\"currentPage\" class=\"form\" [formGroup]=\"editForm\" (submit)=\"submit()\">\n <fieldset id=\"fieldset-case-data\">\n <legend style=\"display: none;\"></legend>\n <!-- single column -->\n <ccd-case-edit-form id='caseEditForm' *ngIf=\"!currentPage.isMultiColumn()\" [fields]=\"currentPage.getCol1Fields()\"\n [formGroup]=\"editForm.controls['data']\" [caseFields]=\"caseFields\"\n [pageChangeSubject]=\"pageChangeSubject\"\n (valuesChanged)=\"applyValuesChanged($event)\"></ccd-case-edit-form>\n <!-- two columns -->\n <div *ngIf=\"currentPage.isMultiColumn()\" class=\"grid-row\">\n <div class=\"column-two-thirds rightBorderSeparator\">\n <ccd-case-edit-form id='caseEditForm1' [fields]=\"currentPage.getCol1Fields()\"\n [formGroup]=\"editForm.controls['data']\" [caseFields]=\"caseFields\"></ccd-case-edit-form>\n </div>\n <div class=\"column-one-third\">\n <ccd-case-edit-form id='caseEditForm2' [fields]=\"currentPage.getCol2Fields()\"\n [formGroup]=\"editForm.controls['data']\" [caseFields]=\"caseFields\"></ccd-case-edit-form>\n </div>\n </div>\n </fieldset>\n\n <div class=\"form-group form-group-related\">\n <button class=\"button button-secondary\" type=\"button\" [disabled]=\"!(hasPreviousPage$ | async)\" (click)=\"toPreviousPage()\">\n {{'Previous' | rpxTranslate}}\n </button>\n <button class=\"button\" type=\"submit\" [disabled]=\"submitting()\">{{triggerText | rpxTranslate}}</button>\n </div>\n\n <p class=\"cancel\"><a (click)=\"cancel()\" href=\"javascript:void(0)\">{{getCancelText() | rpxTranslate}}</a></p>\n </form>\n</div>\n\n<ccd-case-event-completion *ngIf=\"caseEdit.isEventCompletionChecksRequired\"\n [eventCompletionParams]=\"caseEdit.eventCompletionParams\"\n (eventCanBeCompleted)=\"onEventCanBeCompleted($event)\">\n</ccd-case-event-completion>\n", styles: [".rightBorderSeparator{border-right-width:4px;border-right-color:#ffcc02;border-right-style:solid}.validation-error{cursor:pointer;text-decoration:underline;color:#d4351c}\n"] }]
|
|
10991
11007
|
}], () => [{ type: CaseEditComponent }, { type: i1$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0.ChangeDetectorRef }, { type: PageValidationService }, { type: i1$3.MatLegacyDialog }, { type: CaseFieldService }, { type: CaseEditDataService }, { type: LoadingService }, { type: ValidPageListCaseFieldsService }, { type: AddressesService }], null); })();
|
|
10992
11008
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseEditPageComponent, { className: "CaseEditPageComponent", filePath: "lib/shared/components/case-editor/case-edit-page/case-edit-page.component.ts", lineNumber: 31 }); })();
|
|
10993
11009
|
|
|
@@ -14247,6 +14263,7 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
14247
14263
|
static UPLOAD_TIMESTAMP = 'upload_timestamp';
|
|
14248
14264
|
static UPLOAD_ERROR_FILE_REQUIRED = 'File required';
|
|
14249
14265
|
static UPLOAD_ERROR_NOT_AVAILABLE = 'Document upload facility is not available at the moment';
|
|
14266
|
+
static UPLOAD_ERROR_INVALID_FORMAT = 'Document format is not supported';
|
|
14250
14267
|
static UPLOAD_WAITING_FILE_STATUS = 'Uploading...';
|
|
14251
14268
|
static ERROR_UPLOADING_FILE = 'Error Uploading File';
|
|
14252
14269
|
fileInput;
|
|
@@ -14324,8 +14341,15 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
14324
14341
|
}
|
|
14325
14342
|
}
|
|
14326
14343
|
}
|
|
14327
|
-
fileChangeEvent(fileInput) {
|
|
14328
|
-
|
|
14344
|
+
fileChangeEvent(fileInput, allowedRegex) {
|
|
14345
|
+
let fileTypeRegex;
|
|
14346
|
+
if (allowedRegex) {
|
|
14347
|
+
fileTypeRegex = new RegExp(`(${allowedRegex.replace(/,/g, '|')})`);
|
|
14348
|
+
}
|
|
14349
|
+
if (fileInput.target?.files[0] && !fileInput.target?.files[0]?.name?.match(fileTypeRegex)) {
|
|
14350
|
+
this.invalidFileFormat();
|
|
14351
|
+
}
|
|
14352
|
+
else if (fileInput.target.files[0]) {
|
|
14329
14353
|
this.selectedFile = fileInput.target.files[0];
|
|
14330
14354
|
this.displayFileUploadMessages(WriteDocumentFieldComponent.UPLOAD_WAITING_FILE_STATUS);
|
|
14331
14355
|
const documentUpload = this.buildDocumentUploadData(this.selectedFile);
|
|
@@ -14358,6 +14382,10 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
14358
14382
|
}
|
|
14359
14383
|
return false;
|
|
14360
14384
|
}
|
|
14385
|
+
invalidFileFormat() {
|
|
14386
|
+
this.updateDocumentForm(null, null, null);
|
|
14387
|
+
this.displayFileUploadMessages(WriteDocumentFieldComponent.UPLOAD_ERROR_INVALID_FORMAT);
|
|
14388
|
+
}
|
|
14361
14389
|
getUploadedFileName() {
|
|
14362
14390
|
if (this.uploadedDocument) {
|
|
14363
14391
|
return this.uploadedDocument.get(WriteDocumentFieldComponent.DOCUMENT_FILENAME).value;
|
|
@@ -14575,7 +14603,7 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
14575
14603
|
i0.ɵɵlistener("click", function WriteDocumentFieldComponent_Template_div_click_11_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.fileSelectEvent()); })("keyup", function WriteDocumentFieldComponent_Template_div_keyup_11_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.fileSelectEvent()); });
|
|
14576
14604
|
i0.ɵɵelementEnd();
|
|
14577
14605
|
i0.ɵɵelementStart(12, "input", 9, 0);
|
|
14578
|
-
i0.ɵɵlistener("keydown.Tab", function WriteDocumentFieldComponent_Template_input_keydown_Tab_12_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.fileValidationsOnTab()); })("change", function WriteDocumentFieldComponent_Template_input_change_12_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.fileChangeEvent($event)); });
|
|
14606
|
+
i0.ɵɵlistener("keydown.Tab", function WriteDocumentFieldComponent_Template_input_keydown_Tab_12_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.fileValidationsOnTab()); })("change", function WriteDocumentFieldComponent_Template_input_change_12_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.fileChangeEvent($event, ctx.caseField.field_type.regular_expression)); });
|
|
14579
14607
|
i0.ɵɵelementEnd()()();
|
|
14580
14608
|
i0.ɵɵelementStart(14, "div", 10)(15, "button", 11);
|
|
14581
14609
|
i0.ɵɵlistener("click", function WriteDocumentFieldComponent_Template_button_click_15_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.cancelUpload()); });
|
|
@@ -14609,7 +14637,7 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
14609
14637
|
}
|
|
14610
14638
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteDocumentFieldComponent, [{
|
|
14611
14639
|
type: Component,
|
|
14612
|
-
args: [{ selector: 'ccd-write-document-field', template: "<div class=\"form-group\" [ngClass]=\"{'form-group-error bottom-30': !valid}\">\n <label [for]=\"id()\">\n <span class=\"form-label\" attr.aria-label=\"{{caseField | ccdFieldLabel}}\">{{(caseField | ccdFieldLabel)}}</span>\n </label>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text | rpxTranslate}}</span>\n <span class=\"error-message\" *ngIf=\"fileUploadMessages && !valid\">{{fileUploadMessages | rpxTranslate}}</span>\n\n <div>\n <!--<span *ngIf=\"getUploadedFileName()\" class=\"text-16\">File name: {{getUploadedFileName()}}</span>-->\n <ccd-read-document-field *ngIf=\"caseField\" [caseField]=\"caseField\"></ccd-read-document-field>\n </div>\n\n <div style='position:relative'>\n <div [id]=\"createElementId('fileInputWrapper')\" (click)=\"fileSelectEvent()\" (keyup)=\"fileSelectEvent()\"></div>\n <input class=\"form-control bottom-30\" [id]=\"id()\" type=\"file\" (keydown.Tab)=\"fileValidationsOnTab()\" (change)=\"fileChangeEvent($event)\"\n accept=\"{{caseField.field_type.regular_expression}}\" #fileInput/>\n </div>\n</div>\n<div class=\"form-group bottom-30\">\n <button class=\"button button-secondary\" type=\"button\" aria-label=\"Cancel upload\" (click)=\"cancelUpload()\" [disabled]=\"!isUploadInProgress()\">{{'Cancel upload' | rpxTranslate}}</button>\n</div>\n" }]
|
|
14640
|
+
args: [{ selector: 'ccd-write-document-field', template: "<div class=\"form-group\" [ngClass]=\"{'form-group-error bottom-30': !valid}\">\n <label [for]=\"id()\">\n <span class=\"form-label\" attr.aria-label=\"{{caseField | ccdFieldLabel}}\">{{(caseField | ccdFieldLabel)}}</span>\n </label>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text | rpxTranslate}}</span>\n <span class=\"error-message\" *ngIf=\"fileUploadMessages && !valid\">{{fileUploadMessages | rpxTranslate}}</span>\n\n <div>\n <!--<span *ngIf=\"getUploadedFileName()\" class=\"text-16\">File name: {{getUploadedFileName()}}</span>-->\n <ccd-read-document-field *ngIf=\"caseField\" [caseField]=\"caseField\"></ccd-read-document-field>\n </div>\n\n <div style='position:relative'>\n <div [id]=\"createElementId('fileInputWrapper')\" (click)=\"fileSelectEvent()\" (keyup)=\"fileSelectEvent()\"></div>\n <input class=\"form-control bottom-30\" [id]=\"id()\" type=\"file\" (keydown.Tab)=\"fileValidationsOnTab()\" (change)=\"fileChangeEvent($event, caseField.field_type.regular_expression)\"\n accept=\"{{caseField.field_type.regular_expression}}\" #fileInput/>\n </div>\n</div>\n<div class=\"form-group bottom-30\">\n <button class=\"button button-secondary\" type=\"button\" aria-label=\"Cancel upload\" (click)=\"cancelUpload()\" [disabled]=\"!isUploadInProgress()\">{{'Cancel upload' | rpxTranslate}}</button>\n</div>\n" }]
|
|
14613
14641
|
}], () => [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1$3.MatLegacyDialog }, { type: FileUploadStateService }, { type: JurisdictionService }], { fileInput: [{
|
|
14614
14642
|
type: ViewChild,
|
|
14615
14643
|
args: ['fileInput', { static: false }]
|
|
@@ -16651,8 +16679,8 @@ class LinkCasesComponent {
|
|
|
16651
16679
|
})), this.validatorsUtils.formArraySelectedValidator());
|
|
16652
16680
|
}
|
|
16653
16681
|
toggleLinkCaseReasonOtherComments(event) {
|
|
16654
|
-
this.linkCaseReasons.find(reason => reason.value_en === event.target.value).selected = event.target.checked;
|
|
16655
|
-
this.showComments = this.linkCaseReasons.find(reason => reason.value_en === 'Other')
|
|
16682
|
+
this.linkCaseReasons.find((reason) => reason.value_en === event.target.value).selected = event.target.checked;
|
|
16683
|
+
this.showComments = this.linkCaseReasons.find((reason) => reason.value_en === 'Other')?.selected;
|
|
16656
16684
|
}
|
|
16657
16685
|
submitCaseInfo() {
|
|
16658
16686
|
this.errorMessages = [];
|
|
@@ -16691,7 +16719,7 @@ class LinkCasesComponent {
|
|
|
16691
16719
|
this.errorMessages.push({
|
|
16692
16720
|
title: 'dummy-case-number',
|
|
16693
16721
|
description: LinkedCasesErrorMessages.CaseNumberError,
|
|
16694
|
-
fieldId: 'caseNumber'
|
|
16722
|
+
fieldId: 'caseNumber'
|
|
16695
16723
|
});
|
|
16696
16724
|
}
|
|
16697
16725
|
if (this.linkCaseForm.controls.reasonType.invalid) {
|
|
@@ -16699,17 +16727,17 @@ class LinkCasesComponent {
|
|
|
16699
16727
|
this.errorMessages.push({
|
|
16700
16728
|
title: 'dummy-case-reason',
|
|
16701
16729
|
description: LinkedCasesErrorMessages.ReasonSelectionError,
|
|
16702
|
-
fieldId: 'caseReason'
|
|
16730
|
+
fieldId: 'caseReason'
|
|
16703
16731
|
});
|
|
16704
16732
|
}
|
|
16705
16733
|
if (this.linkCaseForm.controls.reasonType.valid
|
|
16706
|
-
&& this.linkCaseReasons.find(reason => reason.value_en === 'Other').selected) {
|
|
16734
|
+
&& this.linkCaseReasons.find((reason) => reason.value_en === 'Other').selected) {
|
|
16707
16735
|
if (this.linkCaseForm.controls.otherDescription.value.trim().length === 0) {
|
|
16708
16736
|
this.caseReasonCommentsError = LinkedCasesErrorMessages.otherDescriptionError;
|
|
16709
16737
|
this.errorMessages.push({
|
|
16710
16738
|
title: 'dummy-case-reason-comments',
|
|
16711
16739
|
description: LinkedCasesErrorMessages.otherDescriptionError,
|
|
16712
|
-
fieldId: 'otherDescription'
|
|
16740
|
+
fieldId: 'otherDescription'
|
|
16713
16741
|
});
|
|
16714
16742
|
}
|
|
16715
16743
|
if (this.linkCaseForm.controls.otherDescription.value.trim().length > 100) {
|
|
@@ -16717,7 +16745,7 @@ class LinkCasesComponent {
|
|
|
16717
16745
|
this.errorMessages.push({
|
|
16718
16746
|
title: 'dummy-case-reason-comments',
|
|
16719
16747
|
description: LinkedCasesErrorMessages.otherDescriptionMaxLengthError,
|
|
16720
|
-
fieldId: 'otherDescription'
|
|
16748
|
+
fieldId: 'otherDescription'
|
|
16721
16749
|
});
|
|
16722
16750
|
}
|
|
16723
16751
|
}
|
|
@@ -16726,7 +16754,7 @@ class LinkCasesComponent {
|
|
|
16726
16754
|
this.errorMessages.push({
|
|
16727
16755
|
title: 'dummy-case-number',
|
|
16728
16756
|
description: LinkedCasesErrorMessages.CaseProposedError,
|
|
16729
|
-
fieldId: 'caseNumber'
|
|
16757
|
+
fieldId: 'caseNumber'
|
|
16730
16758
|
});
|
|
16731
16759
|
}
|
|
16732
16760
|
if (this.isCaseSelected(this.linkedCasesService.linkedCases)) {
|
|
@@ -16734,14 +16762,14 @@ class LinkCasesComponent {
|
|
|
16734
16762
|
this.errorMessages.push({
|
|
16735
16763
|
title: 'dummy-case-number',
|
|
16736
16764
|
description: LinkedCasesErrorMessages.CasesLinkedError,
|
|
16737
|
-
fieldId: 'caseNumber'
|
|
16765
|
+
fieldId: 'caseNumber'
|
|
16738
16766
|
});
|
|
16739
16767
|
}
|
|
16740
16768
|
if (this.linkCaseForm.value.caseNumber.split('-').join('') === this.linkedCasesService.caseId.split('-').join('')) {
|
|
16741
16769
|
this.errorMessages.push({
|
|
16742
16770
|
title: 'dummy-case-number',
|
|
16743
16771
|
description: LinkedCasesErrorMessages.ProposedCaseWithIn,
|
|
16744
|
-
fieldId: 'caseNumber'
|
|
16772
|
+
fieldId: 'caseNumber'
|
|
16745
16773
|
});
|
|
16746
16774
|
}
|
|
16747
16775
|
window.scrollTo(0, 0);
|
|
@@ -16762,7 +16790,7 @@ class LinkCasesComponent {
|
|
|
16762
16790
|
caseState: caseView.state.name || '',
|
|
16763
16791
|
caseStateDescription: caseView.state.description || '',
|
|
16764
16792
|
caseService: caseView.case_type && caseView.case_type.jurisdiction && caseView.case_type.jurisdiction.description || '',
|
|
16765
|
-
caseName: this.linkedCasesService.getCaseName(caseView)
|
|
16793
|
+
caseName: this.linkedCasesService.getCaseName(caseView)
|
|
16766
16794
|
};
|
|
16767
16795
|
const ccdApiCaseLinkData = {
|
|
16768
16796
|
CaseReference: caseView.case_id,
|
|
@@ -16775,7 +16803,7 @@ class LinkCasesComponent {
|
|
|
16775
16803
|
}
|
|
16776
16804
|
this.linkedCasesService.caseFieldValue.push({ id: caseView.case_id.toString(), value: ccdApiCaseLinkData });
|
|
16777
16805
|
this.selectedCases.push(caseLink);
|
|
16778
|
-
this.linkCaseReasons.forEach(reason => reason.selected = false);
|
|
16806
|
+
this.linkCaseReasons.forEach((reason) => reason.selected = false);
|
|
16779
16807
|
this.initForm();
|
|
16780
16808
|
this.emitLinkedCasesState(false);
|
|
16781
16809
|
}, (error) => {
|
|
@@ -16783,7 +16811,7 @@ class LinkCasesComponent {
|
|
|
16783
16811
|
this.errorMessages.push({
|
|
16784
16812
|
title: 'dummy-case-number',
|
|
16785
16813
|
description: LinkedCasesErrorMessages.CaseCheckAgainError,
|
|
16786
|
-
fieldId: 'caseNumber'
|
|
16814
|
+
fieldId: 'caseNumber'
|
|
16787
16815
|
});
|
|
16788
16816
|
this.emitLinkedCasesState(false);
|
|
16789
16817
|
window.scrollTo(0, 0);
|
|
@@ -16795,7 +16823,7 @@ class LinkCasesComponent {
|
|
|
16795
16823
|
this.linkedCasesStateEmitter.emit({
|
|
16796
16824
|
currentLinkedCasesPage: LinkedCasesPages.LINK_CASE,
|
|
16797
16825
|
errorMessages: this.errorMessages,
|
|
16798
|
-
navigateToNextPage: isNavigateToNextPage
|
|
16826
|
+
navigateToNextPage: isNavigateToNextPage
|
|
16799
16827
|
});
|
|
16800
16828
|
}
|
|
16801
16829
|
getSelectedCaseReasons() {
|
|
@@ -16830,7 +16858,7 @@ class LinkCasesComponent {
|
|
|
16830
16858
|
}
|
|
16831
16859
|
onSelectedLinkedCaseRemove(pos, selectedCaseReference) {
|
|
16832
16860
|
const caseFieldValue = this.linkedCasesService.caseFieldValue || [];
|
|
16833
|
-
const updatedItems = caseFieldValue.filter(item => item.value && item.value.CaseReference !== selectedCaseReference);
|
|
16861
|
+
const updatedItems = caseFieldValue.filter((item) => item.value && item.value.CaseReference !== selectedCaseReference);
|
|
16834
16862
|
if (updatedItems) {
|
|
16835
16863
|
this.linkedCasesService.caseFieldValue = updatedItems;
|
|
16836
16864
|
}
|
|
@@ -16851,7 +16879,7 @@ class LinkCasesComponent {
|
|
|
16851
16879
|
this.errorMessages.push({
|
|
16852
16880
|
title: 'dummy-case-selection',
|
|
16853
16881
|
description: LinkedCasesErrorMessages.CaseSelectionError,
|
|
16854
|
-
fieldId: 'caseReason'
|
|
16882
|
+
fieldId: 'caseReason'
|
|
16855
16883
|
});
|
|
16856
16884
|
navigateToNextPage = false;
|
|
16857
16885
|
}
|
|
@@ -17586,7 +17614,7 @@ class UnLinkCasesComponent {
|
|
|
17586
17614
|
}
|
|
17587
17615
|
else {
|
|
17588
17616
|
this.casesService.getCaseViewV2(this.caseId).subscribe((caseView) => {
|
|
17589
|
-
const linkedCasesTab = caseView.tabs.find(tab => tab.id === UnLinkCasesComponent.LINKED_CASES_TAB_ID);
|
|
17617
|
+
const linkedCasesTab = caseView.tabs.find((tab) => tab.id === UnLinkCasesComponent.LINKED_CASES_TAB_ID);
|
|
17590
17618
|
if (linkedCasesTab) {
|
|
17591
17619
|
const linkedCases = linkedCasesTab.fields[0].value;
|
|
17592
17620
|
this.linkedCases = linkedCases;
|
|
@@ -17598,22 +17626,22 @@ class UnLinkCasesComponent {
|
|
|
17598
17626
|
}
|
|
17599
17627
|
getAllLinkedCaseInformation() {
|
|
17600
17628
|
const searchCasesResponse = [];
|
|
17601
|
-
this.linkedCases.forEach(linkedCase => {
|
|
17629
|
+
this.linkedCases.forEach((linkedCase) => {
|
|
17602
17630
|
searchCasesResponse.push(this.casesService.getCaseViewV2(linkedCase.caseReference));
|
|
17603
17631
|
});
|
|
17604
17632
|
if (searchCasesResponse.length) {
|
|
17605
17633
|
this.searchCasesByCaseIds(searchCasesResponse).subscribe((searchCases) => {
|
|
17606
17634
|
searchCases.forEach((response) => {
|
|
17607
|
-
const linkedCaseFromList = this.linkedCases.find(linkedCase => linkedCase.caseReference === response.case_id);
|
|
17635
|
+
const linkedCaseFromList = this.linkedCases.find((linkedCase) => linkedCase.caseReference === response.case_id);
|
|
17608
17636
|
if (linkedCaseFromList) {
|
|
17609
17637
|
const caseName = this.linkedCasesService.getCaseName(response);
|
|
17610
|
-
this.linkedCases.find(linkedCase => linkedCase.caseReference === response.case_id).caseName = caseName;
|
|
17638
|
+
this.linkedCases.find((linkedCase) => linkedCase.caseReference === response.case_id).caseName = caseName;
|
|
17611
17639
|
}
|
|
17612
17640
|
});
|
|
17613
17641
|
this.initForm();
|
|
17614
17642
|
this.linkedCasesService.linkedCases = this.linkedCases;
|
|
17615
17643
|
this.isServerError = false;
|
|
17616
|
-
}, err => {
|
|
17644
|
+
}, (err) => {
|
|
17617
17645
|
this.isServerError = true;
|
|
17618
17646
|
this.notifyAPIFailure.emit(true);
|
|
17619
17647
|
});
|
|
@@ -17628,7 +17656,7 @@ class UnLinkCasesComponent {
|
|
|
17628
17656
|
});
|
|
17629
17657
|
}
|
|
17630
17658
|
get getLinkedCasesFormArray() {
|
|
17631
|
-
const formFieldArray = this.linkedCases.map(val => this.fb.group({
|
|
17659
|
+
const formFieldArray = this.linkedCases.map((val) => this.fb.group({
|
|
17632
17660
|
caseReference: val.caseReference,
|
|
17633
17661
|
reasons: val.reasons,
|
|
17634
17662
|
createdDateTime: val.createdDateTime,
|
|
@@ -17642,7 +17670,7 @@ class UnLinkCasesComponent {
|
|
|
17642
17670
|
}
|
|
17643
17671
|
onChange(caseSelected) {
|
|
17644
17672
|
this.resetErrorMessages();
|
|
17645
|
-
const selectedCase = this.linkedCases.find(linkedCase => linkedCase.caseReference === caseSelected.value);
|
|
17673
|
+
const selectedCase = this.linkedCases.find((linkedCase) => linkedCase.caseReference === caseSelected.value);
|
|
17646
17674
|
if (selectedCase) {
|
|
17647
17675
|
selectedCase.unlink = caseSelected.checked ? true : false;
|
|
17648
17676
|
}
|
|
@@ -17650,7 +17678,7 @@ class UnLinkCasesComponent {
|
|
|
17650
17678
|
onNext() {
|
|
17651
17679
|
this.resetErrorMessages();
|
|
17652
17680
|
let navigateToNextPage = true;
|
|
17653
|
-
const casesMarkedToUnlink = this.linkedCases.find(linkedCase => linkedCase.unlink && linkedCase.unlink === true);
|
|
17681
|
+
const casesMarkedToUnlink = this.linkedCases.find((linkedCase) => linkedCase.unlink && linkedCase.unlink === true);
|
|
17654
17682
|
if (!casesMarkedToUnlink) {
|
|
17655
17683
|
this.errorMessages.push({
|
|
17656
17684
|
title: 'case-selection',
|
|
@@ -17668,7 +17696,7 @@ class UnLinkCasesComponent {
|
|
|
17668
17696
|
this.linkedCasesStateEmitter.emit({
|
|
17669
17697
|
currentLinkedCasesPage: LinkedCasesPages.UNLINK_CASE,
|
|
17670
17698
|
errorMessages: this.errorMessages,
|
|
17671
|
-
navigateToNextPage: isNavigateToNextPage
|
|
17699
|
+
navigateToNextPage: isNavigateToNextPage
|
|
17672
17700
|
});
|
|
17673
17701
|
}
|
|
17674
17702
|
resetErrorMessages() {
|
|
@@ -18011,14 +18039,16 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
|
|
|
18011
18039
|
// Get linked case reasons from ref data
|
|
18012
18040
|
this.linkedCasesService.editMode = false;
|
|
18013
18041
|
this.subscriptions.add(this.caseEditDataService.caseDetails$.subscribe({
|
|
18014
|
-
next: caseDetails => {
|
|
18042
|
+
next: (caseDetails) => {
|
|
18043
|
+
this.initialiseCaseDetails(caseDetails);
|
|
18044
|
+
}
|
|
18015
18045
|
}));
|
|
18016
18046
|
this.getOrgService();
|
|
18017
18047
|
this.subscriptions.add(this.caseEditDataService.caseEventTriggerName$.subscribe({
|
|
18018
|
-
next: name => this.linkedCasesService.isLinkedCasesEventTrigger = (name === LinkedCasesEventTriggers.LINK_CASES)
|
|
18048
|
+
next: (name) => this.linkedCasesService.isLinkedCasesEventTrigger = (name === LinkedCasesEventTriggers.LINK_CASES)
|
|
18019
18049
|
}));
|
|
18020
18050
|
this.subscriptions.add(this.caseEditDataService.caseEditForm$.subscribe({
|
|
18021
|
-
next: editForm => this.caseEditForm = editForm
|
|
18051
|
+
next: (editForm) => this.caseEditForm = editForm
|
|
18022
18052
|
}));
|
|
18023
18053
|
}
|
|
18024
18054
|
initialiseCaseDetails(caseDetails) {
|
|
@@ -18094,13 +18124,28 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
|
|
|
18094
18124
|
}
|
|
18095
18125
|
}
|
|
18096
18126
|
submitLinkedCases() {
|
|
18127
|
+
let caseFieldValue = [...(this.linkedCasesService.caseFieldValue || [])];
|
|
18097
18128
|
if (!this.linkedCasesService.isLinkedCasesEventTrigger) {
|
|
18098
|
-
const
|
|
18099
|
-
|
|
18100
|
-
|
|
18129
|
+
const unlinkedCaseReferenceIds = this.linkedCasesService.linkedCases
|
|
18130
|
+
.filter((item) => item.unlink)
|
|
18131
|
+
.map((item) => item.caseReference);
|
|
18132
|
+
caseFieldValue = caseFieldValue.filter((item) => !unlinkedCaseReferenceIds.includes(item.id));
|
|
18133
|
+
}
|
|
18134
|
+
// Replace the caseLinks value in this.formGroup
|
|
18135
|
+
this.formGroup.patchValue({
|
|
18136
|
+
caseLinks: caseFieldValue
|
|
18137
|
+
});
|
|
18138
|
+
// Replace the caseLinks control in caseEditForm.controls.data
|
|
18139
|
+
const dataFormGroup = this.caseEditForm.controls.data;
|
|
18140
|
+
if (dataFormGroup) {
|
|
18141
|
+
// Remove the existing caseLinks control (if it exists)
|
|
18142
|
+
if (dataFormGroup.contains('caseLinks')) {
|
|
18143
|
+
dataFormGroup.removeControl('caseLinks');
|
|
18144
|
+
}
|
|
18145
|
+
// Add the new control with the replacement value
|
|
18146
|
+
dataFormGroup.addControl('caseLinks', new FormControl(caseFieldValue || []));
|
|
18101
18147
|
}
|
|
18102
|
-
|
|
18103
|
-
this.caseEditForm.controls['data'] = new FormGroup({ caseLinks: new FormControl(this.linkedCasesService.caseFieldValue || []) });
|
|
18148
|
+
// Set the updated form in the caseEditDataService
|
|
18104
18149
|
this.caseEditDataService.setCaseEditForm(this.caseEditForm);
|
|
18105
18150
|
}
|
|
18106
18151
|
isAtFinalPage() {
|
|
@@ -18117,11 +18162,11 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
|
|
|
18117
18162
|
}
|
|
18118
18163
|
getLinkedCases() {
|
|
18119
18164
|
this.casesService.getCaseViewV2(this.linkedCasesService.caseId).subscribe((caseView) => {
|
|
18120
|
-
const caseViewFiltered = caseView.tabs.filter(tab => {
|
|
18165
|
+
const caseViewFiltered = caseView.tabs.filter((tab) => {
|
|
18121
18166
|
return tab.fields.some(({ field_type }) => field_type && field_type.collection_field_type && field_type.collection_field_type.id === 'CaseLink');
|
|
18122
18167
|
});
|
|
18123
18168
|
if (caseViewFiltered) {
|
|
18124
|
-
const caseLinkFieldValue = caseViewFiltered.map(filtered => filtered.fields?.length > 0 && filtered.fields.filter(field => field.id === 'caseLinks')[0].value);
|
|
18169
|
+
const caseLinkFieldValue = caseViewFiltered.map((filtered) => filtered.fields?.length > 0 && filtered.fields.filter((field) => field.id === 'caseLinks')[0].value);
|
|
18125
18170
|
this.linkedCasesService.caseFieldValue = caseLinkFieldValue.length ? caseLinkFieldValue[0] : [];
|
|
18126
18171
|
this.linkedCasesService.getAllLinkedCaseInformation();
|
|
18127
18172
|
}
|
|
@@ -18161,7 +18206,7 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
|
|
|
18161
18206
|
type: Component,
|
|
18162
18207
|
args: [{ selector: 'ccd-write-linked-cases-field', template: "<div class=\"form-group govuk-!-margin-bottom-2\" [formGroup]=\"formGroup\">\n <div class=\"govuk-form-group\" [ngSwitch]=\"linkedCasesPage\">\n <ng-container *ngSwitchCase=\"linkedCasesPages.BEFORE_YOU_START\">\n <ccd-linked-cases-before-you-start\n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\"></ccd-linked-cases-before-you-start>\n </ng-container>\n <ng-container *ngSwitchCase=\"linkedCasesPages.NO_LINKED_CASES\">\n <ccd-no-linked-cases\n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\"></ccd-no-linked-cases>\n </ng-container>\n <ng-container *ngSwitchCase=\"linkedCasesPages.LINK_CASE\">\n <ccd-link-cases\n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\"></ccd-link-cases>\n </ng-container>\n <ng-container *ngSwitchCase=\"linkedCasesPages.UNLINK_CASE\">\n <ccd-unlink-cases\n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\"></ccd-unlink-cases>\n </ng-container>\n <ng-container *ngSwitchCase=\"linkedCasesPages.CHECK_YOUR_ANSWERS\">\n <ccd-linked-cases-check-your-answers\n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\"></ccd-linked-cases-check-your-answers>\n </ng-container>\n </div>\n</div>\n" }]
|
|
18163
18208
|
}], () => [{ type: AbstractAppConfig }, { type: CommonDataService }, { type: CasesService }, { type: LinkedCasesService }, { type: CaseEditDataService }], null); })();
|
|
18164
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteLinkedCasesFieldComponent, { className: "WriteLinkedCasesFieldComponent", filePath: "lib/shared/components/palette/linked-cases/write-linked-cases-field.component.ts", lineNumber:
|
|
18209
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteLinkedCasesFieldComponent, { className: "WriteLinkedCasesFieldComponent", filePath: "lib/shared/components/palette/linked-cases/write-linked-cases-field.component.ts", lineNumber: 18 }); })();
|
|
18165
18210
|
|
|
18166
18211
|
function ReadMoneyGbpFieldComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
18167
18212
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -21253,8 +21298,8 @@ class QueryWriteDateInputComponent {
|
|
|
21253
21298
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryWriteDateInputComponent, { className: "QueryWriteDateInputComponent", filePath: "lib/shared/components/palette/query-management/components/query-write/query-write-date-input/query-write-date-input.component.ts", lineNumber: 15 }); })();
|
|
21254
21299
|
|
|
21255
21300
|
const _c0$C = a0 => ({ "govuk-form-group--error": a0 });
|
|
21256
|
-
function
|
|
21257
|
-
i0.ɵɵelementStart(0, "p",
|
|
21301
|
+
function QueryWriteRaiseQueryComponent_div_11_p_11_Template(rf, ctx) { if (rf & 1) {
|
|
21302
|
+
i0.ɵɵelementStart(0, "p", 27)(1, "span", 28);
|
|
21258
21303
|
i0.ɵɵtext(2);
|
|
21259
21304
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
21260
21305
|
i0.ɵɵelementEnd();
|
|
@@ -21262,14 +21307,14 @@ function QueryWriteRaiseQueryComponent_p_22_Template(rf, ctx) { if (rf & 1) {
|
|
|
21262
21307
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
21263
21308
|
i0.ɵɵelementEnd();
|
|
21264
21309
|
} if (rf & 2) {
|
|
21265
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
21310
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
21266
21311
|
i0.ɵɵadvance(2);
|
|
21267
21312
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 2, "Error:"), " ");
|
|
21268
21313
|
i0.ɵɵadvance(2);
|
|
21269
21314
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessage.QUERY_SUBJECT), " ");
|
|
21270
21315
|
} }
|
|
21271
|
-
function
|
|
21272
|
-
i0.ɵɵelementStart(0, "p",
|
|
21316
|
+
function QueryWriteRaiseQueryComponent_div_11_p_21_Template(rf, ctx) { if (rf & 1) {
|
|
21317
|
+
i0.ɵɵelementStart(0, "p", 29)(1, "span", 28);
|
|
21273
21318
|
i0.ɵɵtext(2);
|
|
21274
21319
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
21275
21320
|
i0.ɵɵelementEnd();
|
|
@@ -21277,14 +21322,14 @@ function QueryWriteRaiseQueryComponent_p_32_Template(rf, ctx) { if (rf & 1) {
|
|
|
21277
21322
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
21278
21323
|
i0.ɵɵelementEnd();
|
|
21279
21324
|
} if (rf & 2) {
|
|
21280
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
21325
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
21281
21326
|
i0.ɵɵadvance(2);
|
|
21282
21327
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 2, "Error:"), " ");
|
|
21283
21328
|
i0.ɵɵadvance(2);
|
|
21284
21329
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessage.QUERY_BODY), " ");
|
|
21285
21330
|
} }
|
|
21286
|
-
function
|
|
21287
|
-
i0.ɵɵelementStart(0, "p",
|
|
21331
|
+
function QueryWriteRaiseQueryComponent_div_11_p_30_Template(rf, ctx) { if (rf & 1) {
|
|
21332
|
+
i0.ɵɵelementStart(0, "p", 30)(1, "span", 28);
|
|
21288
21333
|
i0.ɵɵtext(2);
|
|
21289
21334
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
21290
21335
|
i0.ɵɵelementEnd();
|
|
@@ -21292,14 +21337,14 @@ function QueryWriteRaiseQueryComponent_p_41_Template(rf, ctx) { if (rf & 1) {
|
|
|
21292
21337
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
21293
21338
|
i0.ɵɵelementEnd();
|
|
21294
21339
|
} if (rf & 2) {
|
|
21295
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
21340
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
21296
21341
|
i0.ɵɵadvance(2);
|
|
21297
21342
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 2, "Error:"), " ");
|
|
21298
21343
|
i0.ɵɵadvance(2);
|
|
21299
21344
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessage.QUERY_HEARING_RELATED), " ");
|
|
21300
21345
|
} }
|
|
21301
|
-
function
|
|
21302
|
-
i0.ɵɵelementStart(0, "p",
|
|
21346
|
+
function QueryWriteRaiseQueryComponent_div_11_ng_container_42_p_7_Template(rf, ctx) { if (rf & 1) {
|
|
21347
|
+
i0.ɵɵelementStart(0, "p", 36)(1, "span", 28);
|
|
21303
21348
|
i0.ɵɵtext(2);
|
|
21304
21349
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
21305
21350
|
i0.ɵɵelementEnd();
|
|
@@ -21307,24 +21352,24 @@ function QueryWriteRaiseQueryComponent_ng_container_53_p_7_Template(rf, ctx) { i
|
|
|
21307
21352
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
21308
21353
|
i0.ɵɵelementEnd();
|
|
21309
21354
|
} if (rf & 2) {
|
|
21310
|
-
const ctx_r0 = i0.ɵɵnextContext(
|
|
21355
|
+
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
21311
21356
|
i0.ɵɵadvance(2);
|
|
21312
21357
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 2, "Error:"), " ");
|
|
21313
21358
|
i0.ɵɵadvance(2);
|
|
21314
21359
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessage.QUERY_HEARING_DATE), " ");
|
|
21315
21360
|
} }
|
|
21316
|
-
function
|
|
21361
|
+
function QueryWriteRaiseQueryComponent_div_11_ng_container_42_Template(rf, ctx) { if (rf & 1) {
|
|
21317
21362
|
i0.ɵɵelementContainerStart(0);
|
|
21318
|
-
i0.ɵɵelementStart(1, "div",
|
|
21363
|
+
i0.ɵɵelementStart(1, "div", 31)(2, "fieldset", 32)(3, "legend")(4, "label", 33);
|
|
21319
21364
|
i0.ɵɵtext(5);
|
|
21320
21365
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
21321
21366
|
i0.ɵɵelementEnd()();
|
|
21322
|
-
i0.ɵɵtemplate(7,
|
|
21323
|
-
i0.ɵɵelement(8, "ccd-query-write-date-input",
|
|
21367
|
+
i0.ɵɵtemplate(7, QueryWriteRaiseQueryComponent_div_11_ng_container_42_p_7_Template, 6, 6, "p", 34);
|
|
21368
|
+
i0.ɵɵelement(8, "ccd-query-write-date-input", 35);
|
|
21324
21369
|
i0.ɵɵelementEnd()();
|
|
21325
21370
|
i0.ɵɵelementContainerEnd();
|
|
21326
21371
|
} if (rf & 2) {
|
|
21327
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
21372
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
21328
21373
|
i0.ɵɵadvance();
|
|
21329
21374
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c0$C, ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").value === true && ctx_r0.formGroup.get("hearingDate").value === null));
|
|
21330
21375
|
i0.ɵɵadvance(4);
|
|
@@ -21332,13 +21377,101 @@ function QueryWriteRaiseQueryComponent_ng_container_53_Template(rf, ctx) { if (r
|
|
|
21332
21377
|
i0.ɵɵadvance(2);
|
|
21333
21378
|
i0.ɵɵproperty("ngIf", ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").value === true && ctx_r0.formGroup.get("hearingDate").value === null);
|
|
21334
21379
|
} }
|
|
21380
|
+
function QueryWriteRaiseQueryComponent_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
21381
|
+
i0.ɵɵelementStart(0, "div", 5)(1, "div", 6)(2, "div")(3, "div", 7)(4, "div", 8)(5, "label", 9);
|
|
21382
|
+
i0.ɵɵtext(6);
|
|
21383
|
+
i0.ɵɵpipe(7, "rpxTranslate");
|
|
21384
|
+
i0.ɵɵelementEnd()();
|
|
21385
|
+
i0.ɵɵelementStart(8, "div", 10);
|
|
21386
|
+
i0.ɵɵtext(9);
|
|
21387
|
+
i0.ɵɵpipe(10, "rpxTranslate");
|
|
21388
|
+
i0.ɵɵelementEnd();
|
|
21389
|
+
i0.ɵɵtemplate(11, QueryWriteRaiseQueryComponent_div_11_p_11_Template, 6, 6, "p", 11);
|
|
21390
|
+
i0.ɵɵelement(12, "input", 12);
|
|
21391
|
+
i0.ɵɵelementEnd()();
|
|
21392
|
+
i0.ɵɵelementStart(13, "div", 7)(14, "div", 8)(15, "label", 13);
|
|
21393
|
+
i0.ɵɵtext(16);
|
|
21394
|
+
i0.ɵɵpipe(17, "rpxTranslate");
|
|
21395
|
+
i0.ɵɵelementEnd()();
|
|
21396
|
+
i0.ɵɵelementStart(18, "div", 14);
|
|
21397
|
+
i0.ɵɵtext(19);
|
|
21398
|
+
i0.ɵɵpipe(20, "rpxTranslate");
|
|
21399
|
+
i0.ɵɵelementEnd();
|
|
21400
|
+
i0.ɵɵtemplate(21, QueryWriteRaiseQueryComponent_div_11_p_21_Template, 6, 6, "p", 15);
|
|
21401
|
+
i0.ɵɵelementStart(22, "textarea", 16);
|
|
21402
|
+
i0.ɵɵtext(23, " ");
|
|
21403
|
+
i0.ɵɵelementEnd()();
|
|
21404
|
+
i0.ɵɵelementStart(24, "div", 7)(25, "fieldset", 17)(26, "legend")(27, "label", 18);
|
|
21405
|
+
i0.ɵɵtext(28);
|
|
21406
|
+
i0.ɵɵpipe(29, "rpxTranslate");
|
|
21407
|
+
i0.ɵɵelementEnd()();
|
|
21408
|
+
i0.ɵɵtemplate(30, QueryWriteRaiseQueryComponent_div_11_p_30_Template, 6, 6, "p", 19);
|
|
21409
|
+
i0.ɵɵelementStart(31, "div", 20)(32, "div", 21);
|
|
21410
|
+
i0.ɵɵelement(33, "input", 22);
|
|
21411
|
+
i0.ɵɵelementStart(34, "label", 23);
|
|
21412
|
+
i0.ɵɵtext(35);
|
|
21413
|
+
i0.ɵɵpipe(36, "rpxTranslate");
|
|
21414
|
+
i0.ɵɵelementEnd()();
|
|
21415
|
+
i0.ɵɵelementStart(37, "div", 21);
|
|
21416
|
+
i0.ɵɵelement(38, "input", 24);
|
|
21417
|
+
i0.ɵɵelementStart(39, "label", 25);
|
|
21418
|
+
i0.ɵɵtext(40);
|
|
21419
|
+
i0.ɵɵpipe(41, "rpxTranslate");
|
|
21420
|
+
i0.ɵɵelementEnd()()()();
|
|
21421
|
+
i0.ɵɵtemplate(42, QueryWriteRaiseQueryComponent_div_11_ng_container_42_Template, 9, 7, "ng-container", 26);
|
|
21422
|
+
i0.ɵɵelementEnd()()();
|
|
21423
|
+
} if (rf & 2) {
|
|
21424
|
+
let tmp_6_0;
|
|
21425
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
21426
|
+
i0.ɵɵadvance();
|
|
21427
|
+
i0.ɵɵproperty("formGroup", ctx_r0.formGroup);
|
|
21428
|
+
i0.ɵɵadvance(2);
|
|
21429
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(43, _c0$C, ctx_r0.submitted && ctx_r0.formGroup.get("subject").hasError("required")));
|
|
21430
|
+
i0.ɵɵadvance(3);
|
|
21431
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7, 25, "Query subject"), " ");
|
|
21432
|
+
i0.ɵɵadvance(3);
|
|
21433
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10, 27, "The subject should be a summary of your query"), " ");
|
|
21434
|
+
i0.ɵɵadvance(2);
|
|
21435
|
+
i0.ɵɵproperty("ngIf", ctx_r0.submitted && ctx_r0.formGroup.get("subject").hasError("required"));
|
|
21436
|
+
i0.ɵɵadvance();
|
|
21437
|
+
i0.ɵɵclassProp("govuk-input--error", ctx_r0.submitted && ((tmp_6_0 = ctx_r0.formGroup.get("subject")) == null ? null : tmp_6_0.hasError("required")));
|
|
21438
|
+
i0.ɵɵproperty("formControlName", "subject");
|
|
21439
|
+
i0.ɵɵadvance();
|
|
21440
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(45, _c0$C, ctx_r0.submitted && ctx_r0.formGroup.get("body").hasError("required")));
|
|
21441
|
+
i0.ɵɵadvance(3);
|
|
21442
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17, 29, "Query detail"), " ");
|
|
21443
|
+
i0.ɵɵadvance(3);
|
|
21444
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(20, 31, "Include as many details as possible so case workers can respond to your query"), " ");
|
|
21445
|
+
i0.ɵɵadvance(2);
|
|
21446
|
+
i0.ɵɵproperty("ngIf", ctx_r0.submitted && ctx_r0.formGroup.get("body").hasError("required"));
|
|
21447
|
+
i0.ɵɵadvance();
|
|
21448
|
+
i0.ɵɵclassProp("govuk-textarea--error", ctx_r0.submitted && ctx_r0.formGroup.get("body").hasError("required"));
|
|
21449
|
+
i0.ɵɵproperty("formControlName", "body");
|
|
21450
|
+
i0.ɵɵadvance(2);
|
|
21451
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(47, _c0$C, ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").hasError("required")));
|
|
21452
|
+
i0.ɵɵadvance(4);
|
|
21453
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(29, 33, "Is the query hearing related?"), " ");
|
|
21454
|
+
i0.ɵɵadvance(2);
|
|
21455
|
+
i0.ɵɵproperty("ngIf", ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").hasError("required"));
|
|
21456
|
+
i0.ɵɵadvance(3);
|
|
21457
|
+
i0.ɵɵproperty("checked", ctx_r0.formGroup.get("isHearingRelated").value === true)("value", true);
|
|
21458
|
+
i0.ɵɵadvance(2);
|
|
21459
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(36, 35, "Is the query hearing related?", null, "Yes"), " ");
|
|
21460
|
+
i0.ɵɵadvance(3);
|
|
21461
|
+
i0.ɵɵproperty("checked", ctx_r0.formGroup.get("isHearingRelated").value === false)("value", false);
|
|
21462
|
+
i0.ɵɵadvance(2);
|
|
21463
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(41, 39, "Is the query hearing related?", null, "No"), " ");
|
|
21464
|
+
i0.ɵɵadvance(2);
|
|
21465
|
+
i0.ɵɵproperty("ngIf", ctx_r0.formGroup.get("isHearingRelated").value);
|
|
21466
|
+
} }
|
|
21335
21467
|
class QueryWriteRaiseQueryComponent {
|
|
21336
21468
|
formGroup;
|
|
21337
21469
|
submitted;
|
|
21338
21470
|
caseDetails;
|
|
21471
|
+
showForm;
|
|
21339
21472
|
raiseQueryErrorMessage = RaiseQueryErrorMessage;
|
|
21340
21473
|
static ɵfac = function QueryWriteRaiseQueryComponent_Factory(t) { return new (t || QueryWriteRaiseQueryComponent)(); };
|
|
21341
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryWriteRaiseQueryComponent, selectors: [["ccd-query-write-raise-query"]], inputs: { formGroup: "formGroup", submitted: "submitted", caseDetails: "caseDetails" }, decls:
|
|
21474
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryWriteRaiseQueryComponent, selectors: [["ccd-query-write-raise-query"]], inputs: { formGroup: "formGroup", submitted: "submitted", caseDetails: "caseDetails", showForm: "showForm" }, decls: 12, vars: 8, consts: [[1, "govuk-!-margin-bottom-6"], [1, "govuk-caption-l"], [1, "govuk-heading-l", "govuk-!-margin-bottom-4"], [3, "caseDetails"], ["class", "govuk-!-margin-bottom-4", 4, "ngIf"], [1, "govuk-!-margin-bottom-4"], [3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-label-wrapper"], ["for", "subject", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "subject-hint", 1, "govuk-hint"], ["id", "subject-error", "class", "govuk-error-message", 4, "ngIf"], ["type", "text", "name", "subject", "id", "subject", 1, "govuk-input", 3, "formControlName"], ["for", "body", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "body-hint", 1, "govuk-hint"], ["id", "body-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "body", "name", "body", "rows", "5", "aria-describedby", "body-hint body-error", 1, "govuk-textarea", 3, "formControlName"], [1, "govuk-fieldset"], [1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "isHearingRelated-error", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-radios", 1, "govuk-radios", "govuk-radios--inline"], [1, "govuk-radios__item"], ["id", "isHearingRelated-yes", "name", "isHearingRelated", "type", "radio", "formControlName", "isHearingRelated", 1, "govuk-radios__input", 3, "checked", "value"], ["for", "isHearingRelated-yes", 1, "govuk-label", "govuk-radios__label"], ["id", "isHearingRelated-no", "name", "isHearingRelated", "type", "radio", "formControlName", "isHearingRelated", 1, "govuk-radios__input", 3, "checked", "value"], ["for", "isHearingRelated-no", 1, "govuk-label", "govuk-radios__label"], [4, "ngIf"], ["id", "subject-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "body-error", 1, "govuk-error-message"], ["id", "isHearingRelated-error", 1, "govuk-error-message"], [1, "govuk-radios__conditional", "govuk-!-margin-top-1", 3, "ngClass"], ["role", "group", 1, "govuk-fieldset"], [1, "govuk-label", "govuk-label--s"], ["id", "hearingDate-error", "class", "govuk-error-message", 4, "ngIf"], ["formControlName", "hearingDate"], ["id", "hearingDate-error", 1, "govuk-error-message"]], template: function QueryWriteRaiseQueryComponent_Template(rf, ctx) { if (rf & 1) {
|
|
21342
21475
|
i0.ɵɵelementStart(0, "div")(1, "div", 0)(2, "div", 1);
|
|
21343
21476
|
i0.ɵɵtext(3);
|
|
21344
21477
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
@@ -21351,112 +21484,35 @@ class QueryWriteRaiseQueryComponent {
|
|
|
21351
21484
|
i0.ɵɵelement(9, "ccd-query-case-details-header", 3);
|
|
21352
21485
|
i0.ɵɵelementEnd();
|
|
21353
21486
|
i0.ɵɵelement(10, "hr");
|
|
21354
|
-
i0.ɵɵ
|
|
21355
|
-
i0.ɵɵtext(17);
|
|
21356
|
-
i0.ɵɵpipe(18, "rpxTranslate");
|
|
21357
|
-
i0.ɵɵelementEnd()();
|
|
21358
|
-
i0.ɵɵelementStart(19, "div", 9);
|
|
21359
|
-
i0.ɵɵtext(20);
|
|
21360
|
-
i0.ɵɵpipe(21, "rpxTranslate");
|
|
21361
|
-
i0.ɵɵelementEnd();
|
|
21362
|
-
i0.ɵɵtemplate(22, QueryWriteRaiseQueryComponent_p_22_Template, 6, 6, "p", 10);
|
|
21363
|
-
i0.ɵɵelement(23, "input", 11);
|
|
21364
|
-
i0.ɵɵelementEnd()();
|
|
21365
|
-
i0.ɵɵelementStart(24, "div", 6)(25, "div", 7)(26, "label", 12);
|
|
21366
|
-
i0.ɵɵtext(27);
|
|
21367
|
-
i0.ɵɵpipe(28, "rpxTranslate");
|
|
21368
|
-
i0.ɵɵelementEnd()();
|
|
21369
|
-
i0.ɵɵelementStart(29, "div", 13);
|
|
21370
|
-
i0.ɵɵtext(30);
|
|
21371
|
-
i0.ɵɵpipe(31, "rpxTranslate");
|
|
21487
|
+
i0.ɵɵtemplate(11, QueryWriteRaiseQueryComponent_div_11_Template, 43, 49, "div", 4);
|
|
21372
21488
|
i0.ɵɵelementEnd();
|
|
21373
|
-
i0.ɵɵtemplate(32, QueryWriteRaiseQueryComponent_p_32_Template, 6, 6, "p", 14);
|
|
21374
|
-
i0.ɵɵelementStart(33, "textarea", 15);
|
|
21375
|
-
i0.ɵɵtext(34, " ");
|
|
21376
|
-
i0.ɵɵelementEnd()();
|
|
21377
|
-
i0.ɵɵelementStart(35, "div", 6)(36, "fieldset", 16)(37, "legend")(38, "label", 17);
|
|
21378
|
-
i0.ɵɵtext(39);
|
|
21379
|
-
i0.ɵɵpipe(40, "rpxTranslate");
|
|
21380
|
-
i0.ɵɵelementEnd()();
|
|
21381
|
-
i0.ɵɵtemplate(41, QueryWriteRaiseQueryComponent_p_41_Template, 6, 6, "p", 18);
|
|
21382
|
-
i0.ɵɵelementStart(42, "div", 19)(43, "div", 20);
|
|
21383
|
-
i0.ɵɵelement(44, "input", 21);
|
|
21384
|
-
i0.ɵɵelementStart(45, "label", 22);
|
|
21385
|
-
i0.ɵɵtext(46);
|
|
21386
|
-
i0.ɵɵpipe(47, "rpxTranslate");
|
|
21387
|
-
i0.ɵɵelementEnd()();
|
|
21388
|
-
i0.ɵɵelementStart(48, "div", 20);
|
|
21389
|
-
i0.ɵɵelement(49, "input", 23);
|
|
21390
|
-
i0.ɵɵelementStart(50, "label", 24);
|
|
21391
|
-
i0.ɵɵtext(51);
|
|
21392
|
-
i0.ɵɵpipe(52, "rpxTranslate");
|
|
21393
|
-
i0.ɵɵelementEnd()()()();
|
|
21394
|
-
i0.ɵɵtemplate(53, QueryWriteRaiseQueryComponent_ng_container_53_Template, 9, 7, "ng-container", 25);
|
|
21395
|
-
i0.ɵɵelementEnd()()()();
|
|
21396
21489
|
} if (rf & 2) {
|
|
21397
|
-
let tmp_8_0;
|
|
21398
21490
|
i0.ɵɵadvance(3);
|
|
21399
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4,
|
|
21491
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 4, "Raise a query"));
|
|
21400
21492
|
i0.ɵɵadvance(3);
|
|
21401
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7,
|
|
21493
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 6, "Enter query details"));
|
|
21402
21494
|
i0.ɵɵadvance(3);
|
|
21403
21495
|
i0.ɵɵproperty("caseDetails", ctx.caseDetails);
|
|
21404
|
-
i0.ɵɵadvance(3);
|
|
21405
|
-
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
21406
|
-
i0.ɵɵadvance(2);
|
|
21407
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(50, _c0$C, ctx.submitted && ctx.formGroup.get("subject").hasError("required")));
|
|
21408
|
-
i0.ɵɵadvance(3);
|
|
21409
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(18, 32, "Query subject"), " ");
|
|
21410
|
-
i0.ɵɵadvance(3);
|
|
21411
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(21, 34, "The subject should be a summary of your query"), " ");
|
|
21412
21496
|
i0.ɵɵadvance(2);
|
|
21413
|
-
i0.ɵɵproperty("ngIf", ctx.
|
|
21414
|
-
i0.ɵɵadvance();
|
|
21415
|
-
i0.ɵɵclassProp("govuk-input--error", ctx.submitted && ((tmp_8_0 = ctx.formGroup.get("subject")) == null ? null : tmp_8_0.hasError("required")));
|
|
21416
|
-
i0.ɵɵproperty("formControlName", "subject");
|
|
21417
|
-
i0.ɵɵadvance();
|
|
21418
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(52, _c0$C, ctx.submitted && ctx.formGroup.get("body").hasError("required")));
|
|
21419
|
-
i0.ɵɵadvance(3);
|
|
21420
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(28, 36, "Query detail"), " ");
|
|
21421
|
-
i0.ɵɵadvance(3);
|
|
21422
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(31, 38, "Include as many details as possible so case workers can respond to your query"), " ");
|
|
21423
|
-
i0.ɵɵadvance(2);
|
|
21424
|
-
i0.ɵɵproperty("ngIf", ctx.submitted && ctx.formGroup.get("body").hasError("required"));
|
|
21425
|
-
i0.ɵɵadvance();
|
|
21426
|
-
i0.ɵɵclassProp("govuk-textarea--error", ctx.submitted && ctx.formGroup.get("body").hasError("required"));
|
|
21427
|
-
i0.ɵɵproperty("formControlName", "body");
|
|
21428
|
-
i0.ɵɵadvance(2);
|
|
21429
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(54, _c0$C, ctx.submitted && ctx.formGroup.get("isHearingRelated").hasError("required")));
|
|
21430
|
-
i0.ɵɵadvance(4);
|
|
21431
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(40, 40, "Is the query hearing related?"), " ");
|
|
21432
|
-
i0.ɵɵadvance(2);
|
|
21433
|
-
i0.ɵɵproperty("ngIf", ctx.submitted && ctx.formGroup.get("isHearingRelated").hasError("required"));
|
|
21434
|
-
i0.ɵɵadvance(3);
|
|
21435
|
-
i0.ɵɵproperty("checked", ctx.formGroup.get("isHearingRelated").value === true)("value", true);
|
|
21436
|
-
i0.ɵɵadvance(2);
|
|
21437
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(47, 42, "Is the query hearing related?", null, "Yes"), " ");
|
|
21438
|
-
i0.ɵɵadvance(3);
|
|
21439
|
-
i0.ɵɵproperty("checked", ctx.formGroup.get("isHearingRelated").value === false)("value", false);
|
|
21440
|
-
i0.ɵɵadvance(2);
|
|
21441
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(52, 46, "Is the query hearing related?", null, "No"), " ");
|
|
21442
|
-
i0.ɵɵadvance(2);
|
|
21443
|
-
i0.ɵɵproperty("ngIf", ctx.formGroup.get("isHearingRelated").value);
|
|
21497
|
+
i0.ɵɵproperty("ngIf", ctx.showForm);
|
|
21444
21498
|
} }, encapsulation: 2 });
|
|
21445
21499
|
}
|
|
21446
21500
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryWriteRaiseQueryComponent, [{
|
|
21447
21501
|
type: Component,
|
|
21448
|
-
args: [{ selector: 'ccd-query-write-raise-query', template: "<div>\n <div class=\"govuk-!-margin-bottom-6\">\n <div class=\"govuk-caption-l\">{{ 'Raise a query' | rpxTranslate }}</div>\n <h1 class=\"govuk-heading-l govuk-!-margin-bottom-4\">{{ 'Enter query details' | rpxTranslate }}</h1>\n </div>\n\n <div>\n <ccd-query-case-details-header [caseDetails]=\"caseDetails\"></ccd-query-case-details-header>\n </div>\n\n <hr>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <div [formGroup]=\"formGroup\">\n <div>\n <div class=\"govuk-form-group\" [ngClass]=\"{'govuk-form-group--error': submitted && formGroup.get('subject').hasError('required')}\">\n <div class=\"govuk-label-wrapper\">\n <label class=\"govuk-label govuk-label--m govuk-!-font-weight-bold\" for=\"subject\">\n {{ 'Query subject' | rpxTranslate }}\n </label>\n </div>\n <div id=\"subject-hint\" class=\"govuk-hint\">\n {{ 'The subject should be a summary of your query' | rpxTranslate }}\n </div>\n <p id=\"subject-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('subject').hasError('required')\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ raiseQueryErrorMessage.QUERY_SUBJECT | rpxTranslate }}\n </p>\n <input [formControlName]=\"'subject'\" type=\"text\" name=\"subject\"\n class=\"govuk-input\" id=\"subject\"\n [class.govuk-input--error]=\"submitted && formGroup.get('subject')?.hasError('required')\"\n />\n </div>\n </div>\n\n <div class=\"govuk-form-group\"\n [ngClass]=\"{'govuk-form-group--error': submitted && formGroup.get('body').hasError('required')}\">\n <div class=\"govuk-label-wrapper\">\n <label class=\"govuk-label govuk-label--m govuk-!-font-weight-bold\" for=\"body\">\n {{ 'Query detail' | rpxTranslate }}\n </label>\n </div>\n <div id=\"body-hint\" class=\"govuk-hint\">\n {{ 'Include as many details as possible so case workers can respond to your query' | rpxTranslate }}\n </div>\n <p id=\"body-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('body').hasError('required')\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ raiseQueryErrorMessage.QUERY_BODY | rpxTranslate }}\n </p>\n <textarea [formControlName]=\"'body'\"\n id=\"body\" name=\"body\" rows=\"5\"\n aria-describedby=\"body-hint body-error\"\n class=\"govuk-textarea\"\n [class.govuk-textarea--error]=\"submitted && formGroup.get('body').hasError('required')\"\n >\n </textarea>\n </div>\n\n <div class=\"govuk-form-group\"\n [ngClass]=\"{'govuk-form-group--error': submitted && formGroup.get('isHearingRelated').hasError('required')}\">\n <fieldset class=\"govuk-fieldset\">\n <legend>\n <label class=\"govuk-label govuk-label--m govuk-!-font-weight-bold\">\n {{ 'Is the query hearing related?' | rpxTranslate }}\n </label>\n </legend>\n <p id=\"isHearingRelated-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('isHearingRelated').hasError('required')\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ raiseQueryErrorMessage.QUERY_HEARING_RELATED | rpxTranslate }}\n </p>\n <div class=\"govuk-radios govuk-radios--inline\" data-module=\"govuk-radios\">\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"isHearingRelated-yes\" name=\"isHearingRelated\"\n type=\"radio\"\n formControlName=\"isHearingRelated\"\n [checked]=\"formGroup.get('isHearingRelated').value === true\" [value]=\"true\"\n >\n <label class=\"govuk-label govuk-radios__label\" for=\"isHearingRelated-yes\">\n {{ 'Is the query hearing related?' | rpxTranslate: null : 'Yes' }}\n </label>\n </div>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"isHearingRelated-no\" name=\"isHearingRelated\"\n type=\"radio\"\n formControlName=\"isHearingRelated\"\n [checked]=\"formGroup.get('isHearingRelated').value === false\" [value]=\"false\"\n >\n <label class=\"govuk-label govuk-radios__label\" for=\"isHearingRelated-no\">\n {{ 'Is the query hearing related?' | rpxTranslate: null : 'No' }}\n </label>\n </div>\n </div>\n </fieldset>\n\n <ng-container *ngIf=\"formGroup.get('isHearingRelated').value\">\n <div class=\"govuk-radios__conditional govuk-!-margin-top-1\"\n [ngClass]=\"{'govuk-form-group--error': submitted &&\n formGroup.get('isHearingRelated').value === true &&\n formGroup.get('hearingDate').value === null}\">\n <fieldset class=\"govuk-fieldset\" role=\"group\">\n <legend>\n <label class=\"govuk-label govuk-label--s\">\n {{ 'What is the date of the hearing?' | rpxTranslate }}\n </label>\n </legend>\n <p id=\"hearingDate-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('isHearingRelated').value === true && formGroup.get('hearingDate').value === null\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ raiseQueryErrorMessage.QUERY_HEARING_DATE | rpxTranslate }}\n </p>\n <ccd-query-write-date-input formControlName=\"hearingDate\"></ccd-query-write-date-input>\n </fieldset>\n </div>\n </ng-container>\n </div>\n </div>\n </div>\n</div>\n" }]
|
|
21502
|
+
args: [{ selector: 'ccd-query-write-raise-query', template: "<div>\n <div class=\"govuk-!-margin-bottom-6\">\n <div class=\"govuk-caption-l\">{{ 'Raise a query' | rpxTranslate }}</div>\n <h1 class=\"govuk-heading-l govuk-!-margin-bottom-4\">{{ 'Enter query details' | rpxTranslate }}</h1>\n </div>\n\n <div>\n <ccd-query-case-details-header [caseDetails]=\"caseDetails\"></ccd-query-case-details-header>\n </div>\n\n <hr>\n\n <div class=\"govuk-!-margin-bottom-4\" *ngIf=\"showForm\">\n <div [formGroup]=\"formGroup\">\n <div>\n <div class=\"govuk-form-group\" [ngClass]=\"{'govuk-form-group--error': submitted && formGroup.get('subject').hasError('required')}\">\n <div class=\"govuk-label-wrapper\">\n <label class=\"govuk-label govuk-label--m govuk-!-font-weight-bold\" for=\"subject\">\n {{ 'Query subject' | rpxTranslate }}\n </label>\n </div>\n <div id=\"subject-hint\" class=\"govuk-hint\">\n {{ 'The subject should be a summary of your query' | rpxTranslate }}\n </div>\n <p id=\"subject-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('subject').hasError('required')\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ raiseQueryErrorMessage.QUERY_SUBJECT | rpxTranslate }}\n </p>\n <input [formControlName]=\"'subject'\" type=\"text\" name=\"subject\"\n class=\"govuk-input\" id=\"subject\"\n [class.govuk-input--error]=\"submitted && formGroup.get('subject')?.hasError('required')\"\n />\n </div>\n </div>\n\n <div class=\"govuk-form-group\"\n [ngClass]=\"{'govuk-form-group--error': submitted && formGroup.get('body').hasError('required')}\">\n <div class=\"govuk-label-wrapper\">\n <label class=\"govuk-label govuk-label--m govuk-!-font-weight-bold\" for=\"body\">\n {{ 'Query detail' | rpxTranslate }}\n </label>\n </div>\n <div id=\"body-hint\" class=\"govuk-hint\">\n {{ 'Include as many details as possible so case workers can respond to your query' | rpxTranslate }}\n </div>\n <p id=\"body-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('body').hasError('required')\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ raiseQueryErrorMessage.QUERY_BODY | rpxTranslate }}\n </p>\n <textarea [formControlName]=\"'body'\"\n id=\"body\" name=\"body\" rows=\"5\"\n aria-describedby=\"body-hint body-error\"\n class=\"govuk-textarea\"\n [class.govuk-textarea--error]=\"submitted && formGroup.get('body').hasError('required')\"\n >\n </textarea>\n </div>\n\n <div class=\"govuk-form-group\"\n [ngClass]=\"{'govuk-form-group--error': submitted && formGroup.get('isHearingRelated').hasError('required')}\">\n <fieldset class=\"govuk-fieldset\">\n <legend>\n <label class=\"govuk-label govuk-label--m govuk-!-font-weight-bold\">\n {{ 'Is the query hearing related?' | rpxTranslate }}\n </label>\n </legend>\n <p id=\"isHearingRelated-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('isHearingRelated').hasError('required')\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ raiseQueryErrorMessage.QUERY_HEARING_RELATED | rpxTranslate }}\n </p>\n <div class=\"govuk-radios govuk-radios--inline\" data-module=\"govuk-radios\">\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"isHearingRelated-yes\" name=\"isHearingRelated\"\n type=\"radio\"\n formControlName=\"isHearingRelated\"\n [checked]=\"formGroup.get('isHearingRelated').value === true\" [value]=\"true\"\n >\n <label class=\"govuk-label govuk-radios__label\" for=\"isHearingRelated-yes\">\n {{ 'Is the query hearing related?' | rpxTranslate: null : 'Yes' }}\n </label>\n </div>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"isHearingRelated-no\" name=\"isHearingRelated\"\n type=\"radio\"\n formControlName=\"isHearingRelated\"\n [checked]=\"formGroup.get('isHearingRelated').value === false\" [value]=\"false\"\n >\n <label class=\"govuk-label govuk-radios__label\" for=\"isHearingRelated-no\">\n {{ 'Is the query hearing related?' | rpxTranslate: null : 'No' }}\n </label>\n </div>\n </div>\n </fieldset>\n\n <ng-container *ngIf=\"formGroup.get('isHearingRelated').value\">\n <div class=\"govuk-radios__conditional govuk-!-margin-top-1\"\n [ngClass]=\"{'govuk-form-group--error': submitted &&\n formGroup.get('isHearingRelated').value === true &&\n formGroup.get('hearingDate').value === null}\">\n <fieldset class=\"govuk-fieldset\" role=\"group\">\n <legend>\n <label class=\"govuk-label govuk-label--s\">\n {{ 'What is the date of the hearing?' | rpxTranslate }}\n </label>\n </legend>\n <p id=\"hearingDate-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('isHearingRelated').value === true && formGroup.get('hearingDate').value === null\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ raiseQueryErrorMessage.QUERY_HEARING_DATE | rpxTranslate }}\n </p>\n <ccd-query-write-date-input formControlName=\"hearingDate\"></ccd-query-write-date-input>\n </fieldset>\n </div>\n </ng-container>\n </div>\n </div>\n </div>\n</div>\n" }]
|
|
21449
21503
|
}], null, { formGroup: [{
|
|
21450
21504
|
type: Input
|
|
21451
21505
|
}], submitted: [{
|
|
21452
21506
|
type: Input
|
|
21453
21507
|
}], caseDetails: [{
|
|
21454
21508
|
type: Input
|
|
21509
|
+
}], showForm: [{
|
|
21510
|
+
type: Input
|
|
21455
21511
|
}] }); })();
|
|
21456
21512
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryWriteRaiseQueryComponent, { className: "QueryWriteRaiseQueryComponent", filePath: "lib/shared/components/palette/query-management/components/query-write/query-write-raise-query/query-write-raise-query.component.ts", lineNumber: 8 }); })();
|
|
21457
21513
|
|
|
21458
|
-
function
|
|
21459
|
-
i0.ɵɵelementStart(0, "p",
|
|
21514
|
+
function QueryWriteRespondToQueryComponent_div_12_p_11_Template(rf, ctx) { if (rf & 1) {
|
|
21515
|
+
i0.ɵɵelementStart(0, "p", 15)(1, "span", 16);
|
|
21460
21516
|
i0.ɵɵtext(2);
|
|
21461
21517
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
21462
21518
|
i0.ɵɵelementEnd();
|
|
@@ -21464,18 +21520,51 @@ function QueryWriteRespondToQueryComponent_p_23_Template(rf, ctx) { if (rf & 1)
|
|
|
21464
21520
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
21465
21521
|
i0.ɵɵelementEnd();
|
|
21466
21522
|
} if (rf & 2) {
|
|
21467
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
21523
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
21468
21524
|
i0.ɵɵadvance(2);
|
|
21469
21525
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 2, "Error:"), " ");
|
|
21470
21526
|
i0.ɵɵadvance(2);
|
|
21471
21527
|
i0.ɵɵtextInterpolate1("", ctx_r0.queryCreateContext === ctx_r0.queryCreateContextEnum.RESPOND ? ctx_r0.raiseQueryErrorMessages.RESPOND_QUERY_BODY : i0.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessages.QUERY_BODY), " ");
|
|
21472
21528
|
} }
|
|
21529
|
+
function QueryWriteRespondToQueryComponent_div_12_Template(rf, ctx) { if (rf & 1) {
|
|
21530
|
+
i0.ɵɵelementStart(0, "div", 7)(1, "div")(2, "h1", 8);
|
|
21531
|
+
i0.ɵɵtext(3);
|
|
21532
|
+
i0.ɵɵpipe(4, "rpxTranslate");
|
|
21533
|
+
i0.ɵɵelementEnd();
|
|
21534
|
+
i0.ɵɵelementStart(5, "div", 9)(6, "div", 10)(7, "div", 11)(8, "label", 12);
|
|
21535
|
+
i0.ɵɵtext(9);
|
|
21536
|
+
i0.ɵɵpipe(10, "rpxTranslate");
|
|
21537
|
+
i0.ɵɵelementEnd()();
|
|
21538
|
+
i0.ɵɵtemplate(11, QueryWriteRespondToQueryComponent_div_12_p_11_Template, 6, 6, "p", 13);
|
|
21539
|
+
i0.ɵɵelementStart(12, "textarea", 14);
|
|
21540
|
+
i0.ɵɵtext(13, " ");
|
|
21541
|
+
i0.ɵɵelementEnd()()()()();
|
|
21542
|
+
} if (rf & 2) {
|
|
21543
|
+
let tmp_3_0;
|
|
21544
|
+
let tmp_5_0;
|
|
21545
|
+
let tmp_6_0;
|
|
21546
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
21547
|
+
i0.ɵɵadvance(3);
|
|
21548
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r0.queryCreateContext === ctx_r0.queryCreateContextEnum.RESPOND ? "Respond to a query" : i0.ɵɵpipeBind1(4, 9, "Ask a follow-up question"), " ");
|
|
21549
|
+
i0.ɵɵadvance(2);
|
|
21550
|
+
i0.ɵɵproperty("formGroup", ctx_r0.formGroup);
|
|
21551
|
+
i0.ɵɵadvance();
|
|
21552
|
+
i0.ɵɵclassProp("govuk-form-group--error", ctx_r0.submitted && ((tmp_3_0 = ctx_r0.formGroup.get("body")) == null ? null : tmp_3_0.hasError("required")));
|
|
21553
|
+
i0.ɵɵadvance(3);
|
|
21554
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r0.queryCreateContext === ctx_r0.queryCreateContextEnum.RESPOND ? "Response detail" : i0.ɵɵpipeBind1(10, 11, "Query Body"), " ");
|
|
21555
|
+
i0.ɵɵadvance(2);
|
|
21556
|
+
i0.ɵɵproperty("ngIf", ctx_r0.submitted && ((tmp_5_0 = ctx_r0.formGroup.get("body")) == null ? null : tmp_5_0.hasError("required")));
|
|
21557
|
+
i0.ɵɵadvance();
|
|
21558
|
+
i0.ɵɵclassProp("govuk-textarea--error", ctx_r0.submitted && ((tmp_6_0 = ctx_r0.formGroup.get("body")) == null ? null : tmp_6_0.hasError("required")));
|
|
21559
|
+
i0.ɵɵproperty("formControlName", "body");
|
|
21560
|
+
} }
|
|
21473
21561
|
class QueryWriteRespondToQueryComponent {
|
|
21474
21562
|
caseNotifier;
|
|
21475
21563
|
queryItem;
|
|
21476
21564
|
formGroup;
|
|
21477
21565
|
queryCreateContext;
|
|
21478
21566
|
submitted = false;
|
|
21567
|
+
showForm;
|
|
21479
21568
|
queryCreateContextEnum = QueryCreateContext;
|
|
21480
21569
|
raiseQueryErrorMessages = RaiseQueryErrorMessage;
|
|
21481
21570
|
caseId;
|
|
@@ -21490,7 +21579,7 @@ class QueryWriteRespondToQueryComponent {
|
|
|
21490
21579
|
});
|
|
21491
21580
|
}
|
|
21492
21581
|
static ɵfac = function QueryWriteRespondToQueryComponent_Factory(t) { return new (t || QueryWriteRespondToQueryComponent)(i0.ɵɵdirectiveInject(CaseNotifier)); };
|
|
21493
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryWriteRespondToQueryComponent, selectors: [["ccd-query-write-respond-to-query"]], inputs: { queryItem: "queryItem", formGroup: "formGroup", queryCreateContext: "queryCreateContext", submitted: "submitted" }, decls:
|
|
21582
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryWriteRespondToQueryComponent, selectors: [["ccd-query-write-respond-to-query"]], inputs: { queryItem: "queryItem", formGroup: "formGroup", queryCreateContext: "queryCreateContext", submitted: "submitted", showForm: "showForm" }, decls: 13, vars: 9, consts: [[1, "govuk-!-margin-bottom-6"], [1, "govuk-caption-l"], [1, "govuk-heading-l", "govuk-!-margin-bottom-0"], [1, "govuk-!-margin-bottom-4"], [3, "caseDetails"], [3, "query"], ["class", "query-respond", 4, "ngIf"], [1, "query-respond"], [1, "govuk-heading-m"], [3, "formGroup"], [1, "govuk-form-group", "body-textarea"], [1, "govuk-label-wrapper"], ["for", "body", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "body-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "body", "name", "body", "rows", "5", "aria-describedby", "body-hint body-error", 1, "govuk-textarea", 3, "formControlName"], ["id", "body-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"]], template: function QueryWriteRespondToQueryComponent_Template(rf, ctx) { if (rf & 1) {
|
|
21494
21583
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 0)(2, "div", 1);
|
|
21495
21584
|
i0.ɵɵtext(3);
|
|
21496
21585
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
@@ -21505,48 +21594,23 @@ class QueryWriteRespondToQueryComponent {
|
|
|
21505
21594
|
i0.ɵɵelementStart(10, "div");
|
|
21506
21595
|
i0.ɵɵelement(11, "ccd-query-details", 5);
|
|
21507
21596
|
i0.ɵɵelementEnd()();
|
|
21508
|
-
i0.ɵɵ
|
|
21509
|
-
i0.ɵɵtext(15);
|
|
21510
|
-
i0.ɵɵpipe(16, "rpxTranslate");
|
|
21511
|
-
i0.ɵɵelementEnd();
|
|
21512
|
-
i0.ɵɵelementStart(17, "div", 8)(18, "div", 9)(19, "div", 10)(20, "label", 11);
|
|
21513
|
-
i0.ɵɵtext(21);
|
|
21514
|
-
i0.ɵɵpipe(22, "rpxTranslate");
|
|
21515
|
-
i0.ɵɵelementEnd()();
|
|
21516
|
-
i0.ɵɵtemplate(23, QueryWriteRespondToQueryComponent_p_23_Template, 6, 6, "p", 12);
|
|
21517
|
-
i0.ɵɵelementStart(24, "textarea", 13);
|
|
21518
|
-
i0.ɵɵtext(25, " ");
|
|
21519
|
-
i0.ɵɵelementEnd()()()()();
|
|
21597
|
+
i0.ɵɵtemplate(12, QueryWriteRespondToQueryComponent_div_12_Template, 14, 13, "div", 6);
|
|
21520
21598
|
} if (rf & 2) {
|
|
21521
|
-
let tmp_6_0;
|
|
21522
|
-
let tmp_8_0;
|
|
21523
|
-
let tmp_9_0;
|
|
21524
21599
|
i0.ɵɵadvance(3);
|
|
21525
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4,
|
|
21600
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 5, "Respond to a query"));
|
|
21526
21601
|
i0.ɵɵadvance(3);
|
|
21527
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7,
|
|
21602
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 7, "Query details"));
|
|
21528
21603
|
i0.ɵɵadvance(3);
|
|
21529
21604
|
i0.ɵɵproperty("caseDetails", ctx.caseDetails);
|
|
21530
21605
|
i0.ɵɵadvance(2);
|
|
21531
21606
|
i0.ɵɵproperty("query", ctx.queryItem);
|
|
21532
|
-
i0.ɵɵadvance(4);
|
|
21533
|
-
i0.ɵɵtextInterpolate1(" ", ctx.queryCreateContext === ctx.queryCreateContextEnum.RESPOND ? "Respond to a query" : i0.ɵɵpipeBind1(16, 17, "Ask a follow-up question"), " ");
|
|
21534
|
-
i0.ɵɵadvance(2);
|
|
21535
|
-
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
21536
21607
|
i0.ɵɵadvance();
|
|
21537
|
-
i0.ɵɵ
|
|
21538
|
-
i0.ɵɵadvance(3);
|
|
21539
|
-
i0.ɵɵtextInterpolate1(" ", ctx.queryCreateContext === ctx.queryCreateContextEnum.RESPOND ? "Response detail" : i0.ɵɵpipeBind1(22, 19, "Query Body"), " ");
|
|
21540
|
-
i0.ɵɵadvance(2);
|
|
21541
|
-
i0.ɵɵproperty("ngIf", ctx.submitted && ((tmp_8_0 = ctx.formGroup.get("body")) == null ? null : tmp_8_0.hasError("required")));
|
|
21542
|
-
i0.ɵɵadvance();
|
|
21543
|
-
i0.ɵɵclassProp("govuk-textarea--error", ctx.submitted && ((tmp_9_0 = ctx.formGroup.get("body")) == null ? null : tmp_9_0.hasError("required")));
|
|
21544
|
-
i0.ɵɵproperty("formControlName", "body");
|
|
21608
|
+
i0.ɵɵproperty("ngIf", ctx.showForm);
|
|
21545
21609
|
} }, styles: [".query-respond[_ngcontent-%COMP%]{width:100%;max-width:720px}"] });
|
|
21546
21610
|
}
|
|
21547
21611
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryWriteRespondToQueryComponent, [{
|
|
21548
21612
|
type: Component,
|
|
21549
|
-
args: [{ selector: 'ccd-query-write-respond-to-query', template: "<div class=\"govuk-!-margin-bottom-6\">\n <div class=\"govuk-!-margin-bottom-6\">\n <div class=\"govuk-caption-l\">{{ 'Respond to a query' | rpxTranslate }}</div>\n <h1 class=\"govuk-heading-l govuk-!-margin-bottom-0\">{{ 'Query details' | rpxTranslate }}</h1>\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <ccd-query-case-details-header [caseDetails]=\"caseDetails\"></ccd-query-case-details-header>\n </div>\n\n <div>\n <ccd-query-details [query]=\"queryItem\"></ccd-query-details>\n </div>\n</div>\n\n<div class=\"query-respond\">\n <div>\n <h1 class=\"govuk-heading-m\">\n {{ queryCreateContext === queryCreateContextEnum.RESPOND ? 'Respond to a query' : 'Ask a follow-up question' | rpxTranslate }}\n </h1>\n\n <div [formGroup]=\"formGroup\">\n <div class=\"govuk-form-group body-textarea\"\n [class.govuk-form-group--error]=\"submitted && formGroup.get('body')?.hasError('required')\">\n <div class=\"govuk-label-wrapper\">\n <label class=\"govuk-label govuk-label--m govuk-!-font-weight-bold\" for=\"body\">\n {{ queryCreateContext === queryCreateContextEnum.RESPOND ? 'Response detail' : 'Query Body' | rpxTranslate }}\n </label>\n </div>\n <p id=\"body-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('body')?.hasError('required')\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ queryCreateContext === queryCreateContextEnum.RESPOND ? raiseQueryErrorMessages.RESPOND_QUERY_BODY : raiseQueryErrorMessages.QUERY_BODY | rpxTranslate }}\n </p>\n <textarea [formControlName]=\"'body'\" class=\"govuk-textarea\"\n [class.govuk-textarea--error]=\"submitted && formGroup.get('body')?.hasError('required')\" id=\"body\"\n name=\"body\" rows=\"5\" aria-describedby=\"body-hint body-error\">\n </textarea>\n </div>\n </div>\n </div>\n</div>\n", styles: [".query-respond{width:100%;max-width:720px}\n"] }]
|
|
21613
|
+
args: [{ selector: 'ccd-query-write-respond-to-query', template: "<div class=\"govuk-!-margin-bottom-6\">\n <div class=\"govuk-!-margin-bottom-6\">\n <div class=\"govuk-caption-l\">{{ 'Respond to a query' | rpxTranslate }}</div>\n <h1 class=\"govuk-heading-l govuk-!-margin-bottom-0\">{{ 'Query details' | rpxTranslate }}</h1>\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <ccd-query-case-details-header [caseDetails]=\"caseDetails\"></ccd-query-case-details-header>\n </div>\n\n <div>\n <ccd-query-details [query]=\"queryItem\"></ccd-query-details>\n </div>\n</div>\n\n<div class=\"query-respond\" *ngIf=\"showForm\">\n <div>\n <h1 class=\"govuk-heading-m\">\n {{ queryCreateContext === queryCreateContextEnum.RESPOND ? 'Respond to a query' : 'Ask a follow-up question' | rpxTranslate }}\n </h1>\n\n <div [formGroup]=\"formGroup\">\n <div class=\"govuk-form-group body-textarea\"\n [class.govuk-form-group--error]=\"submitted && formGroup.get('body')?.hasError('required')\">\n <div class=\"govuk-label-wrapper\">\n <label class=\"govuk-label govuk-label--m govuk-!-font-weight-bold\" for=\"body\">\n {{ queryCreateContext === queryCreateContextEnum.RESPOND ? 'Response detail' : 'Query Body' | rpxTranslate }}\n </label>\n </div>\n <p id=\"body-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('body')?.hasError('required')\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ queryCreateContext === queryCreateContextEnum.RESPOND ? raiseQueryErrorMessages.RESPOND_QUERY_BODY : raiseQueryErrorMessages.QUERY_BODY | rpxTranslate }}\n </p>\n <textarea [formControlName]=\"'body'\" class=\"govuk-textarea\"\n [class.govuk-textarea--error]=\"submitted && formGroup.get('body')?.hasError('required')\" id=\"body\"\n name=\"body\" rows=\"5\" aria-describedby=\"body-hint body-error\">\n </textarea>\n </div>\n </div>\n </div>\n</div>\n", styles: [".query-respond{width:100%;max-width:720px}\n"] }]
|
|
21550
21614
|
}], () => [{ type: CaseNotifier }], { queryItem: [{
|
|
21551
21615
|
type: Input
|
|
21552
21616
|
}], formGroup: [{
|
|
@@ -21555,6 +21619,8 @@ class QueryWriteRespondToQueryComponent {
|
|
|
21555
21619
|
type: Input
|
|
21556
21620
|
}], submitted: [{
|
|
21557
21621
|
type: Input
|
|
21622
|
+
}], showForm: [{
|
|
21623
|
+
type: Input
|
|
21558
21624
|
}] }); })();
|
|
21559
21625
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryWriteRespondToQueryComponent, { className: "QueryWriteRespondToQueryComponent", filePath: "lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.ts", lineNumber: 14 }); })();
|
|
21560
21626
|
|
|
@@ -22041,7 +22107,7 @@ class WriteTextFieldComponent extends AbstractFieldWriteComponent {
|
|
|
22041
22107
|
|
|
22042
22108
|
class UnsupportedFieldComponent {
|
|
22043
22109
|
static ɵfac = function UnsupportedFieldComponent_Factory(t) { return new (t || UnsupportedFieldComponent)(); };
|
|
22044
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UnsupportedFieldComponent, selectors: [["
|
|
22110
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UnsupportedFieldComponent, selectors: [["ccd-unsupported-field"]], decls: 2, vars: 0, template: function UnsupportedFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
22045
22111
|
i0.ɵɵelementStart(0, "em");
|
|
22046
22112
|
i0.ɵɵtext(1, "Field type not supported");
|
|
22047
22113
|
i0.ɵɵelementEnd();
|
|
@@ -22050,10 +22116,11 @@ class UnsupportedFieldComponent {
|
|
|
22050
22116
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UnsupportedFieldComponent, [{
|
|
22051
22117
|
type: Component,
|
|
22052
22118
|
args: [{
|
|
22119
|
+
selector: 'ccd-unsupported-field',
|
|
22053
22120
|
template: `<em>Field type not supported</em>`
|
|
22054
22121
|
}]
|
|
22055
22122
|
}], null, null); })();
|
|
22056
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UnsupportedFieldComponent, { className: "UnsupportedFieldComponent", filePath: "lib/shared/components/palette/unsupported-field.component.ts", lineNumber:
|
|
22123
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UnsupportedFieldComponent, { className: "UnsupportedFieldComponent", filePath: "lib/shared/components/palette/unsupported-field.component.ts", lineNumber: 7 }); })();
|
|
22057
22124
|
|
|
22058
22125
|
function WaysToPayFieldComponent_ccpay_payment_lib_0_Template(rf, ctx) { if (rf & 1) {
|
|
22059
22126
|
i0.ɵɵelement(0, "ccpay-payment-lib", 1);
|
|
@@ -23091,10 +23158,9 @@ function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template(rf, c
|
|
|
23091
23158
|
i0.ɵɵelementStart(7, "span", 17);
|
|
23092
23159
|
i0.ɵɵtext(8);
|
|
23093
23160
|
i0.ɵɵpipe(9, "ccdDate");
|
|
23094
|
-
i0.ɵɵpipe(10, "date");
|
|
23095
23161
|
i0.ɵɵelementEnd()();
|
|
23096
|
-
i0.ɵɵelementStart(
|
|
23097
|
-
i0.ɵɵlistener("changeFolderAction", function
|
|
23162
|
+
i0.ɵɵelementStart(10, "div", 18)(11, "ccd-case-file-view-folder-document-actions", 19);
|
|
23163
|
+
i0.ɵɵlistener("changeFolderAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_changeFolderAction_11_listener() { const node_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.triggerDocumentAction("changeFolder", node_r2)); })("openInANewTabAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_openInANewTabAction_11_listener() { const node_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.triggerDocumentAction("openInANewTab", node_r2)); })("downloadAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_downloadAction_11_listener() { const node_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.triggerDocumentAction("download", node_r2)); })("printAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_printAction_11_listener() { const node_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.triggerDocumentAction("print", node_r2)); });
|
|
23098
23164
|
i0.ɵɵelementEnd()()()();
|
|
23099
23165
|
} if (rf & 2) {
|
|
23100
23166
|
const node_r2 = ctx.$implicit;
|
|
@@ -23104,8 +23170,8 @@ function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template(rf, c
|
|
|
23104
23170
|
i0.ɵɵadvance(4);
|
|
23105
23171
|
i0.ɵɵtextInterpolate1(" ", node_r2.name, " ");
|
|
23106
23172
|
i0.ɵɵadvance(3);
|
|
23107
|
-
i0.ɵɵtextInterpolate(i0.ɵɵ
|
|
23108
|
-
i0.ɵɵadvance(
|
|
23173
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind3(9, 5, node_r2.upload_timestamp, "local", "dd MMM YYYY HH:mm"));
|
|
23174
|
+
i0.ɵɵadvance(3);
|
|
23109
23175
|
i0.ɵɵproperty("allowMoving", ctx_r2.allowMoving);
|
|
23110
23176
|
} }
|
|
23111
23177
|
function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_5_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -23138,7 +23204,7 @@ function CaseFileViewFolderComponent_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
|
23138
23204
|
i0.ɵɵelementStart(0, "div", 7);
|
|
23139
23205
|
i0.ɵɵtemplate(1, CaseFileViewFolderComponent_div_8_div_1_Template, 2, 0, "div", 8);
|
|
23140
23206
|
i0.ɵɵelementStart(2, "div")(3, "cdk-tree", 9);
|
|
23141
|
-
i0.ɵɵtemplate(4, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template,
|
|
23207
|
+
i0.ɵɵtemplate(4, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template, 12, 9, "cdk-nested-tree-node", 10)(5, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_5_Template, 10, 6, "cdk-nested-tree-node", 11);
|
|
23142
23208
|
i0.ɵɵelementEnd()()();
|
|
23143
23209
|
} if (rf & 2) {
|
|
23144
23210
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
@@ -23394,11 +23460,11 @@ class CaseFileViewFolderComponent {
|
|
|
23394
23460
|
i0.ɵɵtextInterpolate1("Documents (", ctx.documentCount, ")");
|
|
23395
23461
|
i0.ɵɵadvance(3);
|
|
23396
23462
|
i0.ɵɵproperty("ngIf", ctx.documentTreeData);
|
|
23397
|
-
} }, dependencies: [i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, i7.CdkNestedTreeNode, i7.CdkTreeNodeDef, i7.CdkTreeNodeToggle, i7.CdkTree, i7.CdkTreeNodeOutlet, CaseFileViewFolderSortComponent, CaseFileViewFolderDocumentActionsComponent,
|
|
23463
|
+
} }, dependencies: [i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, i7.CdkNestedTreeNode, i7.CdkTreeNodeDef, i7.CdkTreeNodeToggle, i7.CdkTree, i7.CdkTreeNodeOutlet, CaseFileViewFolderSortComponent, CaseFileViewFolderDocumentActionsComponent, DatePipe], styles: ["[_nghost-%COMP%]{display:flex;height:100%;flex-direction:column}[_nghost-%COMP%] .document-tree-container[_ngcontent-%COMP%]{flex:1 0}.document-filter-container[_ngcontent-%COMP%]{border-bottom:2px solid #C9C9C9}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%]{padding:10px}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%] .document-search[_ngcontent-%COMP%]{background:url(/assets/images/icon-search-black.svg) no-repeat right #fff;background-position-x:calc(100% - 4px);padding-right:30px;width:100%}.document-filter-container[_ngcontent-%COMP%] .documents-title[_ngcontent-%COMP%]{height:30%;margin-left:8px;font-weight:700}.document-tree-container[_ngcontent-%COMP%]{padding:4px;overflow-x:hidden;overflow-y:scroll}.document-tree-container__node[_ngcontent-%COMP%]{display:block}.document-tree-container__node[_ngcontent-%COMP%] .document-tree-container__node[_ngcontent-%COMP%]{padding-left:40px}.document-tree-container[_ngcontent-%COMP%] .document-tree-invisible[_ngcontent-%COMP%]{display:none}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar{width:7px}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border:4px solid rgba(0,0,0,0);background-clip:padding-box;border-radius:9999px;background-color:#aaa}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-button{display:none}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-track-piece{background:#eee}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#ccc}.document-folders-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #C9C9C9;padding:10px}.document-folders-header__title[_ngcontent-%COMP%]{font-weight:700}.node[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;padding:10px;background:none;border:0;cursor:pointer;white-space:nowrap}.node--selected[_ngcontent-%COMP%]{background:#fff2cc}.node__icon[_ngcontent-%COMP%]{position:relative;display:inline-block}.node__count[_ngcontent-%COMP%]{color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:.875rem;padding-top:4px}.node__iconImg[_ngcontent-%COMP%]{display:block;height:30px;width:30px}.node__name[_ngcontent-%COMP%]{margin-left:6px;font-size:1rem;overflow:hidden;text-overflow:ellipsis}.node__document-options[_ngcontent-%COMP%]{margin-left:auto;margin-right:0}.node__document-upload-timestamp[_ngcontent-%COMP%]{font-size:.8rem;float:left;padding-left:10px}"] });
|
|
23398
23464
|
}
|
|
23399
23465
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFolderComponent, [{
|
|
23400
23466
|
type: Component,
|
|
23401
|
-
args: [{ selector: 'ccd-case-file-view-folder', template: "<div class=\"document-filter-container\">\n <div class=\"form-group document-filter\" [formGroup]=\"documentFilterFormGroup\">\n <input class=\"form-control document-search\"\n type=\"search\"\n id=\"document-search\"\n name=\"documentSearchFormControl\"\n formControlName=\"documentSearchFormControl\"\n placeholder=\"Search by document name\"\n aria-label=\"Search by document name\">\n </div>\n</div>\n\n<div class=\"document-folders-header\">\n <div class=\"document-folders-header__title\">Documents ({{ documentCount }})</div>\n <div>\n <ccd-case-file-view-folder-sort\n (sortAscending)=\"sortDataSourceAscending($event)\"\n (sortDescending)=\"sortDataSourceDescending($event)\"\n ></ccd-case-file-view-folder-sort>\n </div>\n</div>\n\n<div class=\"document-tree-container\" *ngIf=\"documentTreeData\">\n <div *ngIf=\"!nestedDataSource || nestedDataSource.length === 0\">\n No results found\n </div>\n <div>\n <cdk-tree [dataSource]=\"nestedDataSource\" [treeControl]=\"nestedTreeControl\">\n <!-- document -->\n <cdk-nested-tree-node class=\"document-tree-container__node document-tree-container__node--document\" *cdkTreeNodeDef=\"let node\">\n <button class=\"node\" (click)=\"selectedNodeItem = node; clickedDocument.emit(node)\"\n [class.node--selected]=\"selectedNodeItem?.name === node.name\">\n <div class=\"node__icon\" disabled>\n <img src=\"/assets/img/case-file-view/case-file-view-document.svg\" class=\"node__iconImg\" alt=\"Document icon\">\n </div>\n <span class=\"node__name node-name-document\">\n {{node.name}}\n <br>\n <span class=\"node__document-upload-timestamp\">{{node.upload_timestamp | ccdDate : 'local'
|
|
23467
|
+
args: [{ selector: 'ccd-case-file-view-folder', template: "<div class=\"document-filter-container\">\n <div class=\"form-group document-filter\" [formGroup]=\"documentFilterFormGroup\">\n <input class=\"form-control document-search\"\n type=\"search\"\n id=\"document-search\"\n name=\"documentSearchFormControl\"\n formControlName=\"documentSearchFormControl\"\n placeholder=\"Search by document name\"\n aria-label=\"Search by document name\">\n </div>\n</div>\n\n<div class=\"document-folders-header\">\n <div class=\"document-folders-header__title\">Documents ({{ documentCount }})</div>\n <div>\n <ccd-case-file-view-folder-sort\n (sortAscending)=\"sortDataSourceAscending($event)\"\n (sortDescending)=\"sortDataSourceDescending($event)\"\n ></ccd-case-file-view-folder-sort>\n </div>\n</div>\n\n<div class=\"document-tree-container\" *ngIf=\"documentTreeData\">\n <div *ngIf=\"!nestedDataSource || nestedDataSource.length === 0\">\n No results found\n </div>\n <div>\n <cdk-tree [dataSource]=\"nestedDataSource\" [treeControl]=\"nestedTreeControl\">\n <!-- document -->\n <cdk-nested-tree-node class=\"document-tree-container__node document-tree-container__node--document\" *cdkTreeNodeDef=\"let node\">\n <button class=\"node\" (click)=\"selectedNodeItem = node; clickedDocument.emit(node)\"\n [class.node--selected]=\"selectedNodeItem?.name === node.name\">\n <div class=\"node__icon\" disabled>\n <img src=\"/assets/img/case-file-view/case-file-view-document.svg\" class=\"node__iconImg\" alt=\"Document icon\">\n </div>\n <span class=\"node__name node-name-document\">\n {{node.name}}\n <br>\n <span class=\"node__document-upload-timestamp\">{{node.upload_timestamp | ccdDate : 'local' :'dd MMM YYYY HH:mm'}}</span>\n </span>\n <div class=\"node__document-options\">\n <ccd-case-file-view-folder-document-actions\n (changeFolderAction)=\"triggerDocumentAction('changeFolder', node)\"\n (openInANewTabAction)=\"triggerDocumentAction('openInANewTab', node)\"\n (downloadAction)=\"triggerDocumentAction('download', node)\"\n (printAction)=\"triggerDocumentAction('print', node)\"\n [allowMoving]=\"allowMoving\"\n >\n </ccd-case-file-view-folder-document-actions>\n </div>\n </button>\n </cdk-nested-tree-node>\n <!-- folder-->\n <cdk-nested-tree-node class=\"document-tree-container__node document-tree-container__folder\" *cdkTreeNodeDef=\"let node; when: nestedChildren\">\n <button class=\"node\" cdkTreeNodeToggle>\n <div class=\"node__icon\" [attr.aria-label]=\"'toggle ' + node.name\" >\n <img class=\"node__iconImg\"\n [src]=\"nestedTreeControl.isExpanded(node) ? '/assets/images/folder-open.png' : '/assets/images/folder.png'\" alt=\"Folder icon\">\n <span class=\"node__count\">{{node.childDocumentCount}}</span>\n </div>\n <span class=\"node__name node__name--folder\">{{node.name}}</span>\n </button>\n\n <div [class.document-tree-invisible]=\"!nestedTreeControl.isExpanded(node)\">\n <ng-container cdkTreeNodeOutlet></ng-container>\n </div>\n </cdk-nested-tree-node>\n </cdk-tree>\n </div>\n</div>\n", styles: [":host{display:flex;height:100%;flex-direction:column}:host .document-tree-container{flex:1 0}.document-filter-container{border-bottom:2px solid #C9C9C9}.document-filter-container .document-filter{padding:10px}.document-filter-container .document-filter .document-search{background:url(/assets/images/icon-search-black.svg) no-repeat right #fff;background-position-x:calc(100% - 4px);padding-right:30px;width:100%}.document-filter-container .documents-title{height:30%;margin-left:8px;font-weight:700}.document-tree-container{padding:4px;overflow-x:hidden;overflow-y:scroll}.document-tree-container__node{display:block}.document-tree-container__node .document-tree-container__node{padding-left:40px}.document-tree-container .document-tree-invisible{display:none}.document-tree-container::-webkit-scrollbar{width:7px}.document-tree-container::-webkit-scrollbar-thumb{border:4px solid rgba(0,0,0,0);background-clip:padding-box;border-radius:9999px;background-color:#aaa}.document-tree-container::-webkit-scrollbar-button{display:none}.document-tree-container::-webkit-scrollbar-track-piece{background:#eee}.document-tree-container::-webkit-scrollbar-thumb{background:#ccc}.document-folders-header{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #C9C9C9;padding:10px}.document-folders-header__title{font-weight:700}.node{display:flex;align-items:center;width:100%;padding:10px;background:none;border:0;cursor:pointer;white-space:nowrap}.node--selected{background:#fff2cc}.node__icon{position:relative;display:inline-block}.node__count{color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:.875rem;padding-top:4px}.node__iconImg{display:block;height:30px;width:30px}.node__name{margin-left:6px;font-size:1rem;overflow:hidden;text-overflow:ellipsis}.node__document-options{margin-left:auto;margin-right:0}.node__document-upload-timestamp{font-size:.8rem;float:left;padding-left:10px}\n"] }]
|
|
23402
23468
|
}], () => [{ type: WindowService }, { type: i1$1.Router }, { type: DocumentManagementService }, { type: i1$3.MatLegacyDialog }, { type: AbstractAppConfig }], { categoriesAndDocuments: [{
|
|
23403
23469
|
type: Input
|
|
23404
23470
|
}], allowMoving: [{
|
|
@@ -27602,7 +27668,7 @@ class EventLogTableComponent {
|
|
|
27602
27668
|
|
|
27603
27669
|
function EventLogComponent_ccd_event_log_table_3_Template(rf, ctx) { if (rf & 1) {
|
|
27604
27670
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
27605
|
-
i0.ɵɵelementStart(0, "ccd-event-log-table",
|
|
27671
|
+
i0.ɵɵelementStart(0, "ccd-event-log-table", 8);
|
|
27606
27672
|
i0.ɵɵlistener("onSelect", function EventLogComponent_ccd_event_log_table_3_Template_ccd_event_log_table_onSelect_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.select($event)); })("onCaseHistory", function EventLogComponent_ccd_event_log_table_3_Template_ccd_event_log_table_onCaseHistory_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.caseHistoryClicked($event)); });
|
|
27607
27673
|
i0.ɵɵelementEnd();
|
|
27608
27674
|
} if (rf & 2) {
|
|
@@ -27611,7 +27677,7 @@ function EventLogComponent_ccd_event_log_table_3_Template(rf, ctx) { if (rf & 1)
|
|
|
27611
27677
|
} }
|
|
27612
27678
|
function EventLogComponent_ccd_event_log_table_4_Template(rf, ctx) { if (rf & 1) {
|
|
27613
27679
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
27614
|
-
i0.ɵɵelementStart(0, "ccd-event-log-table",
|
|
27680
|
+
i0.ɵɵelementStart(0, "ccd-event-log-table", 9);
|
|
27615
27681
|
i0.ɵɵlistener("onSelect", function EventLogComponent_ccd_event_log_table_4_Template_ccd_event_log_table_onSelect_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.select($event)); });
|
|
27616
27682
|
i0.ɵɵelementEnd();
|
|
27617
27683
|
} if (rf & 2) {
|
|
@@ -27619,7 +27685,7 @@ function EventLogComponent_ccd_event_log_table_4_Template(rf, ctx) { if (rf & 1)
|
|
|
27619
27685
|
i0.ɵɵproperty("events", ctx_r1.events)("selected", ctx_r1.selected);
|
|
27620
27686
|
} }
|
|
27621
27687
|
function EventLogComponent_ccd_event_log_details_7_Template(rf, ctx) { if (rf & 1) {
|
|
27622
|
-
i0.ɵɵelement(0, "ccd-event-log-details",
|
|
27688
|
+
i0.ɵɵelement(0, "ccd-event-log-details", 10);
|
|
27623
27689
|
} if (rf & 2) {
|
|
27624
27690
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
27625
27691
|
i0.ɵɵproperty("event", ctx_r1.selected);
|
|
@@ -27640,14 +27706,14 @@ class EventLogComponent {
|
|
|
27640
27706
|
this.onCaseHistory.emit(eventId);
|
|
27641
27707
|
}
|
|
27642
27708
|
static ɵfac = function EventLogComponent_Factory(t) { return new (t || EventLogComponent)(); };
|
|
27643
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EventLogComponent, selectors: [["ccd-event-log"]], inputs: { events: "events" }, outputs: { onCaseHistory: "onCaseHistory" }, decls: 8, vars: 4, consts: [[1, "grid-row"], [1, "column-one-half"], [3, "ngSwitch"], [3, "events", "selected", "onSelect", "onCaseHistory", 4, "ngSwitchCase"], [3, "events", "selected", "onSelect", 4, "ngSwitchCase"], [1, "EventLog-DetailsPanel"], [3, "event", 4, "ngIf"], [3, "onSelect", "onCaseHistory", "events", "selected"], [3, "onSelect", "events", "selected"], [3, "event"]], template: function EventLogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
27709
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EventLogComponent, selectors: [["ccd-event-log"]], inputs: { events: "events" }, outputs: { onCaseHistory: "onCaseHistory" }, decls: 8, vars: 4, consts: [[1, "grid-row"], [1, "column-one-half", "scrollbar"], [3, "ngSwitch"], [3, "events", "selected", "onSelect", "onCaseHistory", 4, "ngSwitchCase"], [3, "events", "selected", "onSelect", 4, "ngSwitchCase"], [1, "column-one-half"], [1, "EventLog-DetailsPanel"], [3, "event", 4, "ngIf"], [3, "onSelect", "onCaseHistory", "events", "selected"], [3, "onSelect", "events", "selected"], [3, "event"]], template: function EventLogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
27644
27710
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
|
|
27645
27711
|
i0.ɵɵelementContainerStart(2, 2);
|
|
27646
27712
|
i0.ɵɵtemplate(3, EventLogComponent_ccd_event_log_table_3_Template, 1, 2, "ccd-event-log-table", 3)(4, EventLogComponent_ccd_event_log_table_4_Template, 1, 2, "ccd-event-log-table", 4);
|
|
27647
27713
|
i0.ɵɵelementContainerEnd();
|
|
27648
27714
|
i0.ɵɵelementEnd();
|
|
27649
|
-
i0.ɵɵelementStart(5, "div",
|
|
27650
|
-
i0.ɵɵtemplate(7, EventLogComponent_ccd_event_log_details_7_Template, 1, 1, "ccd-event-log-details",
|
|
27715
|
+
i0.ɵɵelementStart(5, "div", 5)(6, "div", 6);
|
|
27716
|
+
i0.ɵɵtemplate(7, EventLogComponent_ccd_event_log_details_7_Template, 1, 1, "ccd-event-log-details", 7);
|
|
27651
27717
|
i0.ɵɵelementEnd()()();
|
|
27652
27718
|
} if (rf & 2) {
|
|
27653
27719
|
i0.ɵɵadvance(2);
|
|
@@ -27658,11 +27724,11 @@ class EventLogComponent {
|
|
|
27658
27724
|
i0.ɵɵproperty("ngSwitchCase", false);
|
|
27659
27725
|
i0.ɵɵadvance(3);
|
|
27660
27726
|
i0.ɵɵproperty("ngIf", ctx.selected);
|
|
27661
|
-
} }, styles: ["@media (max-width: 991px){[class*=col-md][_ngcontent-%COMP%]{margin-bottom:30px}}.EventLog-DetailsPanel[_ngcontent-%COMP%]{border:1px solid #bfc1c3;padding:0 10px 10px;margin-top:20px}"] });
|
|
27727
|
+
} }, styles: ["@media (max-width: 991px){[class*=col-md][_ngcontent-%COMP%]{margin-bottom:30px}}.column-half[_ngcontent-%COMP%], .column-one-half[_ngcontent-%COMP%]{float:left;width:50%}@media (min-width: 641px){.scrollbar[_ngcontent-%COMP%]{height:70vh;overflow-y:auto}}.EventLog-DetailsPanel[_ngcontent-%COMP%]{border:1px solid #bfc1c3;padding:0 10px 10px;margin-top:20px}"] });
|
|
27662
27728
|
}
|
|
27663
27729
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EventLogComponent, [{
|
|
27664
27730
|
type: Component,
|
|
27665
|
-
args: [{ selector: 'ccd-event-log', template: "<div class=\"grid-row\">\n <div class=\"column-one-half\">\n <ng-container [ngSwitch]=\"isPartOfCaseTimeline\">\n <ccd-event-log-table
|
|
27731
|
+
args: [{ selector: 'ccd-event-log', template: "<div class=\"grid-row\">\n <div class=\"column-one-half scrollbar\">\n <ng-container [ngSwitch]=\"isPartOfCaseTimeline\">\n <ccd-event-log-table\n *ngSwitchCase=\"true\"\n [events]=\"events\"\n [selected]=\"selected\"\n (onSelect)=\"select($event)\"\n (onCaseHistory)=\"caseHistoryClicked($event)\"\n ></ccd-event-log-table>\n <ccd-event-log-table\n *ngSwitchCase=\"false\"\n [events]=\"events\"\n [selected]=\"selected\"\n (onSelect)=\"select($event)\"\n ></ccd-event-log-table>\n </ng-container>\n </div>\n <div class=\"column-one-half\">\n <div class=\"EventLog-DetailsPanel\">\n <ccd-event-log-details\n *ngIf=\"selected\"\n [event]=\"selected\"\n ></ccd-event-log-details>\n </div>\n </div>\n</div>\n", styles: ["@media (max-width: 991px){[class*=col-md]{margin-bottom:30px}}.column-half,.column-one-half{float:left;width:50%}@media (min-width: 641px){.scrollbar{height:70vh;overflow-y:auto}}.EventLog-DetailsPanel{border:1px solid #bfc1c3;padding:0 10px 10px;margin-top:20px}\n"] }]
|
|
27666
27732
|
}], null, { events: [{
|
|
27667
27733
|
type: Input
|
|
27668
27734
|
}], onCaseHistory: [{
|
|
@@ -32960,14 +33026,14 @@ function CaseFullAccessViewComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
32960
33026
|
i0.ɵɵproperty("notificationBannerConfig", ctx_r1.notificationBannerConfig);
|
|
32961
33027
|
} }
|
|
32962
33028
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_3_Template(rf, ctx) { if (rf & 1) {
|
|
32963
|
-
i0.ɵɵelement(0, "mat-tab",
|
|
33029
|
+
i0.ɵɵelement(0, "mat-tab", 27);
|
|
32964
33030
|
i0.ɵɵpipe(1, "rpxTranslate");
|
|
32965
33031
|
} if (rf & 2) {
|
|
32966
33032
|
const tab_r6 = ctx.$implicit;
|
|
32967
33033
|
i0.ɵɵproperty("id", tab_r6.id)("label", i0.ɵɵpipeBind1(1, 2, tab_r6.label));
|
|
32968
33034
|
} }
|
|
32969
33035
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_2_ng_container_3_tr_4_th_1_Template(rf, ctx) { if (rf & 1) {
|
|
32970
|
-
i0.ɵɵelementStart(0, "th",
|
|
33036
|
+
i0.ɵɵelementStart(0, "th", 37)(1, "div", 38);
|
|
32971
33037
|
i0.ɵɵtext(2);
|
|
32972
33038
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
32973
33039
|
i0.ɵɵelementEnd()();
|
|
@@ -32978,9 +33044,9 @@ function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_2_ng_
|
|
|
32978
33044
|
} }
|
|
32979
33045
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_2_ng_container_3_tr_4_Template(rf, ctx) { if (rf & 1) {
|
|
32980
33046
|
i0.ɵɵelementStart(0, "tr");
|
|
32981
|
-
i0.ɵɵtemplate(1, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_2_ng_container_3_tr_4_th_1_Template, 4, 3, "th",
|
|
32982
|
-
i0.ɵɵelementStart(2, "td",
|
|
32983
|
-
i0.ɵɵelement(4, "ccd-field-read",
|
|
33047
|
+
i0.ɵɵtemplate(1, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_2_ng_container_3_tr_4_th_1_Template, 4, 3, "th", 33);
|
|
33048
|
+
i0.ɵɵelementStart(2, "td", 34)(3, "span", 35);
|
|
33049
|
+
i0.ɵɵelement(4, "ccd-field-read", 36);
|
|
32984
33050
|
i0.ɵɵelementEnd()()();
|
|
32985
33051
|
} if (rf & 2) {
|
|
32986
33052
|
const field_r7 = i0.ɵɵnextContext().$implicit;
|
|
@@ -32993,8 +33059,8 @@ function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_2_ng_
|
|
|
32993
33059
|
i0.ɵɵproperty("topLevelFormGroup", ctx_r1.formGroup == null ? null : ctx_r1.formGroup.controls["data"])("caseField", field_r7)("caseReference", ctx_r1.caseDetails.case_id)("markdownUseHrefAsRouterLink", ctx_r1.markdownUseHrefAsRouterLink);
|
|
32994
33060
|
} }
|
|
32995
33061
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_2_ng_container_3_tr_5_Template(rf, ctx) { if (rf & 1) {
|
|
32996
|
-
i0.ɵɵelementStart(0, "tr",
|
|
32997
|
-
i0.ɵɵelement(3, "ccd-field-read",
|
|
33062
|
+
i0.ɵɵelementStart(0, "tr", 39)(1, "th", 34)(2, "span", 35);
|
|
33063
|
+
i0.ɵɵelement(3, "ccd-field-read", 36);
|
|
32998
33064
|
i0.ɵɵelementEnd()()();
|
|
32999
33065
|
} if (rf & 2) {
|
|
33000
33066
|
const field_r7 = i0.ɵɵnextContext().$implicit;
|
|
@@ -33006,10 +33072,10 @@ function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_2_ng_
|
|
|
33006
33072
|
} }
|
|
33007
33073
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_2_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
33008
33074
|
i0.ɵɵelementContainerStart(0);
|
|
33009
|
-
i0.ɵɵelementStart(1, "div",
|
|
33010
|
-
i0.ɵɵelementContainerStart(2,
|
|
33075
|
+
i0.ɵɵelementStart(1, "div", 29);
|
|
33076
|
+
i0.ɵɵelementContainerStart(2, 30);
|
|
33011
33077
|
i0.ɵɵpipe(3, "ccdIsCompound");
|
|
33012
|
-
i0.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_2_ng_container_3_tr_4_Template, 5, 6, "tr",
|
|
33078
|
+
i0.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_2_ng_container_3_tr_4_Template, 5, 6, "tr", 31)(5, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_2_ng_container_3_tr_5_Template, 4, 5, "tr", 32);
|
|
33013
33079
|
i0.ɵɵelementContainerEnd();
|
|
33014
33080
|
i0.ɵɵelementEnd();
|
|
33015
33081
|
i0.ɵɵelementContainerEnd();
|
|
@@ -33042,22 +33108,22 @@ function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_2_Tem
|
|
|
33042
33108
|
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBindV(5, 8, i0.ɵɵpureFunction2(14, _c1$3, i0.ɵɵpipeBind1(4, 6, tab_r8), ctx_r1.formGroup == null ? null : ctx_r1.formGroup.controls["data"])));
|
|
33043
33109
|
} }
|
|
33044
33110
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_Template(rf, ctx) { if (rf & 1) {
|
|
33045
|
-
i0.ɵɵelementStart(0, "mat-tab",
|
|
33111
|
+
i0.ɵɵelementStart(0, "mat-tab", 27);
|
|
33046
33112
|
i0.ɵɵpipe(1, "rpxTranslate");
|
|
33047
|
-
i0.ɵɵtemplate(2, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_2_Template, 6, 17, "ng-template",
|
|
33113
|
+
i0.ɵɵtemplate(2, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_2_Template, 6, 17, "ng-template", 28);
|
|
33048
33114
|
i0.ɵɵelementEnd();
|
|
33049
33115
|
} if (rf & 2) {
|
|
33050
33116
|
const tab_r8 = ctx.$implicit;
|
|
33051
33117
|
i0.ɵɵproperty("id", tab_r8.id)("label", i0.ɵɵpipeBind1(1, 2, tab_r8.label));
|
|
33052
33118
|
} }
|
|
33053
33119
|
function CaseFullAccessViewComponent_ng_container_12_mat_tab_5_Template(rf, ctx) { if (rf & 1) {
|
|
33054
|
-
i0.ɵɵelement(0, "mat-tab",
|
|
33120
|
+
i0.ɵɵelement(0, "mat-tab", 27);
|
|
33055
33121
|
i0.ɵɵpipe(1, "rpxTranslate");
|
|
33056
33122
|
} if (rf & 2) {
|
|
33057
33123
|
const tab_r9 = ctx.$implicit;
|
|
33058
33124
|
i0.ɵɵproperty("id", tab_r9.id)("label", i0.ɵɵpipeBind1(1, 2, tab_r9.label));
|
|
33059
33125
|
} }
|
|
33060
|
-
function
|
|
33126
|
+
function CaseFullAccessViewComponent_ng_container_12_router_outlet_8_Template(rf, ctx) { if (rf & 1) {
|
|
33061
33127
|
i0.ɵɵelement(0, "router-outlet");
|
|
33062
33128
|
} }
|
|
33063
33129
|
function CaseFullAccessViewComponent_ng_container_12_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -33067,7 +33133,10 @@ function CaseFullAccessViewComponent_ng_container_12_Template(rf, ctx) { if (rf
|
|
|
33067
33133
|
i0.ɵɵlistener("selectedIndexChange", function CaseFullAccessViewComponent_ng_container_12_Template_mat_tab_group_selectedIndexChange_1_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.tabChanged($event)); });
|
|
33068
33134
|
i0.ɵɵtemplate(3, CaseFullAccessViewComponent_ng_container_12_mat_tab_3_Template, 2, 4, "mat-tab", 25)(4, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_Template, 3, 4, "mat-tab", 25)(5, CaseFullAccessViewComponent_ng_container_12_mat_tab_5_Template, 2, 4, "mat-tab", 25);
|
|
33069
33135
|
i0.ɵɵelementEnd();
|
|
33070
|
-
i0.ɵɵ
|
|
33136
|
+
i0.ɵɵelementStart(6, "span", 26);
|
|
33137
|
+
i0.ɵɵtext(7, "To use tabbed navigation, please use left and right arrow keys");
|
|
33138
|
+
i0.ɵɵelementEnd();
|
|
33139
|
+
i0.ɵɵtemplate(8, CaseFullAccessViewComponent_ng_container_12_router_outlet_8_Template, 1, 0, "router-outlet", 11);
|
|
33071
33140
|
i0.ɵɵelementContainerEnd();
|
|
33072
33141
|
} if (rf & 2) {
|
|
33073
33142
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -33079,7 +33148,7 @@ function CaseFullAccessViewComponent_ng_container_12_Template(rf, ctx) { if (rf
|
|
|
33079
33148
|
i0.ɵɵproperty("ngForOf", ctx_r1.sortedTabs);
|
|
33080
33149
|
i0.ɵɵadvance();
|
|
33081
33150
|
i0.ɵɵproperty("ngForOf", ctx_r1.appendedTabs);
|
|
33082
|
-
i0.ɵɵadvance();
|
|
33151
|
+
i0.ɵɵadvance(3);
|
|
33083
33152
|
i0.ɵɵproperty("ngIf", ctx_r1.prependedTabs && ctx_r1.prependedTabs.length || ctx_r1.appendedTabs && ctx_r1.appendedTabs.length);
|
|
33084
33153
|
} }
|
|
33085
33154
|
class CaseFullAccessViewComponent {
|
|
@@ -33487,7 +33556,7 @@ class CaseFullAccessViewComponent {
|
|
|
33487
33556
|
} if (rf & 2) {
|
|
33488
33557
|
let _t;
|
|
33489
33558
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tabGroup = _t.first);
|
|
33490
|
-
} }, inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", caseDetails: "caseDetails", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, features: [i0.ɵɵNgOnChangesFeature], decls: 13, vars: 12, consts: [["tabGroup", ""], ["class", "error-summary", "role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "callbackErrorsContext", "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject"], [3, "caseId", "displayMode"], [1, "grid-row"], [1, "column-one-half"], [3, "caseDetails"], ["class", "case-viewer-controls", 4, "ngIf"], ["class", "column-one-half", 4, "ngIf"], ["class", "grid-row", 4, "ngIf"], [1, "column-full"], [4, "ngIf"], ["role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h2", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], [4, "ngFor", "ngForOf"], [1, "case-viewer-controls"], ["id", "case-viewer-control-print", "routerLink", "print", 1, "button", "button-secondary"], [3, "onTriggerChange", "onTriggerSubmit", "isDisabled", "triggers", "triggerText", "eventId"], [3, "linkClicked", "notificationBannerConfig"], ["animationDuration", "0ms", 3, "selectedIndexChange", "disableRipple", "selectedIndex"], [3, "id", "label", 4, "ngFor", "ngForOf"], [3, "id", "label"], ["matTabContent", ""], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "hidden"], [3, "ngSwitch"], [4, "ngSwitchCase"], ["class", "compound-field", 4, "ngSwitchCase"], ["id", "case-viewer-field-label", 4, "ngIf"], ["scope", "col", 3, "id"], [1, "text-16"], [3, "topLevelFormGroup", "caseField", "caseReference", "markdownUseHrefAsRouterLink"], ["id", "case-viewer-field-label"], [1, "case-viewer-label", "text-16"], [1, "compound-field"]], template: function CaseFullAccessViewComponent_Template(rf, ctx) { if (rf & 1) {
|
|
33559
|
+
} }, inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", caseDetails: "caseDetails", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, features: [i0.ɵɵNgOnChangesFeature], decls: 13, vars: 12, consts: [["tabGroup", ""], ["class", "error-summary", "role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "callbackErrorsContext", "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject"], [3, "caseId", "displayMode"], [1, "grid-row"], [1, "column-one-half"], [3, "caseDetails"], ["class", "case-viewer-controls", 4, "ngIf"], ["class", "column-one-half", 4, "ngIf"], ["class", "grid-row", 4, "ngIf"], [1, "column-full"], [4, "ngIf"], ["role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h2", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], [4, "ngFor", "ngForOf"], [1, "case-viewer-controls"], ["id", "case-viewer-control-print", "routerLink", "print", 1, "button", "button-secondary"], [3, "onTriggerChange", "onTriggerSubmit", "isDisabled", "triggers", "triggerText", "eventId"], [3, "linkClicked", "notificationBannerConfig"], ["animationDuration", "0ms", 3, "selectedIndexChange", "disableRipple", "selectedIndex"], [3, "id", "label", 4, "ngFor", "ngForOf"], ["span", "", "id", "tabInstruction", 1, "visuallyhidden"], [3, "id", "label"], ["matTabContent", ""], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "hidden"], [3, "ngSwitch"], [4, "ngSwitchCase"], ["class", "compound-field", 4, "ngSwitchCase"], ["id", "case-viewer-field-label", "aria-describedby", "tabInstruction", 4, "ngIf"], ["scope", "col", 3, "id"], [1, "text-16"], [3, "topLevelFormGroup", "caseField", "caseReference", "markdownUseHrefAsRouterLink"], ["id", "case-viewer-field-label", "aria-describedby", "tabInstruction"], [1, "case-viewer-label", "text-16"], [1, "compound-field"]], template: function CaseFullAccessViewComponent_Template(rf, ctx) { if (rf & 1) {
|
|
33491
33560
|
i0.ɵɵtemplate(0, CaseFullAccessViewComponent_div_0_Template, 14, 12, "div", 1)(1, CaseFullAccessViewComponent_div_1_Template, 8, 7, "div", 1);
|
|
33492
33561
|
i0.ɵɵelementStart(2, "ccd-callback-errors", 2);
|
|
33493
33562
|
i0.ɵɵlistener("callbackErrorsContext", function CaseFullAccessViewComponent_Template_ccd_callback_errors_callbackErrorsContext_2_listener($event) { return ctx.callbackErrorsNotify($event); });
|
|
@@ -33501,7 +33570,7 @@ class CaseFullAccessViewComponent {
|
|
|
33501
33570
|
i0.ɵɵelementEnd();
|
|
33502
33571
|
i0.ɵɵtemplate(9, CaseFullAccessViewComponent_div_9_Template, 3, 1, "div", 9);
|
|
33503
33572
|
i0.ɵɵelementStart(10, "div", 4)(11, "div", 10);
|
|
33504
|
-
i0.ɵɵtemplate(12, CaseFullAccessViewComponent_ng_container_12_Template,
|
|
33573
|
+
i0.ɵɵtemplate(12, CaseFullAccessViewComponent_ng_container_12_Template, 9, 6, "ng-container", 11);
|
|
33505
33574
|
i0.ɵɵelementEnd()();
|
|
33506
33575
|
} if (rf & 2) {
|
|
33507
33576
|
i0.ɵɵproperty("ngIf", ctx.error && !(ctx.error.callbackErrors || ctx.error.callbackWarnings || ctx.error.details));
|
|
@@ -33525,7 +33594,7 @@ class CaseFullAccessViewComponent {
|
|
|
33525
33594
|
}
|
|
33526
33595
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFullAccessViewComponent, [{
|
|
33527
33596
|
type: Component,
|
|
33528
|
-
args: [{ selector: 'ccd-case-full-access-view', template: "<!-- 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)\" class=\"error-summary\"\n 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' | rpxTranslate}}\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.\" | rpxTranslate}}</p>\n <p>\n <a href=\"get-help\" target=\"_blank\">\n {{\"Contact us\" | rpxTranslate}}</a> {{\"if you're still having problems.\" | rpxTranslate}}\n </p>\n </div>\n</div>\n<!-- Callback error heading and error message to be displayed if there are specific error details -->\n<div *ngIf=\"error && error.details\" class=\"error-summary\" role=\"group\"\n aria-labelledby=\"edit-case-event_error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-h2 error-summary-heading\" id=\"edit-case-event_error-summary-heading\">\n {{'The callback data failed validation' | rpxTranslate}}\n </h2>\n <p>{{error.message | rpxTranslate}}</p>\n <ul *ngIf=\"error.details?.field_errors\" class=\"error-summary-list\">\n <li *ngFor=\"let fieldError of error.details.field_errors\">\n {{fieldError.message | rpxTranslate}}\n </li>\n </ul>\n</div>\n<ccd-callback-errors\n [triggerTextContinue]=\"triggerTextStart\"\n [triggerTextIgnore]=\"triggerTextIgnoreWarnings\"\n [callbackErrorsSubject]=\"callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\">\n</ccd-callback-errors>\n<ccd-activity [caseId]=\"caseDetails.case_id\" [displayMode]=\"BANNER\"></ccd-activity>\n<div class=\"grid-row\">\n <div class=\"column-one-half\">\n <ccd-case-header [caseDetails]=\"caseDetails\"></ccd-case-header>\n <div class=\"case-viewer-controls\" *ngIf=\"hasPrint && !isDraft() && isPrintEnabled()\">\n <a id=\"case-viewer-control-print\" routerLink=\"print\" class=\"button button-secondary\">{{'Print' | rpxTranslate}}</a>\n </div>\n </div>\n <div *ngIf=\"hasEventSelector\" class=\"column-one-half\">\n <ccd-event-trigger [isDisabled]=\"isTriggerButtonDisabled()\" [triggers]=\"caseDetails.triggers\"\n [triggerText]=\"triggerText\"\n [eventId]=\"eventId\"\n (onTriggerChange)=\"clearErrorsAndWarnings()\"\n (onTriggerSubmit)=\"applyTrigger($event)\"></ccd-event-trigger>\n </div>\n</div>\n<div class=\"grid-row\" *ngIf=\"activeCaseFlags && !caseFlagsExternalUser\">\n <div class=\"column-full\">\n <ccd-notification-banner [notificationBannerConfig]=\"notificationBannerConfig\" (linkClicked)=\"onLinkClicked($event)\">\n </ccd-notification-banner>\n </div>\n</div>\n<div class=\"grid-row\">\n <div class=\"column-full\">\n <ng-container *ngIf=\"hasTabsPresent()\">\n <mat-tab-group #tabGroup animationDuration=\"0ms\" (selectedIndexChange)=\"tabChanged($event)\" [disableRipple]=\"true\"\n [selectedIndex]=\"selectedTabIndex\">\n <mat-tab *ngFor=\"let tab of prependedTabs\" [id]=\"tab.id\" [label]=\"tab.label | rpxTranslate\">\n </mat-tab>\n <mat-tab *ngFor=\"let tab of sortedTabs; let curIdx=index\" [id]=\"tab.id\" [label]=\"tab.label | rpxTranslate\">\n <ng-template matTabContent>\n <table [class]=\"tab.id\" [attr.aria-label]=\"'case viewer table' | rpxTranslate\">\n <tbody>\n <ng-container *ngFor=\"let field of tab | ccdTabFields | ccdReadFieldsFilter:false :undefined :true : formGroup?.controls['data']\">\n <div ccdLabelSubstitutor [caseField]=\"field\" [contextFields]=\"caseFields\" [hidden]=\"field.hidden\">\n <ng-container [ngSwitch]=\"!(field | ccdIsCompound)\">\n <tr *ngSwitchCase=\"true\">\n <th id=\"case-viewer-field-label\" *ngIf=\"!isFieldToHaveNoLabel(field)\">\n <div class=\"case-viewer-label text-16\">\n {{field.label | rpxTranslate}}</div>\n </th>\n <td [id]=\"'case-viewer-field-read--' + field.id\" scope=\"col\">\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"formGroup?.controls['data']\"\n [caseField]=\"field\" [caseReference]=\"caseDetails.case_id\"\n [markdownUseHrefAsRouterLink]=\"markdownUseHrefAsRouterLink\">\n </ccd-field-read>\n </span>\n </td>\n </tr>\n <tr *ngSwitchCase=\"false\" class=\"compound-field\">\n <th [id]=\"'case-viewer-field-read--' + field.id\" scope=\"col\">\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"formGroup.controls['data']\"\n [caseField]=\"field\" [caseReference]=\"caseDetails.case_id\"\n [markdownUseHrefAsRouterLink]=\"markdownUseHrefAsRouterLink\">\n </ccd-field-read>\n </span>\n </th>\n </tr>\n </ng-container>\n </div>\n </ng-container>\n </tbody>\n </table>\n </ng-template>\n </mat-tab>\n <mat-tab *ngFor=\"let tab of appendedTabs\" [id]=\"tab.id\" [label]=\"tab.label | rpxTranslate\">\n </mat-tab>\n </mat-tab-group>\n <router-outlet *ngIf=\"(prependedTabs && prependedTabs.length) || (appendedTabs && appendedTabs.length)\"></router-outlet>\n </ng-container>\n </div>\n</div>\n", styles: ["th{width:1%;white-space:nowrap;vertical-align:top}.compound-field th{padding:0}.case-viewer-controls{margin-top:47px;margin-bottom:20px}ccd-case-header{float:left;margin-right:10px}ccd-event-trigger{float:right}.case-viewer-label{min-width:300px;white-space:normal}.markdown h3{margin-bottom:0}.hide-table-capion{position:absolute;visibility:hidden}\n"] }]
|
|
33597
|
+
args: [{ selector: 'ccd-case-full-access-view', template: "<!-- 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)\" class=\"error-summary\"\n 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' | rpxTranslate}}\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.\" | rpxTranslate}}</p>\n <p>\n <a href=\"get-help\" target=\"_blank\">\n {{\"Contact us\" | rpxTranslate}}</a> {{\"if you're still having problems.\" | rpxTranslate}}\n </p>\n </div>\n</div>\n<!-- Callback error heading and error message to be displayed if there are specific error details -->\n<div *ngIf=\"error && error.details\" class=\"error-summary\" role=\"group\"\n aria-labelledby=\"edit-case-event_error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-h2 error-summary-heading\" id=\"edit-case-event_error-summary-heading\">\n {{'The callback data failed validation' | rpxTranslate}}\n </h2>\n <p>{{error.message | rpxTranslate}}</p>\n <ul *ngIf=\"error.details?.field_errors\" class=\"error-summary-list\">\n <li *ngFor=\"let fieldError of error.details.field_errors\">\n {{fieldError.message | rpxTranslate}}\n </li>\n </ul>\n</div>\n<ccd-callback-errors\n [triggerTextContinue]=\"triggerTextStart\"\n [triggerTextIgnore]=\"triggerTextIgnoreWarnings\"\n [callbackErrorsSubject]=\"callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\">\n</ccd-callback-errors>\n<ccd-activity [caseId]=\"caseDetails.case_id\" [displayMode]=\"BANNER\"></ccd-activity>\n<div class=\"grid-row\">\n <div class=\"column-one-half\">\n <ccd-case-header [caseDetails]=\"caseDetails\"></ccd-case-header>\n <div class=\"case-viewer-controls\" *ngIf=\"hasPrint && !isDraft() && isPrintEnabled()\">\n <a id=\"case-viewer-control-print\" routerLink=\"print\" class=\"button button-secondary\">{{'Print' | rpxTranslate}}</a>\n </div>\n </div>\n <div *ngIf=\"hasEventSelector\" class=\"column-one-half\">\n <ccd-event-trigger [isDisabled]=\"isTriggerButtonDisabled()\" [triggers]=\"caseDetails.triggers\"\n [triggerText]=\"triggerText\"\n [eventId]=\"eventId\"\n (onTriggerChange)=\"clearErrorsAndWarnings()\"\n (onTriggerSubmit)=\"applyTrigger($event)\"></ccd-event-trigger>\n </div>\n</div>\n<div class=\"grid-row\" *ngIf=\"activeCaseFlags && !caseFlagsExternalUser\">\n <div class=\"column-full\">\n <ccd-notification-banner [notificationBannerConfig]=\"notificationBannerConfig\" (linkClicked)=\"onLinkClicked($event)\">\n </ccd-notification-banner>\n </div>\n</div>\n<div class=\"grid-row\">\n <div class=\"column-full\">\n <ng-container *ngIf=\"hasTabsPresent()\">\n <mat-tab-group #tabGroup animationDuration=\"0ms\" (selectedIndexChange)=\"tabChanged($event)\" [disableRipple]=\"true\"\n [selectedIndex]=\"selectedTabIndex\">\n <mat-tab *ngFor=\"let tab of prependedTabs\" [id]=\"tab.id\" [label]=\"tab.label | rpxTranslate\">\n </mat-tab>\n <mat-tab *ngFor=\"let tab of sortedTabs; let curIdx=index\" [id]=\"tab.id\" [label]=\"tab.label | rpxTranslate\">\n <ng-template matTabContent>\n <table [class]=\"tab.id\" [attr.aria-label]=\"'case viewer table' | rpxTranslate\">\n <tbody>\n <ng-container *ngFor=\"let field of tab | ccdTabFields | ccdReadFieldsFilter:false :undefined :true : formGroup?.controls['data']\">\n <div ccdLabelSubstitutor [caseField]=\"field\" [contextFields]=\"caseFields\" [hidden]=\"field.hidden\">\n <ng-container [ngSwitch]=\"!(field | ccdIsCompound)\">\n <tr *ngSwitchCase=\"true\">\n <th id=\"case-viewer-field-label\" *ngIf=\"!isFieldToHaveNoLabel(field)\" aria-describedby=\"tabInstruction\">\n <div class=\"case-viewer-label text-16\">\n {{field.label | rpxTranslate}}</div>\n </th>\n <td [id]=\"'case-viewer-field-read--' + field.id\" scope=\"col\">\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"formGroup?.controls['data']\"\n [caseField]=\"field\" [caseReference]=\"caseDetails.case_id\"\n [markdownUseHrefAsRouterLink]=\"markdownUseHrefAsRouterLink\">\n </ccd-field-read>\n </span>\n </td>\n </tr>\n <tr *ngSwitchCase=\"false\" class=\"compound-field\">\n <th [id]=\"'case-viewer-field-read--' + field.id\" scope=\"col\">\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"formGroup.controls['data']\"\n [caseField]=\"field\" [caseReference]=\"caseDetails.case_id\"\n [markdownUseHrefAsRouterLink]=\"markdownUseHrefAsRouterLink\">\n </ccd-field-read>\n </span>\n </th>\n </tr>\n </ng-container>\n </div>\n </ng-container>\n </tbody>\n </table>\n </ng-template>\n </mat-tab>\n <mat-tab *ngFor=\"let tab of appendedTabs\" [id]=\"tab.id\" [label]=\"tab.label | rpxTranslate\">\n </mat-tab>\n </mat-tab-group>\n <span span class=\"visuallyhidden\" id=\"tabInstruction\">To use tabbed navigation, please use left and right arrow keys</span>\n <router-outlet *ngIf=\"(prependedTabs && prependedTabs.length) || (appendedTabs && appendedTabs.length)\"></router-outlet>\n </ng-container>\n </div>\n</div>\n", styles: ["th{width:1%;white-space:nowrap;vertical-align:top}.compound-field th{padding:0}.case-viewer-controls{margin-top:47px;margin-bottom:20px}ccd-case-header{float:left;margin-right:10px}ccd-event-trigger{float:right}.case-viewer-label{min-width:300px;white-space:normal}.markdown h3{margin-bottom:0}.hide-table-capion{position:absolute;visibility:hidden}\n"] }]
|
|
33529
33598
|
}], () => [{ type: i0.NgZone }, { type: i1$1.ActivatedRoute }, { type: i1$1.Router }, { type: NavigationNotifierService }, { type: OrderService }, { type: ActivityPollingService }, { type: i1$3.MatLegacyDialog }, { type: AlertService }, { type: DraftService }, { type: ErrorNotifierService }, { type: ConvertHrefToRouterService }, { type: i5.Location }, { type: i0.ChangeDetectorRef }, { type: SessionStorageService }, { type: i1.RpxTranslatePipe }], { hasPrint: [{
|
|
33530
33599
|
type: Input
|
|
33531
33600
|
}], hasEventSelector: [{
|
|
@@ -33854,7 +33923,7 @@ function ErrorMessageComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
33854
33923
|
class ErrorMessageComponent {
|
|
33855
33924
|
error;
|
|
33856
33925
|
static ɵfac = function ErrorMessageComponent_Factory(t) { return new (t || ErrorMessageComponent)(); };
|
|
33857
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ErrorMessageComponent, selectors: [["exui-error-message"]], inputs: { error: "error" }, decls: 1, vars: 1, consts: [[4, "ngIf"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], ["routerLink", ".",
|
|
33926
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ErrorMessageComponent, selectors: [["exui-error-message"]], inputs: { error: "error" }, decls: 1, vars: 1, consts: [[4, "ngIf"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], ["routerLink", ".", 3, "fragment"]], template: function ErrorMessageComponent_Template(rf, ctx) { if (rf & 1) {
|
|
33858
33927
|
i0.ɵɵtemplate(0, ErrorMessageComponent_ng_container_0_Template, 11, 7, "ng-container", 0);
|
|
33859
33928
|
} if (rf & 2) {
|
|
33860
33929
|
i0.ɵɵproperty("ngIf", ctx.error);
|
|
@@ -33862,7 +33931,7 @@ class ErrorMessageComponent {
|
|
|
33862
33931
|
}
|
|
33863
33932
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ErrorMessageComponent, [{
|
|
33864
33933
|
type: Component,
|
|
33865
|
-
args: [{ selector: 'exui-error-message', template: "<!-- Cloned from rpx-xui-webapp src/app/components/error-message/error-message.component.html -->\n<ng-container *ngIf=\"error\">\n <div class=\"govuk-error-summary\" aria-labelledby=\"error-summary-title\" role=\"alert\" tabindex=\"-1\" data-module=\"govuk-error-summary\">\n <h2 class=\"govuk-error-summary__title\" id=\"error-summary-title\">{{error.title | rpxTranslate}}</h2>\n <div class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li>\n <a routerLink=\".\"
|
|
33934
|
+
args: [{ selector: 'exui-error-message', template: "<!-- Cloned from rpx-xui-webapp src/app/components/error-message/error-message.component.html -->\n<ng-container *ngIf=\"error\">\n <div class=\"govuk-error-summary\" aria-labelledby=\"error-summary-title\" role=\"alert\" tabindex=\"-1\" data-module=\"govuk-error-summary\">\n <h2 class=\"govuk-error-summary__title\" id=\"error-summary-title\">{{error.title | rpxTranslate}}</h2>\n <div class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li>\n <a routerLink=\".\" [fragment]=\"error.fieldId\">{{error.description | rpxTranslate}}</a>\n </li>\n </ul>\n </div>\n </div>\n</ng-container>\n" }]
|
|
33866
33935
|
}], null, { error: [{
|
|
33867
33936
|
type: Input
|
|
33868
33937
|
}] }); })();
|
|
@@ -37041,10 +37110,10 @@ function SearchResultComponent_table_0_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
37041
37110
|
i0.ɵɵadvance(4);
|
|
37042
37111
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 4, "Reset case selection"));
|
|
37043
37112
|
} }
|
|
37044
|
-
function
|
|
37113
|
+
function SearchResultComponent_table_0_td_10_Template(rf, ctx) { if (rf & 1) {
|
|
37045
37114
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
37046
|
-
i0.ɵɵelementStart(0, "
|
|
37047
|
-
i0.ɵɵlistener("change", function
|
|
37115
|
+
i0.ɵɵelementStart(0, "td", 21)(1, "div", 22)(2, "input", 23);
|
|
37116
|
+
i0.ɵɵlistener("change", function SearchResultComponent_table_0_td_10_Template_input_change_2_listener() { i0.ɵɵrestoreView(_r3); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.selectAll()); });
|
|
37048
37117
|
i0.ɵɵelementEnd();
|
|
37049
37118
|
i0.ɵɵelement(3, "label", 24);
|
|
37050
37119
|
i0.ɵɵelementEnd()();
|
|
@@ -37052,6 +37121,8 @@ function SearchResultComponent_table_0_th_10_Template(rf, ctx) { if (rf & 1) {
|
|
|
37052
37121
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
37053
37122
|
i0.ɵɵadvance(2);
|
|
37054
37123
|
i0.ɵɵproperty("checked", ctx_r0.allOnPageSelected())("disabled", !ctx_r0.canAnyBeShared());
|
|
37124
|
+
i0.ɵɵadvance();
|
|
37125
|
+
i0.ɵɵattribute("aria-labelledby", "select-all");
|
|
37055
37126
|
} }
|
|
37056
37127
|
function SearchResultComponent_table_0_th_11_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
37057
37128
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
@@ -37089,10 +37160,10 @@ function SearchResultComponent_table_0_th_12_Template(rf, ctx) { if (rf & 1) {
|
|
|
37089
37160
|
} }
|
|
37090
37161
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template(rf, ctx) { if (rf & 1) {
|
|
37091
37162
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
37092
|
-
i0.ɵɵelementStart(0, "td",
|
|
37163
|
+
i0.ɵɵelementStart(0, "td", 34)(1, "div", 22)(2, "input", 35);
|
|
37093
37164
|
i0.ɵɵlistener("change", function SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template_input_change_2_listener() { i0.ɵɵrestoreView(_r7); const result_r8 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.changeSelection(result_r8)); });
|
|
37094
37165
|
i0.ɵɵelementEnd();
|
|
37095
|
-
i0.ɵɵelement(3, "label",
|
|
37166
|
+
i0.ɵɵelement(3, "label", 36);
|
|
37096
37167
|
i0.ɵɵelementEnd()();
|
|
37097
37168
|
} if (rf & 2) {
|
|
37098
37169
|
const result_r8 = i0.ɵɵnextContext().$implicit;
|
|
@@ -37103,9 +37174,10 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template(rf, ct
|
|
|
37103
37174
|
i0.ɵɵproperty("checked", ctx_r0.isSelected(result_r8))("disabled", !ctx_r0.canBeShared(result_r8));
|
|
37104
37175
|
i0.ɵɵadvance();
|
|
37105
37176
|
i0.ɵɵpropertyInterpolate1("for", "select-", result_r8.case_id, "");
|
|
37177
|
+
i0.ɵɵattribute("aria-labelledby", "select-" + result_r8.case_id);
|
|
37106
37178
|
} }
|
|
37107
37179
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template(rf, ctx) { if (rf & 1) {
|
|
37108
|
-
i0.ɵɵelement(0, "ccd-field-read",
|
|
37180
|
+
i0.ɵɵelement(0, "ccd-field-read", 44);
|
|
37109
37181
|
} if (rf & 2) {
|
|
37110
37182
|
const col_r9 = i0.ɵɵnextContext(3).$implicit;
|
|
37111
37183
|
const result_r8 = i0.ɵɵnextContext().$implicit;
|
|
@@ -37120,8 +37192,8 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_containe
|
|
|
37120
37192
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, result_r8.case_id));
|
|
37121
37193
|
} }
|
|
37122
37194
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
37123
|
-
i0.ɵɵelementContainerStart(0,
|
|
37124
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template, 1, 4, "ccd-field-read",
|
|
37195
|
+
i0.ɵɵelementContainerStart(0, 42);
|
|
37196
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template, 1, 4, "ccd-field-read", 43)(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_ng_template_2_Template, 2, 3, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
37125
37197
|
i0.ɵɵelementContainerEnd();
|
|
37126
37198
|
} if (rf & 2) {
|
|
37127
37199
|
const case_reference_r10 = i0.ɵɵreference(3);
|
|
@@ -37132,9 +37204,9 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_containe
|
|
|
37132
37204
|
i0.ɵɵproperty("ngIf", ctx_r0.draftPrefixOrGet(col_r9, result_r8))("ngIfElse", case_reference_r10);
|
|
37133
37205
|
} }
|
|
37134
37206
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template(rf, ctx) { if (rf & 1) {
|
|
37135
|
-
i0.ɵɵelementStart(0, "a",
|
|
37207
|
+
i0.ɵɵelementStart(0, "a", 40);
|
|
37136
37208
|
i0.ɵɵpipe(1, "ccdCaseReference");
|
|
37137
|
-
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container",
|
|
37209
|
+
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container", 41);
|
|
37138
37210
|
i0.ɵɵelementEnd();
|
|
37139
37211
|
} if (rf & 2) {
|
|
37140
37212
|
const result_r8 = i0.ɵɵnextContext(2).$implicit;
|
|
@@ -37145,8 +37217,8 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template(rf
|
|
|
37145
37217
|
i0.ɵɵproperty("ngIf", !ctx_r0.hideRows);
|
|
37146
37218
|
} }
|
|
37147
37219
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
37148
|
-
i0.ɵɵelementStart(0, "div",
|
|
37149
|
-
i0.ɵɵelement(1, "ccd-field-read",
|
|
37220
|
+
i0.ɵɵelementStart(0, "div", 42);
|
|
37221
|
+
i0.ɵɵelement(1, "ccd-field-read", 44);
|
|
37150
37222
|
i0.ɵɵelementEnd();
|
|
37151
37223
|
} if (rf & 2) {
|
|
37152
37224
|
const col_r9 = i0.ɵɵnextContext().$implicit;
|
|
@@ -37157,8 +37229,8 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_div_2_Template(
|
|
|
37157
37229
|
i0.ɵɵproperty("caseField", result_r8.columns[col_r9.case_field_id])("contextFields", result_r8.hydrated_case_fields)("elementsToSubstitute", i0.ɵɵpureFunction0(5, _c1));
|
|
37158
37230
|
} }
|
|
37159
37231
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_Template(rf, ctx) { if (rf & 1) {
|
|
37160
|
-
i0.ɵɵelementStart(0, "td",
|
|
37161
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template, 3, 6, "a",
|
|
37232
|
+
i0.ɵɵelementStart(0, "td", 37);
|
|
37233
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_a_1_Template, 3, 6, "a", 38)(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_div_2_Template, 2, 6, "div", 39);
|
|
37162
37234
|
i0.ɵɵelementEnd();
|
|
37163
37235
|
} if (rf & 2) {
|
|
37164
37236
|
const colIndex_r11 = ctx.index;
|
|
@@ -37169,7 +37241,7 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_2_Template(rf, ct
|
|
|
37169
37241
|
} }
|
|
37170
37242
|
function SearchResultComponent_table_0_ng_container_14_tr_1_td_3_Template(rf, ctx) { if (rf & 1) {
|
|
37171
37243
|
i0.ɵɵelementStart(0, "td")(1, "div");
|
|
37172
|
-
i0.ɵɵelement(2, "ccd-activity",
|
|
37244
|
+
i0.ɵɵelement(2, "ccd-activity", 45);
|
|
37173
37245
|
i0.ɵɵelementEnd()();
|
|
37174
37246
|
} if (rf & 2) {
|
|
37175
37247
|
const result_r8 = i0.ɵɵnextContext().$implicit;
|
|
@@ -37181,7 +37253,7 @@ function SearchResultComponent_table_0_ng_container_14_tr_1_td_3_Template(rf, ct
|
|
|
37181
37253
|
} }
|
|
37182
37254
|
function SearchResultComponent_table_0_ng_container_14_tr_1_Template(rf, ctx) { if (rf & 1) {
|
|
37183
37255
|
i0.ɵɵelementStart(0, "tr");
|
|
37184
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template, 4,
|
|
37256
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_14_tr_1_td_1_Template, 4, 9, "td", 32)(2, SearchResultComponent_table_0_ng_container_14_tr_1_td_2_Template, 3, 2, "td", 33)(3, SearchResultComponent_table_0_ng_container_14_tr_1_td_3_Template, 3, 4, "td", 1);
|
|
37185
37257
|
i0.ɵɵelementEnd();
|
|
37186
37258
|
} if (rf & 2) {
|
|
37187
37259
|
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
@@ -37204,10 +37276,10 @@ function SearchResultComponent_table_0_ng_container_14_Template(rf, ctx) { if (r
|
|
|
37204
37276
|
} }
|
|
37205
37277
|
function SearchResultComponent_table_0_ng_container_15_tr_1_td_1_Template(rf, ctx) { if (rf & 1) {
|
|
37206
37278
|
const _r12 = i0.ɵɵgetCurrentView();
|
|
37207
|
-
i0.ɵɵelementStart(0, "td",
|
|
37279
|
+
i0.ɵɵelementStart(0, "td", 34)(1, "div", 22)(2, "input", 46);
|
|
37208
37280
|
i0.ɵɵlistener("change", function SearchResultComponent_table_0_ng_container_15_tr_1_td_1_Template_input_change_2_listener() { i0.ɵɵrestoreView(_r12); const result_r13 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.changeSelection(result_r13)); })("keyup", function SearchResultComponent_table_0_ng_container_15_tr_1_td_1_Template_input_keyup_2_listener($event) { i0.ɵɵrestoreView(_r12); const result_r13 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.onKeyUp($event, result_r13)); });
|
|
37209
37281
|
i0.ɵɵelementEnd();
|
|
37210
|
-
i0.ɵɵelement(3, "label",
|
|
37282
|
+
i0.ɵɵelement(3, "label", 36);
|
|
37211
37283
|
i0.ɵɵelementEnd()();
|
|
37212
37284
|
} if (rf & 2) {
|
|
37213
37285
|
const result_r13 = i0.ɵɵnextContext().$implicit;
|
|
@@ -37218,9 +37290,10 @@ function SearchResultComponent_table_0_ng_container_15_tr_1_td_1_Template(rf, ct
|
|
|
37218
37290
|
i0.ɵɵproperty("checked", ctx_r0.isSelected(result_r13))("disabled", !ctx_r0.canBeShared(result_r13));
|
|
37219
37291
|
i0.ɵɵadvance();
|
|
37220
37292
|
i0.ɵɵpropertyInterpolate1("for", "select-", result_r13.case_id, "");
|
|
37293
|
+
i0.ɵɵattribute("aria-labelledby", "select-" + result_r13.case_id);
|
|
37221
37294
|
} }
|
|
37222
37295
|
function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template(rf, ctx) { if (rf & 1) {
|
|
37223
|
-
i0.ɵɵelement(0, "ccd-field-read",
|
|
37296
|
+
i0.ɵɵelement(0, "ccd-field-read", 44);
|
|
37224
37297
|
} if (rf & 2) {
|
|
37225
37298
|
const col_r14 = i0.ɵɵnextContext(3).$implicit;
|
|
37226
37299
|
const result_r13 = i0.ɵɵnextContext().$implicit;
|
|
@@ -37235,8 +37308,8 @@ function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_containe
|
|
|
37235
37308
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(1, 1, result_r13.case_id));
|
|
37236
37309
|
} }
|
|
37237
37310
|
function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
37238
|
-
i0.ɵɵelementContainerStart(0,
|
|
37239
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template, 1, 4, "ccd-field-read",
|
|
37311
|
+
i0.ɵɵelementContainerStart(0, 42);
|
|
37312
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_container_2_ccd_field_read_1_Template, 1, 4, "ccd-field-read", 43)(2, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_container_2_ng_template_2_Template, 2, 3, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
37240
37313
|
i0.ɵɵelementContainerEnd();
|
|
37241
37314
|
} if (rf & 2) {
|
|
37242
37315
|
const case_reference_r15 = i0.ɵɵreference(3);
|
|
@@ -37247,9 +37320,9 @@ function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_containe
|
|
|
37247
37320
|
i0.ɵɵproperty("ngIf", ctx_r0.draftPrefixOrGet(col_r14, result_r13))("ngIfElse", case_reference_r15);
|
|
37248
37321
|
} }
|
|
37249
37322
|
function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_Template(rf, ctx) { if (rf & 1) {
|
|
37250
|
-
i0.ɵɵelementStart(0, "a",
|
|
37323
|
+
i0.ɵɵelementStart(0, "a", 40);
|
|
37251
37324
|
i0.ɵɵpipe(1, "ccdCaseReference");
|
|
37252
|
-
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container",
|
|
37325
|
+
i0.ɵɵtemplate(2, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_ng_container_2_Template, 4, 2, "ng-container", 41);
|
|
37253
37326
|
i0.ɵɵelementEnd();
|
|
37254
37327
|
} if (rf & 2) {
|
|
37255
37328
|
const result_r13 = i0.ɵɵnextContext(2).$implicit;
|
|
@@ -37260,8 +37333,8 @@ function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_Template(rf
|
|
|
37260
37333
|
i0.ɵɵproperty("ngIf", !ctx_r0.hideRows);
|
|
37261
37334
|
} }
|
|
37262
37335
|
function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
37263
|
-
i0.ɵɵelementStart(0, "div",
|
|
37264
|
-
i0.ɵɵelement(1, "ccd-field-read",
|
|
37336
|
+
i0.ɵɵelementStart(0, "div", 42);
|
|
37337
|
+
i0.ɵɵelement(1, "ccd-field-read", 44);
|
|
37265
37338
|
i0.ɵɵelementEnd();
|
|
37266
37339
|
} if (rf & 2) {
|
|
37267
37340
|
const col_r14 = i0.ɵɵnextContext().$implicit;
|
|
@@ -37272,8 +37345,8 @@ function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_div_2_Template(
|
|
|
37272
37345
|
i0.ɵɵproperty("caseField", result_r13.columns[col_r14.case_field_id])("contextFields", result_r13.hydrated_case_fields)("elementsToSubstitute", i0.ɵɵpureFunction0(5, _c1));
|
|
37273
37346
|
} }
|
|
37274
37347
|
function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_Template(rf, ctx) { if (rf & 1) {
|
|
37275
|
-
i0.ɵɵelementStart(0, "td",
|
|
37276
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_Template, 3, 6, "a",
|
|
37348
|
+
i0.ɵɵelementStart(0, "td", 37);
|
|
37349
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_a_1_Template, 3, 6, "a", 38)(2, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_div_2_Template, 2, 6, "div", 39);
|
|
37277
37350
|
i0.ɵɵelementEnd();
|
|
37278
37351
|
} if (rf & 2) {
|
|
37279
37352
|
const colIndex_r16 = ctx.index;
|
|
@@ -37284,7 +37357,7 @@ function SearchResultComponent_table_0_ng_container_15_tr_1_td_2_Template(rf, ct
|
|
|
37284
37357
|
} }
|
|
37285
37358
|
function SearchResultComponent_table_0_ng_container_15_tr_1_td_3_Template(rf, ctx) { if (rf & 1) {
|
|
37286
37359
|
i0.ɵɵelementStart(0, "td")(1, "div");
|
|
37287
|
-
i0.ɵɵelement(2, "ccd-activity",
|
|
37360
|
+
i0.ɵɵelement(2, "ccd-activity", 45);
|
|
37288
37361
|
i0.ɵɵelementEnd()();
|
|
37289
37362
|
} if (rf & 2) {
|
|
37290
37363
|
const result_r13 = i0.ɵɵnextContext().$implicit;
|
|
@@ -37296,7 +37369,7 @@ function SearchResultComponent_table_0_ng_container_15_tr_1_td_3_Template(rf, ct
|
|
|
37296
37369
|
} }
|
|
37297
37370
|
function SearchResultComponent_table_0_ng_container_15_tr_1_Template(rf, ctx) { if (rf & 1) {
|
|
37298
37371
|
i0.ɵɵelementStart(0, "tr");
|
|
37299
|
-
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_td_1_Template, 4,
|
|
37372
|
+
i0.ɵɵtemplate(1, SearchResultComponent_table_0_ng_container_15_tr_1_td_1_Template, 4, 9, "td", 32)(2, SearchResultComponent_table_0_ng_container_15_tr_1_td_2_Template, 3, 2, "td", 33)(3, SearchResultComponent_table_0_ng_container_15_tr_1_td_3_Template, 3, 4, "td", 1);
|
|
37300
37373
|
i0.ɵɵelementEnd();
|
|
37301
37374
|
} if (rf & 2) {
|
|
37302
37375
|
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
@@ -37326,7 +37399,7 @@ function SearchResultComponent_table_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
37326
37399
|
i0.ɵɵtemplate(5, SearchResultComponent_table_0_div_5_Template, 11, 12, "div", 5)(6, SearchResultComponent_table_0_div_6_Template, 18, 18, "div", 6)(7, SearchResultComponent_table_0_div_7_Template, 6, 6, "div", 7);
|
|
37327
37400
|
i0.ɵɵelementEnd();
|
|
37328
37401
|
i0.ɵɵelementStart(8, "thead")(9, "tr", 8);
|
|
37329
|
-
i0.ɵɵtemplate(10,
|
|
37402
|
+
i0.ɵɵtemplate(10, SearchResultComponent_table_0_td_10_Template, 4, 3, "td", 9)(11, SearchResultComponent_table_0_th_11_Template, 6, 5, "th", 10)(12, SearchResultComponent_table_0_th_12_Template, 2, 0, "th", 11);
|
|
37330
37403
|
i0.ɵɵelementEnd()();
|
|
37331
37404
|
i0.ɵɵelementStart(13, "tbody");
|
|
37332
37405
|
i0.ɵɵtemplate(14, SearchResultComponent_table_0_ng_container_14_Template, 3, 8, "ng-container", 1)(15, SearchResultComponent_table_0_ng_container_15_Template, 4, 11, "ng-container", 1);
|
|
@@ -37354,7 +37427,7 @@ function SearchResultComponent_table_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
37354
37427
|
} }
|
|
37355
37428
|
function SearchResultComponent_ccd_pagination_1_Template(rf, ctx) { if (rf & 1) {
|
|
37356
37429
|
const _r17 = i0.ɵɵgetCurrentView();
|
|
37357
|
-
i0.ɵɵelementStart(0, "ccd-pagination",
|
|
37430
|
+
i0.ɵɵelementStart(0, "ccd-pagination", 47);
|
|
37358
37431
|
i0.ɵɵlistener("pageChange", function SearchResultComponent_ccd_pagination_1_Template_ccd_pagination_pageChange_0_listener($event) { i0.ɵɵrestoreView(_r17); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.goToPage($event)); });
|
|
37359
37432
|
i0.ɵɵelementEnd();
|
|
37360
37433
|
} if (rf & 2) {
|
|
@@ -37362,7 +37435,7 @@ function SearchResultComponent_ccd_pagination_1_Template(rf, ctx) { if (rf & 1)
|
|
|
37362
37435
|
i0.ɵɵproperty("visibilityLabel", ctx_r0.hideRows ? "hidden" : "visible")("autoHide", true)("maxSize", 8)("screenReaderPaginationLabel", "Pagination")("screenReaderPageLabel", ctx_r0.page)("screenReaderCurrentLabel", "You're on page");
|
|
37363
37436
|
} }
|
|
37364
37437
|
function SearchResultComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
37365
|
-
i0.ɵɵelementStart(0, "div",
|
|
37438
|
+
i0.ɵɵelementStart(0, "div", 48);
|
|
37366
37439
|
i0.ɵɵpipe(1, "rpxTranslate");
|
|
37367
37440
|
i0.ɵɵtext(2);
|
|
37368
37441
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
@@ -37713,7 +37786,7 @@ class SearchResultComponent {
|
|
|
37713
37786
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
37714
37787
|
noop() { }
|
|
37715
37788
|
static ɵfac = function SearchResultComponent_Factory(t) { return new (t || SearchResultComponent)(i0.ɵɵdirectiveInject(SearchResultViewItemComparatorFactory), i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(ActivityService), i0.ɵɵdirectiveInject(CaseReferencePipe), i0.ɵɵdirectiveInject(PlaceholderService), i0.ɵɵdirectiveInject(BrowserService), i0.ɵɵdirectiveInject(SessionStorageService)); };
|
|
37716
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SearchResultComponent, selectors: [["ccd-search-result"]], inputs: { caseLinkUrlTemplate: "caseLinkUrlTemplate", jurisdiction: "jurisdiction", caseType: "caseType", caseState: "caseState", caseFilterFG: "caseFilterFG", resultView: "resultView", page: "page", paginationMetadata: "paginationMetadata", metadataFields: "metadataFields", selectionEnabled: "selectionEnabled", showOnlySelected: "showOnlySelected", preSelectedCases: "preSelectedCases", consumerSortingEnabled: "consumerSortingEnabled" }, outputs: { selection: "selection", changePage: "changePage", clickCase: "clickCase", sortHandler: "sortHandler" }, features: [i0.ɵɵNgOnChangesFeature], decls: 3, vars: 3, consts: [["case_reference", ""], [4, "ngIf"], [3, "visibilityLabel", "autoHide", "maxSize", "screenReaderPaginationLabel", "screenReaderPageLabel", "screenReaderCurrentLabel", "pageChange", 4, "ngIf"], ["class", "notification", 4, "ngIf"], ["id", "search-result-heading__text", "tabindex", "-1", 1, "heading-h2"], ["class", "govuk-warning-text pagination-limit-warning", 4, "ngIf"], ["class", "pagination-top", 4, "ngIf"], ["class", "reset-selection", 4, "ngIf"], ["scope", "row"], ["class", "govuk-table__checkbox",
|
|
37789
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SearchResultComponent, selectors: [["ccd-search-result"]], inputs: { caseLinkUrlTemplate: "caseLinkUrlTemplate", jurisdiction: "jurisdiction", caseType: "caseType", caseState: "caseState", caseFilterFG: "caseFilterFG", resultView: "resultView", page: "page", paginationMetadata: "paginationMetadata", metadataFields: "metadataFields", selectionEnabled: "selectionEnabled", showOnlySelected: "showOnlySelected", preSelectedCases: "preSelectedCases", consumerSortingEnabled: "consumerSortingEnabled" }, outputs: { selection: "selection", changePage: "changePage", clickCase: "clickCase", sortHandler: "sortHandler" }, features: [i0.ɵɵNgOnChangesFeature], decls: 3, vars: 3, consts: [["case_reference", ""], [4, "ngIf"], [3, "visibilityLabel", "autoHide", "maxSize", "screenReaderPaginationLabel", "screenReaderPageLabel", "screenReaderCurrentLabel", "pageChange", 4, "ngIf"], ["class", "notification", 4, "ngIf"], ["id", "search-result-heading__text", "tabindex", "-1", 1, "heading-h2"], ["class", "govuk-warning-text pagination-limit-warning", 4, "ngIf"], ["class", "pagination-top", 4, "ngIf"], ["class", "reset-selection", 4, "ngIf"], ["scope", "row"], ["class", "govuk-table__checkbox", 4, "ngIf"], ["class", "search-result-column-header", "scope", "col", 4, "ngFor", "ngForOf"], ["style", "width: 110px;", "scope", "col", 4, "ngIf"], [1, "govuk-warning-text", "pagination-limit-warning"], ["aria-hidden", "true", 1, "govuk-warning-text__icon"], [1, "govuk-warning-text__text"], [1, "govuk-warning-text__assistive"], [1, "pagination-top"], ["id", "search-result-summary__text", 1, "text-16"], [1, "govuk-!-font-weight-bold"], [1, "reset-selection"], ["href", "javascript:void(0)", 1, "search-result-reset-link", 3, "click"], [1, "govuk-table__checkbox"], [1, "govuk-checkboxes__item"], ["id", "select-all", "name", "select-all", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "change", "checked", "disabled"], ["for", "select-all", 1, "govuk-label", "govuk-checkboxes__label"], ["scope", "col", 1, "search-result-column-header"], [1, "search-result-column-label", 3, "click", "keyup"], ["class", "search-result-column-sort", 4, "ngIf"], [1, "search-result-column-sort"], ["href", "javascript:void(0)", 1, "sort-widget", 3, "click", "innerHTML"], ["scope", "col", 2, "width", "110px"], [4, "ngFor", "ngForOf"], ["class", "govuk-table__checkbox", "scope", "col", 4, "ngIf"], ["class", "search-result-column-cell", "scope", "row", 4, "ngFor", "ngForOf"], ["scope", "col", 1, "govuk-table__checkbox"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "change", "id", "name", "checked", "disabled"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"], ["scope", "row", 1, "search-result-column-cell"], ["class", "govuk-link", 3, "routerLink", 4, "ngIf"], ["class", "text-16", 3, "visibility", 4, "ngIf"], [1, "govuk-link", 3, "routerLink"], ["class", "text-16", 4, "ngIf"], [1, "text-16"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "elementsToSubstitute", 4, "ngIf", "ngIfElse"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "elementsToSubstitute"], [3, "caseId", "displayMode"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "change", "keyup", "id", "name", "checked", "disabled"], [3, "pageChange", "visibilityLabel", "autoHide", "maxSize", "screenReaderPaginationLabel", "screenReaderPageLabel", "screenReaderCurrentLabel"], [1, "notification"]], template: function SearchResultComponent_Template(rf, ctx) { if (rf & 1) {
|
|
37717
37790
|
i0.ɵɵtemplate(0, SearchResultComponent_table_0_Template, 16, 11, "table", 1)(1, SearchResultComponent_ccd_pagination_1_Template, 1, 6, "ccd-pagination", 2)(2, SearchResultComponent_div_2_Template, 4, 6, "div", 3);
|
|
37718
37791
|
} if (rf & 2) {
|
|
37719
37792
|
i0.ɵɵproperty("ngIf", ctx.hasResults() || ctx.hasDrafts());
|
|
@@ -37725,7 +37798,7 @@ class SearchResultComponent {
|
|
|
37725
37798
|
}
|
|
37726
37799
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SearchResultComponent, [{
|
|
37727
37800
|
type: Component,
|
|
37728
|
-
args: [{ selector: 'ccd-search-result', template: "<table *ngIf=\"hasResults() || hasDrafts()\">\n <caption>\n <h2 class=\"heading-h2\" id=\"search-result-heading__text\" tabindex=\"-1\">{{ (caseState ? 'Your cases' : 'Search result') | rpxTranslate}}</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' | rpxTranslate}}</span>\n {{'The total size of the result set is' | rpxTranslate}} {{paginationMetadata.totalResultsCount | number}}. {{'Only the first 10,000 records are available for display.' | rpxTranslate}}\n </strong>\n </div>\n\n <div *ngIf=\"(hasResults() || hasDrafts())\" class=\"pagination-top\">\n <output [attr.aria-label]=\"getTotalResults() + ' results have been found' | rpxTranslate\"></output>\n <span class=\"text-16\" id=\"search-result-summary__text\">{{'Showing' | rpxTranslate}}\n <span class=\"govuk-!-font-weight-bold\">{{ getFirstResult() }}</span>\n {{'to' | rpxTranslate}}\n <span class=\"govuk-!-font-weight-bold\">{{ getLastResult() }}</span>\n {{'of' | rpxTranslate}}\n <span class=\"govuk-!-font-weight-bold\">{{ getTotalResults() }}</span> {{'results' | rpxTranslate}}</span>\n </div>\n <div *ngIf=\"(hasResults() || hasDrafts()) && selectionEnabled\" class=\"reset-selection\"\n [attr.aria-label]=\"'Reset selection' | rpxTranslate\">\n <span><a class=\"search-result-reset-link\" href=\"javascript:void(0)\" (click)=\"clearSelection()\">{{'Reset case selection' | rpxTranslate}}</a></span>\n </div>\n </caption>\n <thead>\n <tr scope=\"row\">\n <
|
|
37801
|
+
args: [{ selector: 'ccd-search-result', template: "<table *ngIf=\"hasResults() || hasDrafts()\">\n <caption>\n <h2 class=\"heading-h2\" id=\"search-result-heading__text\" tabindex=\"-1\">{{ (caseState ? 'Your cases' : 'Search result') | rpxTranslate}}</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' | rpxTranslate}}</span>\n {{'The total size of the result set is' | rpxTranslate}} {{paginationMetadata.totalResultsCount | number}}. {{'Only the first 10,000 records are available for display.' | rpxTranslate}}\n </strong>\n </div>\n\n <div *ngIf=\"(hasResults() || hasDrafts())\" class=\"pagination-top\">\n <output [attr.aria-label]=\"getTotalResults() + ' results have been found' | rpxTranslate\"></output>\n <span class=\"text-16\" id=\"search-result-summary__text\">{{'Showing' | rpxTranslate}}\n <span class=\"govuk-!-font-weight-bold\">{{ getFirstResult() }}</span>\n {{'to' | rpxTranslate}}\n <span class=\"govuk-!-font-weight-bold\">{{ getLastResult() }}</span>\n {{'of' | rpxTranslate}}\n <span class=\"govuk-!-font-weight-bold\">{{ getTotalResults() }}</span> {{'results' | rpxTranslate}}</span>\n </div>\n <div *ngIf=\"(hasResults() || hasDrafts()) && selectionEnabled\" class=\"reset-selection\"\n [attr.aria-label]=\"'Reset selection' | rpxTranslate\">\n <span><a class=\"search-result-reset-link\" href=\"javascript:void(0)\" (click)=\"clearSelection()\">{{'Reset case selection' | rpxTranslate}}</a></span>\n </div>\n </caption>\n <thead>\n <tr scope=\"row\">\n <td *ngIf=\"selectionEnabled\" class=\"govuk-table__checkbox\">\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\" [attr.aria-labelledby]=\"'select-all'\">\n </label>\n </div>\n </td>\n <th *ngFor=\"let col of resultView.columns\" class=\"search-result-column-header\"\n [attr.aria-sort]=\"isSortAscending(col) === null ? null : (isSortAscending(col) ? 'ascending' : 'descending')\" scope=\"col\">\n <div>\n <div class=\"search-result-column-label\" (click)=\"sort(col)\" (keyup)=\"noop()\">\n {{col.label | rpxTranslate}}\n </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 </div>\n </th>\n <th *ngIf=\"activityEnabled()\" style=\"width: 110px;\" scope=\"col\">​</th>\n </tr>\n </thead>\n\n <tbody>\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 }}\" [attr.aria-labelledby]=\"'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 }}\" [attr.aria-labelledby]=\"'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[attr.aria-describedby]=\"'No cases found. Try using different filters.' | rpxTranslate\">\n{{'No cases found. Try using different filters.' | rpxTranslate}}\n</div>\n", styles: ["table thead tr th{vertical-align:top}table tbody tr td{font-size:16px;word-wrap:break-word}table tbody tr td a{float:left}table .caseid-col{white-space:nowrap}.notification{text-align:center;padding:30px 0;margin-top:75px}a:hover{color:#005ea5}.search-result-reset-link{padding-right:15px;padding-left:15px}.search-result-column-header{width:unset;table-layout:normal}.search-result-column-header div{display:table-cell;width:auto}@media screen and (max-width: 379px){.search-result-column-header div{display:block;float:right}}.search-result-column-label{font-size:16px;font-weight:700;word-wrap:break-word;cursor:pointer;padding-right:15px}.search-result-column-sort{font-size:16px}.sort-widget{cursor:pointer;text-decoration:none;color:#231f20}span.heading-medium{margin-top:-20px}.govuk-table__checkbox{vertical-align:middle;padding-left:3px}#search-result-heading__text:focus{outline:none}\n"] }]
|
|
37729
37802
|
}], () => [{ type: SearchResultViewItemComparatorFactory }, { type: AbstractAppConfig }, { type: ActivityService }, { type: CaseReferencePipe }, { type: PlaceholderService }, { type: BrowserService }, { type: SessionStorageService }], { caseLinkUrlTemplate: [{
|
|
37730
37803
|
type: Input
|
|
37731
37804
|
}], jurisdiction: [{
|