@hmcts/ccd-case-ui-toolkit 7.1.78 → 7.1.79-callback-success-message
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 +21 -6
- package/esm2022/lib/shared/components/palette/query-management/components/query-confirmation/query-confirmation.component.mjs +33 -31
- package/esm2022/lib/shared/components/palette/query-management/read-query-management-field.component.mjs +3 -3
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs +52 -36
- 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 +4 -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-confirmation/query-confirmation.component.d.ts +4 -1
- package/lib/shared/components/palette/query-management/components/query-confirmation/query-confirmation.component.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -21188,6 +21188,7 @@ class QueryCheckYourAnswersComponent {
|
|
|
21188
21188
|
eventData = null;
|
|
21189
21189
|
backClicked = new EventEmitter();
|
|
21190
21190
|
querySubmitted = new EventEmitter();
|
|
21191
|
+
callbackConfirmationMessage = new EventEmitter();
|
|
21191
21192
|
caseViewTrigger;
|
|
21192
21193
|
caseDetails;
|
|
21193
21194
|
queryId;
|
|
@@ -21269,7 +21270,12 @@ class QueryCheckYourAnswersComponent {
|
|
|
21269
21270
|
const createEvent$ = this.createEvent(data);
|
|
21270
21271
|
if (this.queryCreateContext === QueryCreateContext.RESPOND) {
|
|
21271
21272
|
if (this.filteredTasks?.length > 0) {
|
|
21272
|
-
this.createEventSubscription = createEvent$.pipe(switchMap((createEventResponse) =>
|
|
21273
|
+
this.createEventSubscription = createEvent$.pipe(switchMap((createEventResponse) => {
|
|
21274
|
+
const confirmationBody = createEventResponse?.after_submit_callback_response?.confirmation_body;
|
|
21275
|
+
const confirmationHeader = createEventResponse?.after_submit_callback_response?.confirmation_header;
|
|
21276
|
+
this.callbackConfirmationMessage.emit({ body: confirmationBody, header: confirmationHeader });
|
|
21277
|
+
return this.workAllocationService.completeTask(this.filteredTasks[0].id, this.caseViewTrigger.name);
|
|
21278
|
+
})).subscribe({
|
|
21273
21279
|
next: () => this.finaliseSubmission(),
|
|
21274
21280
|
error: (error) => this.handleError(error)
|
|
21275
21281
|
});
|
|
@@ -21287,7 +21293,12 @@ class QueryCheckYourAnswersComponent {
|
|
|
21287
21293
|
}
|
|
21288
21294
|
else {
|
|
21289
21295
|
this.createEventSubscription = createEvent$.subscribe({
|
|
21290
|
-
next: () =>
|
|
21296
|
+
next: (callbackResponse) => {
|
|
21297
|
+
this.finaliseSubmission();
|
|
21298
|
+
const confirmationBody = callbackResponse?.after_submit_callback_response?.confirmation_body;
|
|
21299
|
+
const confirmationHeader = callbackResponse?.after_submit_callback_response?.confirmation_header;
|
|
21300
|
+
this.callbackConfirmationMessage.emit({ body: confirmationBody, header: confirmationHeader });
|
|
21301
|
+
},
|
|
21291
21302
|
error: (error) => this.handleError(error)
|
|
21292
21303
|
});
|
|
21293
21304
|
}
|
|
@@ -21448,11 +21459,13 @@ class QueryCheckYourAnswersComponent {
|
|
|
21448
21459
|
const candidateFields = this.eventData?.case_fields?.filter((field) => field.field_type.id === this.CASE_QUERIES_COLLECTION_ID &&
|
|
21449
21460
|
field.field_type.type === this.FIELD_TYPE_COMPLEX &&
|
|
21450
21461
|
field.display_context !== this.DISPLAY_CONTEXT_READONLY);
|
|
21451
|
-
if (!candidateFields?.length)
|
|
21462
|
+
if (!candidateFields?.length) {
|
|
21452
21463
|
return undefined;
|
|
21464
|
+
}
|
|
21453
21465
|
const firstPageFields = this.eventData?.wizard_pages?.[0]?.wizard_page_fields;
|
|
21454
|
-
if (!firstPageFields)
|
|
21466
|
+
if (!firstPageFields) {
|
|
21455
21467
|
return undefined;
|
|
21468
|
+
}
|
|
21456
21469
|
return candidateFields
|
|
21457
21470
|
.map((field) => {
|
|
21458
21471
|
const wizardField = firstPageFields.find(f => f.case_field_id === field.id);
|
|
@@ -21471,7 +21484,7 @@ class QueryCheckYourAnswersComponent {
|
|
|
21471
21484
|
}
|
|
21472
21485
|
}
|
|
21473
21486
|
static ɵfac = function QueryCheckYourAnswersComponent_Factory(t) { return new (t || QueryCheckYourAnswersComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(WorkAllocationService), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(QualifyingQuestionService)); };
|
|
21474
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryCheckYourAnswersComponent, selectors: [["ccd-query-check-your-answers"]], inputs: { formGroup: "formGroup", queryItem: "queryItem", queryCreateContext: "queryCreateContext", eventData: "eventData" }, outputs: { backClicked: "backClicked", querySubmitted: "querySubmitted" }, decls: 33, vars: 22, consts: [["defaultCheckYourAnswersTitle", ""], ["isHearingRelatedFalse", ""], [1, "govuk-grid-row"], [1, "govuk-grid-column-two-thirds-from-desktop"], ["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], [4, "ngIf"], [1, "govuk-heading-l"], [4, "ngIf", "ngIfElse"], [1, "govuk-!-margin-bottom-4"], [3, "caseDetails"], ["class", "govuk-summary-list govuk-!-margin-bottom-0", 4, "ngIf"], [1, "govuk-summary-list", "govuk-!-margin-bottom-0"], [1, "govuk-summary-list__row"], [1, "govuk-summary-list__key"], [1, "govuk-summary-list__value"], [1, "govuk-summary-list__actions"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], ["data-module", "govuk-button", 1, "govuk-button", "govuk-button--secondary", "govuk-!-margin-right-3", 3, "click"], ["data-module", "govuk-button", "type", "submit", 1, "govuk-button", 3, "click"], [3, "eventCompletionParams"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [4, "ngFor", "ngForOf"], ["href", "javascript:void(0)", 1, "validation-error", 3, "id"], [1, "govuk-caption-l"], ["href", "javascript:void(0)", "class", "govuk-link", 3, "click", 4, "ngIf"], ["class", "govuk-summary-list__row", 4, "ngIf"], [1, "govuk-summary-list__value", "govuk-summary-list__value--documentAttached"], [3, "attachments", 4, "ngIf"], [3, "attachments"]], template: function QueryCheckYourAnswersComponent_Template(rf, ctx) { if (rf & 1) {
|
|
21487
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryCheckYourAnswersComponent, selectors: [["ccd-query-check-your-answers"]], inputs: { formGroup: "formGroup", queryItem: "queryItem", queryCreateContext: "queryCreateContext", eventData: "eventData" }, outputs: { backClicked: "backClicked", querySubmitted: "querySubmitted", callbackConfirmationMessage: "callbackConfirmationMessage" }, decls: 33, vars: 22, consts: [["defaultCheckYourAnswersTitle", ""], ["isHearingRelatedFalse", ""], [1, "govuk-grid-row"], [1, "govuk-grid-column-two-thirds-from-desktop"], ["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], [4, "ngIf"], [1, "govuk-heading-l"], [4, "ngIf", "ngIfElse"], [1, "govuk-!-margin-bottom-4"], [3, "caseDetails"], ["class", "govuk-summary-list govuk-!-margin-bottom-0", 4, "ngIf"], [1, "govuk-summary-list", "govuk-!-margin-bottom-0"], [1, "govuk-summary-list__row"], [1, "govuk-summary-list__key"], [1, "govuk-summary-list__value"], [1, "govuk-summary-list__actions"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], ["data-module", "govuk-button", 1, "govuk-button", "govuk-button--secondary", "govuk-!-margin-right-3", 3, "click"], ["data-module", "govuk-button", "type", "submit", 1, "govuk-button", 3, "click"], [3, "eventCompletionParams"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [4, "ngFor", "ngForOf"], ["href", "javascript:void(0)", 1, "validation-error", 3, "id"], [1, "govuk-caption-l"], ["href", "javascript:void(0)", "class", "govuk-link", 3, "click", 4, "ngIf"], ["class", "govuk-summary-list__row", 4, "ngIf"], [1, "govuk-summary-list__value", "govuk-summary-list__value--documentAttached"], [3, "attachments", 4, "ngIf"], [3, "attachments"]], template: function QueryCheckYourAnswersComponent_Template(rf, ctx) { if (rf & 1) {
|
|
21475
21488
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
21476
21489
|
i0.ɵɵelementStart(0, "div", 2)(1, "div", 3);
|
|
21477
21490
|
i0.ɵɵtemplate(2, QueryCheckYourAnswersComponent_div_2_Template, 7, 4, "div", 4)(3, QueryCheckYourAnswersComponent_ng_container_3_Template, 4, 3, "ng-container", 5);
|
|
@@ -21554,6 +21567,8 @@ class QueryCheckYourAnswersComponent {
|
|
|
21554
21567
|
type: Output
|
|
21555
21568
|
}], querySubmitted: [{
|
|
21556
21569
|
type: Output
|
|
21570
|
+
}], callbackConfirmationMessage: [{
|
|
21571
|
+
type: Output
|
|
21557
21572
|
}] }); })();
|
|
21558
21573
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryCheckYourAnswersComponent, { className: "QueryCheckYourAnswersComponent", filePath: "lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.ts", lineNumber: 28 }); })();
|
|
21559
21574
|
|
|
@@ -22765,27 +22780,25 @@ function QueryConfirmationComponent_main_0_ng_container_3_Template(rf, ctx) { if
|
|
|
22765
22780
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
22766
22781
|
i0.ɵɵelementEnd();
|
|
22767
22782
|
i0.ɵɵelementStart(5, "div", 7);
|
|
22768
|
-
i0.ɵɵ
|
|
22783
|
+
i0.ɵɵelement(6, "ccd-markdown", 8);
|
|
22769
22784
|
i0.ɵɵpipe(7, "rpxTranslate");
|
|
22770
22785
|
i0.ɵɵelementEnd()();
|
|
22771
|
-
i0.ɵɵelementStart(8, "div",
|
|
22786
|
+
i0.ɵɵelementStart(8, "div", 9)(9, "h3", 10);
|
|
22772
22787
|
i0.ɵɵtext(10);
|
|
22773
22788
|
i0.ɵɵpipe(11, "rpxTranslate");
|
|
22774
22789
|
i0.ɵɵelementEnd();
|
|
22775
|
-
i0.ɵɵ
|
|
22776
|
-
i0.ɵɵ
|
|
22777
|
-
i0.ɵɵ
|
|
22778
|
-
i0.ɵɵ
|
|
22779
|
-
i0.ɵɵ
|
|
22780
|
-
i0.ɵɵtext(16);
|
|
22781
|
-
i0.ɵɵpipe(17, "rpxTranslate");
|
|
22790
|
+
i0.ɵɵelement(12, "ccd-markdown", 8);
|
|
22791
|
+
i0.ɵɵpipe(13, "rpxTranslate");
|
|
22792
|
+
i0.ɵɵelementStart(14, "p");
|
|
22793
|
+
i0.ɵɵtext(15);
|
|
22794
|
+
i0.ɵɵpipe(16, "rpxTranslate");
|
|
22782
22795
|
i0.ɵɵelementEnd();
|
|
22783
|
-
i0.ɵɵelementStart(
|
|
22784
|
-
i0.ɵɵtext(
|
|
22785
|
-
i0.ɵɵpipe(
|
|
22786
|
-
i0.ɵɵelementStart(
|
|
22787
|
-
i0.ɵɵtext(
|
|
22788
|
-
i0.ɵɵpipe(
|
|
22796
|
+
i0.ɵɵelementStart(17, "p");
|
|
22797
|
+
i0.ɵɵtext(18);
|
|
22798
|
+
i0.ɵɵpipe(19, "rpxTranslate");
|
|
22799
|
+
i0.ɵɵelementStart(20, "a", 11);
|
|
22800
|
+
i0.ɵɵtext(21);
|
|
22801
|
+
i0.ɵɵpipe(22, "rpxTranslate");
|
|
22789
22802
|
i0.ɵɵelementEnd()()();
|
|
22790
22803
|
i0.ɵɵelementContainerEnd();
|
|
22791
22804
|
} if (rf & 2) {
|
|
@@ -22793,19 +22806,19 @@ function QueryConfirmationComponent_main_0_ng_container_3_Template(rf, ctx) { if
|
|
|
22793
22806
|
i0.ɵɵadvance(3);
|
|
22794
22807
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 9, "Query submitted"));
|
|
22795
22808
|
i0.ɵɵadvance(3);
|
|
22796
|
-
i0.ɵɵ
|
|
22809
|
+
i0.ɵɵproperty("content", i0.ɵɵpipeBind1(7, 11, ctx_r0.callbackConfirmationMessageText == null ? null : ctx_r0.callbackConfirmationMessageText.header));
|
|
22797
22810
|
i0.ɵɵadvance(4);
|
|
22798
22811
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(11, 13, "What happens next"));
|
|
22812
|
+
i0.ɵɵadvance(2);
|
|
22813
|
+
i0.ɵɵproperty("content", i0.ɵɵpipeBind1(13, 15, ctx_r0.callbackConfirmationMessageText == null ? null : ctx_r0.callbackConfirmationMessageText.body));
|
|
22799
22814
|
i0.ɵɵadvance(3);
|
|
22800
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
22801
|
-
i0.ɵɵadvance(3);
|
|
22802
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(17, 17, "When the response is available it will be added to the 'Queries' section."));
|
|
22815
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(16, 17, "When the response is available it will be added to the 'Queries' section."));
|
|
22803
22816
|
i0.ɵɵadvance(3);
|
|
22804
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
22817
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(19, 19, "You can"), " ");
|
|
22805
22818
|
i0.ɵɵadvance(2);
|
|
22806
22819
|
i0.ɵɵpropertyInterpolate1("routerLink", "/cases/case-details/", ctx_r0.caseId, "");
|
|
22807
22820
|
i0.ɵɵadvance();
|
|
22808
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
22821
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(22, 21, "Go back to the case"));
|
|
22809
22822
|
} }
|
|
22810
22823
|
function QueryConfirmationComponent_main_0_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
|
22811
22824
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -22813,19 +22826,19 @@ function QueryConfirmationComponent_main_0_ng_container_4_Template(rf, ctx) { if
|
|
|
22813
22826
|
i0.ɵɵtext(3);
|
|
22814
22827
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
22815
22828
|
i0.ɵɵelementEnd();
|
|
22816
|
-
i0.ɵɵelementStart(5, "div",
|
|
22829
|
+
i0.ɵɵelementStart(5, "div", 12);
|
|
22817
22830
|
i0.ɵɵtext(6);
|
|
22818
22831
|
i0.ɵɵpipe(7, "rpxTranslate");
|
|
22819
22832
|
i0.ɵɵelementEnd()();
|
|
22820
|
-
i0.ɵɵelementStart(8, "div",
|
|
22833
|
+
i0.ɵɵelementStart(8, "div", 9);
|
|
22821
22834
|
i0.ɵɵtext(9);
|
|
22822
22835
|
i0.ɵɵpipe(10, "rpxTranslate");
|
|
22823
|
-
i0.ɵɵelementStart(11, "a",
|
|
22836
|
+
i0.ɵɵelementStart(11, "a", 13);
|
|
22824
22837
|
i0.ɵɵtext(12);
|
|
22825
22838
|
i0.ɵɵpipe(13, "rpxTranslate");
|
|
22826
22839
|
i0.ɵɵelementEnd();
|
|
22827
22840
|
i0.ɵɵtext(14, " or ");
|
|
22828
|
-
i0.ɵɵelementStart(15, "a",
|
|
22841
|
+
i0.ɵɵelementStart(15, "a", 14);
|
|
22829
22842
|
i0.ɵɵtext(16);
|
|
22830
22843
|
i0.ɵɵpipe(17, "rpxTranslate");
|
|
22831
22844
|
i0.ɵɵelementEnd()();
|
|
@@ -22849,7 +22862,7 @@ function QueryConfirmationComponent_main_0_ng_container_4_Template(rf, ctx) { if
|
|
|
22849
22862
|
} }
|
|
22850
22863
|
function QueryConfirmationComponent_main_0_Template(rf, ctx) { if (rf & 1) {
|
|
22851
22864
|
i0.ɵɵelementStart(0, "main", 1)(1, "div", 2)(2, "div", 3);
|
|
22852
|
-
i0.ɵɵtemplate(3, QueryConfirmationComponent_main_0_ng_container_3_Template,
|
|
22865
|
+
i0.ɵɵtemplate(3, QueryConfirmationComponent_main_0_ng_container_3_Template, 23, 23, "ng-container", 4)(4, QueryConfirmationComponent_main_0_ng_container_4_Template, 18, 19, "ng-container", 4);
|
|
22853
22866
|
i0.ɵɵelementEnd()()();
|
|
22854
22867
|
} if (rf & 2) {
|
|
22855
22868
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
@@ -22861,6 +22874,7 @@ function QueryConfirmationComponent_main_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
22861
22874
|
class QueryConfirmationComponent {
|
|
22862
22875
|
route;
|
|
22863
22876
|
queryCreateContext;
|
|
22877
|
+
callbackConfirmationMessageText = {};
|
|
22864
22878
|
caseId = '';
|
|
22865
22879
|
queryCreateContextEnum = QueryCreateContext;
|
|
22866
22880
|
constructor(route) {
|
|
@@ -22870,17 +22884,19 @@ class QueryConfirmationComponent {
|
|
|
22870
22884
|
this.caseId = this.route.snapshot.params.cid;
|
|
22871
22885
|
}
|
|
22872
22886
|
static ɵfac = function QueryConfirmationComponent_Factory(t) { return new (t || QueryConfirmationComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute)); };
|
|
22873
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryConfirmationComponent, selectors: [["ccd-query-confirmation"]], inputs: { queryCreateContext: "queryCreateContext" }, decls: 1, vars: 1, consts: [["class", "govuk-main-wrapper", 4, "ngIf"], [1, "govuk-main-wrapper"], [1, "govuk-grid-row"], [1, "govuk-grid-column-two-thirds"], [4, "ngIf"], [1, "govuk-panel", "govuk-panel--confirmation"], [1, "govuk-panel__title"], [1, "govuk-panel__body"], [1, "govuk-body"], [1, "govuk-heading-s"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "routerLink"], ["id", "tasks-link", "href", "javascript:void(0)", 1, "govuk-link", 3, "routerLink"], ["id", "case-link", "href", "javascript:void(0)", 1, "govuk-link", 3, "routerLink"]], template: function QueryConfirmationComponent_Template(rf, ctx) { if (rf & 1) {
|
|
22887
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryConfirmationComponent, selectors: [["ccd-query-confirmation"]], inputs: { queryCreateContext: "queryCreateContext", callbackConfirmationMessageText: "callbackConfirmationMessageText" }, decls: 1, vars: 1, consts: [["class", "govuk-main-wrapper", 4, "ngIf"], [1, "govuk-main-wrapper"], [1, "govuk-grid-row"], [1, "govuk-grid-column-two-thirds"], [4, "ngIf"], [1, "govuk-panel", "govuk-panel--confirmation"], [1, "govuk-panel__title"], [1, "qm-confirmation", "govuk-panel__body"], [3, "content"], [1, "govuk-body"], [1, "govuk-heading-s"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "routerLink"], [1, "govuk-panel__body"], ["id", "tasks-link", "href", "javascript:void(0)", 1, "govuk-link", 3, "routerLink"], ["id", "case-link", "href", "javascript:void(0)", 1, "govuk-link", 3, "routerLink"]], template: function QueryConfirmationComponent_Template(rf, ctx) { if (rf & 1) {
|
|
22874
22888
|
i0.ɵɵtemplate(0, QueryConfirmationComponent_main_0_Template, 5, 2, "main", 0);
|
|
22875
22889
|
} if (rf & 2) {
|
|
22876
22890
|
i0.ɵɵproperty("ngIf", ctx.queryCreateContext);
|
|
22877
|
-
} }, dependencies: [i5.NgIf, i1$1.RouterLink, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
22891
|
+
} }, dependencies: [i5.NgIf, i1$1.RouterLink, MarkdownComponent, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
22878
22892
|
}
|
|
22879
22893
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryConfirmationComponent, [{
|
|
22880
22894
|
type: Component,
|
|
22881
|
-
args: [{ selector: 'ccd-query-confirmation', template: "<main class=\"govuk-main-wrapper\" *ngIf=\"queryCreateContext\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <ng-container *ngIf=\"queryCreateContext === queryCreateContextEnum.NEW_QUERY || queryCreateContext === queryCreateContextEnum.FOLLOWUP\">\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">{{'Query submitted' | rpxTranslate}}</h1>\n <div class=\"govuk-panel__body\"
|
|
22895
|
+
args: [{ selector: 'ccd-query-confirmation', template: "<main class=\"govuk-main-wrapper\" *ngIf=\"queryCreateContext\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <ng-container *ngIf=\"queryCreateContext === queryCreateContextEnum.NEW_QUERY || queryCreateContext === queryCreateContextEnum.FOLLOWUP\">\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">{{'Query submitted' | rpxTranslate}}</h1>\n <div class=\"qm-confirmation govuk-panel__body\">\n <ccd-markdown [content]=\"callbackConfirmationMessageText?.header | rpxTranslate\"></ccd-markdown>\n </div>\n </div>\n <div class=\"govuk-body\">\n <h3 class=\"govuk-heading-s\">{{'What happens next' | rpxTranslate}}</h3>\n <ccd-markdown [content]=\"callbackConfirmationMessageText?.body | rpxTranslate\"></ccd-markdown>\n <p>{{'When the response is available it will be added to the \\'Queries\\' section.' | rpxTranslate}}</p>\n <p>\n {{'You can' | rpxTranslate}}\n <a class=\"govuk-link\" href=\"javascript:void(0)\" routerLink=\"/cases/case-details/{{caseId}}\">{{'Go back to the case' | rpxTranslate}}</a>\n </p>\n </div>\n </ng-container>\n <ng-container *ngIf=\"queryCreateContext === queryCreateContextEnum.RESPOND\">\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">{{'Query response submitted' | rpxTranslate}}</h1>\n <div class=\"govuk-panel__body\">{{'This query response has been added to the case' | rpxTranslate}}</div>\n </div>\n <div class=\"govuk-body\">\n {{'You can' | rpxTranslate}}\n <a class=\"govuk-link\" id=\"tasks-link\" href=\"javascript:void(0)\" routerLink=\"/cases/case-details/{{caseId}}/tasks\">{{'return to tasks' | rpxTranslate}}</a> or\n <a class=\"govuk-link\" id=\"case-link\" href=\"javascript:void(0)\" routerLink=\"/cases/case-details/{{caseId}}\">{{'Go back to the case' | rpxTranslate}}</a>\n </div>\n </ng-container>\n </div>\n </div>\n</main>\n" }]
|
|
22882
22896
|
}], () => [{ type: i1$1.ActivatedRoute }], { queryCreateContext: [{
|
|
22883
22897
|
type: Input
|
|
22898
|
+
}], callbackConfirmationMessageText: [{
|
|
22899
|
+
type: Input
|
|
22884
22900
|
}] }); })();
|
|
22885
22901
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryConfirmationComponent, { className: "QueryConfirmationComponent", filePath: "lib/shared/components/palette/query-management/components/query-confirmation/query-confirmation.component.ts", lineNumber: 9 }); })();
|
|
22886
22902
|
|
|
@@ -22940,7 +22956,7 @@ function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_ng_templ
|
|
|
22940
22956
|
i0.ɵɵadvance(2);
|
|
22941
22957
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Your query is under review"));
|
|
22942
22958
|
i0.ɵɵadvance(3);
|
|
22943
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 4, "Our team will read your query and
|
|
22959
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 4, "Our team will read your query and respond. Do not submit the same query more than once."));
|
|
22944
22960
|
} }
|
|
22945
22961
|
function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
22946
22962
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -23026,7 +23042,7 @@ class ReadQueryManagementFieldComponent extends AbstractFieldReadComponent {
|
|
|
23026
23042
|
}
|
|
23027
23043
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadQueryManagementFieldComponent, [{
|
|
23028
23044
|
type: Component,
|
|
23029
|
-
args: [{ selector: 'ccd-read-query-management-field', template: "<ng-container *ngIf=\"showQueryList; else singleQueryDetails\">\n <ng-container *ngFor=\"let caseQueriesCollection of caseQueriesCollections\">\n <div *ngIf=\"showQueryList\" class=\"govuk-!-margin-top-8 govuk-!-margin-bottom-8\">\n <ccd-query-list (selectedQuery)=\"setQuery($event)\" [caseQueriesCollection]=\"caseQueriesCollection\"></ccd-query-list>\n </div>\n </ng-container>\n</ng-container>\n\n<ng-template #singleQueryDetails>\n <ccd-query-details\n [query]=\"query\"\n (backClicked)=\"showQueryList = true\"\n [caseId]=\"caseId\"\n ></ccd-query-details>\n\n <ng-container *ngIf=\"!isInternalUser()\">\n <ng-container *ngIf=\"query?.children?.length > 0 && query?.children?.length % 2 === 1; else queryIsInReview\">\n <button id=\"ask-follow-up-question\" class=\"govuk-button\" data-module=\"govuk-button\"\n [routerLink]=\"['/query-management', 'query', caseId, '4', query.id]\">\n {{ 'Ask a follow-up question' | rpxTranslate }}\n </button>\n </ng-container>\n\n <ng-template #queryIsInReview>\n <div>\n <p class=\"govuk-!-font-weight-bold\">{{ 'Your query is under review' | rpxTranslate }}</p>\n <p>{{ 'Our team will read your query and
|
|
23045
|
+
args: [{ selector: 'ccd-read-query-management-field', template: "<ng-container *ngIf=\"showQueryList; else singleQueryDetails\">\n <ng-container *ngFor=\"let caseQueriesCollection of caseQueriesCollections\">\n <div *ngIf=\"showQueryList\" class=\"govuk-!-margin-top-8 govuk-!-margin-bottom-8\">\n <ccd-query-list (selectedQuery)=\"setQuery($event)\" [caseQueriesCollection]=\"caseQueriesCollection\"></ccd-query-list>\n </div>\n </ng-container>\n</ng-container>\n\n<ng-template #singleQueryDetails>\n <ccd-query-details\n [query]=\"query\"\n (backClicked)=\"showQueryList = true\"\n [caseId]=\"caseId\"\n ></ccd-query-details>\n\n <ng-container *ngIf=\"!isInternalUser()\">\n <ng-container *ngIf=\"query?.children?.length > 0 && query?.children?.length % 2 === 1; else queryIsInReview\">\n <button id=\"ask-follow-up-question\" class=\"govuk-button\" data-module=\"govuk-button\"\n [routerLink]=\"['/query-management', 'query', caseId, '4', query.id]\">\n {{ 'Ask a follow-up question' | rpxTranslate }}\n </button>\n </ng-container>\n\n <ng-template #queryIsInReview>\n <div>\n <p class=\"govuk-!-font-weight-bold\">{{ 'Your query is under review' | rpxTranslate }}</p>\n <p>{{ 'Our team will read your query and respond. Do not submit the same query more than once.' | rpxTranslate }}</p>\n </div>\n </ng-template>\n </ng-container>\n</ng-template>\n" }]
|
|
23030
23046
|
}], () => [{ type: i1$1.ActivatedRoute }, { type: SessionStorageService }, { type: CaseNotifier }], null); })();
|
|
23031
23047
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadQueryManagementFieldComponent, { className: "ReadQueryManagementFieldComponent", filePath: "lib/shared/components/palette/query-management/read-query-management-field.component.ts", lineNumber: 15 }); })();
|
|
23032
23048
|
|