@hmcts/ccd-case-ui-toolkit 7.1.35-qm-wa → 7.1.35-qm-callbackerror
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/query-management/components/query-check-your-answers/query-check-your-answers.component.mjs +4 -24
- package/esm2022/lib/shared/components/palette/query-management/components/query-details/query-details.component.mjs +5 -19
- 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 +164 -175
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.d.ts +0 -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-details/query-details.component.d.ts +4 -11
- package/lib/shared/components/palette/query-management/components/query-details/query-details.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
|
@@ -20262,7 +20262,6 @@ class QueryCheckYourAnswersComponent {
|
|
|
20262
20262
|
caseViewTrigger;
|
|
20263
20263
|
caseDetails;
|
|
20264
20264
|
queryId;
|
|
20265
|
-
tid;
|
|
20266
20265
|
createEventSubscription;
|
|
20267
20266
|
searchTasksSubscription;
|
|
20268
20267
|
queryCreateContextEnum = QueryCreateContext;
|
|
@@ -20282,11 +20281,8 @@ class QueryCheckYourAnswersComponent {
|
|
|
20282
20281
|
}
|
|
20283
20282
|
ngOnInit() {
|
|
20284
20283
|
this.queryId = this.route.snapshot.params.qid;
|
|
20285
|
-
this.tid = this.route.snapshot.queryParams?.tid;
|
|
20286
|
-
console.log('tid:', this.tid);
|
|
20287
20284
|
this.caseNotifier.caseView.pipe(take(1)).subscribe((caseDetails) => {
|
|
20288
20285
|
this.caseDetails = caseDetails;
|
|
20289
|
-
console.log('caseDetails:', this.caseDetails.case_id, this.caseDetails);
|
|
20290
20286
|
// Find the appropriate event trigger based on the queryCreateContext
|
|
20291
20287
|
this.caseViewTrigger = this.caseDetails.triggers.find((trigger) => this.queryCreateContext !== QueryCreateContext.RESPOND
|
|
20292
20288
|
// If the context is not 'RESPOND', find the trigger with the ID for raising a query
|
|
@@ -20297,23 +20293,6 @@ class QueryCheckYourAnswersComponent {
|
|
|
20297
20293
|
// Get the document attachments
|
|
20298
20294
|
this.getDocumentAttachments();
|
|
20299
20295
|
this.setCaseQueriesCollectionData();
|
|
20300
|
-
this.workAllocationService.getTasksByCaseIdAndEventId(this.RESPOND_TO_QUERY_EVENT_TRIGGER_ID, this.caseDetails.case_id, this.caseDetails.case_type.id, this.caseDetails.case_type.jurisdiction.id)
|
|
20301
|
-
.subscribe((response) => {
|
|
20302
|
-
console.log('response:-queryManagementRespondToQ', response);
|
|
20303
|
-
});
|
|
20304
|
-
if (this.tid) {
|
|
20305
|
-
this.workAllocationService.getTask(this.tid).subscribe((response) => {
|
|
20306
|
-
console.log('response-tid------:', response);
|
|
20307
|
-
}, (error) => {
|
|
20308
|
-
console.error('Error in getTask:', error);
|
|
20309
|
-
// Handle error appropriately
|
|
20310
|
-
});
|
|
20311
|
-
}
|
|
20312
|
-
const searchParameter = { ccdId: this.caseDetails.case_id };
|
|
20313
|
-
this.workAllocationService.searchTasks(searchParameter)
|
|
20314
|
-
.subscribe((response) => {
|
|
20315
|
-
console.log('response:searchTasks', response);
|
|
20316
|
-
});
|
|
20317
20296
|
}
|
|
20318
20297
|
ngOnDestroy() {
|
|
20319
20298
|
this.createEventSubscription?.unsubscribe();
|
|
@@ -20357,10 +20336,11 @@ class QueryCheckYourAnswersComponent {
|
|
|
20357
20336
|
}
|
|
20358
20337
|
searchAndCompleteTask() {
|
|
20359
20338
|
// Search Task
|
|
20360
|
-
|
|
20339
|
+
const searchParameter = { ccdId: this.caseDetails.case_id };
|
|
20340
|
+
this.searchTasksSubscription = this.workAllocationService.searchTasks(searchParameter)
|
|
20361
20341
|
.subscribe((response) => {
|
|
20362
20342
|
// Filter task by query id
|
|
20363
|
-
const filteredTask = response.tasks?.find((task) => task.
|
|
20343
|
+
const filteredTask = response.tasks?.find((task) => Object.values(task.additional_properties).some((value) => value === this.queryId));
|
|
20364
20344
|
// Trigger event completion
|
|
20365
20345
|
this.eventCompletionParams = {
|
|
20366
20346
|
caseId: this.caseDetails.case_id,
|
|
@@ -20890,16 +20870,11 @@ function QueryDetailsComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
20890
20870
|
} }
|
|
20891
20871
|
class QueryDetailsComponent {
|
|
20892
20872
|
sessionStorageService;
|
|
20893
|
-
route;
|
|
20894
20873
|
query;
|
|
20895
20874
|
backClicked = new EventEmitter();
|
|
20896
20875
|
caseId;
|
|
20897
|
-
|
|
20898
|
-
static QUERY_ITEM_RESPOND = '3';
|
|
20899
|
-
queryItemId;
|
|
20900
|
-
constructor(sessionStorageService, route) {
|
|
20876
|
+
constructor(sessionStorageService) {
|
|
20901
20877
|
this.sessionStorageService = sessionStorageService;
|
|
20902
|
-
this.route = route;
|
|
20903
20878
|
}
|
|
20904
20879
|
onBack() {
|
|
20905
20880
|
this.backClicked.emit(true);
|
|
@@ -20910,15 +20885,8 @@ class QueryDetailsComponent {
|
|
|
20910
20885
|
&& !(userDetails.roles.includes('pui-case-manager')
|
|
20911
20886
|
|| userDetails.roles.some((role) => role.toLowerCase().includes('judge')));
|
|
20912
20887
|
}
|
|
20913
|
-
|
|
20914
|
-
|
|
20915
|
-
}
|
|
20916
|
-
toggleLinkVisibility() {
|
|
20917
|
-
this.queryItemId = this.route.snapshot.params.qid;
|
|
20918
|
-
this.showLink = this.queryItemId !== QueryDetailsComponent.QUERY_ITEM_RESPOND;
|
|
20919
|
-
}
|
|
20920
|
-
static ɵfac = function QueryDetailsComponent_Factory(t) { return new (t || QueryDetailsComponent)(i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute)); };
|
|
20921
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryDetailsComponent, selectors: [["ccd-query-details"]], inputs: { query: "query", caseId: "caseId" }, outputs: { backClicked: "backClicked" }, features: [i0.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [["followUpMessage", ""], [4, "ngIf"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [1, "govuk-table", "query-details-table"], [1, "govuk-table__caption", "govuk-table__caption--l"], [1, "govuk-table__body"], [1, "govuk-table__row"], ["scope", "row", 1, "govuk-table__header"], [1, "govuk-table__cell"], ["class", "govuk-table__row govuk-table__row--isHearingRelated", 4, "ngIf"], ["class", "govuk-table__row", 4, "ngIf"], [1, "govuk-table__row", "govuk-table__row--isHearingRelated"], [3, "attachments", 4, "ngIf"], [3, "attachments"], [4, "ngFor", "ngForOf"], [4, "ngIf", "ngIfElse"]], template: function QueryDetailsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
20888
|
+
static ɵfac = function QueryDetailsComponent_Factory(t) { return new (t || QueryDetailsComponent)(i0.ɵɵdirectiveInject(SessionStorageService)); };
|
|
20889
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryDetailsComponent, selectors: [["ccd-query-details"]], inputs: { query: "query", caseId: "caseId" }, outputs: { backClicked: "backClicked" }, decls: 1, vars: 1, consts: [["followUpMessage", ""], [4, "ngIf"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [1, "govuk-table", "query-details-table"], [1, "govuk-table__caption", "govuk-table__caption--l"], [1, "govuk-table__body"], [1, "govuk-table__row"], ["scope", "row", 1, "govuk-table__header"], [1, "govuk-table__cell"], ["class", "govuk-table__row govuk-table__row--isHearingRelated", 4, "ngIf"], ["class", "govuk-table__row", 4, "ngIf"], [1, "govuk-table__row", "govuk-table__row--isHearingRelated"], [3, "attachments", 4, "ngIf"], [3, "attachments"], [4, "ngFor", "ngForOf"], [4, "ngIf", "ngIfElse"]], template: function QueryDetailsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
20922
20890
|
i0.ɵɵtemplate(0, QueryDetailsComponent_ng_container_0_Template, 49, 43, "ng-container", 1);
|
|
20923
20891
|
} if (rf & 2) {
|
|
20924
20892
|
i0.ɵɵproperty("ngIf", ctx.query);
|
|
@@ -20927,7 +20895,7 @@ class QueryDetailsComponent {
|
|
|
20927
20895
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryDetailsComponent, [{
|
|
20928
20896
|
type: Component,
|
|
20929
20897
|
args: [{ selector: 'ccd-query-details', template: "<ng-container *ngIf=\"query\">\n <br/>\n <p>\n <a class=\"govuk-link\" href=\"javascript:void(0)\" (click)=\"onBack()\">{{ 'Back to query list' | rpxTranslate }}</a>\n </p>\n <div>\n <table class=\"govuk-table query-details-table\" [attr.aria-describedby]=\"'Details of the query' | rpxTranslate\">\n <caption class=\"govuk-table__caption govuk-table__caption--l\">\n <div>{{ 'Query details' | rpxTranslate }}</div>\n </caption>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last submitted by' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.lastSubmittedBy }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Submission date' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.createdOn | date: 'dd MMM yyyy' }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Query subject' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.subject }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Query body' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.body }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\" [class.govuk-table__header--no-border]=\"query.isHearingRelated\">\n {{ 'Is the query hearing related?' | rpxTranslate }}\n </th>\n <td class=\"govuk-table__cell\" [class.govuk-table__cell--no-border]=\"query.isHearingRelated\">\n {{ 'Is the query hearing related?' | rpxTranslate: null : (query.isHearingRelated) }}</td>\n </tr>\n <tr class=\"govuk-table__row govuk-table__row--isHearingRelated\" *ngIf=\"query.isHearingRelated === 'Yes'\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'What is the date of the hearing?' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.hearingDate | date: 'dd MMM yyyy' }}</td>\n </tr>\n <tr class=\"govuk-table__row\" *ngIf=\"query.attachments.length > 0\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Attachments' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">\n <ccd-query-attachments-read\n *ngIf=\"query.attachments\"\n [attachments]=\"query.attachments\"\n >\n </ccd-query-attachments-read>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <ng-container *ngIf=\"query.children?.length > 0\">\n <ng-container *ngFor=\"let child of query.children; let i = index;\">\n <ng-container *ngIf=\"i % 2 === 0; else followUpMessage\">\n <table class=\"govuk-table query-details-table\" [attr.aria-describedby]=\"'Response of the query' | rpxTranslate\">\n <caption class=\"govuk-table__caption govuk-table__caption--l\">\n <div>{{ 'Response' | rpxTranslate }}</div>\n </caption>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last response date' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.createdOn | date: 'dd MMM yyyy' }}</td>\n </tr>\n\n <tr *ngIf=\"isCaseworker()\" class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Caseworker name' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.name }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Response detail' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.body }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\" *ngIf=\"child.attachments.length > 0\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Attachments' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">\n <ccd-query-attachments-read\n *ngIf=\"child.attachments\"\n [attachments]=\"child.attachments\"\n >\n </ccd-query-attachments-read>\n </td>\n </tr>\n </tbody>\n </table>\n </ng-container>\n\n <ng-template #followUpMessage>\n <!-- <div class=\"query_details_caption\">{{ 'Follow-up' | rpxTranslate }}</div> -->\n <table class=\"govuk-table query-details-table\"\n [attr.aria-describedby]=\"'Follow-up of the response' | rpxTranslate\">\n <caption class=\"govuk-table__caption govuk-table__caption--l\">\n <div>{{ 'Follow up query' | rpxTranslate }}</div>\n </caption>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last submission date' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.createdOn | date: 'dd MMM yyyy' }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last submitted by' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.name }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Query detail' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.body }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\" *ngIf=\"child.attachments.length > 0\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Attachments' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">\n <ccd-query-attachments-read\n *ngIf=\"child.attachments\"\n [attachments]=\"child.attachments\"\n >\n </ccd-query-attachments-read>\n </td>\n </tr>\n </tbody>\n </table>\n </ng-template>\n </ng-container>\n </ng-container>\n</ng-container>\n", styles: [".query-details-table .govuk-table__header{width:330px}\n"] }]
|
|
20930
|
-
}], () => [{ type: SessionStorageService }
|
|
20898
|
+
}], () => [{ type: SessionStorageService }], { query: [{
|
|
20931
20899
|
type: Input
|
|
20932
20900
|
}], backClicked: [{
|
|
20933
20901
|
type: Output
|
|
@@ -21313,8 +21281,8 @@ class QueryWriteDateInputComponent {
|
|
|
21313
21281
|
(() => { (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 }); })();
|
|
21314
21282
|
|
|
21315
21283
|
const _c0$C = a0 => ({ "govuk-form-group--error": a0 });
|
|
21316
|
-
function
|
|
21317
|
-
i0.ɵɵelementStart(0, "p",
|
|
21284
|
+
function QueryWriteRaiseQueryComponent_div_11_p_11_Template(rf, ctx) { if (rf & 1) {
|
|
21285
|
+
i0.ɵɵelementStart(0, "p", 27)(1, "span", 28);
|
|
21318
21286
|
i0.ɵɵtext(2);
|
|
21319
21287
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
21320
21288
|
i0.ɵɵelementEnd();
|
|
@@ -21322,14 +21290,14 @@ function QueryWriteRaiseQueryComponent_p_22_Template(rf, ctx) { if (rf & 1) {
|
|
|
21322
21290
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
21323
21291
|
i0.ɵɵelementEnd();
|
|
21324
21292
|
} if (rf & 2) {
|
|
21325
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
21293
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
21326
21294
|
i0.ɵɵadvance(2);
|
|
21327
21295
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 2, "Error:"), " ");
|
|
21328
21296
|
i0.ɵɵadvance(2);
|
|
21329
21297
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessage.QUERY_SUBJECT), " ");
|
|
21330
21298
|
} }
|
|
21331
|
-
function
|
|
21332
|
-
i0.ɵɵelementStart(0, "p",
|
|
21299
|
+
function QueryWriteRaiseQueryComponent_div_11_p_21_Template(rf, ctx) { if (rf & 1) {
|
|
21300
|
+
i0.ɵɵelementStart(0, "p", 29)(1, "span", 28);
|
|
21333
21301
|
i0.ɵɵtext(2);
|
|
21334
21302
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
21335
21303
|
i0.ɵɵelementEnd();
|
|
@@ -21337,14 +21305,14 @@ function QueryWriteRaiseQueryComponent_p_32_Template(rf, ctx) { if (rf & 1) {
|
|
|
21337
21305
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
21338
21306
|
i0.ɵɵelementEnd();
|
|
21339
21307
|
} if (rf & 2) {
|
|
21340
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
21308
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
21341
21309
|
i0.ɵɵadvance(2);
|
|
21342
21310
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 2, "Error:"), " ");
|
|
21343
21311
|
i0.ɵɵadvance(2);
|
|
21344
21312
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessage.QUERY_BODY), " ");
|
|
21345
21313
|
} }
|
|
21346
|
-
function
|
|
21347
|
-
i0.ɵɵelementStart(0, "p",
|
|
21314
|
+
function QueryWriteRaiseQueryComponent_div_11_p_30_Template(rf, ctx) { if (rf & 1) {
|
|
21315
|
+
i0.ɵɵelementStart(0, "p", 30)(1, "span", 28);
|
|
21348
21316
|
i0.ɵɵtext(2);
|
|
21349
21317
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
21350
21318
|
i0.ɵɵelementEnd();
|
|
@@ -21352,14 +21320,14 @@ function QueryWriteRaiseQueryComponent_p_41_Template(rf, ctx) { if (rf & 1) {
|
|
|
21352
21320
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
21353
21321
|
i0.ɵɵelementEnd();
|
|
21354
21322
|
} if (rf & 2) {
|
|
21355
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
21323
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
21356
21324
|
i0.ɵɵadvance(2);
|
|
21357
21325
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 2, "Error:"), " ");
|
|
21358
21326
|
i0.ɵɵadvance(2);
|
|
21359
21327
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessage.QUERY_HEARING_RELATED), " ");
|
|
21360
21328
|
} }
|
|
21361
|
-
function
|
|
21362
|
-
i0.ɵɵelementStart(0, "p",
|
|
21329
|
+
function QueryWriteRaiseQueryComponent_div_11_ng_container_42_p_7_Template(rf, ctx) { if (rf & 1) {
|
|
21330
|
+
i0.ɵɵelementStart(0, "p", 36)(1, "span", 28);
|
|
21363
21331
|
i0.ɵɵtext(2);
|
|
21364
21332
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
21365
21333
|
i0.ɵɵelementEnd();
|
|
@@ -21367,24 +21335,24 @@ function QueryWriteRaiseQueryComponent_ng_container_53_p_7_Template(rf, ctx) { i
|
|
|
21367
21335
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
21368
21336
|
i0.ɵɵelementEnd();
|
|
21369
21337
|
} if (rf & 2) {
|
|
21370
|
-
const ctx_r0 = i0.ɵɵnextContext(
|
|
21338
|
+
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
21371
21339
|
i0.ɵɵadvance(2);
|
|
21372
21340
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 2, "Error:"), " ");
|
|
21373
21341
|
i0.ɵɵadvance(2);
|
|
21374
21342
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessage.QUERY_HEARING_DATE), " ");
|
|
21375
21343
|
} }
|
|
21376
|
-
function
|
|
21344
|
+
function QueryWriteRaiseQueryComponent_div_11_ng_container_42_Template(rf, ctx) { if (rf & 1) {
|
|
21377
21345
|
i0.ɵɵelementContainerStart(0);
|
|
21378
|
-
i0.ɵɵelementStart(1, "div",
|
|
21346
|
+
i0.ɵɵelementStart(1, "div", 31)(2, "fieldset", 32)(3, "legend")(4, "label", 33);
|
|
21379
21347
|
i0.ɵɵtext(5);
|
|
21380
21348
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
21381
21349
|
i0.ɵɵelementEnd()();
|
|
21382
|
-
i0.ɵɵtemplate(7,
|
|
21383
|
-
i0.ɵɵelement(8, "ccd-query-write-date-input",
|
|
21350
|
+
i0.ɵɵtemplate(7, QueryWriteRaiseQueryComponent_div_11_ng_container_42_p_7_Template, 6, 6, "p", 34);
|
|
21351
|
+
i0.ɵɵelement(8, "ccd-query-write-date-input", 35);
|
|
21384
21352
|
i0.ɵɵelementEnd()();
|
|
21385
21353
|
i0.ɵɵelementContainerEnd();
|
|
21386
21354
|
} if (rf & 2) {
|
|
21387
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
21355
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
21388
21356
|
i0.ɵɵadvance();
|
|
21389
21357
|
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));
|
|
21390
21358
|
i0.ɵɵadvance(4);
|
|
@@ -21392,13 +21360,101 @@ function QueryWriteRaiseQueryComponent_ng_container_53_Template(rf, ctx) { if (r
|
|
|
21392
21360
|
i0.ɵɵadvance(2);
|
|
21393
21361
|
i0.ɵɵproperty("ngIf", ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").value === true && ctx_r0.formGroup.get("hearingDate").value === null);
|
|
21394
21362
|
} }
|
|
21363
|
+
function QueryWriteRaiseQueryComponent_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
21364
|
+
i0.ɵɵelementStart(0, "div", 5)(1, "div", 6)(2, "div")(3, "div", 7)(4, "div", 8)(5, "label", 9);
|
|
21365
|
+
i0.ɵɵtext(6);
|
|
21366
|
+
i0.ɵɵpipe(7, "rpxTranslate");
|
|
21367
|
+
i0.ɵɵelementEnd()();
|
|
21368
|
+
i0.ɵɵelementStart(8, "div", 10);
|
|
21369
|
+
i0.ɵɵtext(9);
|
|
21370
|
+
i0.ɵɵpipe(10, "rpxTranslate");
|
|
21371
|
+
i0.ɵɵelementEnd();
|
|
21372
|
+
i0.ɵɵtemplate(11, QueryWriteRaiseQueryComponent_div_11_p_11_Template, 6, 6, "p", 11);
|
|
21373
|
+
i0.ɵɵelement(12, "input", 12);
|
|
21374
|
+
i0.ɵɵelementEnd()();
|
|
21375
|
+
i0.ɵɵelementStart(13, "div", 7)(14, "div", 8)(15, "label", 13);
|
|
21376
|
+
i0.ɵɵtext(16);
|
|
21377
|
+
i0.ɵɵpipe(17, "rpxTranslate");
|
|
21378
|
+
i0.ɵɵelementEnd()();
|
|
21379
|
+
i0.ɵɵelementStart(18, "div", 14);
|
|
21380
|
+
i0.ɵɵtext(19);
|
|
21381
|
+
i0.ɵɵpipe(20, "rpxTranslate");
|
|
21382
|
+
i0.ɵɵelementEnd();
|
|
21383
|
+
i0.ɵɵtemplate(21, QueryWriteRaiseQueryComponent_div_11_p_21_Template, 6, 6, "p", 15);
|
|
21384
|
+
i0.ɵɵelementStart(22, "textarea", 16);
|
|
21385
|
+
i0.ɵɵtext(23, " ");
|
|
21386
|
+
i0.ɵɵelementEnd()();
|
|
21387
|
+
i0.ɵɵelementStart(24, "div", 7)(25, "fieldset", 17)(26, "legend")(27, "label", 18);
|
|
21388
|
+
i0.ɵɵtext(28);
|
|
21389
|
+
i0.ɵɵpipe(29, "rpxTranslate");
|
|
21390
|
+
i0.ɵɵelementEnd()();
|
|
21391
|
+
i0.ɵɵtemplate(30, QueryWriteRaiseQueryComponent_div_11_p_30_Template, 6, 6, "p", 19);
|
|
21392
|
+
i0.ɵɵelementStart(31, "div", 20)(32, "div", 21);
|
|
21393
|
+
i0.ɵɵelement(33, "input", 22);
|
|
21394
|
+
i0.ɵɵelementStart(34, "label", 23);
|
|
21395
|
+
i0.ɵɵtext(35);
|
|
21396
|
+
i0.ɵɵpipe(36, "rpxTranslate");
|
|
21397
|
+
i0.ɵɵelementEnd()();
|
|
21398
|
+
i0.ɵɵelementStart(37, "div", 21);
|
|
21399
|
+
i0.ɵɵelement(38, "input", 24);
|
|
21400
|
+
i0.ɵɵelementStart(39, "label", 25);
|
|
21401
|
+
i0.ɵɵtext(40);
|
|
21402
|
+
i0.ɵɵpipe(41, "rpxTranslate");
|
|
21403
|
+
i0.ɵɵelementEnd()()()();
|
|
21404
|
+
i0.ɵɵtemplate(42, QueryWriteRaiseQueryComponent_div_11_ng_container_42_Template, 9, 7, "ng-container", 26);
|
|
21405
|
+
i0.ɵɵelementEnd()()();
|
|
21406
|
+
} if (rf & 2) {
|
|
21407
|
+
let tmp_6_0;
|
|
21408
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
21409
|
+
i0.ɵɵadvance();
|
|
21410
|
+
i0.ɵɵproperty("formGroup", ctx_r0.formGroup);
|
|
21411
|
+
i0.ɵɵadvance(2);
|
|
21412
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(43, _c0$C, ctx_r0.submitted && ctx_r0.formGroup.get("subject").hasError("required")));
|
|
21413
|
+
i0.ɵɵadvance(3);
|
|
21414
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7, 25, "Query subject"), " ");
|
|
21415
|
+
i0.ɵɵadvance(3);
|
|
21416
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10, 27, "The subject should be a summary of your query"), " ");
|
|
21417
|
+
i0.ɵɵadvance(2);
|
|
21418
|
+
i0.ɵɵproperty("ngIf", ctx_r0.submitted && ctx_r0.formGroup.get("subject").hasError("required"));
|
|
21419
|
+
i0.ɵɵadvance();
|
|
21420
|
+
i0.ɵɵclassProp("govuk-input--error", ctx_r0.submitted && ((tmp_6_0 = ctx_r0.formGroup.get("subject")) == null ? null : tmp_6_0.hasError("required")));
|
|
21421
|
+
i0.ɵɵproperty("formControlName", "subject");
|
|
21422
|
+
i0.ɵɵadvance();
|
|
21423
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(45, _c0$C, ctx_r0.submitted && ctx_r0.formGroup.get("body").hasError("required")));
|
|
21424
|
+
i0.ɵɵadvance(3);
|
|
21425
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17, 29, "Query detail"), " ");
|
|
21426
|
+
i0.ɵɵadvance(3);
|
|
21427
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(20, 31, "Include as many details as possible so case workers can respond to your query"), " ");
|
|
21428
|
+
i0.ɵɵadvance(2);
|
|
21429
|
+
i0.ɵɵproperty("ngIf", ctx_r0.submitted && ctx_r0.formGroup.get("body").hasError("required"));
|
|
21430
|
+
i0.ɵɵadvance();
|
|
21431
|
+
i0.ɵɵclassProp("govuk-textarea--error", ctx_r0.submitted && ctx_r0.formGroup.get("body").hasError("required"));
|
|
21432
|
+
i0.ɵɵproperty("formControlName", "body");
|
|
21433
|
+
i0.ɵɵadvance(2);
|
|
21434
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(47, _c0$C, ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").hasError("required")));
|
|
21435
|
+
i0.ɵɵadvance(4);
|
|
21436
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(29, 33, "Is the query hearing related?"), " ");
|
|
21437
|
+
i0.ɵɵadvance(2);
|
|
21438
|
+
i0.ɵɵproperty("ngIf", ctx_r0.submitted && ctx_r0.formGroup.get("isHearingRelated").hasError("required"));
|
|
21439
|
+
i0.ɵɵadvance(3);
|
|
21440
|
+
i0.ɵɵproperty("checked", ctx_r0.formGroup.get("isHearingRelated").value === true)("value", true);
|
|
21441
|
+
i0.ɵɵadvance(2);
|
|
21442
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(36, 35, "Is the query hearing related?", null, "Yes"), " ");
|
|
21443
|
+
i0.ɵɵadvance(3);
|
|
21444
|
+
i0.ɵɵproperty("checked", ctx_r0.formGroup.get("isHearingRelated").value === false)("value", false);
|
|
21445
|
+
i0.ɵɵadvance(2);
|
|
21446
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(41, 39, "Is the query hearing related?", null, "No"), " ");
|
|
21447
|
+
i0.ɵɵadvance(2);
|
|
21448
|
+
i0.ɵɵproperty("ngIf", ctx_r0.formGroup.get("isHearingRelated").value);
|
|
21449
|
+
} }
|
|
21395
21450
|
class QueryWriteRaiseQueryComponent {
|
|
21396
21451
|
formGroup;
|
|
21397
21452
|
submitted;
|
|
21398
21453
|
caseDetails;
|
|
21454
|
+
showForm;
|
|
21399
21455
|
raiseQueryErrorMessage = RaiseQueryErrorMessage;
|
|
21400
21456
|
static ɵfac = function QueryWriteRaiseQueryComponent_Factory(t) { return new (t || QueryWriteRaiseQueryComponent)(); };
|
|
21401
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryWriteRaiseQueryComponent, selectors: [["ccd-query-write-raise-query"]], inputs: { formGroup: "formGroup", submitted: "submitted", caseDetails: "caseDetails" }, decls:
|
|
21457
|
+
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) {
|
|
21402
21458
|
i0.ɵɵelementStart(0, "div")(1, "div", 0)(2, "div", 1);
|
|
21403
21459
|
i0.ɵɵtext(3);
|
|
21404
21460
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
@@ -21411,112 +21467,35 @@ class QueryWriteRaiseQueryComponent {
|
|
|
21411
21467
|
i0.ɵɵelement(9, "ccd-query-case-details-header", 3);
|
|
21412
21468
|
i0.ɵɵelementEnd();
|
|
21413
21469
|
i0.ɵɵelement(10, "hr");
|
|
21414
|
-
i0.ɵɵ
|
|
21415
|
-
i0.ɵɵtext(17);
|
|
21416
|
-
i0.ɵɵpipe(18, "rpxTranslate");
|
|
21417
|
-
i0.ɵɵelementEnd()();
|
|
21418
|
-
i0.ɵɵelementStart(19, "div", 9);
|
|
21419
|
-
i0.ɵɵtext(20);
|
|
21420
|
-
i0.ɵɵpipe(21, "rpxTranslate");
|
|
21421
|
-
i0.ɵɵelementEnd();
|
|
21422
|
-
i0.ɵɵtemplate(22, QueryWriteRaiseQueryComponent_p_22_Template, 6, 6, "p", 10);
|
|
21423
|
-
i0.ɵɵelement(23, "input", 11);
|
|
21424
|
-
i0.ɵɵelementEnd()();
|
|
21425
|
-
i0.ɵɵelementStart(24, "div", 6)(25, "div", 7)(26, "label", 12);
|
|
21426
|
-
i0.ɵɵtext(27);
|
|
21427
|
-
i0.ɵɵpipe(28, "rpxTranslate");
|
|
21428
|
-
i0.ɵɵelementEnd()();
|
|
21429
|
-
i0.ɵɵelementStart(29, "div", 13);
|
|
21430
|
-
i0.ɵɵtext(30);
|
|
21431
|
-
i0.ɵɵpipe(31, "rpxTranslate");
|
|
21470
|
+
i0.ɵɵtemplate(11, QueryWriteRaiseQueryComponent_div_11_Template, 43, 49, "div", 4);
|
|
21432
21471
|
i0.ɵɵelementEnd();
|
|
21433
|
-
i0.ɵɵtemplate(32, QueryWriteRaiseQueryComponent_p_32_Template, 6, 6, "p", 14);
|
|
21434
|
-
i0.ɵɵelementStart(33, "textarea", 15);
|
|
21435
|
-
i0.ɵɵtext(34, " ");
|
|
21436
|
-
i0.ɵɵelementEnd()();
|
|
21437
|
-
i0.ɵɵelementStart(35, "div", 6)(36, "fieldset", 16)(37, "legend")(38, "label", 17);
|
|
21438
|
-
i0.ɵɵtext(39);
|
|
21439
|
-
i0.ɵɵpipe(40, "rpxTranslate");
|
|
21440
|
-
i0.ɵɵelementEnd()();
|
|
21441
|
-
i0.ɵɵtemplate(41, QueryWriteRaiseQueryComponent_p_41_Template, 6, 6, "p", 18);
|
|
21442
|
-
i0.ɵɵelementStart(42, "div", 19)(43, "div", 20);
|
|
21443
|
-
i0.ɵɵelement(44, "input", 21);
|
|
21444
|
-
i0.ɵɵelementStart(45, "label", 22);
|
|
21445
|
-
i0.ɵɵtext(46);
|
|
21446
|
-
i0.ɵɵpipe(47, "rpxTranslate");
|
|
21447
|
-
i0.ɵɵelementEnd()();
|
|
21448
|
-
i0.ɵɵelementStart(48, "div", 20);
|
|
21449
|
-
i0.ɵɵelement(49, "input", 23);
|
|
21450
|
-
i0.ɵɵelementStart(50, "label", 24);
|
|
21451
|
-
i0.ɵɵtext(51);
|
|
21452
|
-
i0.ɵɵpipe(52, "rpxTranslate");
|
|
21453
|
-
i0.ɵɵelementEnd()()()();
|
|
21454
|
-
i0.ɵɵtemplate(53, QueryWriteRaiseQueryComponent_ng_container_53_Template, 9, 7, "ng-container", 25);
|
|
21455
|
-
i0.ɵɵelementEnd()()()();
|
|
21456
21472
|
} if (rf & 2) {
|
|
21457
|
-
let tmp_8_0;
|
|
21458
21473
|
i0.ɵɵadvance(3);
|
|
21459
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4,
|
|
21474
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 4, "Raise a query"));
|
|
21460
21475
|
i0.ɵɵadvance(3);
|
|
21461
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7,
|
|
21476
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 6, "Enter query details"));
|
|
21462
21477
|
i0.ɵɵadvance(3);
|
|
21463
21478
|
i0.ɵɵproperty("caseDetails", ctx.caseDetails);
|
|
21464
|
-
i0.ɵɵadvance(3);
|
|
21465
|
-
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
21466
|
-
i0.ɵɵadvance(2);
|
|
21467
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(50, _c0$C, ctx.submitted && ctx.formGroup.get("subject").hasError("required")));
|
|
21468
|
-
i0.ɵɵadvance(3);
|
|
21469
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(18, 32, "Query subject"), " ");
|
|
21470
|
-
i0.ɵɵadvance(3);
|
|
21471
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(21, 34, "The subject should be a summary of your query"), " ");
|
|
21472
|
-
i0.ɵɵadvance(2);
|
|
21473
|
-
i0.ɵɵproperty("ngIf", ctx.submitted && ctx.formGroup.get("subject").hasError("required"));
|
|
21474
|
-
i0.ɵɵadvance();
|
|
21475
|
-
i0.ɵɵclassProp("govuk-input--error", ctx.submitted && ((tmp_8_0 = ctx.formGroup.get("subject")) == null ? null : tmp_8_0.hasError("required")));
|
|
21476
|
-
i0.ɵɵproperty("formControlName", "subject");
|
|
21477
|
-
i0.ɵɵadvance();
|
|
21478
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(52, _c0$C, ctx.submitted && ctx.formGroup.get("body").hasError("required")));
|
|
21479
|
-
i0.ɵɵadvance(3);
|
|
21480
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(28, 36, "Query detail"), " ");
|
|
21481
|
-
i0.ɵɵadvance(3);
|
|
21482
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(31, 38, "Include as many details as possible so case workers can respond to your query"), " ");
|
|
21483
|
-
i0.ɵɵadvance(2);
|
|
21484
|
-
i0.ɵɵproperty("ngIf", ctx.submitted && ctx.formGroup.get("body").hasError("required"));
|
|
21485
|
-
i0.ɵɵadvance();
|
|
21486
|
-
i0.ɵɵclassProp("govuk-textarea--error", ctx.submitted && ctx.formGroup.get("body").hasError("required"));
|
|
21487
|
-
i0.ɵɵproperty("formControlName", "body");
|
|
21488
21479
|
i0.ɵɵadvance(2);
|
|
21489
|
-
i0.ɵɵproperty("
|
|
21490
|
-
i0.ɵɵadvance(4);
|
|
21491
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(40, 40, "Is the query hearing related?"), " ");
|
|
21492
|
-
i0.ɵɵadvance(2);
|
|
21493
|
-
i0.ɵɵproperty("ngIf", ctx.submitted && ctx.formGroup.get("isHearingRelated").hasError("required"));
|
|
21494
|
-
i0.ɵɵadvance(3);
|
|
21495
|
-
i0.ɵɵproperty("checked", ctx.formGroup.get("isHearingRelated").value === true)("value", true);
|
|
21496
|
-
i0.ɵɵadvance(2);
|
|
21497
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(47, 42, "Is the query hearing related?", null, "Yes"), " ");
|
|
21498
|
-
i0.ɵɵadvance(3);
|
|
21499
|
-
i0.ɵɵproperty("checked", ctx.formGroup.get("isHearingRelated").value === false)("value", false);
|
|
21500
|
-
i0.ɵɵadvance(2);
|
|
21501
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(52, 46, "Is the query hearing related?", null, "No"), " ");
|
|
21502
|
-
i0.ɵɵadvance(2);
|
|
21503
|
-
i0.ɵɵproperty("ngIf", ctx.formGroup.get("isHearingRelated").value);
|
|
21480
|
+
i0.ɵɵproperty("ngIf", ctx.showForm);
|
|
21504
21481
|
} }, encapsulation: 2 });
|
|
21505
21482
|
}
|
|
21506
21483
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryWriteRaiseQueryComponent, [{
|
|
21507
21484
|
type: Component,
|
|
21508
|
-
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" }]
|
|
21485
|
+
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" }]
|
|
21509
21486
|
}], null, { formGroup: [{
|
|
21510
21487
|
type: Input
|
|
21511
21488
|
}], submitted: [{
|
|
21512
21489
|
type: Input
|
|
21513
21490
|
}], caseDetails: [{
|
|
21514
21491
|
type: Input
|
|
21492
|
+
}], showForm: [{
|
|
21493
|
+
type: Input
|
|
21515
21494
|
}] }); })();
|
|
21516
21495
|
(() => { (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 }); })();
|
|
21517
21496
|
|
|
21518
|
-
function
|
|
21519
|
-
i0.ɵɵelementStart(0, "p",
|
|
21497
|
+
function QueryWriteRespondToQueryComponent_div_12_p_11_Template(rf, ctx) { if (rf & 1) {
|
|
21498
|
+
i0.ɵɵelementStart(0, "p", 15)(1, "span", 16);
|
|
21520
21499
|
i0.ɵɵtext(2);
|
|
21521
21500
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
21522
21501
|
i0.ɵɵelementEnd();
|
|
@@ -21524,18 +21503,51 @@ function QueryWriteRespondToQueryComponent_p_23_Template(rf, ctx) { if (rf & 1)
|
|
|
21524
21503
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
21525
21504
|
i0.ɵɵelementEnd();
|
|
21526
21505
|
} if (rf & 2) {
|
|
21527
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
21506
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
21528
21507
|
i0.ɵɵadvance(2);
|
|
21529
21508
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 2, "Error:"), " ");
|
|
21530
21509
|
i0.ɵɵadvance(2);
|
|
21531
21510
|
i0.ɵɵtextInterpolate1("", ctx_r0.queryCreateContext === ctx_r0.queryCreateContextEnum.RESPOND ? ctx_r0.raiseQueryErrorMessages.RESPOND_QUERY_BODY : i0.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessages.QUERY_BODY), " ");
|
|
21532
21511
|
} }
|
|
21512
|
+
function QueryWriteRespondToQueryComponent_div_12_Template(rf, ctx) { if (rf & 1) {
|
|
21513
|
+
i0.ɵɵelementStart(0, "div", 7)(1, "div")(2, "h1", 8);
|
|
21514
|
+
i0.ɵɵtext(3);
|
|
21515
|
+
i0.ɵɵpipe(4, "rpxTranslate");
|
|
21516
|
+
i0.ɵɵelementEnd();
|
|
21517
|
+
i0.ɵɵelementStart(5, "div", 9)(6, "div", 10)(7, "div", 11)(8, "label", 12);
|
|
21518
|
+
i0.ɵɵtext(9);
|
|
21519
|
+
i0.ɵɵpipe(10, "rpxTranslate");
|
|
21520
|
+
i0.ɵɵelementEnd()();
|
|
21521
|
+
i0.ɵɵtemplate(11, QueryWriteRespondToQueryComponent_div_12_p_11_Template, 6, 6, "p", 13);
|
|
21522
|
+
i0.ɵɵelementStart(12, "textarea", 14);
|
|
21523
|
+
i0.ɵɵtext(13, " ");
|
|
21524
|
+
i0.ɵɵelementEnd()()()()();
|
|
21525
|
+
} if (rf & 2) {
|
|
21526
|
+
let tmp_3_0;
|
|
21527
|
+
let tmp_5_0;
|
|
21528
|
+
let tmp_6_0;
|
|
21529
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
21530
|
+
i0.ɵɵadvance(3);
|
|
21531
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r0.queryCreateContext === ctx_r0.queryCreateContextEnum.RESPOND ? "Respond to a query" : i0.ɵɵpipeBind1(4, 9, "Ask a follow-up question"), " ");
|
|
21532
|
+
i0.ɵɵadvance(2);
|
|
21533
|
+
i0.ɵɵproperty("formGroup", ctx_r0.formGroup);
|
|
21534
|
+
i0.ɵɵadvance();
|
|
21535
|
+
i0.ɵɵclassProp("govuk-form-group--error", ctx_r0.submitted && ((tmp_3_0 = ctx_r0.formGroup.get("body")) == null ? null : tmp_3_0.hasError("required")));
|
|
21536
|
+
i0.ɵɵadvance(3);
|
|
21537
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r0.queryCreateContext === ctx_r0.queryCreateContextEnum.RESPOND ? "Response detail" : i0.ɵɵpipeBind1(10, 11, "Query Body"), " ");
|
|
21538
|
+
i0.ɵɵadvance(2);
|
|
21539
|
+
i0.ɵɵproperty("ngIf", ctx_r0.submitted && ((tmp_5_0 = ctx_r0.formGroup.get("body")) == null ? null : tmp_5_0.hasError("required")));
|
|
21540
|
+
i0.ɵɵadvance();
|
|
21541
|
+
i0.ɵɵclassProp("govuk-textarea--error", ctx_r0.submitted && ((tmp_6_0 = ctx_r0.formGroup.get("body")) == null ? null : tmp_6_0.hasError("required")));
|
|
21542
|
+
i0.ɵɵproperty("formControlName", "body");
|
|
21543
|
+
} }
|
|
21533
21544
|
class QueryWriteRespondToQueryComponent {
|
|
21534
21545
|
caseNotifier;
|
|
21535
21546
|
queryItem;
|
|
21536
21547
|
formGroup;
|
|
21537
21548
|
queryCreateContext;
|
|
21538
21549
|
submitted = false;
|
|
21550
|
+
showForm;
|
|
21539
21551
|
queryCreateContextEnum = QueryCreateContext;
|
|
21540
21552
|
raiseQueryErrorMessages = RaiseQueryErrorMessage;
|
|
21541
21553
|
caseId;
|
|
@@ -21550,7 +21562,7 @@ class QueryWriteRespondToQueryComponent {
|
|
|
21550
21562
|
});
|
|
21551
21563
|
}
|
|
21552
21564
|
static ɵfac = function QueryWriteRespondToQueryComponent_Factory(t) { return new (t || QueryWriteRespondToQueryComponent)(i0.ɵɵdirectiveInject(CaseNotifier)); };
|
|
21553
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryWriteRespondToQueryComponent, selectors: [["ccd-query-write-respond-to-query"]], inputs: { queryItem: "queryItem", formGroup: "formGroup", queryCreateContext: "queryCreateContext", submitted: "submitted" }, decls:
|
|
21565
|
+
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) {
|
|
21554
21566
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 0)(2, "div", 1);
|
|
21555
21567
|
i0.ɵɵtext(3);
|
|
21556
21568
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
@@ -21565,48 +21577,23 @@ class QueryWriteRespondToQueryComponent {
|
|
|
21565
21577
|
i0.ɵɵelementStart(10, "div");
|
|
21566
21578
|
i0.ɵɵelement(11, "ccd-query-details", 5);
|
|
21567
21579
|
i0.ɵɵelementEnd()();
|
|
21568
|
-
i0.ɵɵ
|
|
21569
|
-
i0.ɵɵtext(15);
|
|
21570
|
-
i0.ɵɵpipe(16, "rpxTranslate");
|
|
21571
|
-
i0.ɵɵelementEnd();
|
|
21572
|
-
i0.ɵɵelementStart(17, "div", 8)(18, "div", 9)(19, "div", 10)(20, "label", 11);
|
|
21573
|
-
i0.ɵɵtext(21);
|
|
21574
|
-
i0.ɵɵpipe(22, "rpxTranslate");
|
|
21575
|
-
i0.ɵɵelementEnd()();
|
|
21576
|
-
i0.ɵɵtemplate(23, QueryWriteRespondToQueryComponent_p_23_Template, 6, 6, "p", 12);
|
|
21577
|
-
i0.ɵɵelementStart(24, "textarea", 13);
|
|
21578
|
-
i0.ɵɵtext(25, " ");
|
|
21579
|
-
i0.ɵɵelementEnd()()()()();
|
|
21580
|
+
i0.ɵɵtemplate(12, QueryWriteRespondToQueryComponent_div_12_Template, 14, 13, "div", 6);
|
|
21580
21581
|
} if (rf & 2) {
|
|
21581
|
-
let tmp_6_0;
|
|
21582
|
-
let tmp_8_0;
|
|
21583
|
-
let tmp_9_0;
|
|
21584
21582
|
i0.ɵɵadvance(3);
|
|
21585
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4,
|
|
21583
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 5, "Respond to a query"));
|
|
21586
21584
|
i0.ɵɵadvance(3);
|
|
21587
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7,
|
|
21585
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 7, "Query details"));
|
|
21588
21586
|
i0.ɵɵadvance(3);
|
|
21589
21587
|
i0.ɵɵproperty("caseDetails", ctx.caseDetails);
|
|
21590
21588
|
i0.ɵɵadvance(2);
|
|
21591
21589
|
i0.ɵɵproperty("query", ctx.queryItem);
|
|
21592
|
-
i0.ɵɵadvance(4);
|
|
21593
|
-
i0.ɵɵtextInterpolate1(" ", ctx.queryCreateContext === ctx.queryCreateContextEnum.RESPOND ? "Respond to a query" : i0.ɵɵpipeBind1(16, 17, "Ask a follow-up question"), " ");
|
|
21594
|
-
i0.ɵɵadvance(2);
|
|
21595
|
-
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
21596
21590
|
i0.ɵɵadvance();
|
|
21597
|
-
i0.ɵɵ
|
|
21598
|
-
i0.ɵɵadvance(3);
|
|
21599
|
-
i0.ɵɵtextInterpolate1(" ", ctx.queryCreateContext === ctx.queryCreateContextEnum.RESPOND ? "Response detail" : i0.ɵɵpipeBind1(22, 19, "Query Body"), " ");
|
|
21600
|
-
i0.ɵɵadvance(2);
|
|
21601
|
-
i0.ɵɵproperty("ngIf", ctx.submitted && ((tmp_8_0 = ctx.formGroup.get("body")) == null ? null : tmp_8_0.hasError("required")));
|
|
21602
|
-
i0.ɵɵadvance();
|
|
21603
|
-
i0.ɵɵclassProp("govuk-textarea--error", ctx.submitted && ((tmp_9_0 = ctx.formGroup.get("body")) == null ? null : tmp_9_0.hasError("required")));
|
|
21604
|
-
i0.ɵɵproperty("formControlName", "body");
|
|
21591
|
+
i0.ɵɵproperty("ngIf", ctx.showForm);
|
|
21605
21592
|
} }, styles: [".query-respond[_ngcontent-%COMP%]{width:100%;max-width:720px}"] });
|
|
21606
21593
|
}
|
|
21607
21594
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryWriteRespondToQueryComponent, [{
|
|
21608
21595
|
type: Component,
|
|
21609
|
-
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"] }]
|
|
21596
|
+
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"] }]
|
|
21610
21597
|
}], () => [{ type: CaseNotifier }], { queryItem: [{
|
|
21611
21598
|
type: Input
|
|
21612
21599
|
}], formGroup: [{
|
|
@@ -21615,6 +21602,8 @@ class QueryWriteRespondToQueryComponent {
|
|
|
21615
21602
|
type: Input
|
|
21616
21603
|
}], submitted: [{
|
|
21617
21604
|
type: Input
|
|
21605
|
+
}], showForm: [{
|
|
21606
|
+
type: Input
|
|
21618
21607
|
}] }); })();
|
|
21619
21608
|
(() => { (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 }); })();
|
|
21620
21609
|
|