@hmcts/ccd-case-ui-toolkit 7.3.68-govuk3 → 7.3.68-govuk4
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.
|
@@ -37407,21 +37407,21 @@ class CasePrinterComponent {
|
|
|
37407
37407
|
}], () => [{ type: CaseNotifier }, { type: CasesService }, { type: AlertService }], null); })();
|
|
37408
37408
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CasePrinterComponent, { className: "CasePrinterComponent", filePath: "lib/shared/components/case-viewer/printer/case-printer.component.ts", lineNumber: 15 }); })();
|
|
37409
37409
|
|
|
37410
|
-
function
|
|
37411
|
-
i0.ɵɵelement(0, "ccd-case-basic-access-view",
|
|
37410
|
+
function CaseViewerComponent_main_0_ccd_case_basic_access_view_1_Template(rf, ctx) { if (rf & 1) {
|
|
37411
|
+
i0.ɵɵelement(0, "ccd-case-basic-access-view", 4);
|
|
37412
37412
|
} if (rf & 2) {
|
|
37413
37413
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
37414
37414
|
i0.ɵɵproperty("accessType", ctx_r0.userAccessType)("caseDetails", ctx_r0.caseDetails);
|
|
37415
37415
|
} }
|
|
37416
|
-
function
|
|
37417
|
-
i0.ɵɵelement(0, "ccd-case-full-access-view",
|
|
37416
|
+
function CaseViewerComponent_main_0_ccd_case_full_access_view_2_Template(rf, ctx) { if (rf & 1) {
|
|
37417
|
+
i0.ɵɵelement(0, "ccd-case-full-access-view", 5);
|
|
37418
37418
|
} if (rf & 2) {
|
|
37419
37419
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
37420
37420
|
i0.ɵɵproperty("caseDetails", ctx_r0.caseDetails)("hasPrint", ctx_r0.hasPrint)("hasEventSelector", ctx_r0.hasEventSelector)("prependedTabs", ctx_r0.prependedTabs)("appendedTabs", ctx_r0.appendedTabs);
|
|
37421
37421
|
} }
|
|
37422
|
-
function
|
|
37423
|
-
i0.ɵɵelementStart(0, "
|
|
37424
|
-
i0.ɵɵtemplate(1,
|
|
37422
|
+
function CaseViewerComponent_main_0_Template(rf, ctx) { if (rf & 1) {
|
|
37423
|
+
i0.ɵɵelementStart(0, "main", 1);
|
|
37424
|
+
i0.ɵɵtemplate(1, CaseViewerComponent_main_0_ccd_case_basic_access_view_1_Template, 1, 2, "ccd-case-basic-access-view", 2)(2, CaseViewerComponent_main_0_ccd_case_full_access_view_2_Template, 1, 5, "ccd-case-full-access-view", 3);
|
|
37425
37425
|
i0.ɵɵelementEnd();
|
|
37426
37426
|
} if (rf & 2) {
|
|
37427
37427
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
@@ -37508,15 +37508,15 @@ class CaseViewerComponent {
|
|
|
37508
37508
|
return tabs;
|
|
37509
37509
|
}
|
|
37510
37510
|
static ɵfac = function CaseViewerComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaseViewerComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(OrderService)); };
|
|
37511
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseViewerComponent, selectors: [["ccd-case-viewer"]], inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, standalone: false, decls: 1, vars: 1, consts: [[4, "ngIf"], ["id", "content", 3, "accessType", "caseDetails", 4, "ngIf"], [
|
|
37512
|
-
i0.ɵɵtemplate(0,
|
|
37511
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseViewerComponent, selectors: [["ccd-case-viewer"]], inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, standalone: false, decls: 1, vars: 1, consts: [["id", "content", "role", "main", 4, "ngIf"], ["id", "content", "role", "main"], [3, "accessType", "caseDetails", 4, "ngIf"], [3, "caseDetails", "hasPrint", "hasEventSelector", "prependedTabs", "appendedTabs", 4, "ngIf"], [3, "accessType", "caseDetails"], [3, "caseDetails", "hasPrint", "hasEventSelector", "prependedTabs", "appendedTabs"]], template: function CaseViewerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
37512
|
+
i0.ɵɵtemplate(0, CaseViewerComponent_main_0_Template, 3, 2, "main", 0);
|
|
37513
37513
|
} if (rf & 2) {
|
|
37514
37514
|
i0.ɵɵproperty("ngIf", ctx.isDataLoaded());
|
|
37515
37515
|
} }, encapsulation: 2 });
|
|
37516
37516
|
}
|
|
37517
37517
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseViewerComponent, [{
|
|
37518
37518
|
type: Component,
|
|
37519
|
-
args: [{ selector: 'ccd-case-viewer', standalone: false, template: "<
|
|
37519
|
+
args: [{ selector: 'ccd-case-viewer', standalone: false, template: "<main *ngIf=\"isDataLoaded()\" id=\"content\" role=\"main\">\n <ccd-case-basic-access-view *ngIf=\"!hasStandardAccess()\"\n [accessType]=\"userAccessType\"\n [caseDetails]=\"caseDetails\">\n </ccd-case-basic-access-view>\n <ccd-case-full-access-view *ngIf=\"hasStandardAccess()\"\n [caseDetails]=\"caseDetails\"\n [hasPrint]=\"hasPrint\"\n [hasEventSelector]=\"hasEventSelector\"\n [prependedTabs]=\"prependedTabs\"\n [appendedTabs]=\"appendedTabs\">\n </ccd-case-full-access-view>\n</main>\n" }]
|
|
37520
37520
|
}], () => [{ type: i1$1.ActivatedRoute }, { type: CaseNotifier }, { type: AbstractAppConfig }, { type: OrderService }], { hasPrint: [{
|
|
37521
37521
|
type: Input
|
|
37522
37522
|
}], hasEventSelector: [{
|
|
@@ -38754,14 +38754,14 @@ var ChallengedAccessRequestErrors;
|
|
|
38754
38754
|
const _c0$4 = a0 => ({ "form-group-error": a0 });
|
|
38755
38755
|
const _c1$2 = a0 => ({ "govuk-input--error": a0 });
|
|
38756
38756
|
const _c2 = a0 => ({ "govuk-textarea--error": a0 });
|
|
38757
|
-
function
|
|
38758
|
-
i0.ɵɵelement(0, "exui-error-message",
|
|
38757
|
+
function CaseChallengedAccessRequestComponent_exui_error_message_1_Template(rf, ctx) { if (rf & 1) {
|
|
38758
|
+
i0.ɵɵelement(0, "exui-error-message", 26);
|
|
38759
38759
|
} if (rf & 2) {
|
|
38760
38760
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
38761
38761
|
i0.ɵɵproperty("error", ctx_r0.errorMessage);
|
|
38762
38762
|
} }
|
|
38763
|
-
function
|
|
38764
|
-
i0.ɵɵelementStart(0, "div",
|
|
38763
|
+
function CaseChallengedAccessRequestComponent_div_18_Template(rf, ctx) { if (rf & 1) {
|
|
38764
|
+
i0.ɵɵelementStart(0, "div", 27);
|
|
38765
38765
|
i0.ɵɵtext(1);
|
|
38766
38766
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
38767
38767
|
i0.ɵɵelementEnd();
|
|
@@ -38770,8 +38770,8 @@ function CaseChallengedAccessRequestComponent_div_17_Template(rf, ctx) { if (rf
|
|
|
38770
38770
|
i0.ɵɵadvance();
|
|
38771
38771
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, ctx_r0.errorMessage.description), " ");
|
|
38772
38772
|
} }
|
|
38773
|
-
function
|
|
38774
|
-
i0.ɵɵelementStart(0, "div",
|
|
38773
|
+
function CaseChallengedAccessRequestComponent_div_25_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
38774
|
+
i0.ɵɵelementStart(0, "div", 33);
|
|
38775
38775
|
i0.ɵɵtext(1);
|
|
38776
38776
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
38777
38777
|
i0.ɵɵelementEnd();
|
|
@@ -38780,12 +38780,12 @@ function CaseChallengedAccessRequestComponent_div_24_div_4_Template(rf, ctx) { i
|
|
|
38780
38780
|
i0.ɵɵadvance();
|
|
38781
38781
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, ctx_r0.errorMessage.description), " ");
|
|
38782
38782
|
} }
|
|
38783
|
-
function
|
|
38784
|
-
i0.ɵɵelementStart(0, "div",
|
|
38783
|
+
function CaseChallengedAccessRequestComponent_div_25_Template(rf, ctx) { if (rf & 1) {
|
|
38784
|
+
i0.ɵɵelementStart(0, "div", 28)(1, "div", 29)(2, "label", 30);
|
|
38785
38785
|
i0.ɵɵtext(3);
|
|
38786
38786
|
i0.ɵɵelementEnd();
|
|
38787
|
-
i0.ɵɵtemplate(4,
|
|
38788
|
-
i0.ɵɵelement(5, "input",
|
|
38787
|
+
i0.ɵɵtemplate(4, CaseChallengedAccessRequestComponent_div_25_div_4_Template, 3, 3, "div", 31);
|
|
38788
|
+
i0.ɵɵelement(5, "input", 32);
|
|
38789
38789
|
i0.ɵɵelementEnd()();
|
|
38790
38790
|
} if (rf & 2) {
|
|
38791
38791
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
@@ -38796,8 +38796,8 @@ function CaseChallengedAccessRequestComponent_div_24_Template(rf, ctx) { if (rf
|
|
|
38796
38796
|
i0.ɵɵadvance();
|
|
38797
38797
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3, _c1$2, ctx_r0.formGroup.get("caseReference").invalid && ctx_r0.submitted));
|
|
38798
38798
|
} }
|
|
38799
|
-
function
|
|
38800
|
-
i0.ɵɵelementStart(0, "div",
|
|
38799
|
+
function CaseChallengedAccessRequestComponent_div_41_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
38800
|
+
i0.ɵɵelementStart(0, "div", 37);
|
|
38801
38801
|
i0.ɵɵtext(1);
|
|
38802
38802
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
38803
38803
|
i0.ɵɵelementEnd();
|
|
@@ -38806,10 +38806,10 @@ function CaseChallengedAccessRequestComponent_div_40_div_2_Template(rf, ctx) { i
|
|
|
38806
38806
|
i0.ɵɵadvance();
|
|
38807
38807
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, ctx_r0.errorMessage.description), " ");
|
|
38808
38808
|
} }
|
|
38809
|
-
function
|
|
38810
|
-
i0.ɵɵelementStart(0, "div",
|
|
38811
|
-
i0.ɵɵtemplate(2,
|
|
38812
|
-
i0.ɵɵelement(3, "textarea",
|
|
38809
|
+
function CaseChallengedAccessRequestComponent_div_41_Template(rf, ctx) { if (rf & 1) {
|
|
38810
|
+
i0.ɵɵelementStart(0, "div", 34)(1, "div", 29);
|
|
38811
|
+
i0.ɵɵtemplate(2, CaseChallengedAccessRequestComponent_div_41_div_2_Template, 3, 3, "div", 35);
|
|
38812
|
+
i0.ɵɵelement(3, "textarea", 36);
|
|
38813
38813
|
i0.ɵɵelementEnd()();
|
|
38814
38814
|
} if (rf & 2) {
|
|
38815
38815
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
@@ -38834,6 +38834,7 @@ class CaseChallengedAccessRequestComponent {
|
|
|
38834
38834
|
errorMessage;
|
|
38835
38835
|
$roleAssignmentResponseSubscription;
|
|
38836
38836
|
genericError = 'There is a problem';
|
|
38837
|
+
errorPrefix = 'Error: ';
|
|
38837
38838
|
radioSelectedControlName = 'radioSelected';
|
|
38838
38839
|
caseReferenceControlName = 'caseReference';
|
|
38839
38840
|
otherReasonControlName = 'otherReason';
|
|
@@ -38875,6 +38876,7 @@ class CaseChallengedAccessRequestComponent {
|
|
|
38875
38876
|
}],
|
|
38876
38877
|
updateOn: 'submit'
|
|
38877
38878
|
}));
|
|
38879
|
+
this.updateDocumentTitle();
|
|
38878
38880
|
}
|
|
38879
38881
|
onChange() {
|
|
38880
38882
|
this.submitted = false;
|
|
@@ -38883,6 +38885,7 @@ class CaseChallengedAccessRequestComponent {
|
|
|
38883
38885
|
// to the DOM by *ngIf, it will appear empty but the associated FormControl still has the previous value.)
|
|
38884
38886
|
this.formGroup.get(this.caseReferenceControlName).setValue('');
|
|
38885
38887
|
this.formGroup.get(this.otherReasonControlName).setValue('');
|
|
38888
|
+
this.updateDocumentTitle();
|
|
38886
38889
|
}
|
|
38887
38890
|
onSubmit() {
|
|
38888
38891
|
this.submitted = true;
|
|
@@ -38890,7 +38893,7 @@ class CaseChallengedAccessRequestComponent {
|
|
|
38890
38893
|
this.errorMessage = {
|
|
38891
38894
|
title: this.genericError,
|
|
38892
38895
|
description: ChallengedAccessRequestErrors.NO_SELECTION,
|
|
38893
|
-
fieldId: '
|
|
38896
|
+
fieldId: 'reason-0'
|
|
38894
38897
|
};
|
|
38895
38898
|
}
|
|
38896
38899
|
else {
|
|
@@ -38909,6 +38912,7 @@ class CaseChallengedAccessRequestComponent {
|
|
|
38909
38912
|
};
|
|
38910
38913
|
}
|
|
38911
38914
|
}
|
|
38915
|
+
this.updateDocumentTitle();
|
|
38912
38916
|
// Initiate Challenged Access Request
|
|
38913
38917
|
if (this.formGroup.valid) {
|
|
38914
38918
|
// Get the Case Reference (for which access is being requested) from the ActivatedRouteSnapshot data
|
|
@@ -38944,112 +38948,122 @@ class CaseChallengedAccessRequestComponent {
|
|
|
38944
38948
|
inputEmpty(input) {
|
|
38945
38949
|
return input.value === null || input.value.trim().length === 0;
|
|
38946
38950
|
}
|
|
38951
|
+
updateDocumentTitle() {
|
|
38952
|
+
if (!this.title) {
|
|
38953
|
+
return;
|
|
38954
|
+
}
|
|
38955
|
+
document.title = this.formGroup?.invalid && this.submitted
|
|
38956
|
+
? `${this.errorPrefix}${this.title}`
|
|
38957
|
+
: this.title;
|
|
38958
|
+
}
|
|
38947
38959
|
static ɵfac = function CaseChallengedAccessRequestComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaseChallengedAccessRequestComponent)(i0.ɵɵdirectiveInject(i4.FormBuilder), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(CaseNotifier)); };
|
|
38948
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseChallengedAccessRequestComponent, selectors: [["ccd-case-challenged-access-request"]], standalone: false, decls:
|
|
38949
|
-
i0.ɵɵ
|
|
38950
|
-
i0.ɵɵ
|
|
38951
|
-
i0.ɵɵ
|
|
38952
|
-
i0.ɵɵ
|
|
38953
|
-
i0.ɵɵ
|
|
38954
|
-
i0.ɵɵ
|
|
38955
|
-
i0.ɵɵ
|
|
38960
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseChallengedAccessRequestComponent, selectors: [["ccd-case-challenged-access-request"]], standalone: false, decls: 51, vars: 46, consts: [["id", "content", "role", "main", 1, "govuk-main-wrapper"], [3, "error", 4, "ngIf"], ["type", "information"], [3, "submit", "formGroup"], [1, "govuk-form-group", 3, "ngClass"], ["aria-describedby", "reason-hint", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--l"], [1, "govuk-fieldset__heading"], ["id", "reason-hint", 1, "govuk-hint"], ["id", "error-message", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-radios", 1, "govuk-radios", "govuk-radios--conditional"], [1, "govuk-radios__item"], ["id", "reason-0", "name", "radioSelected", "type", "radio", "data-aria-controls", "conditional-reason-0", "formControlName", "radioSelected", 1, "govuk-radios__input", 3, "change", "value", "checked"], ["for", "reason-0", 1, "govuk-label", "govuk-radios__label"], ["id", "conditional-reason-0", "class", "govuk-radios__conditional", 4, "ngIf"], ["id", "reason-1", "name", "radioSelected", "type", "radio", "formControlName", "radioSelected", 1, "govuk-radios__input", 3, "change", "value", "checked"], ["for", "reason-1", 1, "govuk-label", "govuk-radios__label"], ["id", "reason-2", "name", "radioSelected", "type", "radio", "formControlName", "radioSelected", 1, "govuk-radios__input", 3, "change", "value", "checked"], ["for", "reason-2", 1, "govuk-label", "govuk-radios__label"], ["id", "reason-3", "name", "radioSelected", "type", "radio", "data-aria-controls", "conditional-reason-3", "formControlName", "radioSelected", 1, "govuk-radios__input", 3, "change", "value", "checked"], ["for", "reason-3", "id", "reason-3-label", 1, "govuk-label", "govuk-radios__label"], ["id", "conditional-reason-3", "class", "govuk-radios__conditional", 4, "ngIf"], [1, "govuk-button-group"], ["type", "submit", 1, "govuk-button", "govuk-!-margin-right-3"], [1, "govuk-grid-column-full", "govuk-!-padding-left-0"], ["href", "#", 1, "govuk-body", 3, "click"], [3, "error"], ["id", "error-message", 1, "govuk-error-message"], ["id", "conditional-reason-0", 1, "govuk-radios__conditional"], [1, "govuk-form-group"], ["for", "case-reference", 1, "govuk-label"], ["id", "case-reference-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "case-reference", "name", "case-reference", "type", "text", "formControlName", "caseReference", 1, "govuk-input", "govuk-!-width-one-third", 3, "ngClass"], ["id", "case-reference-error-message", 1, "govuk-error-message"], ["id", "conditional-reason-3", 1, "govuk-radios__conditional"], ["id", "other-reason-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "other-reason", "name", "other-reason", "rows", "5", "aria-describedby", "reason-3-label", "formControlName", "otherReason", 1, "govuk-textarea", 3, "ngClass"], ["id", "other-reason-error-message", 1, "govuk-error-message"]], template: function CaseChallengedAccessRequestComponent_Template(rf, ctx) { if (rf & 1) {
|
|
38961
|
+
i0.ɵɵelementStart(0, "main", 0);
|
|
38962
|
+
i0.ɵɵtemplate(1, CaseChallengedAccessRequestComponent_exui_error_message_1_Template, 1, 1, "exui-error-message", 1);
|
|
38963
|
+
i0.ɵɵelementStart(2, "cut-alert", 2);
|
|
38964
|
+
i0.ɵɵtext(3);
|
|
38965
|
+
i0.ɵɵpipe(4, "rpxTranslate");
|
|
38966
|
+
i0.ɵɵelement(5, "br");
|
|
38967
|
+
i0.ɵɵtext(6);
|
|
38968
|
+
i0.ɵɵpipe(7, "rpxTranslate");
|
|
38956
38969
|
i0.ɵɵelementEnd();
|
|
38957
|
-
i0.ɵɵelementStart(
|
|
38958
|
-
i0.ɵɵlistener("submit", function
|
|
38959
|
-
i0.ɵɵelementStart(
|
|
38960
|
-
i0.ɵɵtext(
|
|
38961
|
-
i0.ɵɵpipe(
|
|
38970
|
+
i0.ɵɵelementStart(8, "form", 3);
|
|
38971
|
+
i0.ɵɵlistener("submit", function CaseChallengedAccessRequestComponent_Template_form_submit_8_listener() { return ctx.onSubmit(); });
|
|
38972
|
+
i0.ɵɵelementStart(9, "div", 4)(10, "fieldset", 5)(11, "legend", 6)(12, "h1", 7);
|
|
38973
|
+
i0.ɵɵtext(13);
|
|
38974
|
+
i0.ɵɵpipe(14, "rpxTranslate");
|
|
38962
38975
|
i0.ɵɵelementEnd()();
|
|
38963
|
-
i0.ɵɵelementStart(
|
|
38964
|
-
i0.ɵɵtext(
|
|
38965
|
-
i0.ɵɵpipe(
|
|
38976
|
+
i0.ɵɵelementStart(15, "div", 8);
|
|
38977
|
+
i0.ɵɵtext(16);
|
|
38978
|
+
i0.ɵɵpipe(17, "rpxTranslate");
|
|
38966
38979
|
i0.ɵɵelementEnd();
|
|
38967
|
-
i0.ɵɵtemplate(
|
|
38968
|
-
i0.ɵɵelementStart(
|
|
38969
|
-
i0.ɵɵlistener("change", function
|
|
38980
|
+
i0.ɵɵtemplate(18, CaseChallengedAccessRequestComponent_div_18_Template, 3, 3, "div", 9);
|
|
38981
|
+
i0.ɵɵelementStart(19, "div", 10)(20, "div", 11)(21, "input", 12);
|
|
38982
|
+
i0.ɵɵlistener("change", function CaseChallengedAccessRequestComponent_Template_input_change_21_listener() { return ctx.onChange(); });
|
|
38970
38983
|
i0.ɵɵelementEnd();
|
|
38971
|
-
i0.ɵɵelementStart(
|
|
38972
|
-
i0.ɵɵtext(
|
|
38973
|
-
i0.ɵɵpipe(
|
|
38984
|
+
i0.ɵɵelementStart(22, "label", 13);
|
|
38985
|
+
i0.ɵɵtext(23);
|
|
38986
|
+
i0.ɵɵpipe(24, "rpxTranslate");
|
|
38974
38987
|
i0.ɵɵelementEnd()();
|
|
38975
|
-
i0.ɵɵtemplate(
|
|
38976
|
-
i0.ɵɵelementStart(
|
|
38977
|
-
i0.ɵɵlistener("change", function
|
|
38988
|
+
i0.ɵɵtemplate(25, CaseChallengedAccessRequestComponent_div_25_Template, 6, 5, "div", 14);
|
|
38989
|
+
i0.ɵɵelementStart(26, "div", 11)(27, "input", 15);
|
|
38990
|
+
i0.ɵɵlistener("change", function CaseChallengedAccessRequestComponent_Template_input_change_27_listener() { return ctx.onChange(); });
|
|
38978
38991
|
i0.ɵɵelementEnd();
|
|
38979
|
-
i0.ɵɵelementStart(
|
|
38980
|
-
i0.ɵɵtext(
|
|
38981
|
-
i0.ɵɵpipe(
|
|
38992
|
+
i0.ɵɵelementStart(28, "label", 16);
|
|
38993
|
+
i0.ɵɵtext(29);
|
|
38994
|
+
i0.ɵɵpipe(30, "rpxTranslate");
|
|
38982
38995
|
i0.ɵɵelementEnd()();
|
|
38983
|
-
i0.ɵɵelementStart(
|
|
38984
|
-
i0.ɵɵlistener("change", function
|
|
38996
|
+
i0.ɵɵelementStart(31, "div", 11)(32, "input", 17);
|
|
38997
|
+
i0.ɵɵlistener("change", function CaseChallengedAccessRequestComponent_Template_input_change_32_listener() { return ctx.onChange(); });
|
|
38985
38998
|
i0.ɵɵelementEnd();
|
|
38986
|
-
i0.ɵɵelementStart(
|
|
38987
|
-
i0.ɵɵtext(
|
|
38988
|
-
i0.ɵɵpipe(
|
|
38999
|
+
i0.ɵɵelementStart(33, "label", 18);
|
|
39000
|
+
i0.ɵɵtext(34);
|
|
39001
|
+
i0.ɵɵpipe(35, "rpxTranslate");
|
|
38989
39002
|
i0.ɵɵelementEnd()();
|
|
38990
|
-
i0.ɵɵelementStart(
|
|
38991
|
-
i0.ɵɵlistener("change", function
|
|
39003
|
+
i0.ɵɵelementStart(36, "div", 11)(37, "input", 19);
|
|
39004
|
+
i0.ɵɵlistener("change", function CaseChallengedAccessRequestComponent_Template_input_change_37_listener() { return ctx.onChange(); });
|
|
38992
39005
|
i0.ɵɵelementEnd();
|
|
38993
|
-
i0.ɵɵelementStart(
|
|
38994
|
-
i0.ɵɵtext(
|
|
38995
|
-
i0.ɵɵpipe(
|
|
39006
|
+
i0.ɵɵelementStart(38, "label", 20);
|
|
39007
|
+
i0.ɵɵtext(39);
|
|
39008
|
+
i0.ɵɵpipe(40, "rpxTranslate");
|
|
38996
39009
|
i0.ɵɵelementEnd()();
|
|
38997
|
-
i0.ɵɵtemplate(
|
|
39010
|
+
i0.ɵɵtemplate(41, CaseChallengedAccessRequestComponent_div_41_Template, 4, 4, "div", 21);
|
|
38998
39011
|
i0.ɵɵelementEnd()()();
|
|
38999
|
-
i0.ɵɵelementStart(
|
|
39000
|
-
i0.ɵɵtext(
|
|
39001
|
-
i0.ɵɵpipe(
|
|
39012
|
+
i0.ɵɵelementStart(42, "div", 22)(43, "button", 23);
|
|
39013
|
+
i0.ɵɵtext(44);
|
|
39014
|
+
i0.ɵɵpipe(45, "rpxTranslate");
|
|
39002
39015
|
i0.ɵɵelementEnd();
|
|
39003
|
-
i0.ɵɵelementStart(
|
|
39004
|
-
i0.ɵɵlistener("click", function
|
|
39005
|
-
i0.ɵɵtext(
|
|
39006
|
-
i0.ɵɵpipe(
|
|
39007
|
-
i0.ɵɵelementEnd()()()()();
|
|
39016
|
+
i0.ɵɵelementStart(46, "div", 24)(47, "p")(48, "a", 25);
|
|
39017
|
+
i0.ɵɵlistener("click", function CaseChallengedAccessRequestComponent_Template_a_click_48_listener($event) { ctx.onCancel(); return $event.preventDefault(); });
|
|
39018
|
+
i0.ɵɵtext(49);
|
|
39019
|
+
i0.ɵɵpipe(50, "rpxTranslate");
|
|
39020
|
+
i0.ɵɵelementEnd()()()()()();
|
|
39008
39021
|
} if (rf & 2) {
|
|
39022
|
+
i0.ɵɵadvance();
|
|
39009
39023
|
i0.ɵɵproperty("ngIf", ctx.formGroup.invalid && ctx.submitted);
|
|
39010
39024
|
i0.ɵɵadvance(2);
|
|
39011
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
39025
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 24, "This case requires challenged access."));
|
|
39012
39026
|
i0.ɵɵadvance(3);
|
|
39013
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
39027
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7, 26, "This is because the case is outside your work area. If you request access to the case, it will be logged for auditing purposes."), "\n");
|
|
39014
39028
|
i0.ɵɵadvance(2);
|
|
39015
39029
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
39016
39030
|
i0.ɵɵadvance();
|
|
39017
39031
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(44, _c0$4, ctx.formGroup.invalid && ctx.submitted));
|
|
39018
39032
|
i0.ɵɵadvance(4);
|
|
39019
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
39033
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(14, 28, ctx.title), " ");
|
|
39020
39034
|
i0.ɵɵadvance(3);
|
|
39021
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
39035
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17, 30, ctx.hint), " ");
|
|
39022
39036
|
i0.ɵɵadvance(2);
|
|
39023
39037
|
i0.ɵɵproperty("ngIf", ctx.formGroup.get("radioSelected").invalid && ctx.submitted);
|
|
39024
39038
|
i0.ɵɵadvance(3);
|
|
39025
39039
|
i0.ɵɵproperty("value", ctx.accessReasons[0].reason)("checked", ctx.accessReasons[0].checked);
|
|
39026
39040
|
i0.ɵɵadvance(2);
|
|
39027
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
39041
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(24, 32, ctx.accessReasons[0].reason), " ");
|
|
39028
39042
|
i0.ɵɵadvance(2);
|
|
39029
39043
|
i0.ɵɵproperty("ngIf", ctx.formGroup.get("radioSelected").value === ctx.accessReasons[0].reason);
|
|
39030
39044
|
i0.ɵɵadvance(2);
|
|
39031
39045
|
i0.ɵɵproperty("value", ctx.accessReasons[1].reason)("checked", ctx.accessReasons[1].checked);
|
|
39032
39046
|
i0.ɵɵadvance(2);
|
|
39033
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
39047
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(30, 34, ctx.accessReasons[1].reason), " ");
|
|
39034
39048
|
i0.ɵɵadvance(3);
|
|
39035
39049
|
i0.ɵɵproperty("value", ctx.accessReasons[2].reason)("checked", ctx.accessReasons[2].checked);
|
|
39036
39050
|
i0.ɵɵadvance(2);
|
|
39037
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
39051
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(35, 36, ctx.accessReasons[2].reason), " ");
|
|
39038
39052
|
i0.ɵɵadvance(3);
|
|
39039
39053
|
i0.ɵɵproperty("value", ctx.accessReasons[3].reason)("checked", ctx.accessReasons[3].checked);
|
|
39040
39054
|
i0.ɵɵadvance(2);
|
|
39041
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
39055
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(40, 38, ctx.accessReasons[3].reason), " ");
|
|
39042
39056
|
i0.ɵɵadvance(2);
|
|
39043
39057
|
i0.ɵɵproperty("ngIf", ctx.formGroup.get("radioSelected").value === ctx.accessReasons[3].reason);
|
|
39044
39058
|
i0.ɵɵadvance(3);
|
|
39045
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
39059
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(45, 40, "Submit"), " ");
|
|
39046
39060
|
i0.ɵɵadvance(5);
|
|
39047
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
39061
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(50, 42, "Cancel"), " ");
|
|
39048
39062
|
} }, encapsulation: 2 });
|
|
39049
39063
|
}
|
|
39050
39064
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseChallengedAccessRequestComponent, [{
|
|
39051
39065
|
type: Component,
|
|
39052
|
-
args: [{ selector: 'ccd-case-challenged-access-request', standalone: false, template: "<exui-error-message *ngIf=\"formGroup.invalid && submitted\" [error]=\"errorMessage\"></exui-error-message>\n<cut-alert type=\"information\">\n {{'This case requires challenged access.' | rpxTranslate}}<br/>\n {{'This is because the case is outside your work area. If you request access to the case, it will be logged for auditing purposes.' | rpxTranslate}}\n</cut-alert>\n<form [formGroup]=\"formGroup\" (submit)=\"onSubmit()\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': formGroup.invalid && submitted}\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"reason-hint\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h1 class=\"govuk-fieldset__heading\">\n {{title | rpxTranslate}}\n </h1>\n </legend>\n <div id=\"reason-hint\" class=\"govuk-hint\">\n {{hint | rpxTranslate}}\n </div>\n <div id=\"error-message\" class=\"govuk-error-message\" *ngIf=\"formGroup.get('radioSelected').invalid && submitted\">\n {{errorMessage.description | rpxTranslate}}\n </div>\n <div class=\"govuk-radios govuk-radios--conditional\" data-module=\"govuk-radios\">\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"reason-0\" name=\"radioSelected\" type=\"radio\" [value]=\"accessReasons[0].reason\"\n data-aria-controls=\"conditional-reason-0\" formControlName=\"radioSelected\" [checked]=\"accessReasons[0].checked\"\n (change)=\"onChange()\"/>\n <label class=\"govuk-label govuk-radios__label\" for=\"reason-0\">\n {{accessReasons[0].reason | rpxTranslate}}\n </label>\n </div>\n <div id=\"conditional-reason-0\" *ngIf=\"formGroup.get('radioSelected').value === accessReasons[0].reason\"\n class=\"govuk-radios__conditional\">\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"case-reference\">\n {{caseRefLabel}}\n </label>\n <div id=\"case-reference-error-message\" class=\"govuk-error-message\" *ngIf=\"formGroup.get('caseReference').invalid && submitted\">\n {{errorMessage.description | rpxTranslate}}\n </div>\n <input class=\"govuk-input govuk-!-width-one-third\"\n [ngClass]=\"{'govuk-input--error': formGroup.get('caseReference').invalid && submitted}\" id=\"case-reference\"\n name=\"case-reference\" type=\"text\" formControlName=\"caseReference\">\n </div>\n </div>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"reason-1\" name=\"radioSelected\" type=\"radio\" [value]=\"accessReasons[1].reason\"\n formControlName=\"radioSelected\" [checked]=\"accessReasons[1].checked\" (change)=\"onChange()\"/>\n <label class=\"govuk-label govuk-radios__label\" for=\"reason-1\">\n {{accessReasons[1].reason | rpxTranslate}}\n </label>\n </div>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"reason-2\" name=\"radioSelected\" type=\"radio\" [value]=\"accessReasons[2].reason\"\n formControlName=\"radioSelected\" [checked]=\"accessReasons[2].checked\" (change)=\"onChange()\"/>\n <label class=\"govuk-label govuk-radios__label\" for=\"reason-2\">\n {{accessReasons[2].reason | rpxTranslate}}\n </label>\n </div>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"reason-3\" name=\"radioSelected\" type=\"radio\" [value]=\"accessReasons[3].reason\"\n data-aria-controls=\"conditional-reason-3\" formControlName=\"radioSelected\" [checked]=\"accessReasons[3].checked\"\n (change)=\"onChange()\"/>\n <label class=\"govuk-label govuk-radios__label\" for=\"reason-3\" id=\"reason-3-label\">\n {{accessReasons[3].reason | rpxTranslate}}\n </label>\n </div>\n <div id=\"conditional-reason-3\" *ngIf=\"formGroup.get('radioSelected').value === accessReasons[3].reason\"\n class=\"govuk-radios__conditional\">\n <div class=\"govuk-form-group\">\n <div id=\"other-reason-error-message\" class=\"govuk-error-message\" *ngIf=\"formGroup.get('otherReason').invalid && submitted\">\n {{errorMessage.description | rpxTranslate}}\n </div>\n <textarea class=\"govuk-textarea\" [ngClass]=\"{'govuk-textarea--error': formGroup.get('otherReason').invalid && submitted}\"\n id=\"other-reason\" name=\"other-reason\" rows=\"5\" aria-describedby=\"reason-3-label\" formControlName=\"otherReason\"></textarea>\n </div>\n </div>\n </div>\n </fieldset>\n </div>\n <div class=\"govuk-button-group\">\n <button class=\"govuk-button govuk-!-margin-right-3\" type=\"submit\">\n {{'Submit' | rpxTranslate}}\n </button>\n <div class=\"govuk-grid-column-full govuk-!-padding-left-0\">\n <p>\n <a class='govuk-body' (click)=\"onCancel(); $event.preventDefault()\" href=\"#\">\n {{'Cancel' | rpxTranslate}}\n </a>\n </p>\n </div>\n </div>\n</form>\n" }]
|
|
39066
|
+
args: [{ selector: 'ccd-case-challenged-access-request', standalone: false, template: "<main id=\"content\" role=\"main\" class=\"govuk-main-wrapper\">\n<exui-error-message *ngIf=\"formGroup.invalid && submitted\" [error]=\"errorMessage\"></exui-error-message>\n<cut-alert type=\"information\">\n {{'This case requires challenged access.' | rpxTranslate}}<br/>\n {{'This is because the case is outside your work area. If you request access to the case, it will be logged for auditing purposes.' | rpxTranslate}}\n</cut-alert>\n<form [formGroup]=\"formGroup\" (submit)=\"onSubmit()\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': formGroup.invalid && submitted}\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"reason-hint\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h1 class=\"govuk-fieldset__heading\">\n {{title | rpxTranslate}}\n </h1>\n </legend>\n <div id=\"reason-hint\" class=\"govuk-hint\">\n {{hint | rpxTranslate}}\n </div>\n <div id=\"error-message\" class=\"govuk-error-message\" *ngIf=\"formGroup.get('radioSelected').invalid && submitted\">\n {{errorMessage.description | rpxTranslate}}\n </div>\n <div class=\"govuk-radios govuk-radios--conditional\" data-module=\"govuk-radios\">\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"reason-0\" name=\"radioSelected\" type=\"radio\" [value]=\"accessReasons[0].reason\"\n data-aria-controls=\"conditional-reason-0\" formControlName=\"radioSelected\" [checked]=\"accessReasons[0].checked\"\n (change)=\"onChange()\"/>\n <label class=\"govuk-label govuk-radios__label\" for=\"reason-0\">\n {{accessReasons[0].reason | rpxTranslate}}\n </label>\n </div>\n <div id=\"conditional-reason-0\" *ngIf=\"formGroup.get('radioSelected').value === accessReasons[0].reason\"\n class=\"govuk-radios__conditional\">\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"case-reference\">\n {{caseRefLabel}}\n </label>\n <div id=\"case-reference-error-message\" class=\"govuk-error-message\" *ngIf=\"formGroup.get('caseReference').invalid && submitted\">\n {{errorMessage.description | rpxTranslate}}\n </div>\n <input class=\"govuk-input govuk-!-width-one-third\"\n [ngClass]=\"{'govuk-input--error': formGroup.get('caseReference').invalid && submitted}\" id=\"case-reference\"\n name=\"case-reference\" type=\"text\" formControlName=\"caseReference\">\n </div>\n </div>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"reason-1\" name=\"radioSelected\" type=\"radio\" [value]=\"accessReasons[1].reason\"\n formControlName=\"radioSelected\" [checked]=\"accessReasons[1].checked\" (change)=\"onChange()\"/>\n <label class=\"govuk-label govuk-radios__label\" for=\"reason-1\">\n {{accessReasons[1].reason | rpxTranslate}}\n </label>\n </div>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"reason-2\" name=\"radioSelected\" type=\"radio\" [value]=\"accessReasons[2].reason\"\n formControlName=\"radioSelected\" [checked]=\"accessReasons[2].checked\" (change)=\"onChange()\"/>\n <label class=\"govuk-label govuk-radios__label\" for=\"reason-2\">\n {{accessReasons[2].reason | rpxTranslate}}\n </label>\n </div>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"reason-3\" name=\"radioSelected\" type=\"radio\" [value]=\"accessReasons[3].reason\"\n data-aria-controls=\"conditional-reason-3\" formControlName=\"radioSelected\" [checked]=\"accessReasons[3].checked\"\n (change)=\"onChange()\"/>\n <label class=\"govuk-label govuk-radios__label\" for=\"reason-3\" id=\"reason-3-label\">\n {{accessReasons[3].reason | rpxTranslate}}\n </label>\n </div>\n <div id=\"conditional-reason-3\" *ngIf=\"formGroup.get('radioSelected').value === accessReasons[3].reason\"\n class=\"govuk-radios__conditional\">\n <div class=\"govuk-form-group\">\n <div id=\"other-reason-error-message\" class=\"govuk-error-message\" *ngIf=\"formGroup.get('otherReason').invalid && submitted\">\n {{errorMessage.description | rpxTranslate}}\n </div>\n <textarea class=\"govuk-textarea\" [ngClass]=\"{'govuk-textarea--error': formGroup.get('otherReason').invalid && submitted}\"\n id=\"other-reason\" name=\"other-reason\" rows=\"5\" aria-describedby=\"reason-3-label\" formControlName=\"otherReason\"></textarea>\n </div>\n </div>\n </div>\n </fieldset>\n </div>\n <div class=\"govuk-button-group\">\n <button class=\"govuk-button govuk-!-margin-right-3\" type=\"submit\">\n {{'Submit' | rpxTranslate}}\n </button>\n <div class=\"govuk-grid-column-full govuk-!-padding-left-0\">\n <p>\n <a class='govuk-body' (click)=\"onCancel(); $event.preventDefault()\" href=\"#\">\n {{'Cancel' | rpxTranslate}}\n </a>\n </p>\n </div>\n </div>\n</form>\n</main>\n" }]
|
|
39053
39067
|
}], () => [{ type: i4.FormBuilder }, { type: i1$1.Router }, { type: CasesService }, { type: i1$1.ActivatedRoute }, { type: CaseNotifier }], null); })();
|
|
39054
39068
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseChallengedAccessRequestComponent, { className: "CaseChallengedAccessRequestComponent", filePath: "lib/shared/components/case-viewer/case-challenged-access-request/case-challenged-access-request.component.ts", lineNumber: 15 }); })();
|
|
39055
39069
|
|
|
@@ -39466,14 +39480,14 @@ var SpecificAccessRequestErrors;
|
|
|
39466
39480
|
|
|
39467
39481
|
const _c0$1 = a0 => ({ "form-group-error": a0 });
|
|
39468
39482
|
const _c1$1 = a0 => ({ "govuk-textarea--error": a0 });
|
|
39469
|
-
function
|
|
39470
|
-
i0.ɵɵelement(0, "exui-error-message",
|
|
39483
|
+
function CaseSpecificAccessRequestComponent_exui_error_message_1_Template(rf, ctx) { if (rf & 1) {
|
|
39484
|
+
i0.ɵɵelement(0, "exui-error-message", 23);
|
|
39471
39485
|
} if (rf & 2) {
|
|
39472
39486
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
39473
39487
|
i0.ɵɵproperty("error", ctx_r0.errorMessage);
|
|
39474
39488
|
} }
|
|
39475
|
-
function
|
|
39476
|
-
i0.ɵɵelementStart(0, "div",
|
|
39489
|
+
function CaseSpecificAccessRequestComponent_div_39_Template(rf, ctx) { if (rf & 1) {
|
|
39490
|
+
i0.ɵɵelementStart(0, "div", 24);
|
|
39477
39491
|
i0.ɵɵtext(1);
|
|
39478
39492
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
39479
39493
|
i0.ɵɵelementEnd();
|
|
@@ -39498,6 +39512,7 @@ class CaseSpecificAccessRequestComponent {
|
|
|
39498
39512
|
errorMessage;
|
|
39499
39513
|
$roleAssignmentResponseSubscription;
|
|
39500
39514
|
genericError = 'There is a problem';
|
|
39515
|
+
errorPrefix = 'Error: ';
|
|
39501
39516
|
specificReasonControlName = 'specificReason';
|
|
39502
39517
|
getSpecificAccessError = false;
|
|
39503
39518
|
constructor(fb, router, casesService, route, caseNotifier) {
|
|
@@ -39525,6 +39540,7 @@ class CaseSpecificAccessRequestComponent {
|
|
|
39525
39540
|
],
|
|
39526
39541
|
updateOn: 'submit',
|
|
39527
39542
|
}));
|
|
39543
|
+
this.updateDocumentTitle();
|
|
39528
39544
|
}
|
|
39529
39545
|
onChange() {
|
|
39530
39546
|
this.submitted = false;
|
|
@@ -39532,6 +39548,7 @@ class CaseSpecificAccessRequestComponent {
|
|
|
39532
39548
|
// the field's FormControl when the field itself is removed from the DOM by *ngIf. (If it is subsequently added back
|
|
39533
39549
|
// to the DOM by *ngIf, it will appear empty but the associated FormControl still has the previous value.)
|
|
39534
39550
|
this.formGroup.get(this.specificReasonControlName).setValue('');
|
|
39551
|
+
this.updateDocumentTitle();
|
|
39535
39552
|
}
|
|
39536
39553
|
onSubmit() {
|
|
39537
39554
|
this.submitted = true;
|
|
@@ -39541,6 +39558,7 @@ class CaseSpecificAccessRequestComponent {
|
|
|
39541
39558
|
description: SpecificAccessRequestErrors.NO_REASON,
|
|
39542
39559
|
fieldId: 'specific-reason',
|
|
39543
39560
|
};
|
|
39561
|
+
this.updateDocumentTitle();
|
|
39544
39562
|
}
|
|
39545
39563
|
// Initiate Specific Access Request
|
|
39546
39564
|
if (this.formGroup.valid) {
|
|
@@ -39555,6 +39573,7 @@ class CaseSpecificAccessRequestComponent {
|
|
|
39555
39573
|
// Would have been nice to pass the caseId within state.data, but this isn't part of NavigationExtras until
|
|
39556
39574
|
// Angular 7.2
|
|
39557
39575
|
this.getSpecificAccessError = false;
|
|
39576
|
+
this.updateDocumentTitle();
|
|
39558
39577
|
this.router.navigate(['success'], { relativeTo: this.route });
|
|
39559
39578
|
}, () => {
|
|
39560
39579
|
// Show the generic error message
|
|
@@ -39563,6 +39582,7 @@ class CaseSpecificAccessRequestComponent {
|
|
|
39563
39582
|
title: this.genericError,
|
|
39564
39583
|
description: 'Sorry, there is a problem with the service; Try again later.'
|
|
39565
39584
|
};
|
|
39585
|
+
this.updateDocumentTitle();
|
|
39566
39586
|
});
|
|
39567
39587
|
}
|
|
39568
39588
|
}
|
|
@@ -39578,97 +39598,106 @@ class CaseSpecificAccessRequestComponent {
|
|
|
39578
39598
|
inputEmpty(input) {
|
|
39579
39599
|
return input.value === null || input.value.trim().length === 0;
|
|
39580
39600
|
}
|
|
39601
|
+
updateDocumentTitle() {
|
|
39602
|
+
if (!this.title) {
|
|
39603
|
+
return;
|
|
39604
|
+
}
|
|
39605
|
+
const hasErrorState = (this.formGroup?.invalid && this.submitted) || this.getSpecificAccessError;
|
|
39606
|
+
document.title = hasErrorState ? `${this.errorPrefix}${this.title}` : this.title;
|
|
39607
|
+
}
|
|
39581
39608
|
static ɵfac = function CaseSpecificAccessRequestComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaseSpecificAccessRequestComponent)(i0.ɵɵdirectiveInject(i4.FormBuilder), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(CaseNotifier)); };
|
|
39582
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseSpecificAccessRequestComponent, selectors: [["ccd-case-specific-access-request"]], standalone: false, decls:
|
|
39583
|
-
i0.ɵɵ
|
|
39584
|
-
i0.ɵɵ
|
|
39585
|
-
i0.ɵɵ
|
|
39586
|
-
i0.ɵɵ
|
|
39587
|
-
i0.ɵɵ
|
|
39588
|
-
i0.ɵɵ
|
|
39589
|
-
i0.ɵɵ
|
|
39609
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseSpecificAccessRequestComponent, selectors: [["ccd-case-specific-access-request"]], standalone: false, decls: 51, vars: 42, consts: [["id", "content", "role", "main", 1, "govuk-main-wrapper"], [3, "error", 4, "ngIf"], ["type", "information"], [3, "submit", "formGroup"], [1, "govuk-form-group", 3, "ngClass"], ["aria-describedby", "reason-hint", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--l"], [1, "govuk-fieldset__heading"], ["data-module", "govuk-details", "role", "group", 1, "govuk-details"], ["aria-expanded", "false", 1, "govuk-details__summary"], [1, "govuk-details__summary-text"], ["aria-hidden", "true", 1, "govuk-details__text"], [1, "govuk-body"], [1, "govuk-list", "govuk-list--bullet"], ["id", "reason-hint", 1, "govuk-hint"], ["id", "conditional-reason-3"], [1, "govuk-form-group"], ["id", "specific-reason-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "specific-reason", "name", "specific-reason", "rows", "8", "formControlName", "specificReason", 1, "govuk-textarea", 3, "ngClass"], [1, "govuk-button-group"], ["type", "submit", 1, "govuk-button", "govuk-!-margin-right-3"], [1, "govuk-grid-column-full", "govuk-!-padding-left-0"], ["href", "#", 1, "govuk-body", 3, "click"], [3, "error"], ["id", "specific-reason-error-message", 1, "govuk-error-message"]], template: function CaseSpecificAccessRequestComponent_Template(rf, ctx) { if (rf & 1) {
|
|
39610
|
+
i0.ɵɵelementStart(0, "main", 0);
|
|
39611
|
+
i0.ɵɵtemplate(1, CaseSpecificAccessRequestComponent_exui_error_message_1_Template, 1, 1, "exui-error-message", 1);
|
|
39612
|
+
i0.ɵɵelementStart(2, "cut-alert", 2);
|
|
39613
|
+
i0.ɵɵtext(3);
|
|
39614
|
+
i0.ɵɵpipe(4, "rpxTranslate");
|
|
39615
|
+
i0.ɵɵelement(5, "br");
|
|
39616
|
+
i0.ɵɵtext(6);
|
|
39617
|
+
i0.ɵɵpipe(7, "rpxTranslate");
|
|
39590
39618
|
i0.ɵɵelementEnd();
|
|
39591
|
-
i0.ɵɵelementStart(
|
|
39592
|
-
i0.ɵɵlistener("submit", function
|
|
39593
|
-
i0.ɵɵelementStart(
|
|
39594
|
-
i0.ɵɵtext(
|
|
39595
|
-
i0.ɵɵpipe(
|
|
39619
|
+
i0.ɵɵelementStart(8, "form", 3);
|
|
39620
|
+
i0.ɵɵlistener("submit", function CaseSpecificAccessRequestComponent_Template_form_submit_8_listener() { return ctx.onSubmit(); });
|
|
39621
|
+
i0.ɵɵelementStart(9, "div", 4)(10, "fieldset", 5)(11, "legend", 6)(12, "h1", 7);
|
|
39622
|
+
i0.ɵɵtext(13);
|
|
39623
|
+
i0.ɵɵpipe(14, "rpxTranslate");
|
|
39596
39624
|
i0.ɵɵelementEnd()();
|
|
39597
|
-
i0.ɵɵelementStart(
|
|
39598
|
-
i0.ɵɵtext(
|
|
39599
|
-
i0.ɵɵpipe(
|
|
39625
|
+
i0.ɵɵelementStart(15, "details", 8)(16, "summary", 9)(17, "span", 10);
|
|
39626
|
+
i0.ɵɵtext(18);
|
|
39627
|
+
i0.ɵɵpipe(19, "rpxTranslate");
|
|
39600
39628
|
i0.ɵɵelementEnd()();
|
|
39601
|
-
i0.ɵɵelementStart(
|
|
39602
|
-
i0.ɵɵtext(
|
|
39603
|
-
i0.ɵɵpipe(
|
|
39629
|
+
i0.ɵɵelementStart(20, "div", 11)(21, "p", 12);
|
|
39630
|
+
i0.ɵɵtext(22);
|
|
39631
|
+
i0.ɵɵpipe(23, "rpxTranslate");
|
|
39604
39632
|
i0.ɵɵelementEnd();
|
|
39605
|
-
i0.ɵɵelementStart(
|
|
39606
|
-
i0.ɵɵtext(
|
|
39607
|
-
i0.ɵɵpipe(
|
|
39633
|
+
i0.ɵɵelementStart(24, "ul", 13)(25, "li");
|
|
39634
|
+
i0.ɵɵtext(26);
|
|
39635
|
+
i0.ɵɵpipe(27, "rpxTranslate");
|
|
39608
39636
|
i0.ɵɵelementEnd();
|
|
39609
|
-
i0.ɵɵelementStart(
|
|
39610
|
-
i0.ɵɵtext(
|
|
39611
|
-
i0.ɵɵpipe(
|
|
39637
|
+
i0.ɵɵelementStart(28, "li");
|
|
39638
|
+
i0.ɵɵtext(29);
|
|
39639
|
+
i0.ɵɵpipe(30, "rpxTranslate");
|
|
39612
39640
|
i0.ɵɵelementEnd();
|
|
39613
|
-
i0.ɵɵelementStart(
|
|
39614
|
-
i0.ɵɵtext(
|
|
39615
|
-
i0.ɵɵpipe(
|
|
39641
|
+
i0.ɵɵelementStart(31, "li");
|
|
39642
|
+
i0.ɵɵtext(32);
|
|
39643
|
+
i0.ɵɵpipe(33, "rpxTranslate");
|
|
39616
39644
|
i0.ɵɵelementEnd()()()();
|
|
39617
|
-
i0.ɵɵelementStart(
|
|
39618
|
-
i0.ɵɵtext(
|
|
39619
|
-
i0.ɵɵpipe(
|
|
39645
|
+
i0.ɵɵelementStart(34, "div", 14);
|
|
39646
|
+
i0.ɵɵtext(35);
|
|
39647
|
+
i0.ɵɵpipe(36, "rpxTranslate");
|
|
39620
39648
|
i0.ɵɵelementEnd();
|
|
39621
|
-
i0.ɵɵelementStart(
|
|
39622
|
-
i0.ɵɵtemplate(
|
|
39623
|
-
i0.ɵɵelementStart(
|
|
39624
|
-
i0.ɵɵtext(
|
|
39649
|
+
i0.ɵɵelementStart(37, "div", 15)(38, "div", 16);
|
|
39650
|
+
i0.ɵɵtemplate(39, CaseSpecificAccessRequestComponent_div_39_Template, 3, 3, "div", 17);
|
|
39651
|
+
i0.ɵɵelementStart(40, "textarea", 18);
|
|
39652
|
+
i0.ɵɵtext(41, " ");
|
|
39625
39653
|
i0.ɵɵelementEnd()()()()();
|
|
39626
|
-
i0.ɵɵelementStart(
|
|
39627
|
-
i0.ɵɵtext(
|
|
39628
|
-
i0.ɵɵpipe(
|
|
39654
|
+
i0.ɵɵelementStart(42, "div", 19)(43, "button", 20);
|
|
39655
|
+
i0.ɵɵtext(44);
|
|
39656
|
+
i0.ɵɵpipe(45, "rpxTranslate");
|
|
39629
39657
|
i0.ɵɵelementEnd();
|
|
39630
|
-
i0.ɵɵelementStart(
|
|
39631
|
-
i0.ɵɵlistener("click", function
|
|
39632
|
-
i0.ɵɵtext(
|
|
39633
|
-
i0.ɵɵpipe(
|
|
39634
|
-
i0.ɵɵelementEnd()()()()();
|
|
39658
|
+
i0.ɵɵelementStart(46, "div", 21)(47, "p")(48, "a", 22);
|
|
39659
|
+
i0.ɵɵlistener("click", function CaseSpecificAccessRequestComponent_Template_a_click_48_listener($event) { ctx.onCancel(); return $event.preventDefault(); });
|
|
39660
|
+
i0.ɵɵtext(49);
|
|
39661
|
+
i0.ɵɵpipe(50, "rpxTranslate");
|
|
39662
|
+
i0.ɵɵelementEnd()()()()()();
|
|
39635
39663
|
} if (rf & 2) {
|
|
39664
|
+
i0.ɵɵadvance();
|
|
39636
39665
|
i0.ɵɵproperty("ngIf", ctx.formGroup.invalid && ctx.submitted || ctx.getSpecificAccessError);
|
|
39637
39666
|
i0.ɵɵadvance(2);
|
|
39638
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
39667
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 16, "Authorisation is needed to access this case."));
|
|
39639
39668
|
i0.ɵɵadvance(3);
|
|
39640
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
39669
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7, 18, "This could be because it's outside your jurisdiction, or you may be excluded from the case. If you request access to this case, it will be logged for auditing purposes."), "\n");
|
|
39641
39670
|
i0.ɵɵadvance(2);
|
|
39642
39671
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
39643
39672
|
i0.ɵɵadvance();
|
|
39644
39673
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(38, _c0$1, ctx.formGroup.invalid && ctx.submitted));
|
|
39645
39674
|
i0.ɵɵadvance(4);
|
|
39646
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
39675
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(14, 20, ctx.title), " ");
|
|
39647
39676
|
i0.ɵɵadvance(5);
|
|
39648
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
39677
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(19, 22, "Help with requesting case access"), " ");
|
|
39649
39678
|
i0.ɵɵadvance(4);
|
|
39650
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
39679
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(23, 24, "You could include:"));
|
|
39651
39680
|
i0.ɵɵadvance(4);
|
|
39652
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
39681
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(27, 26, "the case reference of the linked case"));
|
|
39653
39682
|
i0.ɵɵadvance(3);
|
|
39654
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
39683
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(30, 28, "how long you require access to this case"));
|
|
39655
39684
|
i0.ɵɵadvance(3);
|
|
39656
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
39685
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(33, 30, "any other reasons why you require access"));
|
|
39657
39686
|
i0.ɵɵadvance(3);
|
|
39658
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
39687
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(36, 32, ctx.hint), " ");
|
|
39659
39688
|
i0.ɵɵadvance(4);
|
|
39660
39689
|
i0.ɵɵproperty("ngIf", ctx.formGroup.get("specificReason").invalid && ctx.submitted);
|
|
39661
39690
|
i0.ɵɵadvance();
|
|
39662
39691
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(40, _c1$1, ctx.formGroup.get("specificReason").invalid && ctx.submitted));
|
|
39663
39692
|
i0.ɵɵadvance(4);
|
|
39664
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
39693
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(45, 34, "Submit"), " ");
|
|
39665
39694
|
i0.ɵɵadvance(5);
|
|
39666
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
39695
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(50, 36, "Cancel"), " ");
|
|
39667
39696
|
} }, encapsulation: 2 });
|
|
39668
39697
|
}
|
|
39669
39698
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseSpecificAccessRequestComponent, [{
|
|
39670
39699
|
type: Component,
|
|
39671
|
-
args: [{ selector: 'ccd-case-specific-access-request', standalone: false, template: "<exui-error-message\n *ngIf=\"(formGroup.invalid && submitted) || getSpecificAccessError\"\n [error]=\"errorMessage\"></exui-error-message>\n<cut-alert type=\"information\">\n {{'Authorisation is needed to access this case.' | rpxTranslate}}<br />\n {{'This could be because it\\'s outside your jurisdiction, or you may be excluded from the case. If you request access to this case, it will be logged for auditing purposes.' | rpxTranslate}}\n</cut-alert>\n<form [formGroup]=\"formGroup\" (submit)=\"onSubmit()\">\n <div class=\"govuk-form-group\"\n [ngClass]=\"{ 'form-group-error': formGroup.invalid && submitted }\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"reason-hint\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h1 class=\"govuk-fieldset__heading\">\n {{ title | rpxTranslate }}\n </h1>\n </legend>\n\n <details class=\"govuk-details\" data-module=\"govuk-details\" role=\"group\">\n <summary\n class=\"govuk-details__summary\"\n aria-expanded=\"false\">\n <span class=\"govuk-details__summary-text\">\n {{'Help with requesting case access' | rpxTranslate}}\n </span>\n </summary>\n <div\n class=\"govuk-details__text\"\n aria-hidden=\"true\">\n <p class=\"govuk-body\">{{'You could include:' | rpxTranslate}}</p>\n <ul class=\"govuk-list govuk-list--bullet\">\n <li>{{'the case reference of the linked case' | rpxTranslate}}</li>\n <li>{{'how long you require access to this case' | rpxTranslate}}</li>\n <li>{{'any other reasons why you require access' | rpxTranslate}}</li>\n </ul>\n </div>\n </details>\n\n <div id=\"reason-hint\" class=\"govuk-hint\">\n {{ hint | rpxTranslate }}\n </div>\n <div id=\"conditional-reason-3\">\n <div class=\"govuk-form-group\">\n <div\n id=\"specific-reason-error-message\"\n class=\"govuk-error-message\"\n *ngIf=\"formGroup.get('specificReason').invalid && submitted\">\n {{ errorMessage.description | rpxTranslate }}\n </div>\n <textarea\n class=\"govuk-textarea\"\n [ngClass]=\"{\n 'govuk-textarea--error':\n formGroup.get('specificReason').invalid && submitted\n }\"\n id=\"specific-reason\"\n name=\"specific-reason\"\n rows=\"8\"\n formControlName=\"specificReason\">\n </textarea>\n </div>\n </div>\n </fieldset>\n </div>\n\n <div class=\"govuk-button-group\">\n <button class=\"govuk-button govuk-!-margin-right-3\" type=\"submit\">\n {{'Submit' | rpxTranslate}}\n </button>\n <div class=\"govuk-grid-column-full govuk-!-padding-left-0\">\n <p>\n <a class=\"govuk-body\" (click)=\"onCancel(); $event.preventDefault()\" href=\"#\">\n {{'Cancel' | rpxTranslate}}\n </a>\n </p>\n </div>\n </div>\n</form>\n" }]
|
|
39700
|
+
args: [{ selector: 'ccd-case-specific-access-request', standalone: false, template: "<main id=\"content\" role=\"main\" class=\"govuk-main-wrapper\">\n<exui-error-message\n *ngIf=\"(formGroup.invalid && submitted) || getSpecificAccessError\"\n [error]=\"errorMessage\"></exui-error-message>\n<cut-alert type=\"information\">\n {{'Authorisation is needed to access this case.' | rpxTranslate}}<br />\n {{'This could be because it\\'s outside your jurisdiction, or you may be excluded from the case. If you request access to this case, it will be logged for auditing purposes.' | rpxTranslate}}\n</cut-alert>\n<form [formGroup]=\"formGroup\" (submit)=\"onSubmit()\">\n <div class=\"govuk-form-group\"\n [ngClass]=\"{ 'form-group-error': formGroup.invalid && submitted }\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"reason-hint\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h1 class=\"govuk-fieldset__heading\">\n {{ title | rpxTranslate }}\n </h1>\n </legend>\n\n <details class=\"govuk-details\" data-module=\"govuk-details\" role=\"group\">\n <summary\n class=\"govuk-details__summary\"\n aria-expanded=\"false\">\n <span class=\"govuk-details__summary-text\">\n {{'Help with requesting case access' | rpxTranslate}}\n </span>\n </summary>\n <div\n class=\"govuk-details__text\"\n aria-hidden=\"true\">\n <p class=\"govuk-body\">{{'You could include:' | rpxTranslate}}</p>\n <ul class=\"govuk-list govuk-list--bullet\">\n <li>{{'the case reference of the linked case' | rpxTranslate}}</li>\n <li>{{'how long you require access to this case' | rpxTranslate}}</li>\n <li>{{'any other reasons why you require access' | rpxTranslate}}</li>\n </ul>\n </div>\n </details>\n\n <div id=\"reason-hint\" class=\"govuk-hint\">\n {{ hint | rpxTranslate }}\n </div>\n <div id=\"conditional-reason-3\">\n <div class=\"govuk-form-group\">\n <div\n id=\"specific-reason-error-message\"\n class=\"govuk-error-message\"\n *ngIf=\"formGroup.get('specificReason').invalid && submitted\">\n {{ errorMessage.description | rpxTranslate }}\n </div>\n <textarea\n class=\"govuk-textarea\"\n [ngClass]=\"{\n 'govuk-textarea--error':\n formGroup.get('specificReason').invalid && submitted\n }\"\n id=\"specific-reason\"\n name=\"specific-reason\"\n rows=\"8\"\n formControlName=\"specificReason\">\n </textarea>\n </div>\n </div>\n </fieldset>\n </div>\n\n <div class=\"govuk-button-group\">\n <button class=\"govuk-button govuk-!-margin-right-3\" type=\"submit\">\n {{'Submit' | rpxTranslate}}\n </button>\n <div class=\"govuk-grid-column-full govuk-!-padding-left-0\">\n <p>\n <a class=\"govuk-body\" (click)=\"onCancel(); $event.preventDefault()\" href=\"#\">\n {{'Cancel' | rpxTranslate}}\n </a>\n </p>\n </div>\n </div>\n</form>\n</main>\n" }]
|
|
39672
39701
|
}], () => [{ type: i4.FormBuilder }, { type: i1$1.Router }, { type: CasesService }, { type: i1$1.ActivatedRoute }, { type: CaseNotifier }], null); })();
|
|
39673
39702
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseSpecificAccessRequestComponent, { className: "CaseSpecificAccessRequestComponent", filePath: "lib/shared/components/case-viewer/case-specific-access-request/case-specific-access-request.component.ts", lineNumber: 23 }); })();
|
|
39674
39703
|
|