@hmcts/ccd-case-ui-toolkit 7.1.34 → 7.1.35-exui-2678-rc1
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/palette.module.mjs +3 -2
- package/esm2022/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.mjs +50 -29
- package/esm2022/lib/shared/components/palette/query-management/components/query-details/query-details.component.mjs +158 -104
- package/esm2022/lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.mjs +104 -41
- package/esm2022/lib/shared/components/palette/query-management/read-query-management-field.component.mjs +4 -21
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs +340 -225
- 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 +5 -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 +17 -5
- 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-respond-to-query/query-write-respond-to-query.component.d.ts +17 -5
- 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
|
@@ -59,7 +59,7 @@ import { MatLegacyTabsModule } from '@angular/material/legacy-tabs';
|
|
|
59
59
|
import { decompressFromUTF16, compressToUTF16 } from 'lz-string';
|
|
60
60
|
|
|
61
61
|
const _c0$14 = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
|
|
62
|
-
const _c1$
|
|
62
|
+
const _c1$u = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
|
|
63
63
|
function FooterComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
64
64
|
i0.ɵɵelementStart(0, "div", 3)(1, "div", 4);
|
|
65
65
|
i0.ɵɵprojection(2);
|
|
@@ -135,7 +135,7 @@ class FooterComponent {
|
|
|
135
135
|
phone;
|
|
136
136
|
workhours;
|
|
137
137
|
static ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(); };
|
|
138
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$
|
|
138
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FooterComponent, selectors: [["cut-footer-bar"]], inputs: { email: "email", isSolicitor: "isSolicitor", phone: "phone", workhours: "workhours" }, ngContentSelectors: _c1$u, decls: 4, vars: 4, consts: [["id", "footer", "role", "footer", 1, "group", "js-footer"], [1, "footer-wrapper"], ["class", "footer-meta", 4, "ngIf"], [1, "footer-meta"], [1, "footer-meta-inner"], [1, "open-government-licence"], [1, "logo"], ["href", "https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/", "rel", "license"], [1, "copyright"], ["href", "https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/"], [1, "title"], [1, "footer-text"], [1, "email"], [3, "href"], [1, "phone"], [1, "work-hours"]], template: function FooterComponent_Template(rf, ctx) { if (rf & 1) {
|
|
139
139
|
i0.ɵɵprojectionDef(_c0$14);
|
|
140
140
|
i0.ɵɵelementStart(0, "footer", 0)(1, "div", 1);
|
|
141
141
|
i0.ɵɵtemplate(2, FooterComponent_div_2_Template, 20, 15, "div", 2)(3, FooterComponent_div_3_Template, 20, 16, "div", 2);
|
|
@@ -164,7 +164,7 @@ class FooterComponent {
|
|
|
164
164
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FooterComponent, { className: "FooterComponent", filePath: "lib/components/footer/footer.component.ts", lineNumber: 8 }); })();
|
|
165
165
|
|
|
166
166
|
const _c0$13 = [[["", "headerNavigation", ""]]];
|
|
167
|
-
const _c1$
|
|
167
|
+
const _c1$t = ["[headerNavigation]"];
|
|
168
168
|
function HeaderBarComponent_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
169
169
|
i0.ɵɵelementStart(0, "div")(1, "a", 12);
|
|
170
170
|
i0.ɵɵelement(2, "img", 13);
|
|
@@ -206,7 +206,7 @@ class HeaderBarComponent {
|
|
|
206
206
|
this.signOutRequest.emit();
|
|
207
207
|
}
|
|
208
208
|
static ɵfac = function HeaderBarComponent_Factory(t) { return new (t || HeaderBarComponent)(); };
|
|
209
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$
|
|
209
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$t, decls: 17, vars: 14, consts: [["role", "banner", "id", "global-header", 1, "with-proposition"], [1, "header-wrapper"], [1, "header-global"], [4, "ngIf"], ["class", "global-header", 4, "ngIf"], [1, "header-proposition"], [1, "content"], ["href", "#proposition-links", 1, "js-header-toggle", "menu"], ["id", "proposition-menu", 4, "ngIf"], [1, "proposition-right"], ["id", "user-name"], ["id", "sign-out", "href", "javascript:void(0)", 3, "click"], ["href", "https://www.gov.uk", "title", "Go to the GOV.UK homepage", "id", "logo", 1, "content", 2, "margin-left", "0px"], ["src", "/img/gov.uk_logotype_crown_invert_trans.png?0.23.0", "width", "36", "height", "32", "alt", ""], [1, "global-header"], [1, "title"], ["id", "proposition-menu"], [1, "title-solicitor"], ["id", "proposition-name"]], template: function HeaderBarComponent_Template(rf, ctx) { if (rf & 1) {
|
|
210
210
|
i0.ɵɵprojectionDef(_c0$13);
|
|
211
211
|
i0.ɵɵelementStart(0, "header", 0)(1, "div", 1)(2, "div", 2);
|
|
212
212
|
i0.ɵɵtemplate(3, HeaderBarComponent_div_3_Template, 5, 3, "div", 3)(4, HeaderBarComponent_div_4_Template, 5, 3, "div", 4);
|
|
@@ -258,11 +258,11 @@ class HeaderBarComponent {
|
|
|
258
258
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(HeaderBarComponent, { className: "HeaderBarComponent", filePath: "lib/components/header/header-bar/header-bar.component.ts", lineNumber: 8 }); })();
|
|
259
259
|
|
|
260
260
|
const _c0$12 = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
|
|
261
|
-
const _c1$
|
|
261
|
+
const _c1$s = ["[leftNavLinks]", "[rightNavLinks]"];
|
|
262
262
|
class NavigationComponent {
|
|
263
263
|
isSolicitor;
|
|
264
264
|
static ɵfac = function NavigationComponent_Factory(t) { return new (t || NavigationComponent)(); };
|
|
265
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$
|
|
265
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NavigationComponent, selectors: [["cut-nav-bar"]], inputs: { isSolicitor: "isSolicitor" }, ngContentSelectors: _c1$s, decls: 4, vars: 2, consts: [[1, "cut-nav-bar"]], template: function NavigationComponent_Template(rf, ctx) { if (rf & 1) {
|
|
266
266
|
i0.ɵɵprojectionDef(_c0$12);
|
|
267
267
|
i0.ɵɵelementStart(0, "div")(1, "nav", 0);
|
|
268
268
|
i0.ɵɵprojection(2);
|
|
@@ -383,10 +383,10 @@ class HeadersModule {
|
|
|
383
383
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(HeadersModule, { declarations: [PhaseComponent, HeaderBarComponent, NavigationComponent, NavigationItemComponent], imports: [CommonModule, RouterModule, i1.RpxTranslationModule], exports: [PhaseComponent, HeaderBarComponent, NavigationComponent, NavigationItemComponent] }); })();
|
|
384
384
|
|
|
385
385
|
const _c0$11 = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
|
|
386
|
-
const _c1$
|
|
386
|
+
const _c1$r = ["[topBody]", "[leftBody]", "[rightBody]"];
|
|
387
387
|
class BodyComponent {
|
|
388
388
|
static ɵfac = function BodyComponent_Factory(t) { return new (t || BodyComponent)(); };
|
|
389
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$
|
|
389
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: BodyComponent, selectors: [["cut-body"]], ngContentSelectors: _c1$r, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) { if (rf & 1) {
|
|
390
390
|
i0.ɵɵprojectionDef(_c0$11);
|
|
391
391
|
i0.ɵɵelementStart(0, "div", 0);
|
|
392
392
|
i0.ɵɵprojection(1);
|
|
@@ -1001,7 +1001,7 @@ class NotificationBannerComponent {
|
|
|
1001
1001
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(NotificationBannerComponent, { className: "NotificationBannerComponent", filePath: "lib/components/banners/notification-banner/notification-banner.component.ts", lineNumber: 10 }); })();
|
|
1002
1002
|
|
|
1003
1003
|
const _c0$_ = ["*"];
|
|
1004
|
-
const _c1$
|
|
1004
|
+
const _c1$q = a0 => ({ "js-hidden": a0 });
|
|
1005
1005
|
class TabComponent {
|
|
1006
1006
|
id;
|
|
1007
1007
|
title;
|
|
@@ -1013,7 +1013,7 @@ class TabComponent {
|
|
|
1013
1013
|
i0.ɵɵprojection(1);
|
|
1014
1014
|
i0.ɵɵelementEnd();
|
|
1015
1015
|
} if (rf & 2) {
|
|
1016
|
-
i0.ɵɵproperty("id", ctx.id)("ngClass", i0.ɵɵpureFunction1(3, _c1$
|
|
1016
|
+
i0.ɵɵproperty("id", ctx.id)("ngClass", i0.ɵɵpureFunction1(3, _c1$q, !ctx.selected));
|
|
1017
1017
|
i0.ɵɵattribute("aria-hidden", !ctx.selected);
|
|
1018
1018
|
} }, dependencies: [i5.NgClass], styles: [".tabs-toggle[_ngcontent-%COMP%]{display:block;padding:10px 15px 3px;margin-bottom:8px}.tabs-toggle[aria-selected=true][_ngcontent-%COMP%]{color:#0b0c0c;text-decoration:none;border-bottom:none}.tabs-toggle[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#005ea5}@media (max-width: 640px){.tabs-list[_ngcontent-%COMP%]{border-bottom:1px solid #bfc1c3;margin-left:-15px;margin-right:-15px}.tabs-toggle[_ngcontent-%COMP%]{border-top:1px solid #bfc1c3}.tabs-toggle[_ngcontent-%COMP%]:focus{color:#0b0c0c;outline:none}}@media (min-width: 641px){.tabs-panel[_ngcontent-%COMP%]{border-top:1px solid #bfc1c3;clear:both;overflow:hidden}.tabs-list[_ngcontent-%COMP%]{float:left}.tabs-list-item[_ngcontent-%COMP%]{float:left;position:relative;bottom:-1px;padding-top:10px}.tabs-toggle[_ngcontent-%COMP%]{background-color:#dee0e2;border:1px solid transparent;float:left;margin:0 6px 0 0;text-decoration:none}.tabs-toggle[_ngcontent-%COMP%]:visited{color:#005ea5}.tabs-toggle-selected[_ngcontent-%COMP%], .tabs-toggle[aria-selected=true][_ngcontent-%COMP%]{background-color:#fff;border-bottom:0px;border-color:#bfc1c3;padding-bottom:11px;margin-bottom:0;color:#0b0c0c}}"] });
|
|
1019
1019
|
}
|
|
@@ -1030,7 +1030,7 @@ class TabComponent {
|
|
|
1030
1030
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TabComponent, { className: "TabComponent", filePath: "lib/components/tabs/tab.component.ts", lineNumber: 10 }); })();
|
|
1031
1031
|
|
|
1032
1032
|
const _c0$Z = ["tab"];
|
|
1033
|
-
const _c1$
|
|
1033
|
+
const _c1$p = ["*"];
|
|
1034
1034
|
const _c2$4 = () => ["."];
|
|
1035
1035
|
const _c3 = a0 => ({ "tabs-toggle-selected": a0 });
|
|
1036
1036
|
function TabsComponent_li_2_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -1080,7 +1080,7 @@ class TabsComponent {
|
|
|
1080
1080
|
} if (rf & 2) {
|
|
1081
1081
|
let _t;
|
|
1082
1082
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tabs = _t);
|
|
1083
|
-
} }, ngContentSelectors: _c1$
|
|
1083
|
+
} }, ngContentSelectors: _c1$p, decls: 5, vars: 1, consts: [["tab", ""], [1, "tabs"], ["role", "list", 1, "tabs-list"], ["class", "tabs-list-item", 4, "ngFor", "ngForOf"], [1, "tabs-content"], [1, "tabs-list-item"], ["role", "tab", "tabindex", "0", 1, "tabs-toggle", 3, "click", "routerLink", "fragment", "ngClass"]], template: function TabsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1084
1084
|
i0.ɵɵprojectionDef();
|
|
1085
1085
|
i0.ɵɵelementStart(0, "div", 1)(1, "ul", 2);
|
|
1086
1086
|
i0.ɵɵtemplate(2, TabsComponent_li_2_Template, 5, 11, "li", 3);
|
|
@@ -11774,7 +11774,7 @@ class WriteComplexFieldComponent extends AbstractFieldWriteComponent {
|
|
|
11774
11774
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteComplexFieldComponent, { className: "WriteComplexFieldComponent", filePath: "lib/shared/components/palette/complex/write-complex-field.component.ts", lineNumber: 21 }); })();
|
|
11775
11775
|
|
|
11776
11776
|
const _c0$V = ["writeComplexFieldComponent"];
|
|
11777
|
-
const _c1$
|
|
11777
|
+
const _c1$o = a0 => ({ "form-group-error": a0 });
|
|
11778
11778
|
const _c2$3 = a0 => ({ "govuk-input--error": a0 });
|
|
11779
11779
|
function WriteAddressFieldComponent_div_1_div_4_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
11780
11780
|
i0.ɵɵelementStart(0, "span", 14);
|
|
@@ -11801,7 +11801,7 @@ function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) { if (rf & 1)
|
|
|
11801
11801
|
i0.ɵɵelementEnd()();
|
|
11802
11802
|
} if (rf & 2) {
|
|
11803
11803
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
11804
|
-
i0.ɵɵproperty("id", ctx_r1.createElementId("postcodeLookup"))("ngClass", i0.ɵɵpureFunction1(13, _c1$
|
|
11804
|
+
i0.ɵɵproperty("id", ctx_r1.createElementId("postcodeLookup"))("ngClass", i0.ɵɵpureFunction1(13, _c1$o, ctx_r1.missingPostcode));
|
|
11805
11805
|
i0.ɵɵadvance();
|
|
11806
11806
|
i0.ɵɵproperty("for", ctx_r1.createElementId("postcodeInput"));
|
|
11807
11807
|
i0.ɵɵadvance(2);
|
|
@@ -11847,7 +11847,7 @@ function WriteAddressFieldComponent_div_1_div_5_Template(rf, ctx) { if (rf & 1)
|
|
|
11847
11847
|
i0.ɵɵelementEnd()();
|
|
11848
11848
|
} if (rf & 2) {
|
|
11849
11849
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
11850
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c1$
|
|
11850
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c1$o, ctx_r1.noAddressSelected));
|
|
11851
11851
|
i0.ɵɵadvance();
|
|
11852
11852
|
i0.ɵɵproperty("for", ctx_r1.createElementId("addressList"));
|
|
11853
11853
|
i0.ɵɵadvance(2);
|
|
@@ -13280,7 +13280,7 @@ class ReadCaseLinkFieldComponent extends AbstractFieldReadComponent {
|
|
|
13280
13280
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadCaseLinkFieldComponent, { className: "ReadCaseLinkFieldComponent", filePath: "lib/shared/components/palette/case-link/read-case-link-field.component.ts", lineNumber: 8 }); })();
|
|
13281
13281
|
|
|
13282
13282
|
const _c0$U = ["writeComplexFieldComponent"];
|
|
13283
|
-
const _c1$
|
|
13283
|
+
const _c1$n = a0 => ({ "form-group-error": a0 });
|
|
13284
13284
|
function WriteCaseLinkFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
13285
13285
|
i0.ɵɵelementStart(0, "span", 6);
|
|
13286
13286
|
i0.ɵɵtext(1);
|
|
@@ -13372,7 +13372,7 @@ class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
|
|
|
13372
13372
|
i0.ɵɵelement(5, "input", 5);
|
|
13373
13373
|
i0.ɵɵelementEnd();
|
|
13374
13374
|
} if (rf & 2) {
|
|
13375
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$
|
|
13375
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$n, !ctx.caseReferenceControl.valid && (ctx.caseReferenceControl.dirty || ctx.caseReferenceControl.touched)));
|
|
13376
13376
|
i0.ɵɵadvance();
|
|
13377
13377
|
i0.ɵɵproperty("for", ctx.id());
|
|
13378
13378
|
i0.ɵɵadvance();
|
|
@@ -13395,7 +13395,7 @@ class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
|
|
|
13395
13395
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteCaseLinkFieldComponent, { className: "WriteCaseLinkFieldComponent", filePath: "lib/shared/components/palette/case-link/write-case-link-field.component.ts", lineNumber: 11 }); })();
|
|
13396
13396
|
|
|
13397
13397
|
const _c0$T = (a0, a1, a2, a3, a4, a5) => ({ id: a0, label: a1, field_type: a2, display_context_parameter: a3, value: a4, hidden: a5 });
|
|
13398
|
-
const _c1$
|
|
13398
|
+
const _c1$m = (a0, a1, a2, a3, a4) => ({ id: a0, label: a1, field_type: a2, value: a3, hidden: a4 });
|
|
13399
13399
|
function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) { if (rf & 1) {
|
|
13400
13400
|
i0.ɵɵelementStart(0, "tbody")(1, "tr");
|
|
13401
13401
|
i0.ɵɵelement(2, "th", 4);
|
|
@@ -13416,7 +13416,7 @@ function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) { i
|
|
|
13416
13416
|
const i_r3 = ctx.index;
|
|
13417
13417
|
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
13418
13418
|
i0.ɵɵadvance(2);
|
|
13419
|
-
i0.ɵɵproperty("caseField", i0.ɵɵpureFunction5(4, _c1$
|
|
13419
|
+
i0.ɵɵproperty("caseField", i0.ɵɵpureFunction5(4, _c1$m, i_r3, ctx_r0.caseField.label + " " + (i_r3 + 1), ctx_r0.caseField.field_type.collection_field_type, item_r2.value, ctx_r0.caseField.hidden))("context", ctx_r0.context)("topLevelFormGroup", ctx_r0.topLevelFormGroup)("idPrefix", ctx_r0.buildIdPrefix(i_r3));
|
|
13420
13420
|
} }
|
|
13421
13421
|
function ReadCollectionFieldComponent_table_0_tbody_3_Template(rf, ctx) { if (rf & 1) {
|
|
13422
13422
|
i0.ɵɵelementStart(0, "tbody");
|
|
@@ -14222,7 +14222,7 @@ class FileUploadStateService {
|
|
|
14222
14222
|
}], null, null); })();
|
|
14223
14223
|
|
|
14224
14224
|
const _c0$R = ["fileInput"];
|
|
14225
|
-
const _c1$
|
|
14225
|
+
const _c1$l = a0 => ({ "form-group-error bottom-30": a0 });
|
|
14226
14226
|
function WriteDocumentFieldComponent_span_6_Template(rf, ctx) { if (rf & 1) {
|
|
14227
14227
|
i0.ɵɵelementStart(0, "span", 12);
|
|
14228
14228
|
i0.ɵɵtext(1);
|
|
@@ -14611,7 +14611,7 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
14611
14611
|
i0.ɵɵpipe(17, "rpxTranslate");
|
|
14612
14612
|
i0.ɵɵelementEnd()();
|
|
14613
14613
|
} if (rf & 2) {
|
|
14614
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(18, _c1$
|
|
14614
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(18, _c1$l, !ctx.valid));
|
|
14615
14615
|
i0.ɵɵadvance();
|
|
14616
14616
|
i0.ɵɵproperty("for", ctx.id());
|
|
14617
14617
|
i0.ɵɵadvance();
|
|
@@ -15139,7 +15139,7 @@ class ReadDynamicRadioListFieldComponent extends AbstractFieldReadComponent {
|
|
|
15139
15139
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadDynamicRadioListFieldComponent, { className: "ReadDynamicRadioListFieldComponent", filePath: "lib/shared/components/palette/dynamic-radio-list/read-dynamic-radio-list-field.component.ts", lineNumber: 8 }); })();
|
|
15140
15140
|
|
|
15141
15141
|
const _c0$O = a0 => ({ "form-group-error": a0 });
|
|
15142
|
-
const _c1$
|
|
15142
|
+
const _c1$k = a0 => ({ selected: a0 });
|
|
15143
15143
|
function WriteDynamicRadioListFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
15144
15144
|
i0.ɵɵelementStart(0, "span", 7);
|
|
15145
15145
|
i0.ɵɵtext(1);
|
|
@@ -15189,7 +15189,7 @@ function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) { if (rf &
|
|
|
15189
15189
|
} if (rf & 2) {
|
|
15190
15190
|
const radioButton_r2 = ctx.$implicit;
|
|
15191
15191
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
15192
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c1$
|
|
15192
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c1$k, ctx_r0.dynamicRadioListControl.value === radioButton_r2.code));
|
|
15193
15193
|
i0.ɵɵadvance();
|
|
15194
15194
|
i0.ɵɵproperty("id", ctx_r0.createElementId(radioButton_r2.code))("name", ctx_r0.id())("formControl", ctx_r0.dynamicRadioListControl)("value", radioButton_r2.code);
|
|
15195
15195
|
i0.ɵɵadvance();
|
|
@@ -15287,7 +15287,7 @@ class ReadEmailFieldComponent extends AbstractFieldReadComponent {
|
|
|
15287
15287
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadEmailFieldComponent, { className: "ReadEmailFieldComponent", filePath: "lib/shared/components/palette/email/read-email-field.component.ts", lineNumber: 10 }); })();
|
|
15288
15288
|
|
|
15289
15289
|
const _c0$N = a0 => ({ "form-group-error": a0 });
|
|
15290
|
-
const _c1$
|
|
15290
|
+
const _c1$j = a0 => ({ "govuk-input--error": a0 });
|
|
15291
15291
|
function WriteEmailFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
15292
15292
|
i0.ɵɵelementStart(0, "span", 6);
|
|
15293
15293
|
i0.ɵɵtext(1);
|
|
@@ -15342,7 +15342,7 @@ class WriteEmailFieldComponent extends AbstractFieldWriteComponent {
|
|
|
15342
15342
|
i0.ɵɵadvance();
|
|
15343
15343
|
i0.ɵɵproperty("ngIf", ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched));
|
|
15344
15344
|
i0.ɵɵadvance();
|
|
15345
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
15345
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$j, ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched)))("id", ctx.id())("formControl", ctx.emailControl);
|
|
15346
15346
|
} }, dependencies: [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
15347
15347
|
}
|
|
15348
15348
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteEmailFieldComponent, [{
|
|
@@ -15510,7 +15510,7 @@ class ReadFixedRadioListFieldComponent extends AbstractFieldReadComponent {
|
|
|
15510
15510
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadFixedRadioListFieldComponent, { className: "ReadFixedRadioListFieldComponent", filePath: "lib/shared/components/palette/fixed-radio-list/read-fixed-radio-list-field.component.ts", lineNumber: 8 }); })();
|
|
15511
15511
|
|
|
15512
15512
|
const _c0$L = a0 => ({ "form-group-error": a0 });
|
|
15513
|
-
const _c1$
|
|
15513
|
+
const _c1$i = a0 => ({ selected: a0 });
|
|
15514
15514
|
function WriteFixedRadioListFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
15515
15515
|
i0.ɵɵelementStart(0, "span", 6);
|
|
15516
15516
|
i0.ɵɵtext(1);
|
|
@@ -15551,7 +15551,7 @@ function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) { if (rf & 1)
|
|
|
15551
15551
|
} if (rf & 2) {
|
|
15552
15552
|
const radioButton_r2 = ctx.$implicit;
|
|
15553
15553
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
15554
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c1$
|
|
15554
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c1$i, ctx_r0.fixedRadioListControl.value === radioButton_r2.code));
|
|
15555
15555
|
i0.ɵɵadvance();
|
|
15556
15556
|
i0.ɵɵproperty("id", ctx_r0.id() + "-" + radioButton_r2.code)("name", ctx_r0.id())("formControl", ctx_r0.fixedRadioListControl)("value", radioButton_r2.code);
|
|
15557
15557
|
i0.ɵɵadvance();
|
|
@@ -15654,7 +15654,7 @@ class ReadJudicialUserFieldComponent extends AbstractFieldReadComponent {
|
|
|
15654
15654
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadJudicialUserFieldComponent, { className: "ReadJudicialUserFieldComponent", filePath: "lib/shared/components/palette/judicial-user/read-judicial-user-field.component.ts", lineNumber: 11 }); })();
|
|
15655
15655
|
|
|
15656
15656
|
const _c0$K = a0 => ({ "form-group-error": a0 });
|
|
15657
|
-
const _c1$
|
|
15657
|
+
const _c1$h = a0 => ({ "hide-autocomplete": a0 });
|
|
15658
15658
|
function WriteJudicialUserFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
15659
15659
|
i0.ɵɵelementStart(0, "span", 10);
|
|
15660
15660
|
i0.ɵɵtext(1);
|
|
@@ -15693,7 +15693,7 @@ function WriteJudicialUserFieldComponent_mat_option_8_Template(rf, ctx) { if (rf
|
|
|
15693
15693
|
} if (rf & 2) {
|
|
15694
15694
|
const judicialUser_r4 = ctx.$implicit;
|
|
15695
15695
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
15696
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c1$
|
|
15696
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c1$h, !ctx_r1.showAutocomplete))("value", judicialUser_r4);
|
|
15697
15697
|
i0.ɵɵadvance();
|
|
15698
15698
|
i0.ɵɵtextInterpolate2(" ", (judicialUser_r4 == null ? null : judicialUser_r4.fullName) ? judicialUser_r4.fullName : "", "", (judicialUser_r4 == null ? null : judicialUser_r4.emailId) ? " (" + judicialUser_r4.emailId + ")" : "", " ");
|
|
15699
15699
|
} }
|
|
@@ -16419,7 +16419,7 @@ class ValidatorsUtils {
|
|
|
16419
16419
|
}], null, null); })();
|
|
16420
16420
|
|
|
16421
16421
|
const _c0$J = a0 => ({ "govuk-form-group--error": a0 });
|
|
16422
|
-
const _c1$
|
|
16422
|
+
const _c1$g = a0 => ({ "table-group-error": a0 });
|
|
16423
16423
|
function LinkCasesComponent_div_8_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
16424
16424
|
i0.ɵɵelementStart(0, "span", 30)(1, "span", 31);
|
|
16425
16425
|
i0.ɵɵtext(2, "Error:");
|
|
@@ -16596,7 +16596,7 @@ function LinkCasesComponent_tr_31_Template(rf, ctx) { if (rf & 1) {
|
|
|
16596
16596
|
const case_r9 = ctx.$implicit;
|
|
16597
16597
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
16598
16598
|
i0.ɵɵadvance(2);
|
|
16599
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12, _c1$
|
|
16599
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12, _c1$g, ctx_r1.caseSelectionError && case_r9.caseReference === ctx_r1.linkCaseForm.value.caseNumber));
|
|
16600
16600
|
i0.ɵɵadvance(2);
|
|
16601
16601
|
i0.ɵɵtextInterpolate1("", case_r9.caseName, " ");
|
|
16602
16602
|
i0.ɵɵadvance(2);
|
|
@@ -18626,7 +18626,7 @@ class ReadNumberFieldComponent extends AbstractFieldReadComponent {
|
|
|
18626
18626
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadNumberFieldComponent, { className: "ReadNumberFieldComponent", filePath: "lib/shared/components/palette/number/read-number-field.component.ts", lineNumber: 8 }); })();
|
|
18627
18627
|
|
|
18628
18628
|
const _c0$F = a0 => ({ "form-group-error": a0 });
|
|
18629
|
-
const _c1$
|
|
18629
|
+
const _c1$f = a0 => ({ "govuk-input--error": a0 });
|
|
18630
18630
|
function WriteNumberFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
18631
18631
|
i0.ɵɵelementStart(0, "span", 6);
|
|
18632
18632
|
i0.ɵɵtext(1);
|
|
@@ -18681,7 +18681,7 @@ class WriteNumberFieldComponent extends AbstractFieldWriteComponent {
|
|
|
18681
18681
|
i0.ɵɵadvance();
|
|
18682
18682
|
i0.ɵɵproperty("ngIf", ctx.numberControl.errors && ctx.numberControl.dirty);
|
|
18683
18683
|
i0.ɵɵadvance();
|
|
18684
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
18684
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$f, ctx.numberControl.errors && ctx.numberControl.dirty))("id", ctx.id())("formControl", ctx.numberControl);
|
|
18685
18685
|
} }, dependencies: [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.NumberValueAccessor, i4.NgControlStatus, i4.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
18686
18686
|
}
|
|
18687
18687
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteNumberFieldComponent, [{
|
|
@@ -19309,7 +19309,7 @@ class ReadPhoneUKFieldComponent extends AbstractFieldReadComponent {
|
|
|
19309
19309
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadPhoneUKFieldComponent, { className: "ReadPhoneUKFieldComponent", filePath: "lib/shared/components/palette/phone-uk/read-phone-uk-field.component.ts", lineNumber: 8 }); })();
|
|
19310
19310
|
|
|
19311
19311
|
const _c0$D = a0 => ({ "form-group-error": a0 });
|
|
19312
|
-
const _c1$
|
|
19312
|
+
const _c1$e = a0 => ({ "govuk-input--error": a0 });
|
|
19313
19313
|
function WritePhoneUKFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
19314
19314
|
i0.ɵɵelementStart(0, "span", 6);
|
|
19315
19315
|
i0.ɵɵtext(1);
|
|
@@ -19364,7 +19364,7 @@ class WritePhoneUKFieldComponent extends AbstractFieldWriteComponent {
|
|
|
19364
19364
|
i0.ɵɵadvance();
|
|
19365
19365
|
i0.ɵɵproperty("ngIf", ctx.phoneUkControl.errors && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched));
|
|
19366
19366
|
i0.ɵɵadvance();
|
|
19367
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
19367
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$e, ctx.phoneUkControl.errors && ctx.phoneUkControl.dirty))("id", ctx.id())("formControl", ctx.phoneUkControl);
|
|
19368
19368
|
} }, dependencies: [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
19369
19369
|
}
|
|
19370
19370
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WritePhoneUKFieldComponent, [{
|
|
@@ -20281,6 +20281,7 @@ class QueryCheckYourAnswersComponent {
|
|
|
20281
20281
|
caseViewTrigger;
|
|
20282
20282
|
caseDetails;
|
|
20283
20283
|
queryId;
|
|
20284
|
+
tid;
|
|
20284
20285
|
createEventSubscription;
|
|
20285
20286
|
searchTasksSubscription;
|
|
20286
20287
|
queryCreateContextEnum = QueryCreateContext;
|
|
@@ -20289,6 +20290,7 @@ class QueryCheckYourAnswersComponent {
|
|
|
20289
20290
|
fieldId;
|
|
20290
20291
|
attachments;
|
|
20291
20292
|
errorMessages = [];
|
|
20293
|
+
filteredTask = [];
|
|
20292
20294
|
constructor(route, router, casesService, caseNotifier, workAllocationService, sessionStorageService, qualifyingQuestionService) {
|
|
20293
20295
|
this.route = route;
|
|
20294
20296
|
this.router = router;
|
|
@@ -20300,6 +20302,7 @@ class QueryCheckYourAnswersComponent {
|
|
|
20300
20302
|
}
|
|
20301
20303
|
ngOnInit() {
|
|
20302
20304
|
this.queryId = this.route.snapshot.params.qid;
|
|
20305
|
+
this.tid = this.route.snapshot.queryParams?.tid;
|
|
20303
20306
|
this.caseNotifier.caseView.pipe(take(1)).subscribe((caseDetails) => {
|
|
20304
20307
|
this.caseDetails = caseDetails;
|
|
20305
20308
|
// Find the appropriate event trigger based on the queryCreateContext
|
|
@@ -20312,6 +20315,23 @@ class QueryCheckYourAnswersComponent {
|
|
|
20312
20315
|
// Get the document attachments
|
|
20313
20316
|
this.getDocumentAttachments();
|
|
20314
20317
|
this.setCaseQueriesCollectionData();
|
|
20318
|
+
if (this.queryCreateContext === QueryCreateContext.RESPOND) {
|
|
20319
|
+
this.searchTasksSubscription = 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)
|
|
20320
|
+
.subscribe({
|
|
20321
|
+
next: (response) => {
|
|
20322
|
+
// Filter task by query id
|
|
20323
|
+
if (response.tasks?.length > 1) {
|
|
20324
|
+
this.filteredTask = response.tasks?.find((task) => task.case_id === this.tid);
|
|
20325
|
+
}
|
|
20326
|
+
else {
|
|
20327
|
+
this.filteredTask = response.tasks;
|
|
20328
|
+
}
|
|
20329
|
+
},
|
|
20330
|
+
error: (error) => {
|
|
20331
|
+
console.error('Error in searchTasksSubscription:', error);
|
|
20332
|
+
}
|
|
20333
|
+
});
|
|
20334
|
+
}
|
|
20315
20335
|
}
|
|
20316
20336
|
ngOnDestroy() {
|
|
20317
20337
|
this.createEventSubscription?.unsubscribe();
|
|
@@ -20334,7 +20354,25 @@ class QueryCheckYourAnswersComponent {
|
|
|
20334
20354
|
return;
|
|
20335
20355
|
}
|
|
20336
20356
|
const data = this.generateCaseQueriesCollectionData();
|
|
20337
|
-
|
|
20357
|
+
const createEvent$ = this.createEvent(data);
|
|
20358
|
+
if (this.queryCreateContext === QueryCreateContext.RESPOND) {
|
|
20359
|
+
const completeTask$ = this.workAllocationService.completeTask(this.filteredTask[0].id, this.caseViewTrigger.name);
|
|
20360
|
+
this.createEventSubscription = forkJoin([createEvent$, completeTask$]).subscribe({
|
|
20361
|
+
next: ([createEventResponse, tasksResponse]) => {
|
|
20362
|
+
this.finaliseSubmission();
|
|
20363
|
+
},
|
|
20364
|
+
error: (error) => this.handleError(error)
|
|
20365
|
+
});
|
|
20366
|
+
}
|
|
20367
|
+
else {
|
|
20368
|
+
this.createEventSubscription = createEvent$.subscribe({
|
|
20369
|
+
next: () => this.finaliseSubmission(),
|
|
20370
|
+
error: (error) => this.handleError(error)
|
|
20371
|
+
});
|
|
20372
|
+
}
|
|
20373
|
+
}
|
|
20374
|
+
createEvent(data) {
|
|
20375
|
+
return this.casesService.createEvent(this.caseDetails, {
|
|
20338
20376
|
data,
|
|
20339
20377
|
event: {
|
|
20340
20378
|
id: this.caseViewTrigger?.id,
|
|
@@ -20343,34 +20381,16 @@ class QueryCheckYourAnswersComponent {
|
|
|
20343
20381
|
},
|
|
20344
20382
|
event_token: this.eventData?.event_token,
|
|
20345
20383
|
ignore_warning: false
|
|
20346
|
-
}).subscribe(() => {
|
|
20347
|
-
// Search and complete task
|
|
20348
|
-
this.searchAndCompleteTask();
|
|
20349
|
-
// Emit query submitted event
|
|
20350
|
-
this.querySubmitted.emit(true);
|
|
20351
|
-
this.qualifyingQuestionService.clearQualifyingQuestionSelection();
|
|
20352
|
-
},
|
|
20353
|
-
// Error
|
|
20354
|
-
() => this.router.navigate(['/', 'service-down']));
|
|
20355
|
-
}
|
|
20356
|
-
searchAndCompleteTask() {
|
|
20357
|
-
// Search Task
|
|
20358
|
-
const searchParameter = { ccdId: this.caseDetails.case_id };
|
|
20359
|
-
this.searchTasksSubscription = this.workAllocationService.searchTasks(searchParameter)
|
|
20360
|
-
.subscribe((response) => {
|
|
20361
|
-
// Filter task by query id
|
|
20362
|
-
const filteredTask = response.tasks?.find((task) => Object.values(task.additional_properties).some((value) => value === this.queryId));
|
|
20363
|
-
// Trigger event completion
|
|
20364
|
-
this.eventCompletionParams = {
|
|
20365
|
-
caseId: this.caseDetails.case_id,
|
|
20366
|
-
eventId: this.RESPOND_TO_QUERY_EVENT_TRIGGER_ID,
|
|
20367
|
-
task: filteredTask
|
|
20368
|
-
};
|
|
20369
|
-
}, (error) => {
|
|
20370
|
-
console.error('Error in searchTasksSubscription:', error);
|
|
20371
|
-
// Handle error appropriately
|
|
20372
20384
|
});
|
|
20373
20385
|
}
|
|
20386
|
+
finaliseSubmission() {
|
|
20387
|
+
this.querySubmitted.emit(true);
|
|
20388
|
+
this.qualifyingQuestionService.clearQualifyingQuestionSelection();
|
|
20389
|
+
}
|
|
20390
|
+
handleError(error) {
|
|
20391
|
+
console.error('Error in API calls:', error);
|
|
20392
|
+
this.router.navigate(['/', 'service-down']);
|
|
20393
|
+
}
|
|
20374
20394
|
generateCaseQueriesCollectionData() {
|
|
20375
20395
|
const currentUserDetails = JSON.parse(this.sessionStorageService.getItem('userDetails'));
|
|
20376
20396
|
const caseMessage = this.queryCreateContext === QueryCreateContext.NEW_QUERY
|
|
@@ -20579,10 +20599,32 @@ class QueryCheckYourAnswersComponent {
|
|
|
20579
20599
|
}], querySubmitted: [{
|
|
20580
20600
|
type: Output
|
|
20581
20601
|
}] }); })();
|
|
20582
|
-
(() => { (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:
|
|
20602
|
+
(() => { (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: 26 }); })();
|
|
20583
20603
|
|
|
20584
|
-
function
|
|
20585
|
-
i0.ɵɵelementStart(0, "
|
|
20604
|
+
function QueryDetailsComponent_ng_container_0_cut_alert_1_Template(rf, ctx) { if (rf & 1) {
|
|
20605
|
+
i0.ɵɵelementStart(0, "cut-alert", 11);
|
|
20606
|
+
i0.ɵɵelementContainerStart(1);
|
|
20607
|
+
i0.ɵɵtext(2);
|
|
20608
|
+
i0.ɵɵelementContainerEnd();
|
|
20609
|
+
i0.ɵɵelementEnd();
|
|
20610
|
+
} if (rf & 2) {
|
|
20611
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
20612
|
+
i0.ɵɵadvance(2);
|
|
20613
|
+
i0.ɵɵtextInterpolate(ctx_r0.message);
|
|
20614
|
+
} }
|
|
20615
|
+
function QueryDetailsComponent_ng_container_0_p_3_Template(rf, ctx) { if (rf & 1) {
|
|
20616
|
+
const _r2 = i0.ɵɵgetCurrentView();
|
|
20617
|
+
i0.ɵɵelementStart(0, "p")(1, "a", 12);
|
|
20618
|
+
i0.ɵɵlistener("click", function QueryDetailsComponent_ng_container_0_p_3_Template_a_click_1_listener() { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.onBack()); });
|
|
20619
|
+
i0.ɵɵtext(2);
|
|
20620
|
+
i0.ɵɵpipe(3, "rpxTranslate");
|
|
20621
|
+
i0.ɵɵelementEnd()();
|
|
20622
|
+
} if (rf & 2) {
|
|
20623
|
+
i0.ɵɵadvance(2);
|
|
20624
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "Back to query list"));
|
|
20625
|
+
} }
|
|
20626
|
+
function QueryDetailsComponent_ng_container_0_tr_44_Template(rf, ctx) { if (rf & 1) {
|
|
20627
|
+
i0.ɵɵelementStart(0, "tr", 13)(1, "th", 7);
|
|
20586
20628
|
i0.ɵɵtext(2);
|
|
20587
20629
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
20588
20630
|
i0.ɵɵelementEnd();
|
|
@@ -20591,34 +20633,34 @@ function QueryDetailsComponent_ng_container_0_tr_46_Template(rf, ctx) { if (rf &
|
|
|
20591
20633
|
i0.ɵɵpipe(6, "date");
|
|
20592
20634
|
i0.ɵɵelementEnd()();
|
|
20593
20635
|
} if (rf & 2) {
|
|
20594
|
-
const
|
|
20636
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
20595
20637
|
i0.ɵɵadvance(2);
|
|
20596
20638
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "What is the date of the hearing?"));
|
|
20597
20639
|
i0.ɵɵadvance(3);
|
|
20598
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(6, 4,
|
|
20640
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(6, 4, ctx_r0.query.hearingDate, "dd MMM yyyy"));
|
|
20599
20641
|
} }
|
|
20600
|
-
function
|
|
20601
|
-
i0.ɵɵelement(0, "ccd-query-attachments-read",
|
|
20642
|
+
function QueryDetailsComponent_ng_container_0_tr_45_ccd_query_attachments_read_5_Template(rf, ctx) { if (rf & 1) {
|
|
20643
|
+
i0.ɵɵelement(0, "ccd-query-attachments-read", 15);
|
|
20602
20644
|
} if (rf & 2) {
|
|
20603
|
-
const
|
|
20604
|
-
i0.ɵɵproperty("attachments",
|
|
20645
|
+
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
20646
|
+
i0.ɵɵproperty("attachments", ctx_r0.query.attachments);
|
|
20605
20647
|
} }
|
|
20606
|
-
function
|
|
20648
|
+
function QueryDetailsComponent_ng_container_0_tr_45_Template(rf, ctx) { if (rf & 1) {
|
|
20607
20649
|
i0.ɵɵelementStart(0, "tr", 6)(1, "th", 7);
|
|
20608
20650
|
i0.ɵɵtext(2);
|
|
20609
20651
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
20610
20652
|
i0.ɵɵelementEnd();
|
|
20611
20653
|
i0.ɵɵelementStart(4, "td", 8);
|
|
20612
|
-
i0.ɵɵtemplate(5,
|
|
20654
|
+
i0.ɵɵtemplate(5, QueryDetailsComponent_ng_container_0_tr_45_ccd_query_attachments_read_5_Template, 1, 1, "ccd-query-attachments-read", 14);
|
|
20613
20655
|
i0.ɵɵelementEnd()();
|
|
20614
20656
|
} if (rf & 2) {
|
|
20615
|
-
const
|
|
20657
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
20616
20658
|
i0.ɵɵadvance(2);
|
|
20617
20659
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Attachments"));
|
|
20618
20660
|
i0.ɵɵadvance(3);
|
|
20619
|
-
i0.ɵɵproperty("ngIf",
|
|
20661
|
+
i0.ɵɵproperty("ngIf", ctx_r0.query.attachments);
|
|
20620
20662
|
} }
|
|
20621
|
-
function
|
|
20663
|
+
function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_container_1_tr_15_Template(rf, ctx) { if (rf & 1) {
|
|
20622
20664
|
i0.ɵɵelementStart(0, "tr", 6)(1, "th", 7);
|
|
20623
20665
|
i0.ɵɵtext(2);
|
|
20624
20666
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
@@ -20633,19 +20675,19 @@ function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_
|
|
|
20633
20675
|
i0.ɵɵadvance(3);
|
|
20634
20676
|
i0.ɵɵtextInterpolate(child_r3.name);
|
|
20635
20677
|
} }
|
|
20636
|
-
function
|
|
20637
|
-
i0.ɵɵelement(0, "ccd-query-attachments-read",
|
|
20678
|
+
function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_container_1_tr_22_ccd_query_attachments_read_5_Template(rf, ctx) { if (rf & 1) {
|
|
20679
|
+
i0.ɵɵelement(0, "ccd-query-attachments-read", 15);
|
|
20638
20680
|
} if (rf & 2) {
|
|
20639
20681
|
const child_r3 = i0.ɵɵnextContext(3).$implicit;
|
|
20640
20682
|
i0.ɵɵproperty("attachments", child_r3.attachments);
|
|
20641
20683
|
} }
|
|
20642
|
-
function
|
|
20684
|
+
function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_container_1_tr_22_Template(rf, ctx) { if (rf & 1) {
|
|
20643
20685
|
i0.ɵɵelementStart(0, "tr", 6)(1, "th", 7);
|
|
20644
20686
|
i0.ɵɵtext(2);
|
|
20645
20687
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
20646
20688
|
i0.ɵɵelementEnd();
|
|
20647
20689
|
i0.ɵɵelementStart(4, "td", 8);
|
|
20648
|
-
i0.ɵɵtemplate(5,
|
|
20690
|
+
i0.ɵɵtemplate(5, QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_container_1_tr_22_ccd_query_attachments_read_5_Template, 1, 1, "ccd-query-attachments-read", 14);
|
|
20649
20691
|
i0.ɵɵelementEnd()();
|
|
20650
20692
|
} if (rf & 2) {
|
|
20651
20693
|
const child_r3 = i0.ɵɵnextContext(2).$implicit;
|
|
@@ -20654,7 +20696,7 @@ function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_
|
|
|
20654
20696
|
i0.ɵɵadvance(3);
|
|
20655
20697
|
i0.ɵɵproperty("ngIf", child_r3.attachments);
|
|
20656
20698
|
} }
|
|
20657
|
-
function
|
|
20699
|
+
function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
20658
20700
|
i0.ɵɵelementContainerStart(0);
|
|
20659
20701
|
i0.ɵɵelementStart(1, "table", 3);
|
|
20660
20702
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
@@ -20670,7 +20712,7 @@ function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_
|
|
|
20670
20712
|
i0.ɵɵtext(13);
|
|
20671
20713
|
i0.ɵɵpipe(14, "date");
|
|
20672
20714
|
i0.ɵɵelementEnd()();
|
|
20673
|
-
i0.ɵɵtemplate(15,
|
|
20715
|
+
i0.ɵɵtemplate(15, QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_container_1_tr_15_Template, 6, 4, "tr", 10);
|
|
20674
20716
|
i0.ɵɵelementStart(16, "tr", 6)(17, "th", 7);
|
|
20675
20717
|
i0.ɵɵtext(18);
|
|
20676
20718
|
i0.ɵɵpipe(19, "rpxTranslate");
|
|
@@ -20678,12 +20720,12 @@ function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_
|
|
|
20678
20720
|
i0.ɵɵelementStart(20, "td", 8);
|
|
20679
20721
|
i0.ɵɵtext(21);
|
|
20680
20722
|
i0.ɵɵelementEnd()();
|
|
20681
|
-
i0.ɵɵtemplate(22,
|
|
20723
|
+
i0.ɵɵtemplate(22, QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_container_1_tr_22_Template, 6, 4, "tr", 10);
|
|
20682
20724
|
i0.ɵɵelementEnd()();
|
|
20683
20725
|
i0.ɵɵelementContainerEnd();
|
|
20684
20726
|
} if (rf & 2) {
|
|
20685
20727
|
const child_r3 = i0.ɵɵnextContext().$implicit;
|
|
20686
|
-
const
|
|
20728
|
+
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
20687
20729
|
i0.ɵɵadvance();
|
|
20688
20730
|
i0.ɵɵattribute("aria-describedby", i0.ɵɵpipeBind1(2, 8, "Response of the query"));
|
|
20689
20731
|
i0.ɵɵadvance(4);
|
|
@@ -20693,7 +20735,7 @@ function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_
|
|
|
20693
20735
|
i0.ɵɵadvance(3);
|
|
20694
20736
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(14, 14, child_r3.createdOn, "dd MMM yyyy"));
|
|
20695
20737
|
i0.ɵɵadvance(2);
|
|
20696
|
-
i0.ɵɵproperty("ngIf",
|
|
20738
|
+
i0.ɵɵproperty("ngIf", ctx_r0.isCaseworker());
|
|
20697
20739
|
i0.ɵɵadvance(3);
|
|
20698
20740
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(19, 17, "Response detail"));
|
|
20699
20741
|
i0.ɵɵadvance(3);
|
|
@@ -20701,19 +20743,19 @@ function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_
|
|
|
20701
20743
|
i0.ɵɵadvance();
|
|
20702
20744
|
i0.ɵɵproperty("ngIf", child_r3.attachments.length > 0);
|
|
20703
20745
|
} }
|
|
20704
|
-
function
|
|
20705
|
-
i0.ɵɵelement(0, "ccd-query-attachments-read",
|
|
20746
|
+
function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_template_2_tr_26_ccd_query_attachments_read_5_Template(rf, ctx) { if (rf & 1) {
|
|
20747
|
+
i0.ɵɵelement(0, "ccd-query-attachments-read", 15);
|
|
20706
20748
|
} if (rf & 2) {
|
|
20707
20749
|
const child_r3 = i0.ɵɵnextContext(3).$implicit;
|
|
20708
20750
|
i0.ɵɵproperty("attachments", child_r3.attachments);
|
|
20709
20751
|
} }
|
|
20710
|
-
function
|
|
20752
|
+
function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_template_2_tr_26_Template(rf, ctx) { if (rf & 1) {
|
|
20711
20753
|
i0.ɵɵelementStart(0, "tr", 6)(1, "th", 7);
|
|
20712
20754
|
i0.ɵɵtext(2);
|
|
20713
20755
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
20714
20756
|
i0.ɵɵelementEnd();
|
|
20715
20757
|
i0.ɵɵelementStart(4, "td", 8);
|
|
20716
|
-
i0.ɵɵtemplate(5,
|
|
20758
|
+
i0.ɵɵtemplate(5, QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_template_2_tr_26_ccd_query_attachments_read_5_Template, 1, 1, "ccd-query-attachments-read", 14);
|
|
20717
20759
|
i0.ɵɵelementEnd()();
|
|
20718
20760
|
} if (rf & 2) {
|
|
20719
20761
|
const child_r3 = i0.ɵɵnextContext(2).$implicit;
|
|
@@ -20722,7 +20764,7 @@ function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_
|
|
|
20722
20764
|
i0.ɵɵadvance(3);
|
|
20723
20765
|
i0.ɵɵproperty("ngIf", child_r3.attachments);
|
|
20724
20766
|
} }
|
|
20725
|
-
function
|
|
20767
|
+
function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
20726
20768
|
i0.ɵɵelementStart(0, "table", 3);
|
|
20727
20769
|
i0.ɵɵpipe(1, "rpxTranslate");
|
|
20728
20770
|
i0.ɵɵelementStart(2, "caption", 4)(3, "div");
|
|
@@ -20751,7 +20793,7 @@ function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_
|
|
|
20751
20793
|
i0.ɵɵelementStart(24, "td", 8);
|
|
20752
20794
|
i0.ɵɵtext(25);
|
|
20753
20795
|
i0.ɵɵelementEnd()();
|
|
20754
|
-
i0.ɵɵtemplate(26,
|
|
20796
|
+
i0.ɵɵtemplate(26, QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_template_2_tr_26_Template, 6, 4, "tr", 10);
|
|
20755
20797
|
i0.ɵɵelementEnd()();
|
|
20756
20798
|
} if (rf & 2) {
|
|
20757
20799
|
const child_r3 = i0.ɵɵnextContext().$implicit;
|
|
@@ -20773,9 +20815,9 @@ function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_
|
|
|
20773
20815
|
i0.ɵɵadvance();
|
|
20774
20816
|
i0.ɵɵproperty("ngIf", child_r3.attachments.length > 0);
|
|
20775
20817
|
} }
|
|
20776
|
-
function
|
|
20818
|
+
function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
20777
20819
|
i0.ɵɵelementContainerStart(0);
|
|
20778
|
-
i0.ɵɵtemplate(1,
|
|
20820
|
+
i0.ɵɵtemplate(1, QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_container_1_Template, 23, 19, "ng-container", 17)(2, QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_template_2_Template, 27, 22, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
20779
20821
|
i0.ɵɵelementContainerEnd();
|
|
20780
20822
|
} if (rf & 2) {
|
|
20781
20823
|
const i_r4 = ctx.index;
|
|
@@ -20783,117 +20825,125 @@ function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_Tem
|
|
|
20783
20825
|
i0.ɵɵadvance();
|
|
20784
20826
|
i0.ɵɵproperty("ngIf", i_r4 % 2 === 0)("ngIfElse", followUpMessage_r5);
|
|
20785
20827
|
} }
|
|
20786
|
-
function
|
|
20828
|
+
function QueryDetailsComponent_ng_container_0_ng_container_46_Template(rf, ctx) { if (rf & 1) {
|
|
20787
20829
|
i0.ɵɵelementContainerStart(0);
|
|
20788
|
-
i0.ɵɵtemplate(1,
|
|
20830
|
+
i0.ɵɵtemplate(1, QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_Template, 4, 2, "ng-container", 16);
|
|
20789
20831
|
i0.ɵɵelementContainerEnd();
|
|
20790
20832
|
} if (rf & 2) {
|
|
20791
|
-
const
|
|
20833
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
20792
20834
|
i0.ɵɵadvance();
|
|
20793
|
-
i0.ɵɵproperty("ngForOf",
|
|
20835
|
+
i0.ɵɵproperty("ngForOf", ctx_r0.query.children);
|
|
20794
20836
|
} }
|
|
20795
20837
|
function QueryDetailsComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
20796
|
-
const _r1 = i0.ɵɵgetCurrentView();
|
|
20797
20838
|
i0.ɵɵelementContainerStart(0);
|
|
20798
|
-
i0.ɵɵ
|
|
20799
|
-
i0.ɵɵ
|
|
20800
|
-
i0.ɵɵ
|
|
20801
|
-
i0.ɵɵ
|
|
20802
|
-
i0.ɵɵpipe(
|
|
20803
|
-
i0.ɵɵ
|
|
20804
|
-
i0.ɵɵ
|
|
20805
|
-
i0.ɵɵpipe(
|
|
20806
|
-
i0.ɵɵelementStart(9, "caption", 4)(10, "div");
|
|
20807
|
-
i0.ɵɵtext(11);
|
|
20808
|
-
i0.ɵɵpipe(12, "rpxTranslate");
|
|
20839
|
+
i0.ɵɵtemplate(1, QueryDetailsComponent_ng_container_0_cut_alert_1_Template, 3, 1, "cut-alert", 2);
|
|
20840
|
+
i0.ɵɵelement(2, "br");
|
|
20841
|
+
i0.ɵɵtemplate(3, QueryDetailsComponent_ng_container_0_p_3_Template, 4, 3, "p", 1);
|
|
20842
|
+
i0.ɵɵelementStart(4, "div")(5, "table", 3);
|
|
20843
|
+
i0.ɵɵpipe(6, "rpxTranslate");
|
|
20844
|
+
i0.ɵɵelementStart(7, "caption", 4)(8, "div");
|
|
20845
|
+
i0.ɵɵtext(9);
|
|
20846
|
+
i0.ɵɵpipe(10, "rpxTranslate");
|
|
20809
20847
|
i0.ɵɵelementEnd()();
|
|
20810
|
-
i0.ɵɵelementStart(
|
|
20811
|
-
i0.ɵɵtext(
|
|
20812
|
-
i0.ɵɵpipe(
|
|
20848
|
+
i0.ɵɵelementStart(11, "tbody", 5)(12, "tr", 6)(13, "th", 7);
|
|
20849
|
+
i0.ɵɵtext(14);
|
|
20850
|
+
i0.ɵɵpipe(15, "rpxTranslate");
|
|
20813
20851
|
i0.ɵɵelementEnd();
|
|
20814
|
-
i0.ɵɵelementStart(
|
|
20815
|
-
i0.ɵɵtext(
|
|
20852
|
+
i0.ɵɵelementStart(16, "td", 8);
|
|
20853
|
+
i0.ɵɵtext(17);
|
|
20816
20854
|
i0.ɵɵelementEnd()();
|
|
20817
|
-
i0.ɵɵelementStart(
|
|
20818
|
-
i0.ɵɵtext(
|
|
20819
|
-
i0.ɵɵpipe(
|
|
20855
|
+
i0.ɵɵelementStart(18, "tr", 6)(19, "th", 7);
|
|
20856
|
+
i0.ɵɵtext(20);
|
|
20857
|
+
i0.ɵɵpipe(21, "rpxTranslate");
|
|
20820
20858
|
i0.ɵɵelementEnd();
|
|
20821
|
-
i0.ɵɵelementStart(
|
|
20822
|
-
i0.ɵɵtext(
|
|
20823
|
-
i0.ɵɵpipe(
|
|
20859
|
+
i0.ɵɵelementStart(22, "td", 8);
|
|
20860
|
+
i0.ɵɵtext(23);
|
|
20861
|
+
i0.ɵɵpipe(24, "date");
|
|
20824
20862
|
i0.ɵɵelementEnd()();
|
|
20825
|
-
i0.ɵɵelementStart(
|
|
20826
|
-
i0.ɵɵtext(
|
|
20827
|
-
i0.ɵɵpipe(
|
|
20863
|
+
i0.ɵɵelementStart(25, "tr", 6)(26, "th", 7);
|
|
20864
|
+
i0.ɵɵtext(27);
|
|
20865
|
+
i0.ɵɵpipe(28, "rpxTranslate");
|
|
20828
20866
|
i0.ɵɵelementEnd();
|
|
20829
|
-
i0.ɵɵelementStart(
|
|
20830
|
-
i0.ɵɵtext(
|
|
20867
|
+
i0.ɵɵelementStart(29, "td", 8);
|
|
20868
|
+
i0.ɵɵtext(30);
|
|
20831
20869
|
i0.ɵɵelementEnd()();
|
|
20832
|
-
i0.ɵɵelementStart(
|
|
20833
|
-
i0.ɵɵtext(
|
|
20834
|
-
i0.ɵɵpipe(
|
|
20870
|
+
i0.ɵɵelementStart(31, "tr", 6)(32, "th", 7);
|
|
20871
|
+
i0.ɵɵtext(33);
|
|
20872
|
+
i0.ɵɵpipe(34, "rpxTranslate");
|
|
20835
20873
|
i0.ɵɵelementEnd();
|
|
20836
|
-
i0.ɵɵelementStart(
|
|
20837
|
-
i0.ɵɵtext(
|
|
20874
|
+
i0.ɵɵelementStart(35, "td", 8);
|
|
20875
|
+
i0.ɵɵtext(36);
|
|
20838
20876
|
i0.ɵɵelementEnd()();
|
|
20839
|
-
i0.ɵɵelementStart(
|
|
20840
|
-
i0.ɵɵtext(
|
|
20841
|
-
i0.ɵɵpipe(
|
|
20877
|
+
i0.ɵɵelementStart(37, "tr", 6)(38, "th", 7);
|
|
20878
|
+
i0.ɵɵtext(39);
|
|
20879
|
+
i0.ɵɵpipe(40, "rpxTranslate");
|
|
20842
20880
|
i0.ɵɵelementEnd();
|
|
20843
|
-
i0.ɵɵelementStart(
|
|
20844
|
-
i0.ɵɵtext(
|
|
20845
|
-
i0.ɵɵpipe(
|
|
20881
|
+
i0.ɵɵelementStart(41, "td", 8);
|
|
20882
|
+
i0.ɵɵtext(42);
|
|
20883
|
+
i0.ɵɵpipe(43, "rpxTranslate");
|
|
20846
20884
|
i0.ɵɵelementEnd()();
|
|
20847
|
-
i0.ɵɵtemplate(
|
|
20885
|
+
i0.ɵɵtemplate(44, QueryDetailsComponent_ng_container_0_tr_44_Template, 7, 7, "tr", 9)(45, QueryDetailsComponent_ng_container_0_tr_45_Template, 6, 4, "tr", 10);
|
|
20848
20886
|
i0.ɵɵelementEnd()()();
|
|
20849
|
-
i0.ɵɵtemplate(
|
|
20887
|
+
i0.ɵɵtemplate(46, QueryDetailsComponent_ng_container_0_ng_container_46_Template, 2, 1, "ng-container", 1);
|
|
20850
20888
|
i0.ɵɵelementContainerEnd();
|
|
20851
20889
|
} if (rf & 2) {
|
|
20852
|
-
const
|
|
20853
|
-
i0.ɵɵadvance(
|
|
20854
|
-
i0.ɵɵ
|
|
20855
|
-
i0.ɵɵadvance(
|
|
20856
|
-
i0.ɵɵ
|
|
20890
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
20891
|
+
i0.ɵɵadvance();
|
|
20892
|
+
i0.ɵɵproperty("ngIf", ctx_r0.hasRespondedToQuery());
|
|
20893
|
+
i0.ɵɵadvance(2);
|
|
20894
|
+
i0.ɵɵproperty("ngIf", ctx_r0.showLink);
|
|
20895
|
+
i0.ɵɵadvance(2);
|
|
20896
|
+
i0.ɵɵattribute("aria-describedby", i0.ɵɵpipeBind1(6, 21, "Details of the query"));
|
|
20857
20897
|
i0.ɵɵadvance(4);
|
|
20858
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
20898
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10, 23, "Query details"));
|
|
20859
20899
|
i0.ɵɵadvance(5);
|
|
20860
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
20900
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(15, 25, "Last submitted by"));
|
|
20861
20901
|
i0.ɵɵadvance(3);
|
|
20862
|
-
i0.ɵɵtextInterpolate(
|
|
20902
|
+
i0.ɵɵtextInterpolate(ctx_r0.query.lastSubmittedBy);
|
|
20863
20903
|
i0.ɵɵadvance(3);
|
|
20864
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
20904
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(21, 27, "Submission date"));
|
|
20865
20905
|
i0.ɵɵadvance(3);
|
|
20866
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(
|
|
20906
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(24, 29, ctx_r0.query.createdOn, "dd MMM yyyy"));
|
|
20867
20907
|
i0.ɵɵadvance(4);
|
|
20868
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
20908
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(28, 32, "Query subject"));
|
|
20869
20909
|
i0.ɵɵadvance(3);
|
|
20870
|
-
i0.ɵɵtextInterpolate(
|
|
20910
|
+
i0.ɵɵtextInterpolate(ctx_r0.query.subject);
|
|
20871
20911
|
i0.ɵɵadvance(3);
|
|
20872
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
20912
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(34, 34, "Query body"));
|
|
20873
20913
|
i0.ɵɵadvance(3);
|
|
20874
|
-
i0.ɵɵtextInterpolate(
|
|
20914
|
+
i0.ɵɵtextInterpolate(ctx_r0.query.body);
|
|
20875
20915
|
i0.ɵɵadvance(2);
|
|
20876
|
-
i0.ɵɵclassProp("govuk-table__header--no-border",
|
|
20916
|
+
i0.ɵɵclassProp("govuk-table__header--no-border", ctx_r0.query.isHearingRelated);
|
|
20877
20917
|
i0.ɵɵadvance();
|
|
20878
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
20918
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(40, 36, "Is the query hearing related?"), " ");
|
|
20879
20919
|
i0.ɵɵadvance(2);
|
|
20880
|
-
i0.ɵɵclassProp("govuk-table__cell--no-border",
|
|
20920
|
+
i0.ɵɵclassProp("govuk-table__cell--no-border", ctx_r0.query.isHearingRelated);
|
|
20881
20921
|
i0.ɵɵadvance();
|
|
20882
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(
|
|
20922
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(43, 38, "Is the query hearing related?", null, ctx_r0.query.isHearingRelated), "");
|
|
20883
20923
|
i0.ɵɵadvance(2);
|
|
20884
|
-
i0.ɵɵproperty("ngIf",
|
|
20924
|
+
i0.ɵɵproperty("ngIf", ctx_r0.query.isHearingRelated === "Yes");
|
|
20885
20925
|
i0.ɵɵadvance();
|
|
20886
|
-
i0.ɵɵproperty("ngIf",
|
|
20926
|
+
i0.ɵɵproperty("ngIf", ctx_r0.query.attachments.length > 0);
|
|
20887
20927
|
i0.ɵɵadvance();
|
|
20888
|
-
i0.ɵɵproperty("ngIf", (
|
|
20928
|
+
i0.ɵɵproperty("ngIf", (ctx_r0.query.children == null ? null : ctx_r0.query.children.length) > 0);
|
|
20889
20929
|
} }
|
|
20890
20930
|
class QueryDetailsComponent {
|
|
20891
20931
|
sessionStorageService;
|
|
20932
|
+
route;
|
|
20933
|
+
router;
|
|
20892
20934
|
query;
|
|
20893
20935
|
backClicked = new EventEmitter();
|
|
20894
20936
|
caseId;
|
|
20895
|
-
|
|
20937
|
+
hasResponded = new EventEmitter();
|
|
20938
|
+
totalNumberOfQueryChildren;
|
|
20939
|
+
showLink = true;
|
|
20940
|
+
message;
|
|
20941
|
+
static QUERY_ITEM_RESPOND = '3';
|
|
20942
|
+
queryItemId;
|
|
20943
|
+
constructor(sessionStorageService, route, router) {
|
|
20896
20944
|
this.sessionStorageService = sessionStorageService;
|
|
20945
|
+
this.route = route;
|
|
20946
|
+
this.router = router;
|
|
20897
20947
|
}
|
|
20898
20948
|
onBack() {
|
|
20899
20949
|
this.backClicked.emit(true);
|
|
@@ -20904,24 +20954,45 @@ class QueryDetailsComponent {
|
|
|
20904
20954
|
&& !(userDetails.roles.includes('pui-case-manager')
|
|
20905
20955
|
|| userDetails.roles.some((role) => role.toLowerCase().includes('judge')));
|
|
20906
20956
|
}
|
|
20907
|
-
|
|
20908
|
-
|
|
20909
|
-
|
|
20957
|
+
ngOnChanges() {
|
|
20958
|
+
this.toggleLinkVisibility();
|
|
20959
|
+
this.hasRespondedToQuery();
|
|
20960
|
+
}
|
|
20961
|
+
toggleLinkVisibility() {
|
|
20962
|
+
this.queryItemId = this.route.snapshot.params.qid;
|
|
20963
|
+
this.showLink = this.queryItemId !== QueryDetailsComponent.QUERY_ITEM_RESPOND;
|
|
20964
|
+
}
|
|
20965
|
+
hasRespondedToQuery() {
|
|
20966
|
+
if (this.totalNumberOfQueryChildren >= 0 && this.isCaseworker() && this.totalNumberOfQueryChildren % 2 !== 0) {
|
|
20967
|
+
this.message = Constants.TASK_COMPLETION_ERROR;
|
|
20968
|
+
this.hasResponded.emit(true);
|
|
20969
|
+
return true;
|
|
20970
|
+
}
|
|
20971
|
+
this.hasResponded.emit(false);
|
|
20972
|
+
return false;
|
|
20973
|
+
}
|
|
20974
|
+
static ɵfac = function QueryDetailsComponent_Factory(t) { return new (t || QueryDetailsComponent)(i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(i1$1.Router)); };
|
|
20975
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryDetailsComponent, selectors: [["ccd-query-details"]], inputs: { query: "query", caseId: "caseId", totalNumberOfQueryChildren: "totalNumberOfQueryChildren" }, outputs: { backClicked: "backClicked", hasResponded: "hasResponded" }, features: [i0.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [["followUpMessage", ""], [4, "ngIf"], ["type", "error", 4, "ngIf"], [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"], ["type", "error"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [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) {
|
|
20976
|
+
i0.ɵɵtemplate(0, QueryDetailsComponent_ng_container_0_Template, 47, 42, "ng-container", 1);
|
|
20910
20977
|
} if (rf & 2) {
|
|
20911
20978
|
i0.ɵɵproperty("ngIf", ctx.query);
|
|
20912
20979
|
} }, styles: [".query-details-table[_ngcontent-%COMP%] .govuk-table__header[_ngcontent-%COMP%]{width:330px}"] });
|
|
20913
20980
|
}
|
|
20914
20981
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryDetailsComponent, [{
|
|
20915
20982
|
type: Component,
|
|
20916
|
-
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"] }]
|
|
20917
|
-
}], () => [{ type: SessionStorageService }], { query: [{
|
|
20983
|
+
args: [{ selector: 'ccd-query-details', template: "<ng-container *ngIf=\"query\">\n <cut-alert type=\"error\" *ngIf=\"hasRespondedToQuery()\">\n <ng-container>{{message}}</ng-container>\n </cut-alert>\n\n <br/>\n <p *ngIf=\"showLink\">\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"] }]
|
|
20984
|
+
}], () => [{ type: SessionStorageService }, { type: i1$1.ActivatedRoute }, { type: i1$1.Router }], { query: [{
|
|
20918
20985
|
type: Input
|
|
20919
20986
|
}], backClicked: [{
|
|
20920
20987
|
type: Output
|
|
20921
20988
|
}], caseId: [{
|
|
20922
20989
|
type: Input
|
|
20990
|
+
}], hasResponded: [{
|
|
20991
|
+
type: Output
|
|
20992
|
+
}], totalNumberOfQueryChildren: [{
|
|
20993
|
+
type: Input
|
|
20923
20994
|
}] }); })();
|
|
20924
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryDetailsComponent, { className: "QueryDetailsComponent", filePath: "lib/shared/components/palette/query-management/components/query-details/query-details.component.ts", lineNumber:
|
|
20995
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryDetailsComponent, { className: "QueryDetailsComponent", filePath: "lib/shared/components/palette/query-management/components/query-details/query-details.component.ts", lineNumber: 11 }); })();
|
|
20925
20996
|
|
|
20926
20997
|
class QueryEventCompletionComponent {
|
|
20927
20998
|
eventCompletionParams;
|
|
@@ -21513,8 +21584,8 @@ class QueryWriteRaiseQueryComponent {
|
|
|
21513
21584
|
}] }); })();
|
|
21514
21585
|
(() => { (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 }); })();
|
|
21515
21586
|
|
|
21516
|
-
function
|
|
21517
|
-
i0.ɵɵelementStart(0, "p",
|
|
21587
|
+
function QueryWriteRespondToQueryComponent_div_12_div_1_p_10_Template(rf, ctx) { if (rf & 1) {
|
|
21588
|
+
i0.ɵɵelementStart(0, "p", 16)(1, "span", 17);
|
|
21518
21589
|
i0.ɵɵtext(2);
|
|
21519
21590
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
21520
21591
|
i0.ɵɵelementEnd();
|
|
@@ -21522,66 +21593,123 @@ function QueryWriteRespondToQueryComponent_div_12_p_11_Template(rf, ctx) { if (r
|
|
|
21522
21593
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
21523
21594
|
i0.ɵɵelementEnd();
|
|
21524
21595
|
} if (rf & 2) {
|
|
21525
|
-
const ctx_r0 = i0.ɵɵnextContext(
|
|
21596
|
+
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
21526
21597
|
i0.ɵɵadvance(2);
|
|
21527
21598
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 2, "Error:"), " ");
|
|
21528
21599
|
i0.ɵɵadvance(2);
|
|
21529
21600
|
i0.ɵɵtextInterpolate1("", ctx_r0.queryCreateContext === ctx_r0.queryCreateContextEnum.RESPOND ? ctx_r0.raiseQueryErrorMessages.RESPOND_QUERY_BODY : i0.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessages.QUERY_BODY), " ");
|
|
21530
21601
|
} }
|
|
21531
|
-
function
|
|
21532
|
-
i0.ɵɵelementStart(0, "div"
|
|
21533
|
-
i0.ɵɵtext(
|
|
21534
|
-
i0.ɵɵpipe(
|
|
21602
|
+
function QueryWriteRespondToQueryComponent_div_12_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
21603
|
+
i0.ɵɵelementStart(0, "div")(1, "h1", 9);
|
|
21604
|
+
i0.ɵɵtext(2);
|
|
21605
|
+
i0.ɵɵpipe(3, "rpxTranslate");
|
|
21535
21606
|
i0.ɵɵelementEnd();
|
|
21536
|
-
i0.ɵɵelementStart(
|
|
21537
|
-
i0.ɵɵtext(
|
|
21538
|
-
i0.ɵɵpipe(
|
|
21607
|
+
i0.ɵɵelementStart(4, "div", 10)(5, "div", 11)(6, "div", 12)(7, "label", 13);
|
|
21608
|
+
i0.ɵɵtext(8);
|
|
21609
|
+
i0.ɵɵpipe(9, "rpxTranslate");
|
|
21539
21610
|
i0.ɵɵelementEnd()();
|
|
21540
|
-
i0.ɵɵtemplate(
|
|
21541
|
-
i0.ɵɵelementStart(
|
|
21542
|
-
i0.ɵɵtext(
|
|
21543
|
-
i0.ɵɵelementEnd()()()()
|
|
21611
|
+
i0.ɵɵtemplate(10, QueryWriteRespondToQueryComponent_div_12_div_1_p_10_Template, 6, 6, "p", 14);
|
|
21612
|
+
i0.ɵɵelementStart(11, "textarea", 15);
|
|
21613
|
+
i0.ɵɵtext(12, " ");
|
|
21614
|
+
i0.ɵɵelementEnd()()()();
|
|
21544
21615
|
} if (rf & 2) {
|
|
21545
|
-
let
|
|
21546
|
-
let tmp_5_0;
|
|
21616
|
+
let tmp_4_0;
|
|
21547
21617
|
let tmp_6_0;
|
|
21548
|
-
|
|
21549
|
-
i0.ɵɵ
|
|
21550
|
-
i0.ɵɵ
|
|
21618
|
+
let tmp_7_0;
|
|
21619
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
21620
|
+
i0.ɵɵadvance(2);
|
|
21621
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r0.queryCreateContext === ctx_r0.queryCreateContextEnum.RESPOND ? "Respond to a query" : i0.ɵɵpipeBind1(3, 9, "Ask a follow-up question"), " ");
|
|
21551
21622
|
i0.ɵɵadvance(2);
|
|
21552
21623
|
i0.ɵɵproperty("formGroup", ctx_r0.formGroup);
|
|
21553
21624
|
i0.ɵɵadvance();
|
|
21554
|
-
i0.ɵɵclassProp("govuk-form-group--error", ctx_r0.submitted && ((
|
|
21625
|
+
i0.ɵɵclassProp("govuk-form-group--error", ctx_r0.submitted && ((tmp_4_0 = ctx_r0.formGroup.get("body")) == null ? null : tmp_4_0.hasError("required")));
|
|
21555
21626
|
i0.ɵɵadvance(3);
|
|
21556
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r0.queryCreateContext === ctx_r0.queryCreateContextEnum.RESPOND ? "Response detail" : i0.ɵɵpipeBind1(
|
|
21627
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r0.queryCreateContext === ctx_r0.queryCreateContextEnum.RESPOND ? "Response detail" : i0.ɵɵpipeBind1(9, 11, "Query Body"), " ");
|
|
21557
21628
|
i0.ɵɵadvance(2);
|
|
21558
|
-
i0.ɵɵproperty("ngIf", ctx_r0.submitted && ((
|
|
21629
|
+
i0.ɵɵproperty("ngIf", ctx_r0.submitted && ((tmp_6_0 = ctx_r0.formGroup.get("body")) == null ? null : tmp_6_0.hasError("required")));
|
|
21559
21630
|
i0.ɵɵadvance();
|
|
21560
|
-
i0.ɵɵclassProp("govuk-textarea--error", ctx_r0.submitted && ((
|
|
21631
|
+
i0.ɵɵclassProp("govuk-textarea--error", ctx_r0.submitted && ((tmp_7_0 = ctx_r0.formGroup.get("body")) == null ? null : tmp_7_0.hasError("required")));
|
|
21561
21632
|
i0.ɵɵproperty("formControlName", "body");
|
|
21562
21633
|
} }
|
|
21634
|
+
function QueryWriteRespondToQueryComponent_div_12_Template(rf, ctx) { if (rf & 1) {
|
|
21635
|
+
i0.ɵɵelementStart(0, "div", 7);
|
|
21636
|
+
i0.ɵɵtemplate(1, QueryWriteRespondToQueryComponent_div_12_div_1_Template, 13, 13, "div", 8);
|
|
21637
|
+
i0.ɵɵelementEnd();
|
|
21638
|
+
} if (rf & 2) {
|
|
21639
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
21640
|
+
i0.ɵɵadvance();
|
|
21641
|
+
i0.ɵɵproperty("ngIf", !ctx_r0.hasRespondedToQuery);
|
|
21642
|
+
} }
|
|
21563
21643
|
class QueryWriteRespondToQueryComponent {
|
|
21564
21644
|
caseNotifier;
|
|
21645
|
+
route;
|
|
21565
21646
|
queryItem;
|
|
21566
21647
|
formGroup;
|
|
21567
21648
|
queryCreateContext;
|
|
21568
21649
|
submitted = false;
|
|
21650
|
+
caseQueriesCollections;
|
|
21569
21651
|
showForm;
|
|
21652
|
+
hasRespondedToQueryTask = new EventEmitter();
|
|
21570
21653
|
queryCreateContextEnum = QueryCreateContext;
|
|
21571
21654
|
raiseQueryErrorMessages = RaiseQueryErrorMessage;
|
|
21572
21655
|
caseId;
|
|
21656
|
+
queryItemId;
|
|
21573
21657
|
caseDetails;
|
|
21574
|
-
|
|
21658
|
+
totalNumberOfQueryChildren;
|
|
21659
|
+
queryItemDisplay;
|
|
21660
|
+
hasRespondedToQuery = false;
|
|
21661
|
+
static QUERY_ITEM_RESPOND = '3';
|
|
21662
|
+
static QUERY_ITEM_FOLLOWUP = '4';
|
|
21663
|
+
constructor(caseNotifier, route) {
|
|
21575
21664
|
this.caseNotifier = caseNotifier;
|
|
21665
|
+
this.route = route;
|
|
21576
21666
|
}
|
|
21577
21667
|
ngOnInit() {
|
|
21578
|
-
this.
|
|
21579
|
-
|
|
21580
|
-
|
|
21668
|
+
this.queryItemId = this.route.snapshot.params.qid;
|
|
21669
|
+
this.caseNotifier.caseView.pipe(take(1)).subscribe({
|
|
21670
|
+
next: (caseDetails) => {
|
|
21671
|
+
this.caseId = caseDetails?.case_id ?? '';
|
|
21672
|
+
this.caseDetails = caseDetails;
|
|
21673
|
+
},
|
|
21674
|
+
error: (err) => {
|
|
21675
|
+
console.error('Error retrieving case details:', err);
|
|
21676
|
+
}
|
|
21581
21677
|
});
|
|
21582
21678
|
}
|
|
21583
|
-
|
|
21584
|
-
|
|
21679
|
+
ngOnChanges() {
|
|
21680
|
+
if (this.queryItemId === QueryWriteRespondToQueryComponent.QUERY_ITEM_RESPOND
|
|
21681
|
+
&& this.caseQueriesCollections?.length > 0) {
|
|
21682
|
+
if (!this.caseQueriesCollections[0]) {
|
|
21683
|
+
console.error('caseQueriesCollections[0] is undefined!', this.caseQueriesCollections);
|
|
21684
|
+
return;
|
|
21685
|
+
}
|
|
21686
|
+
const numberOfQueryChildren = new QueryListData(this.caseQueriesCollections[0]);
|
|
21687
|
+
this.totalNumberOfQueryChildren = numberOfQueryChildren?.queries?.[0]?.children?.length || 0;
|
|
21688
|
+
const messageId = this.route.snapshot.params.dataid;
|
|
21689
|
+
if (!messageId) {
|
|
21690
|
+
console.warn('No messageId found in route params:', this.route.snapshot.params);
|
|
21691
|
+
return;
|
|
21692
|
+
}
|
|
21693
|
+
const filteredMessages = this.caseQueriesCollections
|
|
21694
|
+
.map((caseData) => caseData?.caseMessages || []) // Ensure caseMessages is always an array
|
|
21695
|
+
.flat() // Flatten into a single array of messages
|
|
21696
|
+
.filter((message) => message?.value?.id === messageId); // Safe access
|
|
21697
|
+
if (filteredMessages.length > 0) {
|
|
21698
|
+
const matchingMessage = filteredMessages[0]?.value;
|
|
21699
|
+
if (matchingMessage) {
|
|
21700
|
+
this.queryItemDisplay = new QueryListItem();
|
|
21701
|
+
Object.assign(this.queryItemDisplay, matchingMessage);
|
|
21702
|
+
this.queryItem = this.queryItemDisplay;
|
|
21703
|
+
}
|
|
21704
|
+
}
|
|
21705
|
+
}
|
|
21706
|
+
}
|
|
21707
|
+
hasResponded(value) {
|
|
21708
|
+
this.hasRespondedToQuery = value;
|
|
21709
|
+
this.hasRespondedToQueryTask.emit(value);
|
|
21710
|
+
}
|
|
21711
|
+
static ɵfac = function QueryWriteRespondToQueryComponent_Factory(t) { return new (t || QueryWriteRespondToQueryComponent)(i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute)); };
|
|
21712
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryWriteRespondToQueryComponent, selectors: [["ccd-query-write-respond-to-query"]], inputs: { queryItem: "queryItem", formGroup: "formGroup", queryCreateContext: "queryCreateContext", submitted: "submitted", caseQueriesCollections: "caseQueriesCollections", showForm: "showForm" }, outputs: { hasRespondedToQueryTask: "hasRespondedToQueryTask" }, features: [i0.ɵɵNgOnChangesFeature], decls: 13, vars: 10, 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, "hasResponded", "query", "totalNumberOfQueryChildren"], ["class", "query-respond", 4, "ngIf"], [1, "query-respond"], [4, "ngIf"], [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) {
|
|
21585
21713
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 0)(2, "div", 1);
|
|
21586
21714
|
i0.ɵɵtext(3);
|
|
21587
21715
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
@@ -21593,27 +21721,27 @@ class QueryWriteRespondToQueryComponent {
|
|
|
21593
21721
|
i0.ɵɵelementStart(8, "div", 3);
|
|
21594
21722
|
i0.ɵɵelement(9, "ccd-query-case-details-header", 4);
|
|
21595
21723
|
i0.ɵɵelementEnd();
|
|
21596
|
-
i0.ɵɵelementStart(10, "div");
|
|
21597
|
-
i0.ɵɵ
|
|
21598
|
-
i0.ɵɵelementEnd()();
|
|
21599
|
-
i0.ɵɵtemplate(12, QueryWriteRespondToQueryComponent_div_12_Template,
|
|
21724
|
+
i0.ɵɵelementStart(10, "div")(11, "ccd-query-details", 5);
|
|
21725
|
+
i0.ɵɵlistener("hasResponded", function QueryWriteRespondToQueryComponent_Template_ccd_query_details_hasResponded_11_listener($event) { return ctx.hasResponded($event); });
|
|
21726
|
+
i0.ɵɵelementEnd()()();
|
|
21727
|
+
i0.ɵɵtemplate(12, QueryWriteRespondToQueryComponent_div_12_Template, 2, 1, "div", 6);
|
|
21600
21728
|
} if (rf & 2) {
|
|
21601
21729
|
i0.ɵɵadvance(3);
|
|
21602
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4,
|
|
21730
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 6, "Respond to a query"));
|
|
21603
21731
|
i0.ɵɵadvance(3);
|
|
21604
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7,
|
|
21732
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 8, "Query details"));
|
|
21605
21733
|
i0.ɵɵadvance(3);
|
|
21606
21734
|
i0.ɵɵproperty("caseDetails", ctx.caseDetails);
|
|
21607
21735
|
i0.ɵɵadvance(2);
|
|
21608
|
-
i0.ɵɵproperty("query", ctx.queryItem);
|
|
21736
|
+
i0.ɵɵproperty("query", ctx.queryItem)("totalNumberOfQueryChildren", ctx.totalNumberOfQueryChildren);
|
|
21609
21737
|
i0.ɵɵadvance();
|
|
21610
21738
|
i0.ɵɵproperty("ngIf", ctx.showForm);
|
|
21611
21739
|
} }, styles: [".query-respond[_ngcontent-%COMP%]{width:100%;max-width:720px}"] });
|
|
21612
21740
|
}
|
|
21613
21741
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryWriteRespondToQueryComponent, [{
|
|
21614
21742
|
type: Component,
|
|
21615
|
-
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
|
|
21616
|
-
}], () => [{ type: CaseNotifier }], { queryItem: [{
|
|
21743
|
+
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\"\n [totalNumberOfQueryChildren]=\"totalNumberOfQueryChildren\"\n (hasResponded)=\"hasResponded($event)\"></ccd-query-details>\n </div>\n</div>\n<div class=\"query-respond\" *ngIf=\"showForm\">\n <div *ngIf=\"!hasRespondedToQuery\">\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"] }]
|
|
21744
|
+
}], () => [{ type: CaseNotifier }, { type: i1$1.ActivatedRoute }], { queryItem: [{
|
|
21617
21745
|
type: Input
|
|
21618
21746
|
}], formGroup: [{
|
|
21619
21747
|
type: Input
|
|
@@ -21621,8 +21749,12 @@ class QueryWriteRespondToQueryComponent {
|
|
|
21621
21749
|
type: Input
|
|
21622
21750
|
}], submitted: [{
|
|
21623
21751
|
type: Input
|
|
21752
|
+
}], caseQueriesCollections: [{
|
|
21753
|
+
type: Input
|
|
21624
21754
|
}], showForm: [{
|
|
21625
21755
|
type: Input
|
|
21756
|
+
}], hasRespondedToQueryTask: [{
|
|
21757
|
+
type: Output
|
|
21626
21758
|
}] }); })();
|
|
21627
21759
|
(() => { (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 }); })();
|
|
21628
21760
|
|
|
@@ -21753,7 +21885,6 @@ class QueryConfirmationComponent {
|
|
|
21753
21885
|
(() => { (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 }); })();
|
|
21754
21886
|
|
|
21755
21887
|
const _c0$B = (a0, a1) => ["/query-management", "query", a0, "4", a1];
|
|
21756
|
-
const _c1$e = (a0, a1) => ["/query-management", "query", a0, "3", a1];
|
|
21757
21888
|
function ReadQueryManagementFieldComponent_ng_container_0_ng_container_1_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
21758
21889
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
21759
21890
|
i0.ɵɵelementStart(0, "div", 5)(1, "ccd-query-list", 6);
|
|
@@ -21821,33 +21952,17 @@ function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_Template
|
|
|
21821
21952
|
i0.ɵɵadvance();
|
|
21822
21953
|
i0.ɵɵproperty("ngIf", (ctx_r1.query == null ? null : ctx_r1.query.children == null ? null : ctx_r1.query.children.length) > 0 && (ctx_r1.query == null ? null : ctx_r1.query.children == null ? null : ctx_r1.query.children.length) % 2 === 1)("ngIfElse", queryIsInReview_r5);
|
|
21823
21954
|
} }
|
|
21824
|
-
function ReadQueryManagementFieldComponent_ng_template_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
21825
|
-
i0.ɵɵelementContainerStart(0);
|
|
21826
|
-
i0.ɵɵelementStart(1, "button", 9);
|
|
21827
|
-
i0.ɵɵtext(2);
|
|
21828
|
-
i0.ɵɵpipe(3, "rpxTranslate");
|
|
21829
|
-
i0.ɵɵelementEnd();
|
|
21830
|
-
i0.ɵɵelementContainerEnd();
|
|
21831
|
-
} if (rf & 2) {
|
|
21832
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
21833
|
-
i0.ɵɵadvance();
|
|
21834
|
-
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction2(4, _c1$e, ctx_r1.caseId, ctx_r1.query.id));
|
|
21835
|
-
i0.ɵɵadvance();
|
|
21836
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2, "Respond to a query"), " ");
|
|
21837
|
-
} }
|
|
21838
21955
|
function ReadQueryManagementFieldComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
21839
21956
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
21840
21957
|
i0.ɵɵelementStart(0, "ccd-query-details", 7);
|
|
21841
21958
|
i0.ɵɵlistener("backClicked", function ReadQueryManagementFieldComponent_ng_template_1_Template_ccd_query_details_backClicked_0_listener() { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.showQueryList = true); });
|
|
21842
21959
|
i0.ɵɵelementEnd();
|
|
21843
|
-
i0.ɵɵtemplate(1, ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_Template, 4, 2, "ng-container", 8)
|
|
21960
|
+
i0.ɵɵtemplate(1, ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_Template, 4, 2, "ng-container", 8);
|
|
21844
21961
|
} if (rf & 2) {
|
|
21845
21962
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
21846
21963
|
i0.ɵɵproperty("query", ctx_r1.query)("caseId", ctx_r1.caseId);
|
|
21847
21964
|
i0.ɵɵadvance();
|
|
21848
21965
|
i0.ɵɵproperty("ngIf", !ctx_r1.isCaseworker());
|
|
21849
|
-
i0.ɵɵadvance();
|
|
21850
|
-
i0.ɵɵproperty("ngIf", (ctx_r1.query == null ? null : ctx_r1.query.children == null ? null : ctx_r1.query.children.length) >= 0 && ctx_r1.isCaseworker() && (ctx_r1.query == null ? null : ctx_r1.query.children == null ? null : ctx_r1.query.children.length) % 2 === 0);
|
|
21851
21966
|
} }
|
|
21852
21967
|
class ReadQueryManagementFieldComponent extends AbstractFieldReadComponent {
|
|
21853
21968
|
route;
|
|
@@ -21906,7 +22021,7 @@ class ReadQueryManagementFieldComponent extends AbstractFieldReadComponent {
|
|
|
21906
22021
|
}
|
|
21907
22022
|
static ɵfac = function ReadQueryManagementFieldComponent_Factory(t) { return new (t || ReadQueryManagementFieldComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(CaseNotifier)); };
|
|
21908
22023
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadQueryManagementFieldComponent, selectors: [["ccd-read-query-management-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 2, consts: [["singleQueryDetails", ""], ["queryIsInReview", ""], [4, "ngIf", "ngIfElse"], [4, "ngFor", "ngForOf"], ["class", "govuk-!-margin-top-8 govuk-!-margin-bottom-8", 4, "ngIf"], [1, "govuk-!-margin-top-8", "govuk-!-margin-bottom-8"], [3, "selectedQuery", "caseQueriesCollection"], [3, "backClicked", "query", "caseId"], [4, "ngIf"], ["id", "ask-follow-up-question", "data-module", "govuk-button", 1, "govuk-button", 3, "routerLink"], [1, "govuk-!-font-weight-bold"]], template: function ReadQueryManagementFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
21909
|
-
i0.ɵɵtemplate(0, ReadQueryManagementFieldComponent_ng_container_0_Template, 2, 1, "ng-container", 2)(1, ReadQueryManagementFieldComponent_ng_template_1_Template,
|
|
22024
|
+
i0.ɵɵtemplate(0, ReadQueryManagementFieldComponent_ng_container_0_Template, 2, 1, "ng-container", 2)(1, ReadQueryManagementFieldComponent_ng_template_1_Template, 2, 3, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
21910
22025
|
} if (rf & 2) {
|
|
21911
22026
|
const singleQueryDetails_r6 = i0.ɵɵreference(2);
|
|
21912
22027
|
i0.ɵɵproperty("ngIf", ctx.showQueryList)("ngIfElse", singleQueryDetails_r6);
|
|
@@ -21914,7 +22029,7 @@ class ReadQueryManagementFieldComponent extends AbstractFieldReadComponent {
|
|
|
21914
22029
|
}
|
|
21915
22030
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadQueryManagementFieldComponent, [{
|
|
21916
22031
|
type: Component,
|
|
21917
|
-
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=\"!isCaseworker()\">\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 will respond. Do not submit the same query more than once.' | rpxTranslate }}</p>\n </div>\n </ng-template>\n </ng-container>\n
|
|
22032
|
+
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=\"!isCaseworker()\">\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 will respond. Do not submit the same query more than once.' | rpxTranslate }}</p>\n </div>\n </ng-template>\n </ng-container>\n</ng-template>\n" }]
|
|
21918
22033
|
}], () => [{ type: i1$1.ActivatedRoute }, { type: SessionStorageService }, { type: CaseNotifier }], null); })();
|
|
21919
22034
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadQueryManagementFieldComponent, { className: "ReadQueryManagementFieldComponent", filePath: "lib/shared/components/palette/query-management/read-query-management-field.component.ts", lineNumber: 14 }); })();
|
|
21920
22035
|
|
|
@@ -29277,7 +29392,7 @@ i0.ɵɵsetComponentScope(
|
|
|
29277
29392
|
// Components for Query Management
|
|
29278
29393
|
ReadQueryManagementFieldComponent, function () { return [i5.NgForOf, i5.NgIf, i1$1.RouterLink, QueryDetailsComponent,
|
|
29279
29394
|
QueryListComponent]; }, function () { return [i1.RpxTranslatePipe]; });
|
|
29280
|
-
i0.ɵɵsetComponentScope(QueryDetailsComponent, function () { return [i5.NgForOf, i5.NgIf, QueryAttachmentsReadComponent]; }, function () { return [i5.DatePipe, i1.RpxTranslatePipe]; });
|
|
29395
|
+
i0.ɵɵsetComponentScope(QueryDetailsComponent, function () { return [i5.NgForOf, i5.NgIf, AlertComponent, QueryAttachmentsReadComponent]; }, function () { return [i5.DatePipe, i1.RpxTranslatePipe]; });
|
|
29281
29396
|
i0.ɵɵsetComponentScope(QueryWriteRespondToQueryComponent, function () { return [i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, QueryDetailsComponent,
|
|
29282
29397
|
QueryCaseDetailsHeaderComponent]; }, function () { return [i1.RpxTranslatePipe]; });
|
|
29283
29398
|
i0.ɵɵsetComponentScope(QueryWriteRaiseQueryComponent, function () { return [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.RadioControlValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, QueryCaseDetailsHeaderComponent,
|