@hmcts/ccd-case-ui-toolkit 7.1.31 → 7.1.32-exui-1832-rc3
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/palette/base-field/field-write.component.mjs +2 -2
- package/esm2022/lib/shared/components/palette/document/write-document-field.component.mjs +31 -18
- 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/fesm2022/hmcts-ccd-case-ui-toolkit.mjs +189 -155
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/lib/shared/components/palette/document/write-document-field.component.d.ts +1 -0
- package/lib/shared/components/palette/document/write-document-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/package.json +1 -1
|
@@ -14224,7 +14224,7 @@ class FileUploadStateService {
|
|
|
14224
14224
|
const _c0$R = ["fileInput"];
|
|
14225
14225
|
const _c1$m = a0 => ({ "form-group-error bottom-30": a0 });
|
|
14226
14226
|
function WriteDocumentFieldComponent_span_6_Template(rf, ctx) { if (rf & 1) {
|
|
14227
|
-
i0.ɵɵelementStart(0, "span",
|
|
14227
|
+
i0.ɵɵelementStart(0, "span", 15);
|
|
14228
14228
|
i0.ɵɵtext(1);
|
|
14229
14229
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
14230
14230
|
i0.ɵɵelementEnd();
|
|
@@ -14234,7 +14234,7 @@ function WriteDocumentFieldComponent_span_6_Template(rf, ctx) { if (rf & 1) {
|
|
|
14234
14234
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r1.caseField.hint_text));
|
|
14235
14235
|
} }
|
|
14236
14236
|
function WriteDocumentFieldComponent_span_7_Template(rf, ctx) { if (rf & 1) {
|
|
14237
|
-
i0.ɵɵelementStart(0, "span",
|
|
14237
|
+
i0.ɵɵelementStart(0, "span", 16);
|
|
14238
14238
|
i0.ɵɵtext(1);
|
|
14239
14239
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
14240
14240
|
i0.ɵɵelementEnd();
|
|
@@ -14244,7 +14244,7 @@ function WriteDocumentFieldComponent_span_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
14244
14244
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r1.fileUploadMessages));
|
|
14245
14245
|
} }
|
|
14246
14246
|
function WriteDocumentFieldComponent_ccd_read_document_field_9_Template(rf, ctx) { if (rf & 1) {
|
|
14247
|
-
i0.ɵɵelement(0, "ccd-read-document-field",
|
|
14247
|
+
i0.ɵɵelement(0, "ccd-read-document-field", 17);
|
|
14248
14248
|
} if (rf & 2) {
|
|
14249
14249
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
14250
14250
|
i0.ɵɵproperty("caseField", ctx_r1.caseField);
|
|
@@ -14277,6 +14277,7 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
14277
14277
|
dialogSubscription;
|
|
14278
14278
|
caseNotifierSubscription;
|
|
14279
14279
|
jurisdictionSubs;
|
|
14280
|
+
fileName = 'No file chosen';
|
|
14280
14281
|
uploadedDocument;
|
|
14281
14282
|
dialogConfig;
|
|
14282
14283
|
secureModeOn;
|
|
@@ -14351,6 +14352,7 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
14351
14352
|
}
|
|
14352
14353
|
else if (fileInput.target.files[0]) {
|
|
14353
14354
|
this.selectedFile = fileInput.target.files[0];
|
|
14355
|
+
this.fileName = fileInput.target.files[0].name;
|
|
14354
14356
|
this.displayFileUploadMessages(WriteDocumentFieldComponent.UPLOAD_WAITING_FILE_STATUS);
|
|
14355
14357
|
const documentUpload = this.buildDocumentUploadData(this.selectedFile);
|
|
14356
14358
|
this.fileUploadStateService.setUploadInProgress(true);
|
|
@@ -14588,7 +14590,7 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
14588
14590
|
} if (rf & 2) {
|
|
14589
14591
|
let _t;
|
|
14590
14592
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fileInput = _t.first);
|
|
14591
|
-
} }, features: [i0.ɵɵInheritDefinitionFeature], decls:
|
|
14593
|
+
} }, features: [i0.ɵɵInheritDefinitionFeature], decls: 25, vars: 24, consts: [["fileInput", ""], [1, "form-group", 3, "ngClass"], [3, "for"], [1, "form-label"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [3, "caseField", 4, "ngIf"], [2, "position", "relative"], [3, "click", "keyup", "id"], [1, "upload-file-container"], ["aria-label", "Choose file", 1, "button", "button-secondary", "input-label", 3, "for"], [1, "form-control", "bottom-30"], ["type", "file", 1, "input-upload-file", 3, "keydown.Tab", "change", "id", "accept"], [1, "form-group", "bottom-30"], ["type", "button", "aria-label", "Cancel upload", 1, "button", "button-secondary", 3, "click", "disabled"], [1, "form-hint"], [1, "error-message"], [3, "caseField"]], template: function WriteDocumentFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
14592
14594
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
14593
14595
|
i0.ɵɵelementStart(0, "div", 1)(1, "label", 2)(2, "span", 3);
|
|
14594
14596
|
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
@@ -14602,22 +14604,29 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
14602
14604
|
i0.ɵɵelementStart(10, "div", 7)(11, "div", 8);
|
|
14603
14605
|
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()); });
|
|
14604
14606
|
i0.ɵɵelementEnd();
|
|
14605
|
-
i0.ɵɵelementStart(12, "
|
|
14606
|
-
i0.ɵɵ
|
|
14607
|
+
i0.ɵɵelementStart(12, "div", 9)(13, "label", 10);
|
|
14608
|
+
i0.ɵɵtext(14);
|
|
14609
|
+
i0.ɵɵpipe(15, "rpxTranslate");
|
|
14610
|
+
i0.ɵɵelementEnd();
|
|
14611
|
+
i0.ɵɵelementStart(16, "span", 11)(17, "span");
|
|
14612
|
+
i0.ɵɵtext(18, "fileName");
|
|
14607
14613
|
i0.ɵɵelementEnd()()();
|
|
14608
|
-
i0.ɵɵelementStart(
|
|
14609
|
-
i0.ɵɵlistener("
|
|
14610
|
-
i0.ɵɵ
|
|
14611
|
-
i0.ɵɵ
|
|
14614
|
+
i0.ɵɵelementStart(19, "input", 12, 0);
|
|
14615
|
+
i0.ɵɵlistener("keydown.Tab", function WriteDocumentFieldComponent_Template_input_keydown_Tab_19_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.fileValidationsOnTab()); })("change", function WriteDocumentFieldComponent_Template_input_change_19_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.fileChangeEvent($event, ctx.caseField.field_type.regular_expression)); });
|
|
14616
|
+
i0.ɵɵelementEnd()()();
|
|
14617
|
+
i0.ɵɵelementStart(21, "div", 13)(22, "button", 14);
|
|
14618
|
+
i0.ɵɵlistener("click", function WriteDocumentFieldComponent_Template_button_click_22_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.cancelUpload()); });
|
|
14619
|
+
i0.ɵɵtext(23);
|
|
14620
|
+
i0.ɵɵpipe(24, "rpxTranslate");
|
|
14612
14621
|
i0.ɵɵelementEnd()();
|
|
14613
14622
|
} if (rf & 2) {
|
|
14614
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
14623
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(22, _c1$m, !ctx.valid));
|
|
14615
14624
|
i0.ɵɵadvance();
|
|
14616
14625
|
i0.ɵɵproperty("for", ctx.id());
|
|
14617
14626
|
i0.ɵɵadvance();
|
|
14618
|
-
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(3,
|
|
14627
|
+
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(3, 14, ctx.caseField));
|
|
14619
14628
|
i0.ɵɵadvance(2);
|
|
14620
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5,
|
|
14629
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 16, ctx.caseField));
|
|
14621
14630
|
i0.ɵɵadvance(2);
|
|
14622
14631
|
i0.ɵɵproperty("ngIf", ctx.caseField.hint_text);
|
|
14623
14632
|
i0.ɵɵadvance();
|
|
@@ -14626,23 +14635,27 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
14626
14635
|
i0.ɵɵproperty("ngIf", ctx.caseField);
|
|
14627
14636
|
i0.ɵɵadvance(2);
|
|
14628
14637
|
i0.ɵɵproperty("id", ctx.createElementId("fileInputWrapper"));
|
|
14638
|
+
i0.ɵɵadvance(2);
|
|
14639
|
+
i0.ɵɵproperty("for", ctx.id());
|
|
14629
14640
|
i0.ɵɵadvance();
|
|
14641
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(15, 18, "Choose file"));
|
|
14642
|
+
i0.ɵɵadvance(5);
|
|
14630
14643
|
i0.ɵɵpropertyInterpolate("accept", ctx.caseField.field_type.regular_expression);
|
|
14631
14644
|
i0.ɵɵproperty("id", ctx.id());
|
|
14632
14645
|
i0.ɵɵadvance(3);
|
|
14633
14646
|
i0.ɵɵproperty("disabled", !ctx.isUploadInProgress());
|
|
14634
14647
|
i0.ɵɵadvance();
|
|
14635
|
-
i0.ɵɵ
|
|
14636
|
-
} },
|
|
14648
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(24, 20, "Cancel upload"), " ");
|
|
14649
|
+
} }, styles: [".input-upload-file[_ngcontent-%COMP%]{width:100%;display:none}.upload-file-container[_ngcontent-%COMP%]{display:flex;align-items:baseline}.input-label[_ngcontent-%COMP%]{width:8rem}.form [_nghost-%COMP%] .grey-bar>*>.form-group, .form [_nghost-%COMP%] .grey-bar>*>*>.form-group, .form [_nghost-%COMP%] .grey-bar>*>dl.case-field{margin-left:15px;padding-left:15px}.form [_nghost-%COMP%] .grey-bar>*>.form-group:not(.form-group-error), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group:not(.form-group-error), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field:not(.form-group-error){border-left:solid 5px #b1b4b6}.form [_nghost-%COMP%] .grey-bar>*>.form-group input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group textarea:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group textarea:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field textarea:not(.inline-block){display:block}"] });
|
|
14637
14650
|
}
|
|
14638
14651
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteDocumentFieldComponent, [{
|
|
14639
14652
|
type: Component,
|
|
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
|
|
14653
|
+
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}}\"\n >{{(caseField | ccdFieldLabel)}}</span\n >\n </label>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\"\n >{{caseField.hint_text | rpxTranslate}}</span\n >\n <span class=\"error-message\" *ngIf=\"fileUploadMessages && !valid\"\n >{{fileUploadMessages | rpxTranslate}}</span\n >\n\n <div>\n <!--<span *ngIf=\"getUploadedFileName()\" class=\"text-16\">File name: {{getUploadedFileName()}}</span>-->\n <ccd-read-document-field\n *ngIf=\"caseField\"\n [caseField]=\"caseField\"\n ></ccd-read-document-field>\n </div>\n\n <div style=\"position: relative\">\n <div\n [id]=\"createElementId('fileInputWrapper')\"\n (click)=\"fileSelectEvent()\"\n (keyup)=\"fileSelectEvent()\"\n ></div>\n <div class=\"upload-file-container\">\n <label\n [for]=\"id()\"\n class=\"button button-secondary input-label\"\n aria-label=\"Choose file\"\n >{{'Choose file' | rpxTranslate}}</label\n >\n <span class=\"form-control bottom-30\">\n <span>fileName</span>\n </span>\n </div>\n <input\n [id]=\"id()\"\n type=\"file\"\n class=\"input-upload-file\"\n (keydown.Tab)=\"fileValidationsOnTab()\"\n (change)=\"fileChangeEvent($event, caseField.field_type.regular_expression)\"\n accept=\"{{caseField.field_type.regular_expression}}\"\n #fileInput\n />\n </div>\n</div>\n<div class=\"form-group bottom-30\">\n <button\n class=\"button button-secondary\"\n type=\"button\"\n aria-label=\"Cancel upload\"\n (click)=\"cancelUpload()\"\n [disabled]=\"!isUploadInProgress()\"\n >\n {{'Cancel upload' | rpxTranslate}}\n </button>\n</div>\n", styles: [".input-upload-file{width:100%;display:none}.upload-file-container{display:flex;align-items:baseline}.input-label{width:8rem}.form :host::ng-deep .grey-bar>*>.form-group,.form :host::ng-deep .grey-bar>*>*>.form-group,.form :host::ng-deep .grey-bar>*>dl.case-field{margin-left:15px;padding-left:15px}.form :host::ng-deep .grey-bar>*>.form-group:not(.form-group-error),.form :host::ng-deep .grey-bar>*>*>.form-group:not(.form-group-error),.form :host::ng-deep .grey-bar>*>dl.case-field:not(.form-group-error){border-left:solid 5px #b1b4b6}.form :host::ng-deep .grey-bar>*>.form-group input:not(.inline-block),.form :host::ng-deep .grey-bar>*>.form-group select:not(.inline-block),.form :host::ng-deep .grey-bar>*>.form-group textarea:not(.inline-block),.form :host::ng-deep .grey-bar>*>*>.form-group input:not(.inline-block),.form :host::ng-deep .grey-bar>*>*>.form-group select:not(.inline-block),.form :host::ng-deep .grey-bar>*>*>.form-group textarea:not(.inline-block),.form :host::ng-deep .grey-bar>*>dl.case-field input:not(.inline-block),.form :host::ng-deep .grey-bar>*>dl.case-field select:not(.inline-block),.form :host::ng-deep .grey-bar>*>dl.case-field textarea:not(.inline-block){display:block}\n"] }]
|
|
14641
14654
|
}], () => [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1$3.MatLegacyDialog }, { type: FileUploadStateService }, { type: JurisdictionService }], { fileInput: [{
|
|
14642
14655
|
type: ViewChild,
|
|
14643
14656
|
args: ['fileInput', { static: false }]
|
|
14644
14657
|
}] }); })();
|
|
14645
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteDocumentFieldComponent, { className: "WriteDocumentFieldComponent", filePath: "lib/shared/components/palette/document/write-document-field.component.ts", lineNumber:
|
|
14658
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteDocumentFieldComponent, { className: "WriteDocumentFieldComponent", filePath: "lib/shared/components/palette/document/write-document-field.component.ts", lineNumber: 24 }); })();
|
|
14646
14659
|
|
|
14647
14660
|
class DynamicListPipe {
|
|
14648
14661
|
static EMPTY = '';
|
|
@@ -21298,8 +21311,8 @@ class QueryWriteDateInputComponent {
|
|
|
21298
21311
|
(() => { (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 }); })();
|
|
21299
21312
|
|
|
21300
21313
|
const _c0$C = a0 => ({ "govuk-form-group--error": a0 });
|
|
21301
|
-
function
|
|
21302
|
-
i0.ɵɵelementStart(0, "p",
|
|
21314
|
+
function QueryWriteRaiseQueryComponent_div_11_p_11_Template(rf, ctx) { if (rf & 1) {
|
|
21315
|
+
i0.ɵɵelementStart(0, "p", 27)(1, "span", 28);
|
|
21303
21316
|
i0.ɵɵtext(2);
|
|
21304
21317
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
21305
21318
|
i0.ɵɵelementEnd();
|
|
@@ -21307,14 +21320,14 @@ function QueryWriteRaiseQueryComponent_p_22_Template(rf, ctx) { if (rf & 1) {
|
|
|
21307
21320
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
21308
21321
|
i0.ɵɵelementEnd();
|
|
21309
21322
|
} if (rf & 2) {
|
|
21310
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
21323
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
21311
21324
|
i0.ɵɵadvance(2);
|
|
21312
21325
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 2, "Error:"), " ");
|
|
21313
21326
|
i0.ɵɵadvance(2);
|
|
21314
21327
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessage.QUERY_SUBJECT), " ");
|
|
21315
21328
|
} }
|
|
21316
|
-
function
|
|
21317
|
-
i0.ɵɵelementStart(0, "p",
|
|
21329
|
+
function QueryWriteRaiseQueryComponent_div_11_p_21_Template(rf, ctx) { if (rf & 1) {
|
|
21330
|
+
i0.ɵɵelementStart(0, "p", 29)(1, "span", 28);
|
|
21318
21331
|
i0.ɵɵtext(2);
|
|
21319
21332
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
21320
21333
|
i0.ɵɵelementEnd();
|
|
@@ -21322,14 +21335,14 @@ function QueryWriteRaiseQueryComponent_p_32_Template(rf, ctx) { if (rf & 1) {
|
|
|
21322
21335
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
21323
21336
|
i0.ɵɵelementEnd();
|
|
21324
21337
|
} if (rf & 2) {
|
|
21325
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
21338
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
21326
21339
|
i0.ɵɵadvance(2);
|
|
21327
21340
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 2, "Error:"), " ");
|
|
21328
21341
|
i0.ɵɵadvance(2);
|
|
21329
21342
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessage.QUERY_BODY), " ");
|
|
21330
21343
|
} }
|
|
21331
|
-
function
|
|
21332
|
-
i0.ɵɵelementStart(0, "p",
|
|
21344
|
+
function QueryWriteRaiseQueryComponent_div_11_p_30_Template(rf, ctx) { if (rf & 1) {
|
|
21345
|
+
i0.ɵɵelementStart(0, "p", 30)(1, "span", 28);
|
|
21333
21346
|
i0.ɵɵtext(2);
|
|
21334
21347
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
21335
21348
|
i0.ɵɵelementEnd();
|
|
@@ -21337,14 +21350,14 @@ function QueryWriteRaiseQueryComponent_p_41_Template(rf, ctx) { if (rf & 1) {
|
|
|
21337
21350
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
21338
21351
|
i0.ɵɵelementEnd();
|
|
21339
21352
|
} if (rf & 2) {
|
|
21340
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
21353
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
21341
21354
|
i0.ɵɵadvance(2);
|
|
21342
21355
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 2, "Error:"), " ");
|
|
21343
21356
|
i0.ɵɵadvance(2);
|
|
21344
21357
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessage.QUERY_HEARING_RELATED), " ");
|
|
21345
21358
|
} }
|
|
21346
|
-
function
|
|
21347
|
-
i0.ɵɵelementStart(0, "p",
|
|
21359
|
+
function QueryWriteRaiseQueryComponent_div_11_ng_container_42_p_7_Template(rf, ctx) { if (rf & 1) {
|
|
21360
|
+
i0.ɵɵelementStart(0, "p", 36)(1, "span", 28);
|
|
21348
21361
|
i0.ɵɵtext(2);
|
|
21349
21362
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
21350
21363
|
i0.ɵɵelementEnd();
|
|
@@ -21352,24 +21365,24 @@ function QueryWriteRaiseQueryComponent_ng_container_53_p_7_Template(rf, ctx) { i
|
|
|
21352
21365
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
21353
21366
|
i0.ɵɵelementEnd();
|
|
21354
21367
|
} if (rf & 2) {
|
|
21355
|
-
const ctx_r0 = i0.ɵɵnextContext(
|
|
21368
|
+
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
21356
21369
|
i0.ɵɵadvance(2);
|
|
21357
21370
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 2, "Error:"), " ");
|
|
21358
21371
|
i0.ɵɵadvance(2);
|
|
21359
21372
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessage.QUERY_HEARING_DATE), " ");
|
|
21360
21373
|
} }
|
|
21361
|
-
function
|
|
21374
|
+
function QueryWriteRaiseQueryComponent_div_11_ng_container_42_Template(rf, ctx) { if (rf & 1) {
|
|
21362
21375
|
i0.ɵɵelementContainerStart(0);
|
|
21363
|
-
i0.ɵɵelementStart(1, "div",
|
|
21376
|
+
i0.ɵɵelementStart(1, "div", 31)(2, "fieldset", 32)(3, "legend")(4, "label", 33);
|
|
21364
21377
|
i0.ɵɵtext(5);
|
|
21365
21378
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
21366
21379
|
i0.ɵɵelementEnd()();
|
|
21367
|
-
i0.ɵɵtemplate(7,
|
|
21368
|
-
i0.ɵɵelement(8, "ccd-query-write-date-input",
|
|
21380
|
+
i0.ɵɵtemplate(7, QueryWriteRaiseQueryComponent_div_11_ng_container_42_p_7_Template, 6, 6, "p", 34);
|
|
21381
|
+
i0.ɵɵelement(8, "ccd-query-write-date-input", 35);
|
|
21369
21382
|
i0.ɵɵelementEnd()();
|
|
21370
21383
|
i0.ɵɵelementContainerEnd();
|
|
21371
21384
|
} if (rf & 2) {
|
|
21372
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
21385
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
21373
21386
|
i0.ɵɵadvance();
|
|
21374
21387
|
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));
|
|
21375
21388
|
i0.ɵɵadvance(4);
|
|
@@ -21377,13 +21390,101 @@ function QueryWriteRaiseQueryComponent_ng_container_53_Template(rf, ctx) { if (r
|
|
|
21377
21390
|
i0.ɵɵadvance(2);
|
|
21378
21391
|
i0.ɵɵproperty("ngIf", ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").value === true && ctx_r0.formGroup.get("hearingDate").value === null);
|
|
21379
21392
|
} }
|
|
21393
|
+
function QueryWriteRaiseQueryComponent_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
21394
|
+
i0.ɵɵelementStart(0, "div", 5)(1, "div", 6)(2, "div")(3, "div", 7)(4, "div", 8)(5, "label", 9);
|
|
21395
|
+
i0.ɵɵtext(6);
|
|
21396
|
+
i0.ɵɵpipe(7, "rpxTranslate");
|
|
21397
|
+
i0.ɵɵelementEnd()();
|
|
21398
|
+
i0.ɵɵelementStart(8, "div", 10);
|
|
21399
|
+
i0.ɵɵtext(9);
|
|
21400
|
+
i0.ɵɵpipe(10, "rpxTranslate");
|
|
21401
|
+
i0.ɵɵelementEnd();
|
|
21402
|
+
i0.ɵɵtemplate(11, QueryWriteRaiseQueryComponent_div_11_p_11_Template, 6, 6, "p", 11);
|
|
21403
|
+
i0.ɵɵelement(12, "input", 12);
|
|
21404
|
+
i0.ɵɵelementEnd()();
|
|
21405
|
+
i0.ɵɵelementStart(13, "div", 7)(14, "div", 8)(15, "label", 13);
|
|
21406
|
+
i0.ɵɵtext(16);
|
|
21407
|
+
i0.ɵɵpipe(17, "rpxTranslate");
|
|
21408
|
+
i0.ɵɵelementEnd()();
|
|
21409
|
+
i0.ɵɵelementStart(18, "div", 14);
|
|
21410
|
+
i0.ɵɵtext(19);
|
|
21411
|
+
i0.ɵɵpipe(20, "rpxTranslate");
|
|
21412
|
+
i0.ɵɵelementEnd();
|
|
21413
|
+
i0.ɵɵtemplate(21, QueryWriteRaiseQueryComponent_div_11_p_21_Template, 6, 6, "p", 15);
|
|
21414
|
+
i0.ɵɵelementStart(22, "textarea", 16);
|
|
21415
|
+
i0.ɵɵtext(23, " ");
|
|
21416
|
+
i0.ɵɵelementEnd()();
|
|
21417
|
+
i0.ɵɵelementStart(24, "div", 7)(25, "fieldset", 17)(26, "legend")(27, "label", 18);
|
|
21418
|
+
i0.ɵɵtext(28);
|
|
21419
|
+
i0.ɵɵpipe(29, "rpxTranslate");
|
|
21420
|
+
i0.ɵɵelementEnd()();
|
|
21421
|
+
i0.ɵɵtemplate(30, QueryWriteRaiseQueryComponent_div_11_p_30_Template, 6, 6, "p", 19);
|
|
21422
|
+
i0.ɵɵelementStart(31, "div", 20)(32, "div", 21);
|
|
21423
|
+
i0.ɵɵelement(33, "input", 22);
|
|
21424
|
+
i0.ɵɵelementStart(34, "label", 23);
|
|
21425
|
+
i0.ɵɵtext(35);
|
|
21426
|
+
i0.ɵɵpipe(36, "rpxTranslate");
|
|
21427
|
+
i0.ɵɵelementEnd()();
|
|
21428
|
+
i0.ɵɵelementStart(37, "div", 21);
|
|
21429
|
+
i0.ɵɵelement(38, "input", 24);
|
|
21430
|
+
i0.ɵɵelementStart(39, "label", 25);
|
|
21431
|
+
i0.ɵɵtext(40);
|
|
21432
|
+
i0.ɵɵpipe(41, "rpxTranslate");
|
|
21433
|
+
i0.ɵɵelementEnd()()()();
|
|
21434
|
+
i0.ɵɵtemplate(42, QueryWriteRaiseQueryComponent_div_11_ng_container_42_Template, 9, 7, "ng-container", 26);
|
|
21435
|
+
i0.ɵɵelementEnd()()();
|
|
21436
|
+
} if (rf & 2) {
|
|
21437
|
+
let tmp_6_0;
|
|
21438
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
21439
|
+
i0.ɵɵadvance();
|
|
21440
|
+
i0.ɵɵproperty("formGroup", ctx_r0.formGroup);
|
|
21441
|
+
i0.ɵɵadvance(2);
|
|
21442
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(43, _c0$C, ctx_r0.submitted && ctx_r0.formGroup.get("subject").hasError("required")));
|
|
21443
|
+
i0.ɵɵadvance(3);
|
|
21444
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7, 25, "Query subject"), " ");
|
|
21445
|
+
i0.ɵɵadvance(3);
|
|
21446
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10, 27, "The subject should be a summary of your query"), " ");
|
|
21447
|
+
i0.ɵɵadvance(2);
|
|
21448
|
+
i0.ɵɵproperty("ngIf", ctx_r0.submitted && ctx_r0.formGroup.get("subject").hasError("required"));
|
|
21449
|
+
i0.ɵɵadvance();
|
|
21450
|
+
i0.ɵɵclassProp("govuk-input--error", ctx_r0.submitted && ((tmp_6_0 = ctx_r0.formGroup.get("subject")) == null ? null : tmp_6_0.hasError("required")));
|
|
21451
|
+
i0.ɵɵproperty("formControlName", "subject");
|
|
21452
|
+
i0.ɵɵadvance();
|
|
21453
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(45, _c0$C, ctx_r0.submitted && ctx_r0.formGroup.get("body").hasError("required")));
|
|
21454
|
+
i0.ɵɵadvance(3);
|
|
21455
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17, 29, "Query detail"), " ");
|
|
21456
|
+
i0.ɵɵadvance(3);
|
|
21457
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(20, 31, "Include as many details as possible so case workers can respond to your query"), " ");
|
|
21458
|
+
i0.ɵɵadvance(2);
|
|
21459
|
+
i0.ɵɵproperty("ngIf", ctx_r0.submitted && ctx_r0.formGroup.get("body").hasError("required"));
|
|
21460
|
+
i0.ɵɵadvance();
|
|
21461
|
+
i0.ɵɵclassProp("govuk-textarea--error", ctx_r0.submitted && ctx_r0.formGroup.get("body").hasError("required"));
|
|
21462
|
+
i0.ɵɵproperty("formControlName", "body");
|
|
21463
|
+
i0.ɵɵadvance(2);
|
|
21464
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(47, _c0$C, ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").hasError("required")));
|
|
21465
|
+
i0.ɵɵadvance(4);
|
|
21466
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(29, 33, "Is the query hearing related?"), " ");
|
|
21467
|
+
i0.ɵɵadvance(2);
|
|
21468
|
+
i0.ɵɵproperty("ngIf", ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").hasError("required"));
|
|
21469
|
+
i0.ɵɵadvance(3);
|
|
21470
|
+
i0.ɵɵproperty("checked", ctx_r0.formGroup.get("isHearingRelated").value === true)("value", true);
|
|
21471
|
+
i0.ɵɵadvance(2);
|
|
21472
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(36, 35, "Is the query hearing related?", null, "Yes"), " ");
|
|
21473
|
+
i0.ɵɵadvance(3);
|
|
21474
|
+
i0.ɵɵproperty("checked", ctx_r0.formGroup.get("isHearingRelated").value === false)("value", false);
|
|
21475
|
+
i0.ɵɵadvance(2);
|
|
21476
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(41, 39, "Is the query hearing related?", null, "No"), " ");
|
|
21477
|
+
i0.ɵɵadvance(2);
|
|
21478
|
+
i0.ɵɵproperty("ngIf", ctx_r0.formGroup.get("isHearingRelated").value);
|
|
21479
|
+
} }
|
|
21380
21480
|
class QueryWriteRaiseQueryComponent {
|
|
21381
21481
|
formGroup;
|
|
21382
21482
|
submitted;
|
|
21383
21483
|
caseDetails;
|
|
21484
|
+
showForm;
|
|
21384
21485
|
raiseQueryErrorMessage = RaiseQueryErrorMessage;
|
|
21385
21486
|
static ɵfac = function QueryWriteRaiseQueryComponent_Factory(t) { return new (t || QueryWriteRaiseQueryComponent)(); };
|
|
21386
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryWriteRaiseQueryComponent, selectors: [["ccd-query-write-raise-query"]], inputs: { formGroup: "formGroup", submitted: "submitted", caseDetails: "caseDetails" }, decls:
|
|
21487
|
+
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) {
|
|
21387
21488
|
i0.ɵɵelementStart(0, "div")(1, "div", 0)(2, "div", 1);
|
|
21388
21489
|
i0.ɵɵtext(3);
|
|
21389
21490
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
@@ -21396,112 +21497,35 @@ class QueryWriteRaiseQueryComponent {
|
|
|
21396
21497
|
i0.ɵɵelement(9, "ccd-query-case-details-header", 3);
|
|
21397
21498
|
i0.ɵɵelementEnd();
|
|
21398
21499
|
i0.ɵɵelement(10, "hr");
|
|
21399
|
-
i0.ɵɵ
|
|
21400
|
-
i0.ɵɵtext(17);
|
|
21401
|
-
i0.ɵɵpipe(18, "rpxTranslate");
|
|
21402
|
-
i0.ɵɵelementEnd()();
|
|
21403
|
-
i0.ɵɵelementStart(19, "div", 9);
|
|
21404
|
-
i0.ɵɵtext(20);
|
|
21405
|
-
i0.ɵɵpipe(21, "rpxTranslate");
|
|
21406
|
-
i0.ɵɵelementEnd();
|
|
21407
|
-
i0.ɵɵtemplate(22, QueryWriteRaiseQueryComponent_p_22_Template, 6, 6, "p", 10);
|
|
21408
|
-
i0.ɵɵelement(23, "input", 11);
|
|
21409
|
-
i0.ɵɵelementEnd()();
|
|
21410
|
-
i0.ɵɵelementStart(24, "div", 6)(25, "div", 7)(26, "label", 12);
|
|
21411
|
-
i0.ɵɵtext(27);
|
|
21412
|
-
i0.ɵɵpipe(28, "rpxTranslate");
|
|
21413
|
-
i0.ɵɵelementEnd()();
|
|
21414
|
-
i0.ɵɵelementStart(29, "div", 13);
|
|
21415
|
-
i0.ɵɵtext(30);
|
|
21416
|
-
i0.ɵɵpipe(31, "rpxTranslate");
|
|
21500
|
+
i0.ɵɵtemplate(11, QueryWriteRaiseQueryComponent_div_11_Template, 43, 49, "div", 4);
|
|
21417
21501
|
i0.ɵɵelementEnd();
|
|
21418
|
-
i0.ɵɵtemplate(32, QueryWriteRaiseQueryComponent_p_32_Template, 6, 6, "p", 14);
|
|
21419
|
-
i0.ɵɵelementStart(33, "textarea", 15);
|
|
21420
|
-
i0.ɵɵtext(34, " ");
|
|
21421
|
-
i0.ɵɵelementEnd()();
|
|
21422
|
-
i0.ɵɵelementStart(35, "div", 6)(36, "fieldset", 16)(37, "legend")(38, "label", 17);
|
|
21423
|
-
i0.ɵɵtext(39);
|
|
21424
|
-
i0.ɵɵpipe(40, "rpxTranslate");
|
|
21425
|
-
i0.ɵɵelementEnd()();
|
|
21426
|
-
i0.ɵɵtemplate(41, QueryWriteRaiseQueryComponent_p_41_Template, 6, 6, "p", 18);
|
|
21427
|
-
i0.ɵɵelementStart(42, "div", 19)(43, "div", 20);
|
|
21428
|
-
i0.ɵɵelement(44, "input", 21);
|
|
21429
|
-
i0.ɵɵelementStart(45, "label", 22);
|
|
21430
|
-
i0.ɵɵtext(46);
|
|
21431
|
-
i0.ɵɵpipe(47, "rpxTranslate");
|
|
21432
|
-
i0.ɵɵelementEnd()();
|
|
21433
|
-
i0.ɵɵelementStart(48, "div", 20);
|
|
21434
|
-
i0.ɵɵelement(49, "input", 23);
|
|
21435
|
-
i0.ɵɵelementStart(50, "label", 24);
|
|
21436
|
-
i0.ɵɵtext(51);
|
|
21437
|
-
i0.ɵɵpipe(52, "rpxTranslate");
|
|
21438
|
-
i0.ɵɵelementEnd()()()();
|
|
21439
|
-
i0.ɵɵtemplate(53, QueryWriteRaiseQueryComponent_ng_container_53_Template, 9, 7, "ng-container", 25);
|
|
21440
|
-
i0.ɵɵelementEnd()()()();
|
|
21441
21502
|
} if (rf & 2) {
|
|
21442
|
-
let tmp_8_0;
|
|
21443
21503
|
i0.ɵɵadvance(3);
|
|
21444
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4,
|
|
21504
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 4, "Raise a query"));
|
|
21445
21505
|
i0.ɵɵadvance(3);
|
|
21446
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7,
|
|
21506
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 6, "Enter query details"));
|
|
21447
21507
|
i0.ɵɵadvance(3);
|
|
21448
21508
|
i0.ɵɵproperty("caseDetails", ctx.caseDetails);
|
|
21449
|
-
i0.ɵɵadvance(3);
|
|
21450
|
-
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
21451
|
-
i0.ɵɵadvance(2);
|
|
21452
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(50, _c0$C, ctx.submitted && ctx.formGroup.get("subject").hasError("required")));
|
|
21453
|
-
i0.ɵɵadvance(3);
|
|
21454
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(18, 32, "Query subject"), " ");
|
|
21455
|
-
i0.ɵɵadvance(3);
|
|
21456
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(21, 34, "The subject should be a summary of your query"), " ");
|
|
21457
|
-
i0.ɵɵadvance(2);
|
|
21458
|
-
i0.ɵɵproperty("ngIf", ctx.submitted && ctx.formGroup.get("subject").hasError("required"));
|
|
21459
|
-
i0.ɵɵadvance();
|
|
21460
|
-
i0.ɵɵclassProp("govuk-input--error", ctx.submitted && ((tmp_8_0 = ctx.formGroup.get("subject")) == null ? null : tmp_8_0.hasError("required")));
|
|
21461
|
-
i0.ɵɵproperty("formControlName", "subject");
|
|
21462
|
-
i0.ɵɵadvance();
|
|
21463
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(52, _c0$C, ctx.submitted && ctx.formGroup.get("body").hasError("required")));
|
|
21464
|
-
i0.ɵɵadvance(3);
|
|
21465
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(28, 36, "Query detail"), " ");
|
|
21466
|
-
i0.ɵɵadvance(3);
|
|
21467
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(31, 38, "Include as many details as possible so case workers can respond to your query"), " ");
|
|
21468
|
-
i0.ɵɵadvance(2);
|
|
21469
|
-
i0.ɵɵproperty("ngIf", ctx.submitted && ctx.formGroup.get("body").hasError("required"));
|
|
21470
|
-
i0.ɵɵadvance();
|
|
21471
|
-
i0.ɵɵclassProp("govuk-textarea--error", ctx.submitted && ctx.formGroup.get("body").hasError("required"));
|
|
21472
|
-
i0.ɵɵproperty("formControlName", "body");
|
|
21473
21509
|
i0.ɵɵadvance(2);
|
|
21474
|
-
i0.ɵɵproperty("
|
|
21475
|
-
i0.ɵɵadvance(4);
|
|
21476
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(40, 40, "Is the query hearing related?"), " ");
|
|
21477
|
-
i0.ɵɵadvance(2);
|
|
21478
|
-
i0.ɵɵproperty("ngIf", ctx.submitted && ctx.formGroup.get("isHearingRelated").hasError("required"));
|
|
21479
|
-
i0.ɵɵadvance(3);
|
|
21480
|
-
i0.ɵɵproperty("checked", ctx.formGroup.get("isHearingRelated").value === true)("value", true);
|
|
21481
|
-
i0.ɵɵadvance(2);
|
|
21482
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(47, 42, "Is the query hearing related?", null, "Yes"), " ");
|
|
21483
|
-
i0.ɵɵadvance(3);
|
|
21484
|
-
i0.ɵɵproperty("checked", ctx.formGroup.get("isHearingRelated").value === false)("value", false);
|
|
21485
|
-
i0.ɵɵadvance(2);
|
|
21486
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(52, 46, "Is the query hearing related?", null, "No"), " ");
|
|
21487
|
-
i0.ɵɵadvance(2);
|
|
21488
|
-
i0.ɵɵproperty("ngIf", ctx.formGroup.get("isHearingRelated").value);
|
|
21510
|
+
i0.ɵɵproperty("ngIf", ctx.showForm);
|
|
21489
21511
|
} }, encapsulation: 2 });
|
|
21490
21512
|
}
|
|
21491
21513
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryWriteRaiseQueryComponent, [{
|
|
21492
21514
|
type: Component,
|
|
21493
|
-
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" }]
|
|
21515
|
+
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" }]
|
|
21494
21516
|
}], null, { formGroup: [{
|
|
21495
21517
|
type: Input
|
|
21496
21518
|
}], submitted: [{
|
|
21497
21519
|
type: Input
|
|
21498
21520
|
}], caseDetails: [{
|
|
21499
21521
|
type: Input
|
|
21522
|
+
}], showForm: [{
|
|
21523
|
+
type: Input
|
|
21500
21524
|
}] }); })();
|
|
21501
21525
|
(() => { (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 }); })();
|
|
21502
21526
|
|
|
21503
|
-
function
|
|
21504
|
-
i0.ɵɵelementStart(0, "p",
|
|
21527
|
+
function QueryWriteRespondToQueryComponent_div_12_p_11_Template(rf, ctx) { if (rf & 1) {
|
|
21528
|
+
i0.ɵɵelementStart(0, "p", 15)(1, "span", 16);
|
|
21505
21529
|
i0.ɵɵtext(2);
|
|
21506
21530
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
21507
21531
|
i0.ɵɵelementEnd();
|
|
@@ -21509,18 +21533,51 @@ function QueryWriteRespondToQueryComponent_p_23_Template(rf, ctx) { if (rf & 1)
|
|
|
21509
21533
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
21510
21534
|
i0.ɵɵelementEnd();
|
|
21511
21535
|
} if (rf & 2) {
|
|
21512
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
21536
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
21513
21537
|
i0.ɵɵadvance(2);
|
|
21514
21538
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 2, "Error:"), " ");
|
|
21515
21539
|
i0.ɵɵadvance(2);
|
|
21516
21540
|
i0.ɵɵtextInterpolate1("", ctx_r0.queryCreateContext === ctx_r0.queryCreateContextEnum.RESPOND ? ctx_r0.raiseQueryErrorMessages.RESPOND_QUERY_BODY : i0.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessages.QUERY_BODY), " ");
|
|
21517
21541
|
} }
|
|
21542
|
+
function QueryWriteRespondToQueryComponent_div_12_Template(rf, ctx) { if (rf & 1) {
|
|
21543
|
+
i0.ɵɵelementStart(0, "div", 7)(1, "div")(2, "h1", 8);
|
|
21544
|
+
i0.ɵɵtext(3);
|
|
21545
|
+
i0.ɵɵpipe(4, "rpxTranslate");
|
|
21546
|
+
i0.ɵɵelementEnd();
|
|
21547
|
+
i0.ɵɵelementStart(5, "div", 9)(6, "div", 10)(7, "div", 11)(8, "label", 12);
|
|
21548
|
+
i0.ɵɵtext(9);
|
|
21549
|
+
i0.ɵɵpipe(10, "rpxTranslate");
|
|
21550
|
+
i0.ɵɵelementEnd()();
|
|
21551
|
+
i0.ɵɵtemplate(11, QueryWriteRespondToQueryComponent_div_12_p_11_Template, 6, 6, "p", 13);
|
|
21552
|
+
i0.ɵɵelementStart(12, "textarea", 14);
|
|
21553
|
+
i0.ɵɵtext(13, " ");
|
|
21554
|
+
i0.ɵɵelementEnd()()()()();
|
|
21555
|
+
} if (rf & 2) {
|
|
21556
|
+
let tmp_3_0;
|
|
21557
|
+
let tmp_5_0;
|
|
21558
|
+
let tmp_6_0;
|
|
21559
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
21560
|
+
i0.ɵɵadvance(3);
|
|
21561
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r0.queryCreateContext === ctx_r0.queryCreateContextEnum.RESPOND ? "Respond to a query" : i0.ɵɵpipeBind1(4, 9, "Ask a follow-up question"), " ");
|
|
21562
|
+
i0.ɵɵadvance(2);
|
|
21563
|
+
i0.ɵɵproperty("formGroup", ctx_r0.formGroup);
|
|
21564
|
+
i0.ɵɵadvance();
|
|
21565
|
+
i0.ɵɵclassProp("govuk-form-group--error", ctx_r0.submitted && ((tmp_3_0 = ctx_r0.formGroup.get("body")) == null ? null : tmp_3_0.hasError("required")));
|
|
21566
|
+
i0.ɵɵadvance(3);
|
|
21567
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r0.queryCreateContext === ctx_r0.queryCreateContextEnum.RESPOND ? "Response detail" : i0.ɵɵpipeBind1(10, 11, "Query Body"), " ");
|
|
21568
|
+
i0.ɵɵadvance(2);
|
|
21569
|
+
i0.ɵɵproperty("ngIf", ctx_r0.submitted && ((tmp_5_0 = ctx_r0.formGroup.get("body")) == null ? null : tmp_5_0.hasError("required")));
|
|
21570
|
+
i0.ɵɵadvance();
|
|
21571
|
+
i0.ɵɵclassProp("govuk-textarea--error", ctx_r0.submitted && ((tmp_6_0 = ctx_r0.formGroup.get("body")) == null ? null : tmp_6_0.hasError("required")));
|
|
21572
|
+
i0.ɵɵproperty("formControlName", "body");
|
|
21573
|
+
} }
|
|
21518
21574
|
class QueryWriteRespondToQueryComponent {
|
|
21519
21575
|
caseNotifier;
|
|
21520
21576
|
queryItem;
|
|
21521
21577
|
formGroup;
|
|
21522
21578
|
queryCreateContext;
|
|
21523
21579
|
submitted = false;
|
|
21580
|
+
showForm;
|
|
21524
21581
|
queryCreateContextEnum = QueryCreateContext;
|
|
21525
21582
|
raiseQueryErrorMessages = RaiseQueryErrorMessage;
|
|
21526
21583
|
caseId;
|
|
@@ -21535,7 +21592,7 @@ class QueryWriteRespondToQueryComponent {
|
|
|
21535
21592
|
});
|
|
21536
21593
|
}
|
|
21537
21594
|
static ɵfac = function QueryWriteRespondToQueryComponent_Factory(t) { return new (t || QueryWriteRespondToQueryComponent)(i0.ɵɵdirectiveInject(CaseNotifier)); };
|
|
21538
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryWriteRespondToQueryComponent, selectors: [["ccd-query-write-respond-to-query"]], inputs: { queryItem: "queryItem", formGroup: "formGroup", queryCreateContext: "queryCreateContext", submitted: "submitted" }, decls:
|
|
21595
|
+
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) {
|
|
21539
21596
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 0)(2, "div", 1);
|
|
21540
21597
|
i0.ɵɵtext(3);
|
|
21541
21598
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
@@ -21550,48 +21607,23 @@ class QueryWriteRespondToQueryComponent {
|
|
|
21550
21607
|
i0.ɵɵelementStart(10, "div");
|
|
21551
21608
|
i0.ɵɵelement(11, "ccd-query-details", 5);
|
|
21552
21609
|
i0.ɵɵelementEnd()();
|
|
21553
|
-
i0.ɵɵ
|
|
21554
|
-
i0.ɵɵtext(15);
|
|
21555
|
-
i0.ɵɵpipe(16, "rpxTranslate");
|
|
21556
|
-
i0.ɵɵelementEnd();
|
|
21557
|
-
i0.ɵɵelementStart(17, "div", 8)(18, "div", 9)(19, "div", 10)(20, "label", 11);
|
|
21558
|
-
i0.ɵɵtext(21);
|
|
21559
|
-
i0.ɵɵpipe(22, "rpxTranslate");
|
|
21560
|
-
i0.ɵɵelementEnd()();
|
|
21561
|
-
i0.ɵɵtemplate(23, QueryWriteRespondToQueryComponent_p_23_Template, 6, 6, "p", 12);
|
|
21562
|
-
i0.ɵɵelementStart(24, "textarea", 13);
|
|
21563
|
-
i0.ɵɵtext(25, " ");
|
|
21564
|
-
i0.ɵɵelementEnd()()()()();
|
|
21610
|
+
i0.ɵɵtemplate(12, QueryWriteRespondToQueryComponent_div_12_Template, 14, 13, "div", 6);
|
|
21565
21611
|
} if (rf & 2) {
|
|
21566
|
-
let tmp_6_0;
|
|
21567
|
-
let tmp_8_0;
|
|
21568
|
-
let tmp_9_0;
|
|
21569
21612
|
i0.ɵɵadvance(3);
|
|
21570
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4,
|
|
21613
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 5, "Respond to a query"));
|
|
21571
21614
|
i0.ɵɵadvance(3);
|
|
21572
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7,
|
|
21615
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 7, "Query details"));
|
|
21573
21616
|
i0.ɵɵadvance(3);
|
|
21574
21617
|
i0.ɵɵproperty("caseDetails", ctx.caseDetails);
|
|
21575
21618
|
i0.ɵɵadvance(2);
|
|
21576
21619
|
i0.ɵɵproperty("query", ctx.queryItem);
|
|
21577
|
-
i0.ɵɵadvance(4);
|
|
21578
|
-
i0.ɵɵtextInterpolate1(" ", ctx.queryCreateContext === ctx.queryCreateContextEnum.RESPOND ? "Respond to a query" : i0.ɵɵpipeBind1(16, 17, "Ask a follow-up question"), " ");
|
|
21579
|
-
i0.ɵɵadvance(2);
|
|
21580
|
-
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
21581
21620
|
i0.ɵɵadvance();
|
|
21582
|
-
i0.ɵɵ
|
|
21583
|
-
i0.ɵɵadvance(3);
|
|
21584
|
-
i0.ɵɵtextInterpolate1(" ", ctx.queryCreateContext === ctx.queryCreateContextEnum.RESPOND ? "Response detail" : i0.ɵɵpipeBind1(22, 19, "Query Body"), " ");
|
|
21585
|
-
i0.ɵɵadvance(2);
|
|
21586
|
-
i0.ɵɵproperty("ngIf", ctx.submitted && ((tmp_8_0 = ctx.formGroup.get("body")) == null ? null : tmp_8_0.hasError("required")));
|
|
21587
|
-
i0.ɵɵadvance();
|
|
21588
|
-
i0.ɵɵclassProp("govuk-textarea--error", ctx.submitted && ((tmp_9_0 = ctx.formGroup.get("body")) == null ? null : tmp_9_0.hasError("required")));
|
|
21589
|
-
i0.ɵɵproperty("formControlName", "body");
|
|
21621
|
+
i0.ɵɵproperty("ngIf", ctx.showForm);
|
|
21590
21622
|
} }, styles: [".query-respond[_ngcontent-%COMP%]{width:100%;max-width:720px}"] });
|
|
21591
21623
|
}
|
|
21592
21624
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryWriteRespondToQueryComponent, [{
|
|
21593
21625
|
type: Component,
|
|
21594
|
-
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"] }]
|
|
21626
|
+
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"] }]
|
|
21595
21627
|
}], () => [{ type: CaseNotifier }], { queryItem: [{
|
|
21596
21628
|
type: Input
|
|
21597
21629
|
}], formGroup: [{
|
|
@@ -21600,6 +21632,8 @@ class QueryWriteRespondToQueryComponent {
|
|
|
21600
21632
|
type: Input
|
|
21601
21633
|
}], submitted: [{
|
|
21602
21634
|
type: Input
|
|
21635
|
+
}], showForm: [{
|
|
21636
|
+
type: Input
|
|
21603
21637
|
}] }); })();
|
|
21604
21638
|
(() => { (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 }); })();
|
|
21605
21639
|
|
|
@@ -22534,11 +22568,11 @@ class FieldWriteComponent extends AbstractFieldWriteComponent {
|
|
|
22534
22568
|
} if (rf & 2) {
|
|
22535
22569
|
i0.ɵɵclassProp("grey-bar", ctx.canHaveGreyBar && !ctx.caseField.hiddenCannotChange);
|
|
22536
22570
|
i0.ɵɵproperty("hidden", ctx.caseField.hidden);
|
|
22537
|
-
} }, styles: [".form [_nghost-%COMP%] .grey-bar>*>.form-group, .form [_nghost-%COMP%] .grey-bar>*>*>.form-group, .form [_nghost-%COMP%] .grey-bar>*>dl.case-field{margin-left:15px;padding-left:15px}.form [_nghost-%COMP%] .grey-bar>*>.form-group:not(.form-group-error), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group:not(.form-group-error), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field:not(.form-group-error){border-left:solid 5px #b1b4b6}.form [_nghost-%COMP%] .grey-bar>*>.form-group input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group textarea:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group textarea:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field textarea:not(.inline-block){display:block}"] });
|
|
22571
|
+
} }, styles: [".input-upload-file[_ngcontent-%COMP%]{width:100%;display:none}.upload-file-container[_ngcontent-%COMP%]{display:flex;align-items:baseline}.input-label[_ngcontent-%COMP%]{width:8rem}.form [_nghost-%COMP%] .grey-bar>*>.form-group, .form [_nghost-%COMP%] .grey-bar>*>*>.form-group, .form [_nghost-%COMP%] .grey-bar>*>dl.case-field{margin-left:15px;padding-left:15px}.form [_nghost-%COMP%] .grey-bar>*>.form-group:not(.form-group-error), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group:not(.form-group-error), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field:not(.form-group-error){border-left:solid 5px #b1b4b6}.form [_nghost-%COMP%] .grey-bar>*>.form-group input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>.form-group textarea:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>*>.form-group textarea:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field input:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field select:not(.inline-block), .form [_nghost-%COMP%] .grey-bar>*>dl.case-field textarea:not(.inline-block){display:block}"] });
|
|
22538
22572
|
}
|
|
22539
22573
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FieldWriteComponent, [{
|
|
22540
22574
|
type: Component,
|
|
22541
|
-
args: [{ selector: 'ccd-field-write', template: "<div [hidden]=\"caseField.hidden\" [class.grey-bar]=\"canHaveGreyBar && !caseField.hiddenCannotChange\">\n <ng-container #fieldContainer></ng-container>\n</div>\n", styles: [".form :host::ng-deep .grey-bar>*>.form-group,.form :host::ng-deep .grey-bar>*>*>.form-group,.form :host::ng-deep .grey-bar>*>dl.case-field{margin-left:15px;padding-left:15px}.form :host::ng-deep .grey-bar>*>.form-group:not(.form-group-error),.form :host::ng-deep .grey-bar>*>*>.form-group:not(.form-group-error),.form :host::ng-deep .grey-bar>*>dl.case-field:not(.form-group-error){border-left:solid 5px #b1b4b6}.form :host::ng-deep .grey-bar>*>.form-group input:not(.inline-block),.form :host::ng-deep .grey-bar>*>.form-group select:not(.inline-block),.form :host::ng-deep .grey-bar>*>.form-group textarea:not(.inline-block),.form :host::ng-deep .grey-bar>*>*>.form-group input:not(.inline-block),.form :host::ng-deep .grey-bar>*>*>.form-group select:not(.inline-block),.form :host::ng-deep .grey-bar>*>*>.form-group textarea:not(.inline-block),.form :host::ng-deep .grey-bar>*>dl.case-field input:not(.inline-block),.form :host::ng-deep .grey-bar>*>dl.case-field select:not(.inline-block),.form :host::ng-deep .grey-bar>*>dl.case-field textarea:not(.inline-block){display:block}\n"] }]
|
|
22575
|
+
args: [{ selector: 'ccd-field-write', template: "<div [hidden]=\"caseField.hidden\" [class.grey-bar]=\"canHaveGreyBar && !caseField.hiddenCannotChange\">\n <ng-container #fieldContainer></ng-container>\n</div>\n", styles: [".input-upload-file{width:100%;display:none}.upload-file-container{display:flex;align-items:baseline}.input-label{width:8rem}.form :host::ng-deep .grey-bar>*>.form-group,.form :host::ng-deep .grey-bar>*>*>.form-group,.form :host::ng-deep .grey-bar>*>dl.case-field{margin-left:15px;padding-left:15px}.form :host::ng-deep .grey-bar>*>.form-group:not(.form-group-error),.form :host::ng-deep .grey-bar>*>*>.form-group:not(.form-group-error),.form :host::ng-deep .grey-bar>*>dl.case-field:not(.form-group-error){border-left:solid 5px #b1b4b6}.form :host::ng-deep .grey-bar>*>.form-group input:not(.inline-block),.form :host::ng-deep .grey-bar>*>.form-group select:not(.inline-block),.form :host::ng-deep .grey-bar>*>.form-group textarea:not(.inline-block),.form :host::ng-deep .grey-bar>*>*>.form-group input:not(.inline-block),.form :host::ng-deep .grey-bar>*>*>.form-group select:not(.inline-block),.form :host::ng-deep .grey-bar>*>*>.form-group textarea:not(.inline-block),.form :host::ng-deep .grey-bar>*>dl.case-field input:not(.inline-block),.form :host::ng-deep .grey-bar>*>dl.case-field select:not(.inline-block),.form :host::ng-deep .grey-bar>*>dl.case-field textarea:not(.inline-block){display:block}\n"] }]
|
|
22542
22576
|
}], () => [{ type: i0.ComponentFactoryResolver }, { type: PaletteService }], { caseFields: [{
|
|
22543
22577
|
type: Input
|
|
22544
22578
|
}], fieldContainer: [{
|