@hmcts/ccd-case-ui-toolkit 7.1.35-qm-callbackerror → 7.1.37-qm-wa
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/linked-cases/components/link-cases/link-cases.component.mjs +17 -17
- package/esm2022/lib/shared/components/palette/linked-cases/components/unlink-cases/unlink-cases.component.mjs +10 -10
- package/esm2022/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.mjs +30 -13
- 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 -30
- 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 +393 -262
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/lib/shared/components/palette/linked-cases/components/unlink-cases/unlink-cases.component.d.ts.map +1 -1
- package/lib/shared/components/palette/linked-cases/write-linked-cases-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.d.ts +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);
|
|
@@ -16679,8 +16679,8 @@ class LinkCasesComponent {
|
|
|
16679
16679
|
})), this.validatorsUtils.formArraySelectedValidator());
|
|
16680
16680
|
}
|
|
16681
16681
|
toggleLinkCaseReasonOtherComments(event) {
|
|
16682
|
-
this.linkCaseReasons.find(reason => reason.value_en === event.target.value).selected = event.target.checked;
|
|
16683
|
-
this.showComments = this.linkCaseReasons.find(reason => reason.value_en === 'Other')
|
|
16682
|
+
this.linkCaseReasons.find((reason) => reason.value_en === event.target.value).selected = event.target.checked;
|
|
16683
|
+
this.showComments = this.linkCaseReasons.find((reason) => reason.value_en === 'Other')?.selected;
|
|
16684
16684
|
}
|
|
16685
16685
|
submitCaseInfo() {
|
|
16686
16686
|
this.errorMessages = [];
|
|
@@ -16719,7 +16719,7 @@ class LinkCasesComponent {
|
|
|
16719
16719
|
this.errorMessages.push({
|
|
16720
16720
|
title: 'dummy-case-number',
|
|
16721
16721
|
description: LinkedCasesErrorMessages.CaseNumberError,
|
|
16722
|
-
fieldId: 'caseNumber'
|
|
16722
|
+
fieldId: 'caseNumber'
|
|
16723
16723
|
});
|
|
16724
16724
|
}
|
|
16725
16725
|
if (this.linkCaseForm.controls.reasonType.invalid) {
|
|
@@ -16727,17 +16727,17 @@ class LinkCasesComponent {
|
|
|
16727
16727
|
this.errorMessages.push({
|
|
16728
16728
|
title: 'dummy-case-reason',
|
|
16729
16729
|
description: LinkedCasesErrorMessages.ReasonSelectionError,
|
|
16730
|
-
fieldId: 'caseReason'
|
|
16730
|
+
fieldId: 'caseReason'
|
|
16731
16731
|
});
|
|
16732
16732
|
}
|
|
16733
16733
|
if (this.linkCaseForm.controls.reasonType.valid
|
|
16734
|
-
&& this.linkCaseReasons.find(reason => reason.value_en === 'Other').selected) {
|
|
16734
|
+
&& this.linkCaseReasons.find((reason) => reason.value_en === 'Other').selected) {
|
|
16735
16735
|
if (this.linkCaseForm.controls.otherDescription.value.trim().length === 0) {
|
|
16736
16736
|
this.caseReasonCommentsError = LinkedCasesErrorMessages.otherDescriptionError;
|
|
16737
16737
|
this.errorMessages.push({
|
|
16738
16738
|
title: 'dummy-case-reason-comments',
|
|
16739
16739
|
description: LinkedCasesErrorMessages.otherDescriptionError,
|
|
16740
|
-
fieldId: 'otherDescription'
|
|
16740
|
+
fieldId: 'otherDescription'
|
|
16741
16741
|
});
|
|
16742
16742
|
}
|
|
16743
16743
|
if (this.linkCaseForm.controls.otherDescription.value.trim().length > 100) {
|
|
@@ -16745,7 +16745,7 @@ class LinkCasesComponent {
|
|
|
16745
16745
|
this.errorMessages.push({
|
|
16746
16746
|
title: 'dummy-case-reason-comments',
|
|
16747
16747
|
description: LinkedCasesErrorMessages.otherDescriptionMaxLengthError,
|
|
16748
|
-
fieldId: 'otherDescription'
|
|
16748
|
+
fieldId: 'otherDescription'
|
|
16749
16749
|
});
|
|
16750
16750
|
}
|
|
16751
16751
|
}
|
|
@@ -16754,7 +16754,7 @@ class LinkCasesComponent {
|
|
|
16754
16754
|
this.errorMessages.push({
|
|
16755
16755
|
title: 'dummy-case-number',
|
|
16756
16756
|
description: LinkedCasesErrorMessages.CaseProposedError,
|
|
16757
|
-
fieldId: 'caseNumber'
|
|
16757
|
+
fieldId: 'caseNumber'
|
|
16758
16758
|
});
|
|
16759
16759
|
}
|
|
16760
16760
|
if (this.isCaseSelected(this.linkedCasesService.linkedCases)) {
|
|
@@ -16762,14 +16762,14 @@ class LinkCasesComponent {
|
|
|
16762
16762
|
this.errorMessages.push({
|
|
16763
16763
|
title: 'dummy-case-number',
|
|
16764
16764
|
description: LinkedCasesErrorMessages.CasesLinkedError,
|
|
16765
|
-
fieldId: 'caseNumber'
|
|
16765
|
+
fieldId: 'caseNumber'
|
|
16766
16766
|
});
|
|
16767
16767
|
}
|
|
16768
16768
|
if (this.linkCaseForm.value.caseNumber.split('-').join('') === this.linkedCasesService.caseId.split('-').join('')) {
|
|
16769
16769
|
this.errorMessages.push({
|
|
16770
16770
|
title: 'dummy-case-number',
|
|
16771
16771
|
description: LinkedCasesErrorMessages.ProposedCaseWithIn,
|
|
16772
|
-
fieldId: 'caseNumber'
|
|
16772
|
+
fieldId: 'caseNumber'
|
|
16773
16773
|
});
|
|
16774
16774
|
}
|
|
16775
16775
|
window.scrollTo(0, 0);
|
|
@@ -16790,7 +16790,7 @@ class LinkCasesComponent {
|
|
|
16790
16790
|
caseState: caseView.state.name || '',
|
|
16791
16791
|
caseStateDescription: caseView.state.description || '',
|
|
16792
16792
|
caseService: caseView.case_type && caseView.case_type.jurisdiction && caseView.case_type.jurisdiction.description || '',
|
|
16793
|
-
caseName: this.linkedCasesService.getCaseName(caseView)
|
|
16793
|
+
caseName: this.linkedCasesService.getCaseName(caseView)
|
|
16794
16794
|
};
|
|
16795
16795
|
const ccdApiCaseLinkData = {
|
|
16796
16796
|
CaseReference: caseView.case_id,
|
|
@@ -16803,7 +16803,7 @@ class LinkCasesComponent {
|
|
|
16803
16803
|
}
|
|
16804
16804
|
this.linkedCasesService.caseFieldValue.push({ id: caseView.case_id.toString(), value: ccdApiCaseLinkData });
|
|
16805
16805
|
this.selectedCases.push(caseLink);
|
|
16806
|
-
this.linkCaseReasons.forEach(reason => reason.selected = false);
|
|
16806
|
+
this.linkCaseReasons.forEach((reason) => reason.selected = false);
|
|
16807
16807
|
this.initForm();
|
|
16808
16808
|
this.emitLinkedCasesState(false);
|
|
16809
16809
|
}, (error) => {
|
|
@@ -16811,7 +16811,7 @@ class LinkCasesComponent {
|
|
|
16811
16811
|
this.errorMessages.push({
|
|
16812
16812
|
title: 'dummy-case-number',
|
|
16813
16813
|
description: LinkedCasesErrorMessages.CaseCheckAgainError,
|
|
16814
|
-
fieldId: 'caseNumber'
|
|
16814
|
+
fieldId: 'caseNumber'
|
|
16815
16815
|
});
|
|
16816
16816
|
this.emitLinkedCasesState(false);
|
|
16817
16817
|
window.scrollTo(0, 0);
|
|
@@ -16823,7 +16823,7 @@ class LinkCasesComponent {
|
|
|
16823
16823
|
this.linkedCasesStateEmitter.emit({
|
|
16824
16824
|
currentLinkedCasesPage: LinkedCasesPages.LINK_CASE,
|
|
16825
16825
|
errorMessages: this.errorMessages,
|
|
16826
|
-
navigateToNextPage: isNavigateToNextPage
|
|
16826
|
+
navigateToNextPage: isNavigateToNextPage
|
|
16827
16827
|
});
|
|
16828
16828
|
}
|
|
16829
16829
|
getSelectedCaseReasons() {
|
|
@@ -16858,7 +16858,7 @@ class LinkCasesComponent {
|
|
|
16858
16858
|
}
|
|
16859
16859
|
onSelectedLinkedCaseRemove(pos, selectedCaseReference) {
|
|
16860
16860
|
const caseFieldValue = this.linkedCasesService.caseFieldValue || [];
|
|
16861
|
-
const updatedItems = caseFieldValue.filter(item => item.value && item.value.CaseReference !== selectedCaseReference);
|
|
16861
|
+
const updatedItems = caseFieldValue.filter((item) => item.value && item.value.CaseReference !== selectedCaseReference);
|
|
16862
16862
|
if (updatedItems) {
|
|
16863
16863
|
this.linkedCasesService.caseFieldValue = updatedItems;
|
|
16864
16864
|
}
|
|
@@ -16879,7 +16879,7 @@ class LinkCasesComponent {
|
|
|
16879
16879
|
this.errorMessages.push({
|
|
16880
16880
|
title: 'dummy-case-selection',
|
|
16881
16881
|
description: LinkedCasesErrorMessages.CaseSelectionError,
|
|
16882
|
-
fieldId: 'caseReason'
|
|
16882
|
+
fieldId: 'caseReason'
|
|
16883
16883
|
});
|
|
16884
16884
|
navigateToNextPage = false;
|
|
16885
16885
|
}
|
|
@@ -17614,7 +17614,7 @@ class UnLinkCasesComponent {
|
|
|
17614
17614
|
}
|
|
17615
17615
|
else {
|
|
17616
17616
|
this.casesService.getCaseViewV2(this.caseId).subscribe((caseView) => {
|
|
17617
|
-
const linkedCasesTab = caseView.tabs.find(tab => tab.id === UnLinkCasesComponent.LINKED_CASES_TAB_ID);
|
|
17617
|
+
const linkedCasesTab = caseView.tabs.find((tab) => tab.id === UnLinkCasesComponent.LINKED_CASES_TAB_ID);
|
|
17618
17618
|
if (linkedCasesTab) {
|
|
17619
17619
|
const linkedCases = linkedCasesTab.fields[0].value;
|
|
17620
17620
|
this.linkedCases = linkedCases;
|
|
@@ -17626,22 +17626,22 @@ class UnLinkCasesComponent {
|
|
|
17626
17626
|
}
|
|
17627
17627
|
getAllLinkedCaseInformation() {
|
|
17628
17628
|
const searchCasesResponse = [];
|
|
17629
|
-
this.linkedCases.forEach(linkedCase => {
|
|
17629
|
+
this.linkedCases.forEach((linkedCase) => {
|
|
17630
17630
|
searchCasesResponse.push(this.casesService.getCaseViewV2(linkedCase.caseReference));
|
|
17631
17631
|
});
|
|
17632
17632
|
if (searchCasesResponse.length) {
|
|
17633
17633
|
this.searchCasesByCaseIds(searchCasesResponse).subscribe((searchCases) => {
|
|
17634
17634
|
searchCases.forEach((response) => {
|
|
17635
|
-
const linkedCaseFromList = this.linkedCases.find(linkedCase => linkedCase.caseReference === response.case_id);
|
|
17635
|
+
const linkedCaseFromList = this.linkedCases.find((linkedCase) => linkedCase.caseReference === response.case_id);
|
|
17636
17636
|
if (linkedCaseFromList) {
|
|
17637
17637
|
const caseName = this.linkedCasesService.getCaseName(response);
|
|
17638
|
-
this.linkedCases.find(linkedCase => linkedCase.caseReference === response.case_id).caseName = caseName;
|
|
17638
|
+
this.linkedCases.find((linkedCase) => linkedCase.caseReference === response.case_id).caseName = caseName;
|
|
17639
17639
|
}
|
|
17640
17640
|
});
|
|
17641
17641
|
this.initForm();
|
|
17642
17642
|
this.linkedCasesService.linkedCases = this.linkedCases;
|
|
17643
17643
|
this.isServerError = false;
|
|
17644
|
-
}, err => {
|
|
17644
|
+
}, (err) => {
|
|
17645
17645
|
this.isServerError = true;
|
|
17646
17646
|
this.notifyAPIFailure.emit(true);
|
|
17647
17647
|
});
|
|
@@ -17656,7 +17656,7 @@ class UnLinkCasesComponent {
|
|
|
17656
17656
|
});
|
|
17657
17657
|
}
|
|
17658
17658
|
get getLinkedCasesFormArray() {
|
|
17659
|
-
const formFieldArray = this.linkedCases.map(val => this.fb.group({
|
|
17659
|
+
const formFieldArray = this.linkedCases.map((val) => this.fb.group({
|
|
17660
17660
|
caseReference: val.caseReference,
|
|
17661
17661
|
reasons: val.reasons,
|
|
17662
17662
|
createdDateTime: val.createdDateTime,
|
|
@@ -17670,7 +17670,7 @@ class UnLinkCasesComponent {
|
|
|
17670
17670
|
}
|
|
17671
17671
|
onChange(caseSelected) {
|
|
17672
17672
|
this.resetErrorMessages();
|
|
17673
|
-
const selectedCase = this.linkedCases.find(linkedCase => linkedCase.caseReference === caseSelected.value);
|
|
17673
|
+
const selectedCase = this.linkedCases.find((linkedCase) => linkedCase.caseReference === caseSelected.value);
|
|
17674
17674
|
if (selectedCase) {
|
|
17675
17675
|
selectedCase.unlink = caseSelected.checked ? true : false;
|
|
17676
17676
|
}
|
|
@@ -17678,7 +17678,7 @@ class UnLinkCasesComponent {
|
|
|
17678
17678
|
onNext() {
|
|
17679
17679
|
this.resetErrorMessages();
|
|
17680
17680
|
let navigateToNextPage = true;
|
|
17681
|
-
const casesMarkedToUnlink = this.linkedCases.find(linkedCase => linkedCase.unlink && linkedCase.unlink === true);
|
|
17681
|
+
const casesMarkedToUnlink = this.linkedCases.find((linkedCase) => linkedCase.unlink && linkedCase.unlink === true);
|
|
17682
17682
|
if (!casesMarkedToUnlink) {
|
|
17683
17683
|
this.errorMessages.push({
|
|
17684
17684
|
title: 'case-selection',
|
|
@@ -17696,7 +17696,7 @@ class UnLinkCasesComponent {
|
|
|
17696
17696
|
this.linkedCasesStateEmitter.emit({
|
|
17697
17697
|
currentLinkedCasesPage: LinkedCasesPages.UNLINK_CASE,
|
|
17698
17698
|
errorMessages: this.errorMessages,
|
|
17699
|
-
navigateToNextPage: isNavigateToNextPage
|
|
17699
|
+
navigateToNextPage: isNavigateToNextPage
|
|
17700
17700
|
});
|
|
17701
17701
|
}
|
|
17702
17702
|
resetErrorMessages() {
|
|
@@ -18039,14 +18039,16 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
|
|
|
18039
18039
|
// Get linked case reasons from ref data
|
|
18040
18040
|
this.linkedCasesService.editMode = false;
|
|
18041
18041
|
this.subscriptions.add(this.caseEditDataService.caseDetails$.subscribe({
|
|
18042
|
-
next: caseDetails => {
|
|
18042
|
+
next: (caseDetails) => {
|
|
18043
|
+
this.initialiseCaseDetails(caseDetails);
|
|
18044
|
+
}
|
|
18043
18045
|
}));
|
|
18044
18046
|
this.getOrgService();
|
|
18045
18047
|
this.subscriptions.add(this.caseEditDataService.caseEventTriggerName$.subscribe({
|
|
18046
|
-
next: name => this.linkedCasesService.isLinkedCasesEventTrigger = (name === LinkedCasesEventTriggers.LINK_CASES)
|
|
18048
|
+
next: (name) => this.linkedCasesService.isLinkedCasesEventTrigger = (name === LinkedCasesEventTriggers.LINK_CASES)
|
|
18047
18049
|
}));
|
|
18048
18050
|
this.subscriptions.add(this.caseEditDataService.caseEditForm$.subscribe({
|
|
18049
|
-
next: editForm => this.caseEditForm = editForm
|
|
18051
|
+
next: (editForm) => this.caseEditForm = editForm
|
|
18050
18052
|
}));
|
|
18051
18053
|
}
|
|
18052
18054
|
initialiseCaseDetails(caseDetails) {
|
|
@@ -18122,13 +18124,28 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
|
|
|
18122
18124
|
}
|
|
18123
18125
|
}
|
|
18124
18126
|
submitLinkedCases() {
|
|
18127
|
+
let caseFieldValue = [...(this.linkedCasesService.caseFieldValue || [])];
|
|
18125
18128
|
if (!this.linkedCasesService.isLinkedCasesEventTrigger) {
|
|
18126
|
-
const
|
|
18127
|
-
|
|
18128
|
-
|
|
18129
|
+
const unlinkedCaseReferenceIds = this.linkedCasesService.linkedCases
|
|
18130
|
+
.filter((item) => item.unlink)
|
|
18131
|
+
.map((item) => item.caseReference);
|
|
18132
|
+
caseFieldValue = caseFieldValue.filter((item) => !unlinkedCaseReferenceIds.includes(item.id));
|
|
18133
|
+
}
|
|
18134
|
+
// Replace the caseLinks value in this.formGroup
|
|
18135
|
+
this.formGroup.patchValue({
|
|
18136
|
+
caseLinks: caseFieldValue
|
|
18137
|
+
});
|
|
18138
|
+
// Replace the caseLinks control in caseEditForm.controls.data
|
|
18139
|
+
const dataFormGroup = this.caseEditForm.controls.data;
|
|
18140
|
+
if (dataFormGroup) {
|
|
18141
|
+
// Remove the existing caseLinks control (if it exists)
|
|
18142
|
+
if (dataFormGroup.contains('caseLinks')) {
|
|
18143
|
+
dataFormGroup.removeControl('caseLinks');
|
|
18144
|
+
}
|
|
18145
|
+
// Add the new control with the replacement value
|
|
18146
|
+
dataFormGroup.addControl('caseLinks', new FormControl(caseFieldValue || []));
|
|
18129
18147
|
}
|
|
18130
|
-
|
|
18131
|
-
this.caseEditForm.controls['data'] = new FormGroup({ caseLinks: new FormControl(this.linkedCasesService.caseFieldValue || []) });
|
|
18148
|
+
// Set the updated form in the caseEditDataService
|
|
18132
18149
|
this.caseEditDataService.setCaseEditForm(this.caseEditForm);
|
|
18133
18150
|
}
|
|
18134
18151
|
isAtFinalPage() {
|
|
@@ -18145,11 +18162,11 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
|
|
|
18145
18162
|
}
|
|
18146
18163
|
getLinkedCases() {
|
|
18147
18164
|
this.casesService.getCaseViewV2(this.linkedCasesService.caseId).subscribe((caseView) => {
|
|
18148
|
-
const caseViewFiltered = caseView.tabs.filter(tab => {
|
|
18165
|
+
const caseViewFiltered = caseView.tabs.filter((tab) => {
|
|
18149
18166
|
return tab.fields.some(({ field_type }) => field_type && field_type.collection_field_type && field_type.collection_field_type.id === 'CaseLink');
|
|
18150
18167
|
});
|
|
18151
18168
|
if (caseViewFiltered) {
|
|
18152
|
-
const caseLinkFieldValue = caseViewFiltered.map(filtered => filtered.fields?.length > 0 && filtered.fields.filter(field => field.id === 'caseLinks')[0].value);
|
|
18169
|
+
const caseLinkFieldValue = caseViewFiltered.map((filtered) => filtered.fields?.length > 0 && filtered.fields.filter((field) => field.id === 'caseLinks')[0].value);
|
|
18153
18170
|
this.linkedCasesService.caseFieldValue = caseLinkFieldValue.length ? caseLinkFieldValue[0] : [];
|
|
18154
18171
|
this.linkedCasesService.getAllLinkedCaseInformation();
|
|
18155
18172
|
}
|
|
@@ -18189,7 +18206,7 @@ class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent {
|
|
|
18189
18206
|
type: Component,
|
|
18190
18207
|
args: [{ selector: 'ccd-write-linked-cases-field', template: "<div class=\"form-group govuk-!-margin-bottom-2\" [formGroup]=\"formGroup\">\n <div class=\"govuk-form-group\" [ngSwitch]=\"linkedCasesPage\">\n <ng-container *ngSwitchCase=\"linkedCasesPages.BEFORE_YOU_START\">\n <ccd-linked-cases-before-you-start\n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\"></ccd-linked-cases-before-you-start>\n </ng-container>\n <ng-container *ngSwitchCase=\"linkedCasesPages.NO_LINKED_CASES\">\n <ccd-no-linked-cases\n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\"></ccd-no-linked-cases>\n </ng-container>\n <ng-container *ngSwitchCase=\"linkedCasesPages.LINK_CASE\">\n <ccd-link-cases\n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\"></ccd-link-cases>\n </ng-container>\n <ng-container *ngSwitchCase=\"linkedCasesPages.UNLINK_CASE\">\n <ccd-unlink-cases\n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\"></ccd-unlink-cases>\n </ng-container>\n <ng-container *ngSwitchCase=\"linkedCasesPages.CHECK_YOUR_ANSWERS\">\n <ccd-linked-cases-check-your-answers\n (linkedCasesStateEmitter)=\"onLinkedCasesStateEmitted($event)\"></ccd-linked-cases-check-your-answers>\n </ng-container>\n </div>\n</div>\n" }]
|
|
18191
18208
|
}], () => [{ type: AbstractAppConfig }, { type: CommonDataService }, { type: CasesService }, { type: LinkedCasesService }, { type: CaseEditDataService }], null); })();
|
|
18192
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteLinkedCasesFieldComponent, { className: "WriteLinkedCasesFieldComponent", filePath: "lib/shared/components/palette/linked-cases/write-linked-cases-field.component.ts", lineNumber:
|
|
18209
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteLinkedCasesFieldComponent, { className: "WriteLinkedCasesFieldComponent", filePath: "lib/shared/components/palette/linked-cases/write-linked-cases-field.component.ts", lineNumber: 18 }); })();
|
|
18193
18210
|
|
|
18194
18211
|
function ReadMoneyGbpFieldComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
18195
18212
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -18609,7 +18626,7 @@ class ReadNumberFieldComponent extends AbstractFieldReadComponent {
|
|
|
18609
18626
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadNumberFieldComponent, { className: "ReadNumberFieldComponent", filePath: "lib/shared/components/palette/number/read-number-field.component.ts", lineNumber: 8 }); })();
|
|
18610
18627
|
|
|
18611
18628
|
const _c0$F = a0 => ({ "form-group-error": a0 });
|
|
18612
|
-
const _c1$
|
|
18629
|
+
const _c1$f = a0 => ({ "govuk-input--error": a0 });
|
|
18613
18630
|
function WriteNumberFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
18614
18631
|
i0.ɵɵelementStart(0, "span", 6);
|
|
18615
18632
|
i0.ɵɵtext(1);
|
|
@@ -18664,7 +18681,7 @@ class WriteNumberFieldComponent extends AbstractFieldWriteComponent {
|
|
|
18664
18681
|
i0.ɵɵadvance();
|
|
18665
18682
|
i0.ɵɵproperty("ngIf", ctx.numberControl.errors && ctx.numberControl.dirty);
|
|
18666
18683
|
i0.ɵɵadvance();
|
|
18667
|
-
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);
|
|
18668
18685
|
} }, dependencies: [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.NumberValueAccessor, i4.NgControlStatus, i4.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
18669
18686
|
}
|
|
18670
18687
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteNumberFieldComponent, [{
|
|
@@ -19292,7 +19309,7 @@ class ReadPhoneUKFieldComponent extends AbstractFieldReadComponent {
|
|
|
19292
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 }); })();
|
|
19293
19310
|
|
|
19294
19311
|
const _c0$D = a0 => ({ "form-group-error": a0 });
|
|
19295
|
-
const _c1$
|
|
19312
|
+
const _c1$e = a0 => ({ "govuk-input--error": a0 });
|
|
19296
19313
|
function WritePhoneUKFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
19297
19314
|
i0.ɵɵelementStart(0, "span", 6);
|
|
19298
19315
|
i0.ɵɵtext(1);
|
|
@@ -19347,7 +19364,7 @@ class WritePhoneUKFieldComponent extends AbstractFieldWriteComponent {
|
|
|
19347
19364
|
i0.ɵɵadvance();
|
|
19348
19365
|
i0.ɵɵproperty("ngIf", ctx.phoneUkControl.errors && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched));
|
|
19349
19366
|
i0.ɵɵadvance();
|
|
19350
|
-
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);
|
|
19351
19368
|
} }, dependencies: [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
19352
19369
|
}
|
|
19353
19370
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WritePhoneUKFieldComponent, [{
|
|
@@ -20262,6 +20279,7 @@ class QueryCheckYourAnswersComponent {
|
|
|
20262
20279
|
caseViewTrigger;
|
|
20263
20280
|
caseDetails;
|
|
20264
20281
|
queryId;
|
|
20282
|
+
tid;
|
|
20265
20283
|
createEventSubscription;
|
|
20266
20284
|
searchTasksSubscription;
|
|
20267
20285
|
queryCreateContextEnum = QueryCreateContext;
|
|
@@ -20270,6 +20288,7 @@ class QueryCheckYourAnswersComponent {
|
|
|
20270
20288
|
fieldId;
|
|
20271
20289
|
attachments;
|
|
20272
20290
|
errorMessages = [];
|
|
20291
|
+
filteredTask = [];
|
|
20273
20292
|
constructor(route, router, casesService, caseNotifier, workAllocationService, sessionStorageService, qualifyingQuestionService) {
|
|
20274
20293
|
this.route = route;
|
|
20275
20294
|
this.router = router;
|
|
@@ -20281,6 +20300,7 @@ class QueryCheckYourAnswersComponent {
|
|
|
20281
20300
|
}
|
|
20282
20301
|
ngOnInit() {
|
|
20283
20302
|
this.queryId = this.route.snapshot.params.qid;
|
|
20303
|
+
this.tid = this.route.snapshot.queryParams?.tid;
|
|
20284
20304
|
this.caseNotifier.caseView.pipe(take(1)).subscribe((caseDetails) => {
|
|
20285
20305
|
this.caseDetails = caseDetails;
|
|
20286
20306
|
// Find the appropriate event trigger based on the queryCreateContext
|
|
@@ -20293,6 +20313,23 @@ class QueryCheckYourAnswersComponent {
|
|
|
20293
20313
|
// Get the document attachments
|
|
20294
20314
|
this.getDocumentAttachments();
|
|
20295
20315
|
this.setCaseQueriesCollectionData();
|
|
20316
|
+
if (this.queryCreateContext === QueryCreateContext.RESPOND) {
|
|
20317
|
+
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)
|
|
20318
|
+
.subscribe({
|
|
20319
|
+
next: (response) => {
|
|
20320
|
+
// Filter task by query id
|
|
20321
|
+
if (response.tasks?.length > 1) {
|
|
20322
|
+
this.filteredTask = response.tasks?.find((task) => task.case_id === this.tid);
|
|
20323
|
+
}
|
|
20324
|
+
else {
|
|
20325
|
+
this.filteredTask = response.tasks;
|
|
20326
|
+
}
|
|
20327
|
+
},
|
|
20328
|
+
error: (error) => {
|
|
20329
|
+
console.error('Error in searchTasksSubscription:', error);
|
|
20330
|
+
}
|
|
20331
|
+
});
|
|
20332
|
+
}
|
|
20296
20333
|
}
|
|
20297
20334
|
ngOnDestroy() {
|
|
20298
20335
|
this.createEventSubscription?.unsubscribe();
|
|
@@ -20302,7 +20339,6 @@ class QueryCheckYourAnswersComponent {
|
|
|
20302
20339
|
this.backClicked.emit(true);
|
|
20303
20340
|
}
|
|
20304
20341
|
submit() {
|
|
20305
|
-
// Check if fieldId is null or undefined
|
|
20306
20342
|
if (!this.fieldId) {
|
|
20307
20343
|
console.error('Error: Field ID is missing. Cannot proceed with submission.');
|
|
20308
20344
|
this.errorMessages = [
|
|
@@ -20315,7 +20351,25 @@ class QueryCheckYourAnswersComponent {
|
|
|
20315
20351
|
return;
|
|
20316
20352
|
}
|
|
20317
20353
|
const data = this.generateCaseQueriesCollectionData();
|
|
20318
|
-
|
|
20354
|
+
const createEvent$ = this.createEvent(data);
|
|
20355
|
+
if (this.queryCreateContext === QueryCreateContext.RESPOND) {
|
|
20356
|
+
const completeTask$ = this.workAllocationService.completeTask(this.filteredTask[0].id, this.caseViewTrigger.name);
|
|
20357
|
+
this.createEventSubscription = forkJoin([createEvent$, completeTask$]).subscribe({
|
|
20358
|
+
next: ([createEventResponse, tasksResponse]) => {
|
|
20359
|
+
this.finaliseSubmission();
|
|
20360
|
+
},
|
|
20361
|
+
error: (error) => this.handleError(error)
|
|
20362
|
+
});
|
|
20363
|
+
}
|
|
20364
|
+
else {
|
|
20365
|
+
this.createEventSubscription = createEvent$.subscribe({
|
|
20366
|
+
next: () => this.finaliseSubmission(),
|
|
20367
|
+
error: (error) => this.handleError(error)
|
|
20368
|
+
});
|
|
20369
|
+
}
|
|
20370
|
+
}
|
|
20371
|
+
createEvent(data) {
|
|
20372
|
+
return this.casesService.createEvent(this.caseDetails, {
|
|
20319
20373
|
data,
|
|
20320
20374
|
event: {
|
|
20321
20375
|
id: this.caseViewTrigger?.id,
|
|
@@ -20324,34 +20378,16 @@ class QueryCheckYourAnswersComponent {
|
|
|
20324
20378
|
},
|
|
20325
20379
|
event_token: this.eventData?.event_token,
|
|
20326
20380
|
ignore_warning: false
|
|
20327
|
-
}).subscribe(() => {
|
|
20328
|
-
// Search and complete task
|
|
20329
|
-
this.searchAndCompleteTask();
|
|
20330
|
-
// Emit query submitted event
|
|
20331
|
-
this.querySubmitted.emit(true);
|
|
20332
|
-
this.qualifyingQuestionService.clearQualifyingQuestionSelection();
|
|
20333
|
-
},
|
|
20334
|
-
// Error
|
|
20335
|
-
() => this.router.navigate(['/', 'service-down']));
|
|
20336
|
-
}
|
|
20337
|
-
searchAndCompleteTask() {
|
|
20338
|
-
// Search Task
|
|
20339
|
-
const searchParameter = { ccdId: this.caseDetails.case_id };
|
|
20340
|
-
this.searchTasksSubscription = this.workAllocationService.searchTasks(searchParameter)
|
|
20341
|
-
.subscribe((response) => {
|
|
20342
|
-
// Filter task by query id
|
|
20343
|
-
const filteredTask = response.tasks?.find((task) => Object.values(task.additional_properties).some((value) => value === this.queryId));
|
|
20344
|
-
// Trigger event completion
|
|
20345
|
-
this.eventCompletionParams = {
|
|
20346
|
-
caseId: this.caseDetails.case_id,
|
|
20347
|
-
eventId: this.RESPOND_TO_QUERY_EVENT_TRIGGER_ID,
|
|
20348
|
-
task: filteredTask
|
|
20349
|
-
};
|
|
20350
|
-
}, (error) => {
|
|
20351
|
-
console.error('Error in searchTasksSubscription:', error);
|
|
20352
|
-
// Handle error appropriately
|
|
20353
20381
|
});
|
|
20354
20382
|
}
|
|
20383
|
+
finaliseSubmission() {
|
|
20384
|
+
this.querySubmitted.emit(true);
|
|
20385
|
+
this.qualifyingQuestionService.clearQualifyingQuestionSelection();
|
|
20386
|
+
}
|
|
20387
|
+
handleError(error) {
|
|
20388
|
+
console.error('Error in API calls:', error);
|
|
20389
|
+
this.router.navigate(['/', 'service-down']);
|
|
20390
|
+
}
|
|
20355
20391
|
generateCaseQueriesCollectionData() {
|
|
20356
20392
|
const currentUserDetails = JSON.parse(this.sessionStorageService.getItem('userDetails'));
|
|
20357
20393
|
const caseMessage = this.queryCreateContext === QueryCreateContext.NEW_QUERY
|
|
@@ -20560,10 +20596,32 @@ class QueryCheckYourAnswersComponent {
|
|
|
20560
20596
|
}], querySubmitted: [{
|
|
20561
20597
|
type: Output
|
|
20562
20598
|
}] }); })();
|
|
20563
|
-
(() => { (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:
|
|
20599
|
+
(() => { (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 }); })();
|
|
20564
20600
|
|
|
20565
|
-
function
|
|
20566
|
-
i0.ɵɵelementStart(0, "
|
|
20601
|
+
function QueryDetailsComponent_ng_container_0_cut_alert_1_Template(rf, ctx) { if (rf & 1) {
|
|
20602
|
+
i0.ɵɵelementStart(0, "cut-alert", 11);
|
|
20603
|
+
i0.ɵɵelementContainerStart(1);
|
|
20604
|
+
i0.ɵɵtext(2);
|
|
20605
|
+
i0.ɵɵelementContainerEnd();
|
|
20606
|
+
i0.ɵɵelementEnd();
|
|
20607
|
+
} if (rf & 2) {
|
|
20608
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
20609
|
+
i0.ɵɵadvance(2);
|
|
20610
|
+
i0.ɵɵtextInterpolate(ctx_r0.message);
|
|
20611
|
+
} }
|
|
20612
|
+
function QueryDetailsComponent_ng_container_0_p_3_Template(rf, ctx) { if (rf & 1) {
|
|
20613
|
+
const _r2 = i0.ɵɵgetCurrentView();
|
|
20614
|
+
i0.ɵɵelementStart(0, "p")(1, "a", 12);
|
|
20615
|
+
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()); });
|
|
20616
|
+
i0.ɵɵtext(2);
|
|
20617
|
+
i0.ɵɵpipe(3, "rpxTranslate");
|
|
20618
|
+
i0.ɵɵelementEnd()();
|
|
20619
|
+
} if (rf & 2) {
|
|
20620
|
+
i0.ɵɵadvance(2);
|
|
20621
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "Back to query list"));
|
|
20622
|
+
} }
|
|
20623
|
+
function QueryDetailsComponent_ng_container_0_tr_44_Template(rf, ctx) { if (rf & 1) {
|
|
20624
|
+
i0.ɵɵelementStart(0, "tr", 13)(1, "th", 7);
|
|
20567
20625
|
i0.ɵɵtext(2);
|
|
20568
20626
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
20569
20627
|
i0.ɵɵelementEnd();
|
|
@@ -20572,34 +20630,34 @@ function QueryDetailsComponent_ng_container_0_tr_46_Template(rf, ctx) { if (rf &
|
|
|
20572
20630
|
i0.ɵɵpipe(6, "date");
|
|
20573
20631
|
i0.ɵɵelementEnd()();
|
|
20574
20632
|
} if (rf & 2) {
|
|
20575
|
-
const
|
|
20633
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
20576
20634
|
i0.ɵɵadvance(2);
|
|
20577
20635
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "What is the date of the hearing?"));
|
|
20578
20636
|
i0.ɵɵadvance(3);
|
|
20579
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(6, 4,
|
|
20637
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(6, 4, ctx_r0.query.hearingDate, "dd MMM yyyy"));
|
|
20580
20638
|
} }
|
|
20581
|
-
function
|
|
20582
|
-
i0.ɵɵelement(0, "ccd-query-attachments-read",
|
|
20639
|
+
function QueryDetailsComponent_ng_container_0_tr_45_ccd_query_attachments_read_5_Template(rf, ctx) { if (rf & 1) {
|
|
20640
|
+
i0.ɵɵelement(0, "ccd-query-attachments-read", 15);
|
|
20583
20641
|
} if (rf & 2) {
|
|
20584
|
-
const
|
|
20585
|
-
i0.ɵɵproperty("attachments",
|
|
20642
|
+
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
20643
|
+
i0.ɵɵproperty("attachments", ctx_r0.query.attachments);
|
|
20586
20644
|
} }
|
|
20587
|
-
function
|
|
20645
|
+
function QueryDetailsComponent_ng_container_0_tr_45_Template(rf, ctx) { if (rf & 1) {
|
|
20588
20646
|
i0.ɵɵelementStart(0, "tr", 6)(1, "th", 7);
|
|
20589
20647
|
i0.ɵɵtext(2);
|
|
20590
20648
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
20591
20649
|
i0.ɵɵelementEnd();
|
|
20592
20650
|
i0.ɵɵelementStart(4, "td", 8);
|
|
20593
|
-
i0.ɵɵtemplate(5,
|
|
20651
|
+
i0.ɵɵtemplate(5, QueryDetailsComponent_ng_container_0_tr_45_ccd_query_attachments_read_5_Template, 1, 1, "ccd-query-attachments-read", 14);
|
|
20594
20652
|
i0.ɵɵelementEnd()();
|
|
20595
20653
|
} if (rf & 2) {
|
|
20596
|
-
const
|
|
20654
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
20597
20655
|
i0.ɵɵadvance(2);
|
|
20598
20656
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Attachments"));
|
|
20599
20657
|
i0.ɵɵadvance(3);
|
|
20600
|
-
i0.ɵɵproperty("ngIf",
|
|
20658
|
+
i0.ɵɵproperty("ngIf", ctx_r0.query.attachments);
|
|
20601
20659
|
} }
|
|
20602
|
-
function
|
|
20660
|
+
function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_container_1_tr_15_Template(rf, ctx) { if (rf & 1) {
|
|
20603
20661
|
i0.ɵɵelementStart(0, "tr", 6)(1, "th", 7);
|
|
20604
20662
|
i0.ɵɵtext(2);
|
|
20605
20663
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
@@ -20614,19 +20672,19 @@ function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_
|
|
|
20614
20672
|
i0.ɵɵadvance(3);
|
|
20615
20673
|
i0.ɵɵtextInterpolate(child_r3.name);
|
|
20616
20674
|
} }
|
|
20617
|
-
function
|
|
20618
|
-
i0.ɵɵelement(0, "ccd-query-attachments-read",
|
|
20675
|
+
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) {
|
|
20676
|
+
i0.ɵɵelement(0, "ccd-query-attachments-read", 15);
|
|
20619
20677
|
} if (rf & 2) {
|
|
20620
20678
|
const child_r3 = i0.ɵɵnextContext(3).$implicit;
|
|
20621
20679
|
i0.ɵɵproperty("attachments", child_r3.attachments);
|
|
20622
20680
|
} }
|
|
20623
|
-
function
|
|
20681
|
+
function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_container_1_tr_22_Template(rf, ctx) { if (rf & 1) {
|
|
20624
20682
|
i0.ɵɵelementStart(0, "tr", 6)(1, "th", 7);
|
|
20625
20683
|
i0.ɵɵtext(2);
|
|
20626
20684
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
20627
20685
|
i0.ɵɵelementEnd();
|
|
20628
20686
|
i0.ɵɵelementStart(4, "td", 8);
|
|
20629
|
-
i0.ɵɵtemplate(5,
|
|
20687
|
+
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);
|
|
20630
20688
|
i0.ɵɵelementEnd()();
|
|
20631
20689
|
} if (rf & 2) {
|
|
20632
20690
|
const child_r3 = i0.ɵɵnextContext(2).$implicit;
|
|
@@ -20635,7 +20693,7 @@ function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_
|
|
|
20635
20693
|
i0.ɵɵadvance(3);
|
|
20636
20694
|
i0.ɵɵproperty("ngIf", child_r3.attachments);
|
|
20637
20695
|
} }
|
|
20638
|
-
function
|
|
20696
|
+
function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
20639
20697
|
i0.ɵɵelementContainerStart(0);
|
|
20640
20698
|
i0.ɵɵelementStart(1, "table", 3);
|
|
20641
20699
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
@@ -20651,7 +20709,7 @@ function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_
|
|
|
20651
20709
|
i0.ɵɵtext(13);
|
|
20652
20710
|
i0.ɵɵpipe(14, "date");
|
|
20653
20711
|
i0.ɵɵelementEnd()();
|
|
20654
|
-
i0.ɵɵtemplate(15,
|
|
20712
|
+
i0.ɵɵtemplate(15, QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_container_1_tr_15_Template, 6, 4, "tr", 10);
|
|
20655
20713
|
i0.ɵɵelementStart(16, "tr", 6)(17, "th", 7);
|
|
20656
20714
|
i0.ɵɵtext(18);
|
|
20657
20715
|
i0.ɵɵpipe(19, "rpxTranslate");
|
|
@@ -20659,12 +20717,12 @@ function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_
|
|
|
20659
20717
|
i0.ɵɵelementStart(20, "td", 8);
|
|
20660
20718
|
i0.ɵɵtext(21);
|
|
20661
20719
|
i0.ɵɵelementEnd()();
|
|
20662
|
-
i0.ɵɵtemplate(22,
|
|
20720
|
+
i0.ɵɵtemplate(22, QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_container_1_tr_22_Template, 6, 4, "tr", 10);
|
|
20663
20721
|
i0.ɵɵelementEnd()();
|
|
20664
20722
|
i0.ɵɵelementContainerEnd();
|
|
20665
20723
|
} if (rf & 2) {
|
|
20666
20724
|
const child_r3 = i0.ɵɵnextContext().$implicit;
|
|
20667
|
-
const
|
|
20725
|
+
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
20668
20726
|
i0.ɵɵadvance();
|
|
20669
20727
|
i0.ɵɵattribute("aria-describedby", i0.ɵɵpipeBind1(2, 8, "Response of the query"));
|
|
20670
20728
|
i0.ɵɵadvance(4);
|
|
@@ -20674,7 +20732,7 @@ function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_
|
|
|
20674
20732
|
i0.ɵɵadvance(3);
|
|
20675
20733
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(14, 14, child_r3.createdOn, "dd MMM yyyy"));
|
|
20676
20734
|
i0.ɵɵadvance(2);
|
|
20677
|
-
i0.ɵɵproperty("ngIf",
|
|
20735
|
+
i0.ɵɵproperty("ngIf", ctx_r0.isCaseworker());
|
|
20678
20736
|
i0.ɵɵadvance(3);
|
|
20679
20737
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(19, 17, "Response detail"));
|
|
20680
20738
|
i0.ɵɵadvance(3);
|
|
@@ -20682,19 +20740,19 @@ function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_
|
|
|
20682
20740
|
i0.ɵɵadvance();
|
|
20683
20741
|
i0.ɵɵproperty("ngIf", child_r3.attachments.length > 0);
|
|
20684
20742
|
} }
|
|
20685
|
-
function
|
|
20686
|
-
i0.ɵɵelement(0, "ccd-query-attachments-read",
|
|
20743
|
+
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) {
|
|
20744
|
+
i0.ɵɵelement(0, "ccd-query-attachments-read", 15);
|
|
20687
20745
|
} if (rf & 2) {
|
|
20688
20746
|
const child_r3 = i0.ɵɵnextContext(3).$implicit;
|
|
20689
20747
|
i0.ɵɵproperty("attachments", child_r3.attachments);
|
|
20690
20748
|
} }
|
|
20691
|
-
function
|
|
20749
|
+
function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_template_2_tr_26_Template(rf, ctx) { if (rf & 1) {
|
|
20692
20750
|
i0.ɵɵelementStart(0, "tr", 6)(1, "th", 7);
|
|
20693
20751
|
i0.ɵɵtext(2);
|
|
20694
20752
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
20695
20753
|
i0.ɵɵelementEnd();
|
|
20696
20754
|
i0.ɵɵelementStart(4, "td", 8);
|
|
20697
|
-
i0.ɵɵtemplate(5,
|
|
20755
|
+
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);
|
|
20698
20756
|
i0.ɵɵelementEnd()();
|
|
20699
20757
|
} if (rf & 2) {
|
|
20700
20758
|
const child_r3 = i0.ɵɵnextContext(2).$implicit;
|
|
@@ -20703,7 +20761,7 @@ function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_
|
|
|
20703
20761
|
i0.ɵɵadvance(3);
|
|
20704
20762
|
i0.ɵɵproperty("ngIf", child_r3.attachments);
|
|
20705
20763
|
} }
|
|
20706
|
-
function
|
|
20764
|
+
function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
20707
20765
|
i0.ɵɵelementStart(0, "table", 3);
|
|
20708
20766
|
i0.ɵɵpipe(1, "rpxTranslate");
|
|
20709
20767
|
i0.ɵɵelementStart(2, "caption", 4)(3, "div");
|
|
@@ -20732,7 +20790,7 @@ function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_
|
|
|
20732
20790
|
i0.ɵɵelementStart(24, "td", 8);
|
|
20733
20791
|
i0.ɵɵtext(25);
|
|
20734
20792
|
i0.ɵɵelementEnd()();
|
|
20735
|
-
i0.ɵɵtemplate(26,
|
|
20793
|
+
i0.ɵɵtemplate(26, QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_template_2_tr_26_Template, 6, 4, "tr", 10);
|
|
20736
20794
|
i0.ɵɵelementEnd()();
|
|
20737
20795
|
} if (rf & 2) {
|
|
20738
20796
|
const child_r3 = i0.ɵɵnextContext().$implicit;
|
|
@@ -20754,9 +20812,9 @@ function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_
|
|
|
20754
20812
|
i0.ɵɵadvance();
|
|
20755
20813
|
i0.ɵɵproperty("ngIf", child_r3.attachments.length > 0);
|
|
20756
20814
|
} }
|
|
20757
|
-
function
|
|
20815
|
+
function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
20758
20816
|
i0.ɵɵelementContainerStart(0);
|
|
20759
|
-
i0.ɵɵtemplate(1,
|
|
20817
|
+
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);
|
|
20760
20818
|
i0.ɵɵelementContainerEnd();
|
|
20761
20819
|
} if (rf & 2) {
|
|
20762
20820
|
const i_r4 = ctx.index;
|
|
@@ -20764,117 +20822,125 @@ function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_Tem
|
|
|
20764
20822
|
i0.ɵɵadvance();
|
|
20765
20823
|
i0.ɵɵproperty("ngIf", i_r4 % 2 === 0)("ngIfElse", followUpMessage_r5);
|
|
20766
20824
|
} }
|
|
20767
|
-
function
|
|
20825
|
+
function QueryDetailsComponent_ng_container_0_ng_container_46_Template(rf, ctx) { if (rf & 1) {
|
|
20768
20826
|
i0.ɵɵelementContainerStart(0);
|
|
20769
|
-
i0.ɵɵtemplate(1,
|
|
20827
|
+
i0.ɵɵtemplate(1, QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_Template, 4, 2, "ng-container", 16);
|
|
20770
20828
|
i0.ɵɵelementContainerEnd();
|
|
20771
20829
|
} if (rf & 2) {
|
|
20772
|
-
const
|
|
20830
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
20773
20831
|
i0.ɵɵadvance();
|
|
20774
|
-
i0.ɵɵproperty("ngForOf",
|
|
20832
|
+
i0.ɵɵproperty("ngForOf", ctx_r0.query.children);
|
|
20775
20833
|
} }
|
|
20776
20834
|
function QueryDetailsComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
20777
|
-
const _r1 = i0.ɵɵgetCurrentView();
|
|
20778
20835
|
i0.ɵɵelementContainerStart(0);
|
|
20779
|
-
i0.ɵɵ
|
|
20780
|
-
i0.ɵɵ
|
|
20781
|
-
i0.ɵɵ
|
|
20782
|
-
i0.ɵɵ
|
|
20783
|
-
i0.ɵɵpipe(
|
|
20784
|
-
i0.ɵɵ
|
|
20785
|
-
i0.ɵɵ
|
|
20786
|
-
i0.ɵɵpipe(
|
|
20787
|
-
i0.ɵɵelementStart(9, "caption", 4)(10, "div");
|
|
20788
|
-
i0.ɵɵtext(11);
|
|
20789
|
-
i0.ɵɵpipe(12, "rpxTranslate");
|
|
20836
|
+
i0.ɵɵtemplate(1, QueryDetailsComponent_ng_container_0_cut_alert_1_Template, 3, 1, "cut-alert", 2);
|
|
20837
|
+
i0.ɵɵelement(2, "br");
|
|
20838
|
+
i0.ɵɵtemplate(3, QueryDetailsComponent_ng_container_0_p_3_Template, 4, 3, "p", 1);
|
|
20839
|
+
i0.ɵɵelementStart(4, "div")(5, "table", 3);
|
|
20840
|
+
i0.ɵɵpipe(6, "rpxTranslate");
|
|
20841
|
+
i0.ɵɵelementStart(7, "caption", 4)(8, "div");
|
|
20842
|
+
i0.ɵɵtext(9);
|
|
20843
|
+
i0.ɵɵpipe(10, "rpxTranslate");
|
|
20790
20844
|
i0.ɵɵelementEnd()();
|
|
20791
|
-
i0.ɵɵelementStart(
|
|
20792
|
-
i0.ɵɵtext(
|
|
20793
|
-
i0.ɵɵpipe(
|
|
20845
|
+
i0.ɵɵelementStart(11, "tbody", 5)(12, "tr", 6)(13, "th", 7);
|
|
20846
|
+
i0.ɵɵtext(14);
|
|
20847
|
+
i0.ɵɵpipe(15, "rpxTranslate");
|
|
20794
20848
|
i0.ɵɵelementEnd();
|
|
20795
|
-
i0.ɵɵelementStart(
|
|
20796
|
-
i0.ɵɵtext(
|
|
20849
|
+
i0.ɵɵelementStart(16, "td", 8);
|
|
20850
|
+
i0.ɵɵtext(17);
|
|
20797
20851
|
i0.ɵɵelementEnd()();
|
|
20798
|
-
i0.ɵɵelementStart(
|
|
20799
|
-
i0.ɵɵtext(
|
|
20800
|
-
i0.ɵɵpipe(
|
|
20852
|
+
i0.ɵɵelementStart(18, "tr", 6)(19, "th", 7);
|
|
20853
|
+
i0.ɵɵtext(20);
|
|
20854
|
+
i0.ɵɵpipe(21, "rpxTranslate");
|
|
20801
20855
|
i0.ɵɵelementEnd();
|
|
20802
|
-
i0.ɵɵelementStart(
|
|
20803
|
-
i0.ɵɵtext(
|
|
20804
|
-
i0.ɵɵpipe(
|
|
20856
|
+
i0.ɵɵelementStart(22, "td", 8);
|
|
20857
|
+
i0.ɵɵtext(23);
|
|
20858
|
+
i0.ɵɵpipe(24, "date");
|
|
20805
20859
|
i0.ɵɵelementEnd()();
|
|
20806
|
-
i0.ɵɵelementStart(
|
|
20807
|
-
i0.ɵɵtext(
|
|
20808
|
-
i0.ɵɵpipe(
|
|
20860
|
+
i0.ɵɵelementStart(25, "tr", 6)(26, "th", 7);
|
|
20861
|
+
i0.ɵɵtext(27);
|
|
20862
|
+
i0.ɵɵpipe(28, "rpxTranslate");
|
|
20809
20863
|
i0.ɵɵelementEnd();
|
|
20810
|
-
i0.ɵɵelementStart(
|
|
20811
|
-
i0.ɵɵtext(
|
|
20864
|
+
i0.ɵɵelementStart(29, "td", 8);
|
|
20865
|
+
i0.ɵɵtext(30);
|
|
20812
20866
|
i0.ɵɵelementEnd()();
|
|
20813
|
-
i0.ɵɵelementStart(
|
|
20814
|
-
i0.ɵɵtext(
|
|
20815
|
-
i0.ɵɵpipe(
|
|
20867
|
+
i0.ɵɵelementStart(31, "tr", 6)(32, "th", 7);
|
|
20868
|
+
i0.ɵɵtext(33);
|
|
20869
|
+
i0.ɵɵpipe(34, "rpxTranslate");
|
|
20816
20870
|
i0.ɵɵelementEnd();
|
|
20817
|
-
i0.ɵɵelementStart(
|
|
20818
|
-
i0.ɵɵtext(
|
|
20871
|
+
i0.ɵɵelementStart(35, "td", 8);
|
|
20872
|
+
i0.ɵɵtext(36);
|
|
20819
20873
|
i0.ɵɵelementEnd()();
|
|
20820
|
-
i0.ɵɵelementStart(
|
|
20821
|
-
i0.ɵɵtext(
|
|
20822
|
-
i0.ɵɵpipe(
|
|
20874
|
+
i0.ɵɵelementStart(37, "tr", 6)(38, "th", 7);
|
|
20875
|
+
i0.ɵɵtext(39);
|
|
20876
|
+
i0.ɵɵpipe(40, "rpxTranslate");
|
|
20823
20877
|
i0.ɵɵelementEnd();
|
|
20824
|
-
i0.ɵɵelementStart(
|
|
20825
|
-
i0.ɵɵtext(
|
|
20826
|
-
i0.ɵɵpipe(
|
|
20878
|
+
i0.ɵɵelementStart(41, "td", 8);
|
|
20879
|
+
i0.ɵɵtext(42);
|
|
20880
|
+
i0.ɵɵpipe(43, "rpxTranslate");
|
|
20827
20881
|
i0.ɵɵelementEnd()();
|
|
20828
|
-
i0.ɵɵtemplate(
|
|
20882
|
+
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);
|
|
20829
20883
|
i0.ɵɵelementEnd()()();
|
|
20830
|
-
i0.ɵɵtemplate(
|
|
20884
|
+
i0.ɵɵtemplate(46, QueryDetailsComponent_ng_container_0_ng_container_46_Template, 2, 1, "ng-container", 1);
|
|
20831
20885
|
i0.ɵɵelementContainerEnd();
|
|
20832
20886
|
} if (rf & 2) {
|
|
20833
|
-
const
|
|
20834
|
-
i0.ɵɵadvance(
|
|
20835
|
-
i0.ɵɵ
|
|
20836
|
-
i0.ɵɵadvance(
|
|
20837
|
-
i0.ɵɵ
|
|
20887
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
20888
|
+
i0.ɵɵadvance();
|
|
20889
|
+
i0.ɵɵproperty("ngIf", ctx_r0.hasRespondedToQuery());
|
|
20890
|
+
i0.ɵɵadvance(2);
|
|
20891
|
+
i0.ɵɵproperty("ngIf", ctx_r0.showLink);
|
|
20892
|
+
i0.ɵɵadvance(2);
|
|
20893
|
+
i0.ɵɵattribute("aria-describedby", i0.ɵɵpipeBind1(6, 21, "Details of the query"));
|
|
20838
20894
|
i0.ɵɵadvance(4);
|
|
20839
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
20895
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10, 23, "Query details"));
|
|
20840
20896
|
i0.ɵɵadvance(5);
|
|
20841
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
20897
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(15, 25, "Last submitted by"));
|
|
20842
20898
|
i0.ɵɵadvance(3);
|
|
20843
|
-
i0.ɵɵtextInterpolate(
|
|
20899
|
+
i0.ɵɵtextInterpolate(ctx_r0.query.lastSubmittedBy);
|
|
20844
20900
|
i0.ɵɵadvance(3);
|
|
20845
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
20901
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(21, 27, "Submission date"));
|
|
20846
20902
|
i0.ɵɵadvance(3);
|
|
20847
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(
|
|
20903
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(24, 29, ctx_r0.query.createdOn, "dd MMM yyyy"));
|
|
20848
20904
|
i0.ɵɵadvance(4);
|
|
20849
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
20905
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(28, 32, "Query subject"));
|
|
20850
20906
|
i0.ɵɵadvance(3);
|
|
20851
|
-
i0.ɵɵtextInterpolate(
|
|
20907
|
+
i0.ɵɵtextInterpolate(ctx_r0.query.subject);
|
|
20852
20908
|
i0.ɵɵadvance(3);
|
|
20853
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
20909
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(34, 34, "Query body"));
|
|
20854
20910
|
i0.ɵɵadvance(3);
|
|
20855
|
-
i0.ɵɵtextInterpolate(
|
|
20911
|
+
i0.ɵɵtextInterpolate(ctx_r0.query.body);
|
|
20856
20912
|
i0.ɵɵadvance(2);
|
|
20857
|
-
i0.ɵɵclassProp("govuk-table__header--no-border",
|
|
20913
|
+
i0.ɵɵclassProp("govuk-table__header--no-border", ctx_r0.query.isHearingRelated);
|
|
20858
20914
|
i0.ɵɵadvance();
|
|
20859
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
20915
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(40, 36, "Is the query hearing related?"), " ");
|
|
20860
20916
|
i0.ɵɵadvance(2);
|
|
20861
|
-
i0.ɵɵclassProp("govuk-table__cell--no-border",
|
|
20917
|
+
i0.ɵɵclassProp("govuk-table__cell--no-border", ctx_r0.query.isHearingRelated);
|
|
20862
20918
|
i0.ɵɵadvance();
|
|
20863
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(
|
|
20919
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(43, 38, "Is the query hearing related?", null, ctx_r0.query.isHearingRelated), "");
|
|
20864
20920
|
i0.ɵɵadvance(2);
|
|
20865
|
-
i0.ɵɵproperty("ngIf",
|
|
20921
|
+
i0.ɵɵproperty("ngIf", ctx_r0.query.isHearingRelated === "Yes");
|
|
20866
20922
|
i0.ɵɵadvance();
|
|
20867
|
-
i0.ɵɵproperty("ngIf",
|
|
20923
|
+
i0.ɵɵproperty("ngIf", ctx_r0.query.attachments.length > 0);
|
|
20868
20924
|
i0.ɵɵadvance();
|
|
20869
|
-
i0.ɵɵproperty("ngIf", (
|
|
20925
|
+
i0.ɵɵproperty("ngIf", (ctx_r0.query.children == null ? null : ctx_r0.query.children.length) > 0);
|
|
20870
20926
|
} }
|
|
20871
20927
|
class QueryDetailsComponent {
|
|
20872
20928
|
sessionStorageService;
|
|
20929
|
+
route;
|
|
20930
|
+
router;
|
|
20873
20931
|
query;
|
|
20874
20932
|
backClicked = new EventEmitter();
|
|
20875
20933
|
caseId;
|
|
20876
|
-
|
|
20934
|
+
hasResponded = new EventEmitter();
|
|
20935
|
+
totalNumberOfQueryChildren;
|
|
20936
|
+
showLink = true;
|
|
20937
|
+
static QUERY_ITEM_RESPOND = '3';
|
|
20938
|
+
queryItemId;
|
|
20939
|
+
message;
|
|
20940
|
+
constructor(sessionStorageService, route, router) {
|
|
20877
20941
|
this.sessionStorageService = sessionStorageService;
|
|
20942
|
+
this.route = route;
|
|
20943
|
+
this.router = router;
|
|
20878
20944
|
}
|
|
20879
20945
|
onBack() {
|
|
20880
20946
|
this.backClicked.emit(true);
|
|
@@ -20885,24 +20951,45 @@ class QueryDetailsComponent {
|
|
|
20885
20951
|
&& !(userDetails.roles.includes('pui-case-manager')
|
|
20886
20952
|
|| userDetails.roles.some((role) => role.toLowerCase().includes('judge')));
|
|
20887
20953
|
}
|
|
20888
|
-
|
|
20889
|
-
|
|
20890
|
-
|
|
20954
|
+
ngOnChanges() {
|
|
20955
|
+
this.toggleLinkVisibility();
|
|
20956
|
+
this.hasRespondedToQuery();
|
|
20957
|
+
}
|
|
20958
|
+
toggleLinkVisibility() {
|
|
20959
|
+
this.queryItemId = this.route.snapshot.params.qid;
|
|
20960
|
+
this.showLink = this.queryItemId !== QueryDetailsComponent.QUERY_ITEM_RESPOND;
|
|
20961
|
+
}
|
|
20962
|
+
hasRespondedToQuery() {
|
|
20963
|
+
if (this.totalNumberOfQueryChildren >= 0 && this.isCaseworker() && this.totalNumberOfQueryChildren % 2 !== 0) {
|
|
20964
|
+
this.message = Constants.TASK_COMPLETION_ERROR;
|
|
20965
|
+
this.hasResponded.emit(true);
|
|
20966
|
+
return true;
|
|
20967
|
+
}
|
|
20968
|
+
this.hasResponded.emit(false);
|
|
20969
|
+
return false;
|
|
20970
|
+
}
|
|
20971
|
+
static ɵfac = function QueryDetailsComponent_Factory(t) { return new (t || QueryDetailsComponent)(i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(i1$1.Router)); };
|
|
20972
|
+
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) {
|
|
20973
|
+
i0.ɵɵtemplate(0, QueryDetailsComponent_ng_container_0_Template, 47, 42, "ng-container", 1);
|
|
20891
20974
|
} if (rf & 2) {
|
|
20892
20975
|
i0.ɵɵproperty("ngIf", ctx.query);
|
|
20893
20976
|
} }, styles: [".query-details-table[_ngcontent-%COMP%] .govuk-table__header[_ngcontent-%COMP%]{width:330px}"] });
|
|
20894
20977
|
}
|
|
20895
20978
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryDetailsComponent, [{
|
|
20896
20979
|
type: Component,
|
|
20897
|
-
args: [{ selector: 'ccd-query-details', template: "<ng-container *ngIf=\"query\">\n <br/>\n <p>\n <a class=\"govuk-link\" href=\"javascript:void(0)\" (click)=\"onBack()\">{{ 'Back to query list' | rpxTranslate }}</a>\n </p>\n <div>\n <table class=\"govuk-table query-details-table\" [attr.aria-describedby]=\"'Details of the query' | rpxTranslate\">\n <caption class=\"govuk-table__caption govuk-table__caption--l\">\n <div>{{ 'Query details' | rpxTranslate }}</div>\n </caption>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last submitted by' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.lastSubmittedBy }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Submission date' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.createdOn | date: 'dd MMM yyyy' }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Query subject' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.subject }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Query body' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.body }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\" [class.govuk-table__header--no-border]=\"query.isHearingRelated\">\n {{ 'Is the query hearing related?' | rpxTranslate }}\n </th>\n <td class=\"govuk-table__cell\" [class.govuk-table__cell--no-border]=\"query.isHearingRelated\">\n {{ 'Is the query hearing related?' | rpxTranslate: null : (query.isHearingRelated) }}</td>\n </tr>\n <tr class=\"govuk-table__row govuk-table__row--isHearingRelated\" *ngIf=\"query.isHearingRelated === 'Yes'\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'What is the date of the hearing?' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.hearingDate | date: 'dd MMM yyyy' }}</td>\n </tr>\n <tr class=\"govuk-table__row\" *ngIf=\"query.attachments.length > 0\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Attachments' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">\n <ccd-query-attachments-read\n *ngIf=\"query.attachments\"\n [attachments]=\"query.attachments\"\n >\n </ccd-query-attachments-read>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <ng-container *ngIf=\"query.children?.length > 0\">\n <ng-container *ngFor=\"let child of query.children; let i = index;\">\n <ng-container *ngIf=\"i % 2 === 0; else followUpMessage\">\n <table class=\"govuk-table query-details-table\" [attr.aria-describedby]=\"'Response of the query' | rpxTranslate\">\n <caption class=\"govuk-table__caption govuk-table__caption--l\">\n <div>{{ 'Response' | rpxTranslate }}</div>\n </caption>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last response date' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.createdOn | date: 'dd MMM yyyy' }}</td>\n </tr>\n\n <tr *ngIf=\"isCaseworker()\" class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Caseworker name' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.name }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Response detail' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.body }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\" *ngIf=\"child.attachments.length > 0\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Attachments' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">\n <ccd-query-attachments-read\n *ngIf=\"child.attachments\"\n [attachments]=\"child.attachments\"\n >\n </ccd-query-attachments-read>\n </td>\n </tr>\n </tbody>\n </table>\n </ng-container>\n\n <ng-template #followUpMessage>\n <!-- <div class=\"query_details_caption\">{{ 'Follow-up' | rpxTranslate }}</div> -->\n <table class=\"govuk-table query-details-table\"\n [attr.aria-describedby]=\"'Follow-up of the response' | rpxTranslate\">\n <caption class=\"govuk-table__caption govuk-table__caption--l\">\n <div>{{ 'Follow up query' | rpxTranslate }}</div>\n </caption>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last submission date' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.createdOn | date: 'dd MMM yyyy' }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last submitted by' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.name }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Query detail' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.body }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\" *ngIf=\"child.attachments.length > 0\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Attachments' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">\n <ccd-query-attachments-read\n *ngIf=\"child.attachments\"\n [attachments]=\"child.attachments\"\n >\n </ccd-query-attachments-read>\n </td>\n </tr>\n </tbody>\n </table>\n </ng-template>\n </ng-container>\n </ng-container>\n</ng-container>\n", styles: [".query-details-table .govuk-table__header{width:330px}\n"] }]
|
|
20898
|
-
}], () => [{ type: SessionStorageService }], { query: [{
|
|
20980
|
+
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"] }]
|
|
20981
|
+
}], () => [{ type: SessionStorageService }, { type: i1$1.ActivatedRoute }, { type: i1$1.Router }], { query: [{
|
|
20899
20982
|
type: Input
|
|
20900
20983
|
}], backClicked: [{
|
|
20901
20984
|
type: Output
|
|
20902
20985
|
}], caseId: [{
|
|
20903
20986
|
type: Input
|
|
20987
|
+
}], hasResponded: [{
|
|
20988
|
+
type: Output
|
|
20989
|
+
}], totalNumberOfQueryChildren: [{
|
|
20990
|
+
type: Input
|
|
20904
20991
|
}] }); })();
|
|
20905
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryDetailsComponent, { className: "QueryDetailsComponent", filePath: "lib/shared/components/palette/query-management/components/query-details/query-details.component.ts", lineNumber:
|
|
20992
|
+
(() => { (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 }); })();
|
|
20906
20993
|
|
|
20907
20994
|
class QueryEventCompletionComponent {
|
|
20908
20995
|
eventCompletionParams;
|
|
@@ -21494,8 +21581,8 @@ class QueryWriteRaiseQueryComponent {
|
|
|
21494
21581
|
}] }); })();
|
|
21495
21582
|
(() => { (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 }); })();
|
|
21496
21583
|
|
|
21497
|
-
function
|
|
21498
|
-
i0.ɵɵelementStart(0, "p",
|
|
21584
|
+
function QueryWriteRespondToQueryComponent_div_12_div_1_p_10_Template(rf, ctx) { if (rf & 1) {
|
|
21585
|
+
i0.ɵɵelementStart(0, "p", 16)(1, "span", 17);
|
|
21499
21586
|
i0.ɵɵtext(2);
|
|
21500
21587
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
21501
21588
|
i0.ɵɵelementEnd();
|
|
@@ -21503,66 +21590,123 @@ function QueryWriteRespondToQueryComponent_div_12_p_11_Template(rf, ctx) { if (r
|
|
|
21503
21590
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
21504
21591
|
i0.ɵɵelementEnd();
|
|
21505
21592
|
} if (rf & 2) {
|
|
21506
|
-
const ctx_r0 = i0.ɵɵnextContext(
|
|
21593
|
+
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
21507
21594
|
i0.ɵɵadvance(2);
|
|
21508
21595
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 2, "Error:"), " ");
|
|
21509
21596
|
i0.ɵɵadvance(2);
|
|
21510
21597
|
i0.ɵɵtextInterpolate1("", ctx_r0.queryCreateContext === ctx_r0.queryCreateContextEnum.RESPOND ? ctx_r0.raiseQueryErrorMessages.RESPOND_QUERY_BODY : i0.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessages.QUERY_BODY), " ");
|
|
21511
21598
|
} }
|
|
21512
|
-
function
|
|
21513
|
-
i0.ɵɵelementStart(0, "div"
|
|
21514
|
-
i0.ɵɵtext(
|
|
21515
|
-
i0.ɵɵpipe(
|
|
21599
|
+
function QueryWriteRespondToQueryComponent_div_12_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
21600
|
+
i0.ɵɵelementStart(0, "div")(1, "h1", 9);
|
|
21601
|
+
i0.ɵɵtext(2);
|
|
21602
|
+
i0.ɵɵpipe(3, "rpxTranslate");
|
|
21516
21603
|
i0.ɵɵelementEnd();
|
|
21517
|
-
i0.ɵɵelementStart(
|
|
21518
|
-
i0.ɵɵtext(
|
|
21519
|
-
i0.ɵɵpipe(
|
|
21604
|
+
i0.ɵɵelementStart(4, "div", 10)(5, "div", 11)(6, "div", 12)(7, "label", 13);
|
|
21605
|
+
i0.ɵɵtext(8);
|
|
21606
|
+
i0.ɵɵpipe(9, "rpxTranslate");
|
|
21520
21607
|
i0.ɵɵelementEnd()();
|
|
21521
|
-
i0.ɵɵtemplate(
|
|
21522
|
-
i0.ɵɵelementStart(
|
|
21523
|
-
i0.ɵɵtext(
|
|
21524
|
-
i0.ɵɵelementEnd()()()()
|
|
21608
|
+
i0.ɵɵtemplate(10, QueryWriteRespondToQueryComponent_div_12_div_1_p_10_Template, 6, 6, "p", 14);
|
|
21609
|
+
i0.ɵɵelementStart(11, "textarea", 15);
|
|
21610
|
+
i0.ɵɵtext(12, " ");
|
|
21611
|
+
i0.ɵɵelementEnd()()()();
|
|
21525
21612
|
} if (rf & 2) {
|
|
21526
|
-
let
|
|
21527
|
-
let tmp_5_0;
|
|
21613
|
+
let tmp_4_0;
|
|
21528
21614
|
let tmp_6_0;
|
|
21529
|
-
|
|
21530
|
-
i0.ɵɵ
|
|
21531
|
-
i0.ɵɵ
|
|
21615
|
+
let tmp_7_0;
|
|
21616
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
21617
|
+
i0.ɵɵadvance(2);
|
|
21618
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r0.queryCreateContext === ctx_r0.queryCreateContextEnum.RESPOND ? "Respond to a query" : i0.ɵɵpipeBind1(3, 9, "Ask a follow-up question"), " ");
|
|
21532
21619
|
i0.ɵɵadvance(2);
|
|
21533
21620
|
i0.ɵɵproperty("formGroup", ctx_r0.formGroup);
|
|
21534
21621
|
i0.ɵɵadvance();
|
|
21535
|
-
i0.ɵɵclassProp("govuk-form-group--error", ctx_r0.submitted && ((
|
|
21622
|
+
i0.ɵɵclassProp("govuk-form-group--error", ctx_r0.submitted && ((tmp_4_0 = ctx_r0.formGroup.get("body")) == null ? null : tmp_4_0.hasError("required")));
|
|
21536
21623
|
i0.ɵɵadvance(3);
|
|
21537
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r0.queryCreateContext === ctx_r0.queryCreateContextEnum.RESPOND ? "Response detail" : i0.ɵɵpipeBind1(
|
|
21624
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r0.queryCreateContext === ctx_r0.queryCreateContextEnum.RESPOND ? "Response detail" : i0.ɵɵpipeBind1(9, 11, "Query Body"), " ");
|
|
21538
21625
|
i0.ɵɵadvance(2);
|
|
21539
|
-
i0.ɵɵproperty("ngIf", ctx_r0.submitted && ((
|
|
21626
|
+
i0.ɵɵproperty("ngIf", ctx_r0.submitted && ((tmp_6_0 = ctx_r0.formGroup.get("body")) == null ? null : tmp_6_0.hasError("required")));
|
|
21540
21627
|
i0.ɵɵadvance();
|
|
21541
|
-
i0.ɵɵclassProp("govuk-textarea--error", ctx_r0.submitted && ((
|
|
21628
|
+
i0.ɵɵclassProp("govuk-textarea--error", ctx_r0.submitted && ((tmp_7_0 = ctx_r0.formGroup.get("body")) == null ? null : tmp_7_0.hasError("required")));
|
|
21542
21629
|
i0.ɵɵproperty("formControlName", "body");
|
|
21543
21630
|
} }
|
|
21631
|
+
function QueryWriteRespondToQueryComponent_div_12_Template(rf, ctx) { if (rf & 1) {
|
|
21632
|
+
i0.ɵɵelementStart(0, "div", 7);
|
|
21633
|
+
i0.ɵɵtemplate(1, QueryWriteRespondToQueryComponent_div_12_div_1_Template, 13, 13, "div", 8);
|
|
21634
|
+
i0.ɵɵelementEnd();
|
|
21635
|
+
} if (rf & 2) {
|
|
21636
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
21637
|
+
i0.ɵɵadvance();
|
|
21638
|
+
i0.ɵɵproperty("ngIf", !ctx_r0.hasRespondedToQuery);
|
|
21639
|
+
} }
|
|
21544
21640
|
class QueryWriteRespondToQueryComponent {
|
|
21545
21641
|
caseNotifier;
|
|
21642
|
+
route;
|
|
21546
21643
|
queryItem;
|
|
21547
21644
|
formGroup;
|
|
21548
21645
|
queryCreateContext;
|
|
21549
21646
|
submitted = false;
|
|
21647
|
+
caseQueriesCollections;
|
|
21648
|
+
hasRespondedToQueryTask = new EventEmitter();
|
|
21550
21649
|
showForm;
|
|
21551
21650
|
queryCreateContextEnum = QueryCreateContext;
|
|
21552
21651
|
raiseQueryErrorMessages = RaiseQueryErrorMessage;
|
|
21553
21652
|
caseId;
|
|
21653
|
+
queryItemId;
|
|
21554
21654
|
caseDetails;
|
|
21555
|
-
|
|
21655
|
+
totalNumberOfQueryChildren;
|
|
21656
|
+
queryItemDisplay;
|
|
21657
|
+
hasRespondedToQuery = false;
|
|
21658
|
+
static QUERY_ITEM_RESPOND = '3';
|
|
21659
|
+
static QUERY_ITEM_FOLLOWUP = '4';
|
|
21660
|
+
constructor(caseNotifier, route) {
|
|
21556
21661
|
this.caseNotifier = caseNotifier;
|
|
21662
|
+
this.route = route;
|
|
21557
21663
|
}
|
|
21558
21664
|
ngOnInit() {
|
|
21559
|
-
this.
|
|
21560
|
-
|
|
21561
|
-
|
|
21665
|
+
this.queryItemId = this.route.snapshot.params.qid;
|
|
21666
|
+
this.caseNotifier.caseView.pipe(take(1)).subscribe({
|
|
21667
|
+
next: (caseDetails) => {
|
|
21668
|
+
this.caseId = caseDetails?.case_id ?? '';
|
|
21669
|
+
this.caseDetails = caseDetails;
|
|
21670
|
+
},
|
|
21671
|
+
error: (err) => {
|
|
21672
|
+
console.error('Error retrieving case details:', err);
|
|
21673
|
+
}
|
|
21562
21674
|
});
|
|
21563
21675
|
}
|
|
21564
|
-
|
|
21565
|
-
|
|
21676
|
+
ngOnChanges() {
|
|
21677
|
+
if (this.queryItemId === QueryWriteRespondToQueryComponent.QUERY_ITEM_RESPOND
|
|
21678
|
+
&& this.caseQueriesCollections?.length > 0) {
|
|
21679
|
+
if (!this.caseQueriesCollections[0]) {
|
|
21680
|
+
console.error('caseQueriesCollections[0] is undefined!', this.caseQueriesCollections);
|
|
21681
|
+
return;
|
|
21682
|
+
}
|
|
21683
|
+
const numberOfQueryChildren = new QueryListData(this.caseQueriesCollections[0]);
|
|
21684
|
+
this.totalNumberOfQueryChildren = numberOfQueryChildren?.queries?.[0]?.children?.length || 0;
|
|
21685
|
+
const messageId = this.route.snapshot.params.dataid;
|
|
21686
|
+
if (!messageId) {
|
|
21687
|
+
console.warn('No messageId found in route params:', this.route.snapshot.params);
|
|
21688
|
+
return;
|
|
21689
|
+
}
|
|
21690
|
+
const filteredMessages = this.caseQueriesCollections
|
|
21691
|
+
.map((caseData) => caseData?.caseMessages || []) // Ensure caseMessages is always an array
|
|
21692
|
+
.flat() // Flatten into a single array of messages
|
|
21693
|
+
.filter((message) => message?.value?.id === messageId); // Safe access
|
|
21694
|
+
if (filteredMessages.length > 0) {
|
|
21695
|
+
const matchingMessage = filteredMessages[0]?.value;
|
|
21696
|
+
if (matchingMessage) {
|
|
21697
|
+
this.queryItemDisplay = new QueryListItem();
|
|
21698
|
+
Object.assign(this.queryItemDisplay, matchingMessage);
|
|
21699
|
+
this.queryItem = this.queryItemDisplay;
|
|
21700
|
+
}
|
|
21701
|
+
}
|
|
21702
|
+
}
|
|
21703
|
+
}
|
|
21704
|
+
hasResponded(value) {
|
|
21705
|
+
this.hasRespondedToQuery = value;
|
|
21706
|
+
this.hasRespondedToQueryTask.emit(value);
|
|
21707
|
+
}
|
|
21708
|
+
static ɵfac = function QueryWriteRespondToQueryComponent_Factory(t) { return new (t || QueryWriteRespondToQueryComponent)(i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute)); };
|
|
21709
|
+
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) {
|
|
21566
21710
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 0)(2, "div", 1);
|
|
21567
21711
|
i0.ɵɵtext(3);
|
|
21568
21712
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
@@ -21574,27 +21718,27 @@ class QueryWriteRespondToQueryComponent {
|
|
|
21574
21718
|
i0.ɵɵelementStart(8, "div", 3);
|
|
21575
21719
|
i0.ɵɵelement(9, "ccd-query-case-details-header", 4);
|
|
21576
21720
|
i0.ɵɵelementEnd();
|
|
21577
|
-
i0.ɵɵelementStart(10, "div");
|
|
21578
|
-
i0.ɵɵ
|
|
21579
|
-
i0.ɵɵelementEnd()();
|
|
21580
|
-
i0.ɵɵtemplate(12, QueryWriteRespondToQueryComponent_div_12_Template,
|
|
21721
|
+
i0.ɵɵelementStart(10, "div")(11, "ccd-query-details", 5);
|
|
21722
|
+
i0.ɵɵlistener("hasResponded", function QueryWriteRespondToQueryComponent_Template_ccd_query_details_hasResponded_11_listener($event) { return ctx.hasResponded($event); });
|
|
21723
|
+
i0.ɵɵelementEnd()()();
|
|
21724
|
+
i0.ɵɵtemplate(12, QueryWriteRespondToQueryComponent_div_12_Template, 2, 1, "div", 6);
|
|
21581
21725
|
} if (rf & 2) {
|
|
21582
21726
|
i0.ɵɵadvance(3);
|
|
21583
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4,
|
|
21727
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 6, "Respond to a query"));
|
|
21584
21728
|
i0.ɵɵadvance(3);
|
|
21585
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7,
|
|
21729
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 8, "Query details"));
|
|
21586
21730
|
i0.ɵɵadvance(3);
|
|
21587
21731
|
i0.ɵɵproperty("caseDetails", ctx.caseDetails);
|
|
21588
21732
|
i0.ɵɵadvance(2);
|
|
21589
|
-
i0.ɵɵproperty("query", ctx.queryItem);
|
|
21733
|
+
i0.ɵɵproperty("query", ctx.queryItem)("totalNumberOfQueryChildren", ctx.totalNumberOfQueryChildren);
|
|
21590
21734
|
i0.ɵɵadvance();
|
|
21591
21735
|
i0.ɵɵproperty("ngIf", ctx.showForm);
|
|
21592
21736
|
} }, styles: [".query-respond[_ngcontent-%COMP%]{width:100%;max-width:720px}"] });
|
|
21593
21737
|
}
|
|
21594
21738
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryWriteRespondToQueryComponent, [{
|
|
21595
21739
|
type: Component,
|
|
21596
|
-
args: [{ selector: 'ccd-query-write-respond-to-query', template: "<div class=\"govuk-!-margin-bottom-6\">\n <div class=\"govuk-!-margin-bottom-6\">\n <div class=\"govuk-caption-l\">{{ 'Respond to a query' | rpxTranslate }}</div>\n <h1 class=\"govuk-heading-l govuk-!-margin-bottom-0\">{{ 'Query details' | rpxTranslate }}</h1>\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <ccd-query-case-details-header [caseDetails]=\"caseDetails\"></ccd-query-case-details-header>\n </div>\n\n <div>\n <ccd-query-details [query]=\"queryItem\"></ccd-query-details>\n </div>\n</div>\n
|
|
21597
|
-
}], () => [{ type: CaseNotifier }], { queryItem: [{
|
|
21740
|
+
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"] }]
|
|
21741
|
+
}], () => [{ type: CaseNotifier }, { type: i1$1.ActivatedRoute }], { queryItem: [{
|
|
21598
21742
|
type: Input
|
|
21599
21743
|
}], formGroup: [{
|
|
21600
21744
|
type: Input
|
|
@@ -21602,6 +21746,10 @@ class QueryWriteRespondToQueryComponent {
|
|
|
21602
21746
|
type: Input
|
|
21603
21747
|
}], submitted: [{
|
|
21604
21748
|
type: Input
|
|
21749
|
+
}], caseQueriesCollections: [{
|
|
21750
|
+
type: Input
|
|
21751
|
+
}], hasRespondedToQueryTask: [{
|
|
21752
|
+
type: Output
|
|
21605
21753
|
}], showForm: [{
|
|
21606
21754
|
type: Input
|
|
21607
21755
|
}] }); })();
|
|
@@ -21734,7 +21882,6 @@ class QueryConfirmationComponent {
|
|
|
21734
21882
|
(() => { (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 }); })();
|
|
21735
21883
|
|
|
21736
21884
|
const _c0$B = (a0, a1) => ["/query-management", "query", a0, "4", a1];
|
|
21737
|
-
const _c1$e = (a0, a1) => ["/query-management", "query", a0, "3", a1];
|
|
21738
21885
|
function ReadQueryManagementFieldComponent_ng_container_0_ng_container_1_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
21739
21886
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
21740
21887
|
i0.ɵɵelementStart(0, "div", 5)(1, "ccd-query-list", 6);
|
|
@@ -21802,33 +21949,17 @@ function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_Template
|
|
|
21802
21949
|
i0.ɵɵadvance();
|
|
21803
21950
|
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);
|
|
21804
21951
|
} }
|
|
21805
|
-
function ReadQueryManagementFieldComponent_ng_template_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
21806
|
-
i0.ɵɵelementContainerStart(0);
|
|
21807
|
-
i0.ɵɵelementStart(1, "button", 9);
|
|
21808
|
-
i0.ɵɵtext(2);
|
|
21809
|
-
i0.ɵɵpipe(3, "rpxTranslate");
|
|
21810
|
-
i0.ɵɵelementEnd();
|
|
21811
|
-
i0.ɵɵelementContainerEnd();
|
|
21812
|
-
} if (rf & 2) {
|
|
21813
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
21814
|
-
i0.ɵɵadvance();
|
|
21815
|
-
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction2(4, _c1$e, ctx_r1.caseId, ctx_r1.query.id));
|
|
21816
|
-
i0.ɵɵadvance();
|
|
21817
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2, "Respond to a query"), " ");
|
|
21818
|
-
} }
|
|
21819
21952
|
function ReadQueryManagementFieldComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
21820
21953
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
21821
21954
|
i0.ɵɵelementStart(0, "ccd-query-details", 7);
|
|
21822
21955
|
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); });
|
|
21823
21956
|
i0.ɵɵelementEnd();
|
|
21824
|
-
i0.ɵɵtemplate(1, ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_Template, 4, 2, "ng-container", 8)
|
|
21957
|
+
i0.ɵɵtemplate(1, ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_Template, 4, 2, "ng-container", 8);
|
|
21825
21958
|
} if (rf & 2) {
|
|
21826
21959
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
21827
21960
|
i0.ɵɵproperty("query", ctx_r1.query)("caseId", ctx_r1.caseId);
|
|
21828
21961
|
i0.ɵɵadvance();
|
|
21829
21962
|
i0.ɵɵproperty("ngIf", !ctx_r1.isCaseworker());
|
|
21830
|
-
i0.ɵɵadvance();
|
|
21831
|
-
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);
|
|
21832
21963
|
} }
|
|
21833
21964
|
class ReadQueryManagementFieldComponent extends AbstractFieldReadComponent {
|
|
21834
21965
|
route;
|
|
@@ -21887,7 +22018,7 @@ class ReadQueryManagementFieldComponent extends AbstractFieldReadComponent {
|
|
|
21887
22018
|
}
|
|
21888
22019
|
static ɵfac = function ReadQueryManagementFieldComponent_Factory(t) { return new (t || ReadQueryManagementFieldComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(CaseNotifier)); };
|
|
21889
22020
|
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) {
|
|
21890
|
-
i0.ɵɵtemplate(0, ReadQueryManagementFieldComponent_ng_container_0_Template, 2, 1, "ng-container", 2)(1, ReadQueryManagementFieldComponent_ng_template_1_Template,
|
|
22021
|
+
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);
|
|
21891
22022
|
} if (rf & 2) {
|
|
21892
22023
|
const singleQueryDetails_r6 = i0.ɵɵreference(2);
|
|
21893
22024
|
i0.ɵɵproperty("ngIf", ctx.showQueryList)("ngIfElse", singleQueryDetails_r6);
|
|
@@ -21895,7 +22026,7 @@ class ReadQueryManagementFieldComponent extends AbstractFieldReadComponent {
|
|
|
21895
22026
|
}
|
|
21896
22027
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadQueryManagementFieldComponent, [{
|
|
21897
22028
|
type: Component,
|
|
21898
|
-
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
|
|
22029
|
+
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" }]
|
|
21899
22030
|
}], () => [{ type: i1$1.ActivatedRoute }, { type: SessionStorageService }, { type: CaseNotifier }], null); })();
|
|
21900
22031
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadQueryManagementFieldComponent, { className: "ReadQueryManagementFieldComponent", filePath: "lib/shared/components/palette/query-management/read-query-management-field.component.ts", lineNumber: 14 }); })();
|
|
21901
22032
|
|
|
@@ -29258,7 +29389,7 @@ i0.ɵɵsetComponentScope(
|
|
|
29258
29389
|
// Components for Query Management
|
|
29259
29390
|
ReadQueryManagementFieldComponent, function () { return [i5.NgForOf, i5.NgIf, i1$1.RouterLink, QueryDetailsComponent,
|
|
29260
29391
|
QueryListComponent]; }, function () { return [i1.RpxTranslatePipe]; });
|
|
29261
|
-
i0.ɵɵsetComponentScope(QueryDetailsComponent, function () { return [i5.NgForOf, i5.NgIf, QueryAttachmentsReadComponent]; }, function () { return [i5.DatePipe, i1.RpxTranslatePipe]; });
|
|
29392
|
+
i0.ɵɵsetComponentScope(QueryDetailsComponent, function () { return [i5.NgForOf, i5.NgIf, AlertComponent, QueryAttachmentsReadComponent]; }, function () { return [i5.DatePipe, i1.RpxTranslatePipe]; });
|
|
29262
29393
|
i0.ɵɵsetComponentScope(QueryWriteRespondToQueryComponent, function () { return [i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, QueryDetailsComponent,
|
|
29263
29394
|
QueryCaseDetailsHeaderComponent]; }, function () { return [i1.RpxTranslatePipe]; });
|
|
29264
29395
|
i0.ɵɵsetComponentScope(QueryWriteRaiseQueryComponent, function () { return [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.RadioControlValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, QueryCaseDetailsHeaderComponent,
|