@hmcts/ccd-case-ui-toolkit 7.1.38-qualifying-questions → 7.1.40-qm-additional-text
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/pagination/pagination.component.mjs +3 -3
- package/esm2022/lib/shared/components/palette/document/write-document-field.component.mjs +2 -2
- package/esm2022/lib/shared/components/palette/history/event-log/event-log.component.mjs +9 -9
- package/esm2022/lib/shared/components/palette/palette.module.mjs +3 -2
- package/esm2022/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-detail/qualifying-question-detail.component.mjs +20 -12
- package/esm2022/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-options/qualifying-question-options.component.mjs +4 -4
- package/esm2022/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.mjs +50 -29
- package/esm2022/lib/shared/components/palette/query-management/components/query-details/query-details.component.mjs +158 -104
- package/esm2022/lib/shared/components/palette/query-management/components/query-write/query-write-add-documents/query-write-add-documents.component.mjs +3 -3
- 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 +375 -252
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-detail/qualifying-question-detail.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);
|
|
@@ -14344,7 +14344,7 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
14344
14344
|
fileChangeEvent(fileInput, allowedRegex) {
|
|
14345
14345
|
let fileTypeRegex;
|
|
14346
14346
|
if (allowedRegex) {
|
|
14347
|
-
fileTypeRegex = new RegExp(`(${allowedRegex.replace(/,/g, '|')})
|
|
14347
|
+
fileTypeRegex = new RegExp(`(${allowedRegex.replace(/,/g, '|')})`, 'i');
|
|
14348
14348
|
}
|
|
14349
14349
|
if (fileInput.target?.files[0] && !fileInput.target?.files[0]?.name?.match(fileTypeRegex)) {
|
|
14350
14350
|
this.invalidFileFormat();
|
|
@@ -14611,7 +14611,7 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
14611
14611
|
i0.ɵɵpipe(17, "rpxTranslate");
|
|
14612
14612
|
i0.ɵɵelementEnd()();
|
|
14613
14613
|
} if (rf & 2) {
|
|
14614
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(18, _c1$
|
|
14614
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(18, _c1$l, !ctx.valid));
|
|
14615
14615
|
i0.ɵɵadvance();
|
|
14616
14616
|
i0.ɵɵproperty("for", ctx.id());
|
|
14617
14617
|
i0.ɵɵadvance();
|
|
@@ -15139,7 +15139,7 @@ class ReadDynamicRadioListFieldComponent extends AbstractFieldReadComponent {
|
|
|
15139
15139
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadDynamicRadioListFieldComponent, { className: "ReadDynamicRadioListFieldComponent", filePath: "lib/shared/components/palette/dynamic-radio-list/read-dynamic-radio-list-field.component.ts", lineNumber: 8 }); })();
|
|
15140
15140
|
|
|
15141
15141
|
const _c0$O = a0 => ({ "form-group-error": a0 });
|
|
15142
|
-
const _c1$
|
|
15142
|
+
const _c1$k = a0 => ({ selected: a0 });
|
|
15143
15143
|
function WriteDynamicRadioListFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
15144
15144
|
i0.ɵɵelementStart(0, "span", 7);
|
|
15145
15145
|
i0.ɵɵtext(1);
|
|
@@ -15189,7 +15189,7 @@ function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) { if (rf &
|
|
|
15189
15189
|
} if (rf & 2) {
|
|
15190
15190
|
const radioButton_r2 = ctx.$implicit;
|
|
15191
15191
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
15192
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c1$
|
|
15192
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c1$k, ctx_r0.dynamicRadioListControl.value === radioButton_r2.code));
|
|
15193
15193
|
i0.ɵɵadvance();
|
|
15194
15194
|
i0.ɵɵproperty("id", ctx_r0.createElementId(radioButton_r2.code))("name", ctx_r0.id())("formControl", ctx_r0.dynamicRadioListControl)("value", radioButton_r2.code);
|
|
15195
15195
|
i0.ɵɵadvance();
|
|
@@ -15287,7 +15287,7 @@ class ReadEmailFieldComponent extends AbstractFieldReadComponent {
|
|
|
15287
15287
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadEmailFieldComponent, { className: "ReadEmailFieldComponent", filePath: "lib/shared/components/palette/email/read-email-field.component.ts", lineNumber: 10 }); })();
|
|
15288
15288
|
|
|
15289
15289
|
const _c0$N = a0 => ({ "form-group-error": a0 });
|
|
15290
|
-
const _c1$
|
|
15290
|
+
const _c1$j = a0 => ({ "govuk-input--error": a0 });
|
|
15291
15291
|
function WriteEmailFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
15292
15292
|
i0.ɵɵelementStart(0, "span", 6);
|
|
15293
15293
|
i0.ɵɵtext(1);
|
|
@@ -15342,7 +15342,7 @@ class WriteEmailFieldComponent extends AbstractFieldWriteComponent {
|
|
|
15342
15342
|
i0.ɵɵadvance();
|
|
15343
15343
|
i0.ɵɵproperty("ngIf", ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched));
|
|
15344
15344
|
i0.ɵɵadvance();
|
|
15345
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
15345
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$j, ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched)))("id", ctx.id())("formControl", ctx.emailControl);
|
|
15346
15346
|
} }, dependencies: [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
15347
15347
|
}
|
|
15348
15348
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteEmailFieldComponent, [{
|
|
@@ -15510,7 +15510,7 @@ class ReadFixedRadioListFieldComponent extends AbstractFieldReadComponent {
|
|
|
15510
15510
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadFixedRadioListFieldComponent, { className: "ReadFixedRadioListFieldComponent", filePath: "lib/shared/components/palette/fixed-radio-list/read-fixed-radio-list-field.component.ts", lineNumber: 8 }); })();
|
|
15511
15511
|
|
|
15512
15512
|
const _c0$L = a0 => ({ "form-group-error": a0 });
|
|
15513
|
-
const _c1$
|
|
15513
|
+
const _c1$i = a0 => ({ selected: a0 });
|
|
15514
15514
|
function WriteFixedRadioListFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
15515
15515
|
i0.ɵɵelementStart(0, "span", 6);
|
|
15516
15516
|
i0.ɵɵtext(1);
|
|
@@ -15551,7 +15551,7 @@ function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) { if (rf & 1)
|
|
|
15551
15551
|
} if (rf & 2) {
|
|
15552
15552
|
const radioButton_r2 = ctx.$implicit;
|
|
15553
15553
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
15554
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c1$
|
|
15554
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c1$i, ctx_r0.fixedRadioListControl.value === radioButton_r2.code));
|
|
15555
15555
|
i0.ɵɵadvance();
|
|
15556
15556
|
i0.ɵɵproperty("id", ctx_r0.id() + "-" + radioButton_r2.code)("name", ctx_r0.id())("formControl", ctx_r0.fixedRadioListControl)("value", radioButton_r2.code);
|
|
15557
15557
|
i0.ɵɵadvance();
|
|
@@ -15654,7 +15654,7 @@ class ReadJudicialUserFieldComponent extends AbstractFieldReadComponent {
|
|
|
15654
15654
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadJudicialUserFieldComponent, { className: "ReadJudicialUserFieldComponent", filePath: "lib/shared/components/palette/judicial-user/read-judicial-user-field.component.ts", lineNumber: 11 }); })();
|
|
15655
15655
|
|
|
15656
15656
|
const _c0$K = a0 => ({ "form-group-error": a0 });
|
|
15657
|
-
const _c1$
|
|
15657
|
+
const _c1$h = a0 => ({ "hide-autocomplete": a0 });
|
|
15658
15658
|
function WriteJudicialUserFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
15659
15659
|
i0.ɵɵelementStart(0, "span", 10);
|
|
15660
15660
|
i0.ɵɵtext(1);
|
|
@@ -15693,7 +15693,7 @@ function WriteJudicialUserFieldComponent_mat_option_8_Template(rf, ctx) { if (rf
|
|
|
15693
15693
|
} if (rf & 2) {
|
|
15694
15694
|
const judicialUser_r4 = ctx.$implicit;
|
|
15695
15695
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
15696
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c1$
|
|
15696
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c1$h, !ctx_r1.showAutocomplete))("value", judicialUser_r4);
|
|
15697
15697
|
i0.ɵɵadvance();
|
|
15698
15698
|
i0.ɵɵtextInterpolate2(" ", (judicialUser_r4 == null ? null : judicialUser_r4.fullName) ? judicialUser_r4.fullName : "", "", (judicialUser_r4 == null ? null : judicialUser_r4.emailId) ? " (" + judicialUser_r4.emailId + ")" : "", " ");
|
|
15699
15699
|
} }
|
|
@@ -16419,7 +16419,7 @@ class ValidatorsUtils {
|
|
|
16419
16419
|
}], null, null); })();
|
|
16420
16420
|
|
|
16421
16421
|
const _c0$J = a0 => ({ "govuk-form-group--error": a0 });
|
|
16422
|
-
const _c1$
|
|
16422
|
+
const _c1$g = a0 => ({ "table-group-error": a0 });
|
|
16423
16423
|
function LinkCasesComponent_div_8_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
16424
16424
|
i0.ɵɵelementStart(0, "span", 30)(1, "span", 31);
|
|
16425
16425
|
i0.ɵɵtext(2, "Error:");
|
|
@@ -16596,7 +16596,7 @@ function LinkCasesComponent_tr_31_Template(rf, ctx) { if (rf & 1) {
|
|
|
16596
16596
|
const case_r9 = ctx.$implicit;
|
|
16597
16597
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
16598
16598
|
i0.ɵɵadvance(2);
|
|
16599
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12, _c1$
|
|
16599
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12, _c1$g, ctx_r1.caseSelectionError && case_r9.caseReference === ctx_r1.linkCaseForm.value.caseNumber));
|
|
16600
16600
|
i0.ɵɵadvance(2);
|
|
16601
16601
|
i0.ɵɵtextInterpolate1("", case_r9.caseName, " ");
|
|
16602
16602
|
i0.ɵɵadvance(2);
|
|
@@ -18626,7 +18626,7 @@ class ReadNumberFieldComponent extends AbstractFieldReadComponent {
|
|
|
18626
18626
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadNumberFieldComponent, { className: "ReadNumberFieldComponent", filePath: "lib/shared/components/palette/number/read-number-field.component.ts", lineNumber: 8 }); })();
|
|
18627
18627
|
|
|
18628
18628
|
const _c0$F = a0 => ({ "form-group-error": a0 });
|
|
18629
|
-
const _c1$
|
|
18629
|
+
const _c1$f = a0 => ({ "govuk-input--error": a0 });
|
|
18630
18630
|
function WriteNumberFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
18631
18631
|
i0.ɵɵelementStart(0, "span", 6);
|
|
18632
18632
|
i0.ɵɵtext(1);
|
|
@@ -18681,7 +18681,7 @@ class WriteNumberFieldComponent extends AbstractFieldWriteComponent {
|
|
|
18681
18681
|
i0.ɵɵadvance();
|
|
18682
18682
|
i0.ɵɵproperty("ngIf", ctx.numberControl.errors && ctx.numberControl.dirty);
|
|
18683
18683
|
i0.ɵɵadvance();
|
|
18684
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
18684
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$f, ctx.numberControl.errors && ctx.numberControl.dirty))("id", ctx.id())("formControl", ctx.numberControl);
|
|
18685
18685
|
} }, dependencies: [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.NumberValueAccessor, i4.NgControlStatus, i4.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
18686
18686
|
}
|
|
18687
18687
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteNumberFieldComponent, [{
|
|
@@ -19309,7 +19309,7 @@ class ReadPhoneUKFieldComponent extends AbstractFieldReadComponent {
|
|
|
19309
19309
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadPhoneUKFieldComponent, { className: "ReadPhoneUKFieldComponent", filePath: "lib/shared/components/palette/phone-uk/read-phone-uk-field.component.ts", lineNumber: 8 }); })();
|
|
19310
19310
|
|
|
19311
19311
|
const _c0$D = a0 => ({ "form-group-error": a0 });
|
|
19312
|
-
const _c1$
|
|
19312
|
+
const _c1$e = a0 => ({ "govuk-input--error": a0 });
|
|
19313
19313
|
function WritePhoneUKFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
19314
19314
|
i0.ɵɵelementStart(0, "span", 6);
|
|
19315
19315
|
i0.ɵɵtext(1);
|
|
@@ -19364,7 +19364,7 @@ class WritePhoneUKFieldComponent extends AbstractFieldWriteComponent {
|
|
|
19364
19364
|
i0.ɵɵadvance();
|
|
19365
19365
|
i0.ɵɵproperty("ngIf", ctx.phoneUkControl.errors && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched));
|
|
19366
19366
|
i0.ɵɵadvance();
|
|
19367
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
19367
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$e, ctx.phoneUkControl.errors && ctx.phoneUkControl.dirty))("id", ctx.id())("formControl", ctx.phoneUkControl);
|
|
19368
19368
|
} }, dependencies: [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
19369
19369
|
}
|
|
19370
19370
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WritePhoneUKFieldComponent, [{
|
|
@@ -19585,36 +19585,44 @@ const caseMessagesMockData = [
|
|
|
19585
19585
|
|
|
19586
19586
|
function QualifyingQuestionDetailComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
19587
19587
|
i0.ɵɵelementContainerStart(0);
|
|
19588
|
-
i0.ɵɵelementStart(1, "
|
|
19588
|
+
i0.ɵɵelementStart(1, "span", 1);
|
|
19589
19589
|
i0.ɵɵtext(2);
|
|
19590
19590
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
19591
19591
|
i0.ɵɵelementEnd();
|
|
19592
|
-
i0.ɵɵ
|
|
19593
|
-
i0.ɵɵ
|
|
19592
|
+
i0.ɵɵelementStart(4, "h1", 2);
|
|
19593
|
+
i0.ɵɵtext(5);
|
|
19594
|
+
i0.ɵɵpipe(6, "rpxTranslate");
|
|
19595
|
+
i0.ɵɵelementEnd();
|
|
19596
|
+
i0.ɵɵelementStart(7, "div", 3);
|
|
19597
|
+
i0.ɵɵelement(8, "ccd-markdown", 4);
|
|
19598
|
+
i0.ɵɵpipe(9, "rpxTranslate");
|
|
19599
|
+
i0.ɵɵelementEnd();
|
|
19594
19600
|
i0.ɵɵelementContainerEnd();
|
|
19595
19601
|
} if (rf & 2) {
|
|
19596
19602
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
19597
19603
|
i0.ɵɵadvance(2);
|
|
19598
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3,
|
|
19599
|
-
i0.ɵɵadvance(
|
|
19600
|
-
i0.ɵɵ
|
|
19604
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 3, "Are you contacting us about any of the following:"), " ");
|
|
19605
|
+
i0.ɵɵadvance(3);
|
|
19606
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 5, ctx_r0.qualifyingQuestion.name), " ");
|
|
19607
|
+
i0.ɵɵadvance(3);
|
|
19608
|
+
i0.ɵɵproperty("content", i0.ɵɵpipeBind1(9, 7, ctx_r0.qualifyingQuestion.markdown));
|
|
19601
19609
|
} }
|
|
19602
19610
|
class QualifyingQuestionDetailComponent {
|
|
19603
19611
|
qualifyingQuestion;
|
|
19604
19612
|
static ɵfac = function QualifyingQuestionDetailComponent_Factory(t) { return new (t || QualifyingQuestionDetailComponent)(); };
|
|
19605
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QualifyingQuestionDetailComponent, selectors: [["ccd-qualifying-question-detail"]], inputs: { qualifyingQuestion: "qualifyingQuestion" }, decls: 1, vars: 1, consts: [[4, "ngIf"], [1, "govuk-heading-l"], [3, "content"]], template: function QualifyingQuestionDetailComponent_Template(rf, ctx) { if (rf & 1) {
|
|
19606
|
-
i0.ɵɵtemplate(0, QualifyingQuestionDetailComponent_ng_container_0_Template,
|
|
19613
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QualifyingQuestionDetailComponent, selectors: [["ccd-qualifying-question-detail"]], inputs: { qualifyingQuestion: "qualifyingQuestion" }, decls: 1, vars: 1, consts: [[4, "ngIf"], [1, "govuk-caption-l"], [1, "govuk-heading-l"], [1, "qm-qualifying-question"], [3, "content"]], template: function QualifyingQuestionDetailComponent_Template(rf, ctx) { if (rf & 1) {
|
|
19614
|
+
i0.ɵɵtemplate(0, QualifyingQuestionDetailComponent_ng_container_0_Template, 10, 9, "ng-container", 0);
|
|
19607
19615
|
} if (rf & 2) {
|
|
19608
19616
|
i0.ɵɵproperty("ngIf", ctx.qualifyingQuestion == null ? null : ctx.qualifyingQuestion.markdown);
|
|
19609
|
-
} }, dependencies: [i5.NgIf, MarkdownComponent, i1.RpxTranslatePipe],
|
|
19617
|
+
} }, dependencies: [i5.NgIf, MarkdownComponent, i1.RpxTranslatePipe], styles: [".qm-qualifying-question[_ngcontent-%COMP%] .markdown[_ngcontent-%COMP%]{font-size:19px}"] });
|
|
19610
19618
|
}
|
|
19611
19619
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QualifyingQuestionDetailComponent, [{
|
|
19612
19620
|
type: Component,
|
|
19613
|
-
args: [{ selector: 'ccd-qualifying-question-detail', template: "<ng-container *ngIf=\"qualifyingQuestion?.markdown\">\n <h1 class=\"govuk-heading-l\">\n {{ qualifyingQuestion.name | rpxTranslate }}\n </h1>\n <ccd-markdown\n [content]=\"qualifyingQuestion.markdown | rpxTranslate\">\n </ccd-markdown>\n</ng-container>\n" }]
|
|
19621
|
+
args: [{ selector: 'ccd-qualifying-question-detail', template: "<ng-container *ngIf=\"qualifyingQuestion?.markdown\">\n <span class=\"govuk-caption-l\">\n {{ 'Are you contacting us about any of the following:' | rpxTranslate }}\n </span>\n <h1 class=\"govuk-heading-l\">\n {{ qualifyingQuestion.name | rpxTranslate }}\n </h1>\n <div class=\"qm-qualifying-question\">\n <ccd-markdown\n [content]=\"qualifyingQuestion.markdown | rpxTranslate\">\n </ccd-markdown>\n </div>\n</ng-container>\n", styles: [".qm-qualifying-question .markdown{font-size:19px}\n"] }]
|
|
19614
19622
|
}], null, { qualifyingQuestion: [{
|
|
19615
19623
|
type: Input
|
|
19616
19624
|
}] }); })();
|
|
19617
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QualifyingQuestionDetailComponent, { className: "QualifyingQuestionDetailComponent", filePath: "lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-detail/qualifying-question-detail.component.ts", lineNumber:
|
|
19625
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QualifyingQuestionDetailComponent, { className: "QualifyingQuestionDetailComponent", filePath: "lib/shared/components/palette/query-management/components/qualifying-questions/qualifying-question-detail/qualifying-question-detail.component.ts", lineNumber: 9 }); })();
|
|
19618
19626
|
|
|
19619
19627
|
var RaiseQueryErrorMessage;
|
|
19620
19628
|
(function (RaiseQueryErrorMessage) {
|
|
@@ -19691,7 +19699,7 @@ function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_ng_co
|
|
|
19691
19699
|
i0.ɵɵelementContainerEnd();
|
|
19692
19700
|
} if (rf & 2) {
|
|
19693
19701
|
i0.ɵɵadvance(2);
|
|
19694
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "
|
|
19702
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "or"));
|
|
19695
19703
|
} }
|
|
19696
19704
|
function QualifyingQuestionOptionsComponent_ng_container_0_ng_container_12_Template(rf, ctx) { if (rf & 1) {
|
|
19697
19705
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -19740,7 +19748,7 @@ function QualifyingQuestionOptionsComponent_ng_container_0_Template(rf, ctx) { i
|
|
|
19740
19748
|
i0.ɵɵadvance(4);
|
|
19741
19749
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 6, "Raise a new query"), " ");
|
|
19742
19750
|
i0.ɵɵadvance(3);
|
|
19743
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 8, "
|
|
19751
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 8, "Select the type of query you are raising:"), " ");
|
|
19744
19752
|
i0.ɵɵadvance(2);
|
|
19745
19753
|
i0.ɵɵproperty("ngIf", ctx_r0.displayError);
|
|
19746
19754
|
i0.ɵɵadvance(2);
|
|
@@ -19782,7 +19790,7 @@ class QualifyingQuestionOptionsComponent {
|
|
|
19782
19790
|
}
|
|
19783
19791
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QualifyingQuestionOptionsComponent, [{
|
|
19784
19792
|
type: Component,
|
|
19785
|
-
args: [{ selector: 'ccd-qualifying-question-options', template: "<ng-container *ngIf=\"qualifyingQuestionsControl\">\n <div class=\"govuk-form-group\" [class.govuk-form-group--error]=\"displayError\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h1 class=\"govuk-fieldset__heading\">\n {{ 'Raise a new query' | rpxTranslate }}\n </h1>\n </legend>\n <h2 class=\"govuk-heading-m govuk-!-margin-top-10\">\n {{ '
|
|
19793
|
+
args: [{ selector: 'ccd-qualifying-question-options', template: "<ng-container *ngIf=\"qualifyingQuestionsControl\">\n <div class=\"govuk-form-group\" [class.govuk-form-group--error]=\"displayError\">\n <fieldset class=\"govuk-fieldset\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h1 class=\"govuk-fieldset__heading\">\n {{ 'Raise a new query' | rpxTranslate }}\n </h1>\n </legend>\n <h2 class=\"govuk-heading-m govuk-!-margin-top-10\">\n {{ 'Select the type of query you are raising:' | rpxTranslate }}\n </h2>\n\n <ng-container *ngIf=\"displayError\">\n <p class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{\n qualifyingQuestionsErrorMessage.SELECT_AN_OPTION | rpxTranslate }}\n </p>\n </ng-container>\n\n <div class=\"govuk-radios\" data-module=\"govuk-radios\">\n <ng-container *ngFor=\"let qualifyingQuestion of qualifyingQuestions$ | async; let isLast = last\">\n <ng-container *ngIf=\"isLast\">\n <div class=\"govuk-radios__divider\">{{ 'or' | rpxTranslate }}</div>\n </ng-container>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"{{qualifyingQuestion.name}}\" name=\"qualifyingQuestionOption\"\n type=\"radio\" [formControl]=\"qualifyingQuestionsControl\" [value]=\"qualifyingQuestion\">\n <label class=\"govuk-label govuk-radios__label\" [for]=\"qualifyingQuestion.name\">{{ qualifyingQuestion.name |\n rpxTranslate }}</label>\n </div>\n </ng-container>\n </div>\n </fieldset>\n </div>\n</ng-container>\n" }]
|
|
19786
19794
|
}], () => [{ type: i1$1.ActivatedRoute }, { type: i1$1.Router }, { type: QualifyingQuestionService }], { qualifyingQuestionsControl: [{
|
|
19787
19795
|
type: Input
|
|
19788
19796
|
}], qualifyingQuestions$: [{
|
|
@@ -20273,6 +20281,7 @@ class QueryCheckYourAnswersComponent {
|
|
|
20273
20281
|
caseViewTrigger;
|
|
20274
20282
|
caseDetails;
|
|
20275
20283
|
queryId;
|
|
20284
|
+
tid;
|
|
20276
20285
|
createEventSubscription;
|
|
20277
20286
|
searchTasksSubscription;
|
|
20278
20287
|
queryCreateContextEnum = QueryCreateContext;
|
|
@@ -20281,6 +20290,7 @@ class QueryCheckYourAnswersComponent {
|
|
|
20281
20290
|
fieldId;
|
|
20282
20291
|
attachments;
|
|
20283
20292
|
errorMessages = [];
|
|
20293
|
+
filteredTask = [];
|
|
20284
20294
|
constructor(route, router, casesService, caseNotifier, workAllocationService, sessionStorageService, qualifyingQuestionService) {
|
|
20285
20295
|
this.route = route;
|
|
20286
20296
|
this.router = router;
|
|
@@ -20292,6 +20302,7 @@ class QueryCheckYourAnswersComponent {
|
|
|
20292
20302
|
}
|
|
20293
20303
|
ngOnInit() {
|
|
20294
20304
|
this.queryId = this.route.snapshot.params.qid;
|
|
20305
|
+
this.tid = this.route.snapshot.queryParams?.tid;
|
|
20295
20306
|
this.caseNotifier.caseView.pipe(take(1)).subscribe((caseDetails) => {
|
|
20296
20307
|
this.caseDetails = caseDetails;
|
|
20297
20308
|
// Find the appropriate event trigger based on the queryCreateContext
|
|
@@ -20304,6 +20315,23 @@ class QueryCheckYourAnswersComponent {
|
|
|
20304
20315
|
// Get the document attachments
|
|
20305
20316
|
this.getDocumentAttachments();
|
|
20306
20317
|
this.setCaseQueriesCollectionData();
|
|
20318
|
+
if (this.queryCreateContext === QueryCreateContext.RESPOND) {
|
|
20319
|
+
this.searchTasksSubscription = this.workAllocationService.getTasksByCaseIdAndEventId(this.RESPOND_TO_QUERY_EVENT_TRIGGER_ID, this.caseDetails.case_id, this.caseDetails.case_type.id, this.caseDetails.case_type.jurisdiction.id)
|
|
20320
|
+
.subscribe({
|
|
20321
|
+
next: (response) => {
|
|
20322
|
+
// Filter task by query id
|
|
20323
|
+
if (response.tasks?.length > 1) {
|
|
20324
|
+
this.filteredTask = response.tasks?.find((task) => task.case_id === this.tid);
|
|
20325
|
+
}
|
|
20326
|
+
else {
|
|
20327
|
+
this.filteredTask = response.tasks;
|
|
20328
|
+
}
|
|
20329
|
+
},
|
|
20330
|
+
error: (error) => {
|
|
20331
|
+
console.error('Error in searchTasksSubscription:', error);
|
|
20332
|
+
}
|
|
20333
|
+
});
|
|
20334
|
+
}
|
|
20307
20335
|
}
|
|
20308
20336
|
ngOnDestroy() {
|
|
20309
20337
|
this.createEventSubscription?.unsubscribe();
|
|
@@ -20326,7 +20354,25 @@ class QueryCheckYourAnswersComponent {
|
|
|
20326
20354
|
return;
|
|
20327
20355
|
}
|
|
20328
20356
|
const data = this.generateCaseQueriesCollectionData();
|
|
20329
|
-
|
|
20357
|
+
const createEvent$ = this.createEvent(data);
|
|
20358
|
+
if (this.queryCreateContext === QueryCreateContext.RESPOND) {
|
|
20359
|
+
const completeTask$ = this.workAllocationService.completeTask(this.filteredTask[0].id, this.caseViewTrigger.name);
|
|
20360
|
+
this.createEventSubscription = forkJoin([createEvent$, completeTask$]).subscribe({
|
|
20361
|
+
next: ([createEventResponse, tasksResponse]) => {
|
|
20362
|
+
this.finaliseSubmission();
|
|
20363
|
+
},
|
|
20364
|
+
error: (error) => this.handleError(error)
|
|
20365
|
+
});
|
|
20366
|
+
}
|
|
20367
|
+
else {
|
|
20368
|
+
this.createEventSubscription = createEvent$.subscribe({
|
|
20369
|
+
next: () => this.finaliseSubmission(),
|
|
20370
|
+
error: (error) => this.handleError(error)
|
|
20371
|
+
});
|
|
20372
|
+
}
|
|
20373
|
+
}
|
|
20374
|
+
createEvent(data) {
|
|
20375
|
+
return this.casesService.createEvent(this.caseDetails, {
|
|
20330
20376
|
data,
|
|
20331
20377
|
event: {
|
|
20332
20378
|
id: this.caseViewTrigger?.id,
|
|
@@ -20335,34 +20381,16 @@ class QueryCheckYourAnswersComponent {
|
|
|
20335
20381
|
},
|
|
20336
20382
|
event_token: this.eventData?.event_token,
|
|
20337
20383
|
ignore_warning: false
|
|
20338
|
-
}).subscribe(() => {
|
|
20339
|
-
// Search and complete task
|
|
20340
|
-
this.searchAndCompleteTask();
|
|
20341
|
-
// Emit query submitted event
|
|
20342
|
-
this.querySubmitted.emit(true);
|
|
20343
|
-
this.qualifyingQuestionService.clearQualifyingQuestionSelection();
|
|
20344
|
-
},
|
|
20345
|
-
// Error
|
|
20346
|
-
() => this.router.navigate(['/', 'service-down']));
|
|
20347
|
-
}
|
|
20348
|
-
searchAndCompleteTask() {
|
|
20349
|
-
// Search Task
|
|
20350
|
-
const searchParameter = { ccdId: this.caseDetails.case_id };
|
|
20351
|
-
this.searchTasksSubscription = this.workAllocationService.searchTasks(searchParameter)
|
|
20352
|
-
.subscribe((response) => {
|
|
20353
|
-
// Filter task by query id
|
|
20354
|
-
const filteredTask = response.tasks?.find((task) => Object.values(task.additional_properties).some((value) => value === this.queryId));
|
|
20355
|
-
// Trigger event completion
|
|
20356
|
-
this.eventCompletionParams = {
|
|
20357
|
-
caseId: this.caseDetails.case_id,
|
|
20358
|
-
eventId: this.RESPOND_TO_QUERY_EVENT_TRIGGER_ID,
|
|
20359
|
-
task: filteredTask
|
|
20360
|
-
};
|
|
20361
|
-
}, (error) => {
|
|
20362
|
-
console.error('Error in searchTasksSubscription:', error);
|
|
20363
|
-
// Handle error appropriately
|
|
20364
20384
|
});
|
|
20365
20385
|
}
|
|
20386
|
+
finaliseSubmission() {
|
|
20387
|
+
this.querySubmitted.emit(true);
|
|
20388
|
+
this.qualifyingQuestionService.clearQualifyingQuestionSelection();
|
|
20389
|
+
}
|
|
20390
|
+
handleError(error) {
|
|
20391
|
+
console.error('Error in API calls:', error);
|
|
20392
|
+
this.router.navigate(['/', 'service-down']);
|
|
20393
|
+
}
|
|
20366
20394
|
generateCaseQueriesCollectionData() {
|
|
20367
20395
|
const currentUserDetails = JSON.parse(this.sessionStorageService.getItem('userDetails'));
|
|
20368
20396
|
const caseMessage = this.queryCreateContext === QueryCreateContext.NEW_QUERY
|
|
@@ -20571,10 +20599,32 @@ class QueryCheckYourAnswersComponent {
|
|
|
20571
20599
|
}], querySubmitted: [{
|
|
20572
20600
|
type: Output
|
|
20573
20601
|
}] }); })();
|
|
20574
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryCheckYourAnswersComponent, { className: "QueryCheckYourAnswersComponent", filePath: "lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.ts", lineNumber:
|
|
20602
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryCheckYourAnswersComponent, { className: "QueryCheckYourAnswersComponent", filePath: "lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.ts", lineNumber: 26 }); })();
|
|
20575
20603
|
|
|
20576
|
-
function
|
|
20577
|
-
i0.ɵɵelementStart(0, "
|
|
20604
|
+
function QueryDetailsComponent_ng_container_0_cut_alert_1_Template(rf, ctx) { if (rf & 1) {
|
|
20605
|
+
i0.ɵɵelementStart(0, "cut-alert", 11);
|
|
20606
|
+
i0.ɵɵelementContainerStart(1);
|
|
20607
|
+
i0.ɵɵtext(2);
|
|
20608
|
+
i0.ɵɵelementContainerEnd();
|
|
20609
|
+
i0.ɵɵelementEnd();
|
|
20610
|
+
} if (rf & 2) {
|
|
20611
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
20612
|
+
i0.ɵɵadvance(2);
|
|
20613
|
+
i0.ɵɵtextInterpolate(ctx_r0.message);
|
|
20614
|
+
} }
|
|
20615
|
+
function QueryDetailsComponent_ng_container_0_p_3_Template(rf, ctx) { if (rf & 1) {
|
|
20616
|
+
const _r2 = i0.ɵɵgetCurrentView();
|
|
20617
|
+
i0.ɵɵelementStart(0, "p")(1, "a", 12);
|
|
20618
|
+
i0.ɵɵlistener("click", function QueryDetailsComponent_ng_container_0_p_3_Template_a_click_1_listener() { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.onBack()); });
|
|
20619
|
+
i0.ɵɵtext(2);
|
|
20620
|
+
i0.ɵɵpipe(3, "rpxTranslate");
|
|
20621
|
+
i0.ɵɵelementEnd()();
|
|
20622
|
+
} if (rf & 2) {
|
|
20623
|
+
i0.ɵɵadvance(2);
|
|
20624
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "Back to query list"));
|
|
20625
|
+
} }
|
|
20626
|
+
function QueryDetailsComponent_ng_container_0_tr_44_Template(rf, ctx) { if (rf & 1) {
|
|
20627
|
+
i0.ɵɵelementStart(0, "tr", 13)(1, "th", 7);
|
|
20578
20628
|
i0.ɵɵtext(2);
|
|
20579
20629
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
20580
20630
|
i0.ɵɵelementEnd();
|
|
@@ -20583,34 +20633,34 @@ function QueryDetailsComponent_ng_container_0_tr_46_Template(rf, ctx) { if (rf &
|
|
|
20583
20633
|
i0.ɵɵpipe(6, "date");
|
|
20584
20634
|
i0.ɵɵelementEnd()();
|
|
20585
20635
|
} if (rf & 2) {
|
|
20586
|
-
const
|
|
20636
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
20587
20637
|
i0.ɵɵadvance(2);
|
|
20588
20638
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "What is the date of the hearing?"));
|
|
20589
20639
|
i0.ɵɵadvance(3);
|
|
20590
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(6, 4,
|
|
20640
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(6, 4, ctx_r0.query.hearingDate, "dd MMM yyyy"));
|
|
20591
20641
|
} }
|
|
20592
|
-
function
|
|
20593
|
-
i0.ɵɵelement(0, "ccd-query-attachments-read",
|
|
20642
|
+
function QueryDetailsComponent_ng_container_0_tr_45_ccd_query_attachments_read_5_Template(rf, ctx) { if (rf & 1) {
|
|
20643
|
+
i0.ɵɵelement(0, "ccd-query-attachments-read", 15);
|
|
20594
20644
|
} if (rf & 2) {
|
|
20595
|
-
const
|
|
20596
|
-
i0.ɵɵproperty("attachments",
|
|
20645
|
+
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
20646
|
+
i0.ɵɵproperty("attachments", ctx_r0.query.attachments);
|
|
20597
20647
|
} }
|
|
20598
|
-
function
|
|
20648
|
+
function QueryDetailsComponent_ng_container_0_tr_45_Template(rf, ctx) { if (rf & 1) {
|
|
20599
20649
|
i0.ɵɵelementStart(0, "tr", 6)(1, "th", 7);
|
|
20600
20650
|
i0.ɵɵtext(2);
|
|
20601
20651
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
20602
20652
|
i0.ɵɵelementEnd();
|
|
20603
20653
|
i0.ɵɵelementStart(4, "td", 8);
|
|
20604
|
-
i0.ɵɵtemplate(5,
|
|
20654
|
+
i0.ɵɵtemplate(5, QueryDetailsComponent_ng_container_0_tr_45_ccd_query_attachments_read_5_Template, 1, 1, "ccd-query-attachments-read", 14);
|
|
20605
20655
|
i0.ɵɵelementEnd()();
|
|
20606
20656
|
} if (rf & 2) {
|
|
20607
|
-
const
|
|
20657
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
20608
20658
|
i0.ɵɵadvance(2);
|
|
20609
20659
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Attachments"));
|
|
20610
20660
|
i0.ɵɵadvance(3);
|
|
20611
|
-
i0.ɵɵproperty("ngIf",
|
|
20661
|
+
i0.ɵɵproperty("ngIf", ctx_r0.query.attachments);
|
|
20612
20662
|
} }
|
|
20613
|
-
function
|
|
20663
|
+
function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_container_1_tr_15_Template(rf, ctx) { if (rf & 1) {
|
|
20614
20664
|
i0.ɵɵelementStart(0, "tr", 6)(1, "th", 7);
|
|
20615
20665
|
i0.ɵɵtext(2);
|
|
20616
20666
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
@@ -20625,19 +20675,19 @@ function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_
|
|
|
20625
20675
|
i0.ɵɵadvance(3);
|
|
20626
20676
|
i0.ɵɵtextInterpolate(child_r3.name);
|
|
20627
20677
|
} }
|
|
20628
|
-
function
|
|
20629
|
-
i0.ɵɵelement(0, "ccd-query-attachments-read",
|
|
20678
|
+
function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_container_1_tr_22_ccd_query_attachments_read_5_Template(rf, ctx) { if (rf & 1) {
|
|
20679
|
+
i0.ɵɵelement(0, "ccd-query-attachments-read", 15);
|
|
20630
20680
|
} if (rf & 2) {
|
|
20631
20681
|
const child_r3 = i0.ɵɵnextContext(3).$implicit;
|
|
20632
20682
|
i0.ɵɵproperty("attachments", child_r3.attachments);
|
|
20633
20683
|
} }
|
|
20634
|
-
function
|
|
20684
|
+
function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_container_1_tr_22_Template(rf, ctx) { if (rf & 1) {
|
|
20635
20685
|
i0.ɵɵelementStart(0, "tr", 6)(1, "th", 7);
|
|
20636
20686
|
i0.ɵɵtext(2);
|
|
20637
20687
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
20638
20688
|
i0.ɵɵelementEnd();
|
|
20639
20689
|
i0.ɵɵelementStart(4, "td", 8);
|
|
20640
|
-
i0.ɵɵtemplate(5,
|
|
20690
|
+
i0.ɵɵtemplate(5, QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_container_1_tr_22_ccd_query_attachments_read_5_Template, 1, 1, "ccd-query-attachments-read", 14);
|
|
20641
20691
|
i0.ɵɵelementEnd()();
|
|
20642
20692
|
} if (rf & 2) {
|
|
20643
20693
|
const child_r3 = i0.ɵɵnextContext(2).$implicit;
|
|
@@ -20646,7 +20696,7 @@ function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_
|
|
|
20646
20696
|
i0.ɵɵadvance(3);
|
|
20647
20697
|
i0.ɵɵproperty("ngIf", child_r3.attachments);
|
|
20648
20698
|
} }
|
|
20649
|
-
function
|
|
20699
|
+
function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
20650
20700
|
i0.ɵɵelementContainerStart(0);
|
|
20651
20701
|
i0.ɵɵelementStart(1, "table", 3);
|
|
20652
20702
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
@@ -20662,7 +20712,7 @@ function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_
|
|
|
20662
20712
|
i0.ɵɵtext(13);
|
|
20663
20713
|
i0.ɵɵpipe(14, "date");
|
|
20664
20714
|
i0.ɵɵelementEnd()();
|
|
20665
|
-
i0.ɵɵtemplate(15,
|
|
20715
|
+
i0.ɵɵtemplate(15, QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_container_1_tr_15_Template, 6, 4, "tr", 10);
|
|
20666
20716
|
i0.ɵɵelementStart(16, "tr", 6)(17, "th", 7);
|
|
20667
20717
|
i0.ɵɵtext(18);
|
|
20668
20718
|
i0.ɵɵpipe(19, "rpxTranslate");
|
|
@@ -20670,12 +20720,12 @@ function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_
|
|
|
20670
20720
|
i0.ɵɵelementStart(20, "td", 8);
|
|
20671
20721
|
i0.ɵɵtext(21);
|
|
20672
20722
|
i0.ɵɵelementEnd()();
|
|
20673
|
-
i0.ɵɵtemplate(22,
|
|
20723
|
+
i0.ɵɵtemplate(22, QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_container_1_tr_22_Template, 6, 4, "tr", 10);
|
|
20674
20724
|
i0.ɵɵelementEnd()();
|
|
20675
20725
|
i0.ɵɵelementContainerEnd();
|
|
20676
20726
|
} if (rf & 2) {
|
|
20677
20727
|
const child_r3 = i0.ɵɵnextContext().$implicit;
|
|
20678
|
-
const
|
|
20728
|
+
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
20679
20729
|
i0.ɵɵadvance();
|
|
20680
20730
|
i0.ɵɵattribute("aria-describedby", i0.ɵɵpipeBind1(2, 8, "Response of the query"));
|
|
20681
20731
|
i0.ɵɵadvance(4);
|
|
@@ -20685,7 +20735,7 @@ function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_
|
|
|
20685
20735
|
i0.ɵɵadvance(3);
|
|
20686
20736
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(14, 14, child_r3.createdOn, "dd MMM yyyy"));
|
|
20687
20737
|
i0.ɵɵadvance(2);
|
|
20688
|
-
i0.ɵɵproperty("ngIf",
|
|
20738
|
+
i0.ɵɵproperty("ngIf", ctx_r0.isCaseworker());
|
|
20689
20739
|
i0.ɵɵadvance(3);
|
|
20690
20740
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(19, 17, "Response detail"));
|
|
20691
20741
|
i0.ɵɵadvance(3);
|
|
@@ -20693,19 +20743,19 @@ function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_
|
|
|
20693
20743
|
i0.ɵɵadvance();
|
|
20694
20744
|
i0.ɵɵproperty("ngIf", child_r3.attachments.length > 0);
|
|
20695
20745
|
} }
|
|
20696
|
-
function
|
|
20697
|
-
i0.ɵɵelement(0, "ccd-query-attachments-read",
|
|
20746
|
+
function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_template_2_tr_26_ccd_query_attachments_read_5_Template(rf, ctx) { if (rf & 1) {
|
|
20747
|
+
i0.ɵɵelement(0, "ccd-query-attachments-read", 15);
|
|
20698
20748
|
} if (rf & 2) {
|
|
20699
20749
|
const child_r3 = i0.ɵɵnextContext(3).$implicit;
|
|
20700
20750
|
i0.ɵɵproperty("attachments", child_r3.attachments);
|
|
20701
20751
|
} }
|
|
20702
|
-
function
|
|
20752
|
+
function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_template_2_tr_26_Template(rf, ctx) { if (rf & 1) {
|
|
20703
20753
|
i0.ɵɵelementStart(0, "tr", 6)(1, "th", 7);
|
|
20704
20754
|
i0.ɵɵtext(2);
|
|
20705
20755
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
20706
20756
|
i0.ɵɵelementEnd();
|
|
20707
20757
|
i0.ɵɵelementStart(4, "td", 8);
|
|
20708
|
-
i0.ɵɵtemplate(5,
|
|
20758
|
+
i0.ɵɵtemplate(5, QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_template_2_tr_26_ccd_query_attachments_read_5_Template, 1, 1, "ccd-query-attachments-read", 14);
|
|
20709
20759
|
i0.ɵɵelementEnd()();
|
|
20710
20760
|
} if (rf & 2) {
|
|
20711
20761
|
const child_r3 = i0.ɵɵnextContext(2).$implicit;
|
|
@@ -20714,7 +20764,7 @@ function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_
|
|
|
20714
20764
|
i0.ɵɵadvance(3);
|
|
20715
20765
|
i0.ɵɵproperty("ngIf", child_r3.attachments);
|
|
20716
20766
|
} }
|
|
20717
|
-
function
|
|
20767
|
+
function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
20718
20768
|
i0.ɵɵelementStart(0, "table", 3);
|
|
20719
20769
|
i0.ɵɵpipe(1, "rpxTranslate");
|
|
20720
20770
|
i0.ɵɵelementStart(2, "caption", 4)(3, "div");
|
|
@@ -20743,7 +20793,7 @@ function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_
|
|
|
20743
20793
|
i0.ɵɵelementStart(24, "td", 8);
|
|
20744
20794
|
i0.ɵɵtext(25);
|
|
20745
20795
|
i0.ɵɵelementEnd()();
|
|
20746
|
-
i0.ɵɵtemplate(26,
|
|
20796
|
+
i0.ɵɵtemplate(26, QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_template_2_tr_26_Template, 6, 4, "tr", 10);
|
|
20747
20797
|
i0.ɵɵelementEnd()();
|
|
20748
20798
|
} if (rf & 2) {
|
|
20749
20799
|
const child_r3 = i0.ɵɵnextContext().$implicit;
|
|
@@ -20765,9 +20815,9 @@ function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_ng_
|
|
|
20765
20815
|
i0.ɵɵadvance();
|
|
20766
20816
|
i0.ɵɵproperty("ngIf", child_r3.attachments.length > 0);
|
|
20767
20817
|
} }
|
|
20768
|
-
function
|
|
20818
|
+
function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
20769
20819
|
i0.ɵɵelementContainerStart(0);
|
|
20770
|
-
i0.ɵɵtemplate(1,
|
|
20820
|
+
i0.ɵɵtemplate(1, QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_container_1_Template, 23, 19, "ng-container", 17)(2, QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_template_2_Template, 27, 22, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
20771
20821
|
i0.ɵɵelementContainerEnd();
|
|
20772
20822
|
} if (rf & 2) {
|
|
20773
20823
|
const i_r4 = ctx.index;
|
|
@@ -20775,117 +20825,125 @@ function QueryDetailsComponent_ng_container_0_ng_container_48_ng_container_1_Tem
|
|
|
20775
20825
|
i0.ɵɵadvance();
|
|
20776
20826
|
i0.ɵɵproperty("ngIf", i_r4 % 2 === 0)("ngIfElse", followUpMessage_r5);
|
|
20777
20827
|
} }
|
|
20778
|
-
function
|
|
20828
|
+
function QueryDetailsComponent_ng_container_0_ng_container_46_Template(rf, ctx) { if (rf & 1) {
|
|
20779
20829
|
i0.ɵɵelementContainerStart(0);
|
|
20780
|
-
i0.ɵɵtemplate(1,
|
|
20830
|
+
i0.ɵɵtemplate(1, QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_Template, 4, 2, "ng-container", 16);
|
|
20781
20831
|
i0.ɵɵelementContainerEnd();
|
|
20782
20832
|
} if (rf & 2) {
|
|
20783
|
-
const
|
|
20833
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
20784
20834
|
i0.ɵɵadvance();
|
|
20785
|
-
i0.ɵɵproperty("ngForOf",
|
|
20835
|
+
i0.ɵɵproperty("ngForOf", ctx_r0.query.children);
|
|
20786
20836
|
} }
|
|
20787
20837
|
function QueryDetailsComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
20788
|
-
const _r1 = i0.ɵɵgetCurrentView();
|
|
20789
20838
|
i0.ɵɵelementContainerStart(0);
|
|
20790
|
-
i0.ɵɵ
|
|
20791
|
-
i0.ɵɵ
|
|
20792
|
-
i0.ɵɵ
|
|
20793
|
-
i0.ɵɵ
|
|
20794
|
-
i0.ɵɵpipe(
|
|
20795
|
-
i0.ɵɵ
|
|
20796
|
-
i0.ɵɵ
|
|
20797
|
-
i0.ɵɵpipe(
|
|
20798
|
-
i0.ɵɵelementStart(9, "caption", 4)(10, "div");
|
|
20799
|
-
i0.ɵɵtext(11);
|
|
20800
|
-
i0.ɵɵpipe(12, "rpxTranslate");
|
|
20839
|
+
i0.ɵɵtemplate(1, QueryDetailsComponent_ng_container_0_cut_alert_1_Template, 3, 1, "cut-alert", 2);
|
|
20840
|
+
i0.ɵɵelement(2, "br");
|
|
20841
|
+
i0.ɵɵtemplate(3, QueryDetailsComponent_ng_container_0_p_3_Template, 4, 3, "p", 1);
|
|
20842
|
+
i0.ɵɵelementStart(4, "div")(5, "table", 3);
|
|
20843
|
+
i0.ɵɵpipe(6, "rpxTranslate");
|
|
20844
|
+
i0.ɵɵelementStart(7, "caption", 4)(8, "div");
|
|
20845
|
+
i0.ɵɵtext(9);
|
|
20846
|
+
i0.ɵɵpipe(10, "rpxTranslate");
|
|
20801
20847
|
i0.ɵɵelementEnd()();
|
|
20802
|
-
i0.ɵɵelementStart(
|
|
20803
|
-
i0.ɵɵtext(
|
|
20804
|
-
i0.ɵɵpipe(
|
|
20848
|
+
i0.ɵɵelementStart(11, "tbody", 5)(12, "tr", 6)(13, "th", 7);
|
|
20849
|
+
i0.ɵɵtext(14);
|
|
20850
|
+
i0.ɵɵpipe(15, "rpxTranslate");
|
|
20805
20851
|
i0.ɵɵelementEnd();
|
|
20806
|
-
i0.ɵɵelementStart(
|
|
20807
|
-
i0.ɵɵtext(
|
|
20852
|
+
i0.ɵɵelementStart(16, "td", 8);
|
|
20853
|
+
i0.ɵɵtext(17);
|
|
20808
20854
|
i0.ɵɵelementEnd()();
|
|
20809
|
-
i0.ɵɵelementStart(
|
|
20810
|
-
i0.ɵɵtext(
|
|
20811
|
-
i0.ɵɵpipe(
|
|
20855
|
+
i0.ɵɵelementStart(18, "tr", 6)(19, "th", 7);
|
|
20856
|
+
i0.ɵɵtext(20);
|
|
20857
|
+
i0.ɵɵpipe(21, "rpxTranslate");
|
|
20812
20858
|
i0.ɵɵelementEnd();
|
|
20813
|
-
i0.ɵɵelementStart(
|
|
20814
|
-
i0.ɵɵtext(
|
|
20815
|
-
i0.ɵɵpipe(
|
|
20859
|
+
i0.ɵɵelementStart(22, "td", 8);
|
|
20860
|
+
i0.ɵɵtext(23);
|
|
20861
|
+
i0.ɵɵpipe(24, "date");
|
|
20816
20862
|
i0.ɵɵelementEnd()();
|
|
20817
|
-
i0.ɵɵelementStart(
|
|
20818
|
-
i0.ɵɵtext(
|
|
20819
|
-
i0.ɵɵpipe(
|
|
20863
|
+
i0.ɵɵelementStart(25, "tr", 6)(26, "th", 7);
|
|
20864
|
+
i0.ɵɵtext(27);
|
|
20865
|
+
i0.ɵɵpipe(28, "rpxTranslate");
|
|
20820
20866
|
i0.ɵɵelementEnd();
|
|
20821
|
-
i0.ɵɵelementStart(
|
|
20822
|
-
i0.ɵɵtext(
|
|
20867
|
+
i0.ɵɵelementStart(29, "td", 8);
|
|
20868
|
+
i0.ɵɵtext(30);
|
|
20823
20869
|
i0.ɵɵelementEnd()();
|
|
20824
|
-
i0.ɵɵelementStart(
|
|
20825
|
-
i0.ɵɵtext(
|
|
20826
|
-
i0.ɵɵpipe(
|
|
20870
|
+
i0.ɵɵelementStart(31, "tr", 6)(32, "th", 7);
|
|
20871
|
+
i0.ɵɵtext(33);
|
|
20872
|
+
i0.ɵɵpipe(34, "rpxTranslate");
|
|
20827
20873
|
i0.ɵɵelementEnd();
|
|
20828
|
-
i0.ɵɵelementStart(
|
|
20829
|
-
i0.ɵɵtext(
|
|
20874
|
+
i0.ɵɵelementStart(35, "td", 8);
|
|
20875
|
+
i0.ɵɵtext(36);
|
|
20830
20876
|
i0.ɵɵelementEnd()();
|
|
20831
|
-
i0.ɵɵelementStart(
|
|
20832
|
-
i0.ɵɵtext(
|
|
20833
|
-
i0.ɵɵpipe(
|
|
20877
|
+
i0.ɵɵelementStart(37, "tr", 6)(38, "th", 7);
|
|
20878
|
+
i0.ɵɵtext(39);
|
|
20879
|
+
i0.ɵɵpipe(40, "rpxTranslate");
|
|
20834
20880
|
i0.ɵɵelementEnd();
|
|
20835
|
-
i0.ɵɵelementStart(
|
|
20836
|
-
i0.ɵɵtext(
|
|
20837
|
-
i0.ɵɵpipe(
|
|
20881
|
+
i0.ɵɵelementStart(41, "td", 8);
|
|
20882
|
+
i0.ɵɵtext(42);
|
|
20883
|
+
i0.ɵɵpipe(43, "rpxTranslate");
|
|
20838
20884
|
i0.ɵɵelementEnd()();
|
|
20839
|
-
i0.ɵɵtemplate(
|
|
20885
|
+
i0.ɵɵtemplate(44, QueryDetailsComponent_ng_container_0_tr_44_Template, 7, 7, "tr", 9)(45, QueryDetailsComponent_ng_container_0_tr_45_Template, 6, 4, "tr", 10);
|
|
20840
20886
|
i0.ɵɵelementEnd()()();
|
|
20841
|
-
i0.ɵɵtemplate(
|
|
20887
|
+
i0.ɵɵtemplate(46, QueryDetailsComponent_ng_container_0_ng_container_46_Template, 2, 1, "ng-container", 1);
|
|
20842
20888
|
i0.ɵɵelementContainerEnd();
|
|
20843
20889
|
} if (rf & 2) {
|
|
20844
|
-
const
|
|
20845
|
-
i0.ɵɵadvance(
|
|
20846
|
-
i0.ɵɵ
|
|
20847
|
-
i0.ɵɵadvance(
|
|
20848
|
-
i0.ɵɵ
|
|
20890
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
20891
|
+
i0.ɵɵadvance();
|
|
20892
|
+
i0.ɵɵproperty("ngIf", ctx_r0.hasRespondedToQuery());
|
|
20893
|
+
i0.ɵɵadvance(2);
|
|
20894
|
+
i0.ɵɵproperty("ngIf", ctx_r0.showLink);
|
|
20895
|
+
i0.ɵɵadvance(2);
|
|
20896
|
+
i0.ɵɵattribute("aria-describedby", i0.ɵɵpipeBind1(6, 21, "Details of the query"));
|
|
20849
20897
|
i0.ɵɵadvance(4);
|
|
20850
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
20898
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10, 23, "Query details"));
|
|
20851
20899
|
i0.ɵɵadvance(5);
|
|
20852
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
20900
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(15, 25, "Last submitted by"));
|
|
20853
20901
|
i0.ɵɵadvance(3);
|
|
20854
|
-
i0.ɵɵtextInterpolate(
|
|
20902
|
+
i0.ɵɵtextInterpolate(ctx_r0.query.lastSubmittedBy);
|
|
20855
20903
|
i0.ɵɵadvance(3);
|
|
20856
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
20904
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(21, 27, "Submission date"));
|
|
20857
20905
|
i0.ɵɵadvance(3);
|
|
20858
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(
|
|
20906
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(24, 29, ctx_r0.query.createdOn, "dd MMM yyyy"));
|
|
20859
20907
|
i0.ɵɵadvance(4);
|
|
20860
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
20908
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(28, 32, "Query subject"));
|
|
20861
20909
|
i0.ɵɵadvance(3);
|
|
20862
|
-
i0.ɵɵtextInterpolate(
|
|
20910
|
+
i0.ɵɵtextInterpolate(ctx_r0.query.subject);
|
|
20863
20911
|
i0.ɵɵadvance(3);
|
|
20864
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
20912
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(34, 34, "Query body"));
|
|
20865
20913
|
i0.ɵɵadvance(3);
|
|
20866
|
-
i0.ɵɵtextInterpolate(
|
|
20914
|
+
i0.ɵɵtextInterpolate(ctx_r0.query.body);
|
|
20867
20915
|
i0.ɵɵadvance(2);
|
|
20868
|
-
i0.ɵɵclassProp("govuk-table__header--no-border",
|
|
20916
|
+
i0.ɵɵclassProp("govuk-table__header--no-border", ctx_r0.query.isHearingRelated);
|
|
20869
20917
|
i0.ɵɵadvance();
|
|
20870
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
20918
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(40, 36, "Is the query hearing related?"), " ");
|
|
20871
20919
|
i0.ɵɵadvance(2);
|
|
20872
|
-
i0.ɵɵclassProp("govuk-table__cell--no-border",
|
|
20920
|
+
i0.ɵɵclassProp("govuk-table__cell--no-border", ctx_r0.query.isHearingRelated);
|
|
20873
20921
|
i0.ɵɵadvance();
|
|
20874
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(
|
|
20922
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(43, 38, "Is the query hearing related?", null, ctx_r0.query.isHearingRelated), "");
|
|
20875
20923
|
i0.ɵɵadvance(2);
|
|
20876
|
-
i0.ɵɵproperty("ngIf",
|
|
20924
|
+
i0.ɵɵproperty("ngIf", ctx_r0.query.isHearingRelated === "Yes");
|
|
20877
20925
|
i0.ɵɵadvance();
|
|
20878
|
-
i0.ɵɵproperty("ngIf",
|
|
20926
|
+
i0.ɵɵproperty("ngIf", ctx_r0.query.attachments.length > 0);
|
|
20879
20927
|
i0.ɵɵadvance();
|
|
20880
|
-
i0.ɵɵproperty("ngIf", (
|
|
20928
|
+
i0.ɵɵproperty("ngIf", (ctx_r0.query.children == null ? null : ctx_r0.query.children.length) > 0);
|
|
20881
20929
|
} }
|
|
20882
20930
|
class QueryDetailsComponent {
|
|
20883
20931
|
sessionStorageService;
|
|
20932
|
+
route;
|
|
20933
|
+
router;
|
|
20884
20934
|
query;
|
|
20885
20935
|
backClicked = new EventEmitter();
|
|
20886
20936
|
caseId;
|
|
20887
|
-
|
|
20937
|
+
hasResponded = new EventEmitter();
|
|
20938
|
+
totalNumberOfQueryChildren;
|
|
20939
|
+
showLink = true;
|
|
20940
|
+
message;
|
|
20941
|
+
static QUERY_ITEM_RESPOND = '3';
|
|
20942
|
+
queryItemId;
|
|
20943
|
+
constructor(sessionStorageService, route, router) {
|
|
20888
20944
|
this.sessionStorageService = sessionStorageService;
|
|
20945
|
+
this.route = route;
|
|
20946
|
+
this.router = router;
|
|
20889
20947
|
}
|
|
20890
20948
|
onBack() {
|
|
20891
20949
|
this.backClicked.emit(true);
|
|
@@ -20896,24 +20954,45 @@ class QueryDetailsComponent {
|
|
|
20896
20954
|
&& !(userDetails.roles.includes('pui-case-manager')
|
|
20897
20955
|
|| userDetails.roles.some((role) => role.toLowerCase().includes('judge')));
|
|
20898
20956
|
}
|
|
20899
|
-
|
|
20900
|
-
|
|
20901
|
-
|
|
20957
|
+
ngOnChanges() {
|
|
20958
|
+
this.toggleLinkVisibility();
|
|
20959
|
+
this.hasRespondedToQuery();
|
|
20960
|
+
}
|
|
20961
|
+
toggleLinkVisibility() {
|
|
20962
|
+
this.queryItemId = this.route.snapshot.params.qid;
|
|
20963
|
+
this.showLink = this.queryItemId !== QueryDetailsComponent.QUERY_ITEM_RESPOND;
|
|
20964
|
+
}
|
|
20965
|
+
hasRespondedToQuery() {
|
|
20966
|
+
if (this.totalNumberOfQueryChildren >= 0 && this.isCaseworker() && this.totalNumberOfQueryChildren % 2 !== 0) {
|
|
20967
|
+
this.message = Constants.TASK_COMPLETION_ERROR;
|
|
20968
|
+
this.hasResponded.emit(true);
|
|
20969
|
+
return true;
|
|
20970
|
+
}
|
|
20971
|
+
this.hasResponded.emit(false);
|
|
20972
|
+
return false;
|
|
20973
|
+
}
|
|
20974
|
+
static ɵfac = function QueryDetailsComponent_Factory(t) { return new (t || QueryDetailsComponent)(i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(i1$1.Router)); };
|
|
20975
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryDetailsComponent, selectors: [["ccd-query-details"]], inputs: { query: "query", caseId: "caseId", totalNumberOfQueryChildren: "totalNumberOfQueryChildren" }, outputs: { backClicked: "backClicked", hasResponded: "hasResponded" }, features: [i0.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [["followUpMessage", ""], [4, "ngIf"], ["type", "error", 4, "ngIf"], [1, "govuk-table", "query-details-table"], [1, "govuk-table__caption", "govuk-table__caption--l"], [1, "govuk-table__body"], [1, "govuk-table__row"], ["scope", "row", 1, "govuk-table__header"], [1, "govuk-table__cell"], ["class", "govuk-table__row govuk-table__row--isHearingRelated", 4, "ngIf"], ["class", "govuk-table__row", 4, "ngIf"], ["type", "error"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [1, "govuk-table__row", "govuk-table__row--isHearingRelated"], [3, "attachments", 4, "ngIf"], [3, "attachments"], [4, "ngFor", "ngForOf"], [4, "ngIf", "ngIfElse"]], template: function QueryDetailsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
20976
|
+
i0.ɵɵtemplate(0, QueryDetailsComponent_ng_container_0_Template, 47, 42, "ng-container", 1);
|
|
20902
20977
|
} if (rf & 2) {
|
|
20903
20978
|
i0.ɵɵproperty("ngIf", ctx.query);
|
|
20904
20979
|
} }, styles: [".query-details-table[_ngcontent-%COMP%] .govuk-table__header[_ngcontent-%COMP%]{width:330px}"] });
|
|
20905
20980
|
}
|
|
20906
20981
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryDetailsComponent, [{
|
|
20907
20982
|
type: Component,
|
|
20908
|
-
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"] }]
|
|
20909
|
-
}], () => [{ type: SessionStorageService }], { query: [{
|
|
20983
|
+
args: [{ selector: 'ccd-query-details', template: "<ng-container *ngIf=\"query\">\n <cut-alert type=\"error\" *ngIf=\"hasRespondedToQuery()\">\n <ng-container>{{message}}</ng-container>\n </cut-alert>\n\n <br/>\n <p *ngIf=\"showLink\">\n <a class=\"govuk-link\" href=\"javascript:void(0)\" (click)=\"onBack()\">{{ 'Back to query list' | rpxTranslate }}</a>\n </p>\n <div>\n <table class=\"govuk-table query-details-table\" [attr.aria-describedby]=\"'Details of the query' | rpxTranslate\">\n <caption class=\"govuk-table__caption govuk-table__caption--l\">\n <div>{{ 'Query details' | rpxTranslate }}</div>\n </caption>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last submitted by' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.lastSubmittedBy }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Submission date' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.createdOn | date: 'dd MMM yyyy' }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Query subject' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.subject }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Query body' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.body }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\" [class.govuk-table__header--no-border]=\"query.isHearingRelated\">\n {{ 'Is the query hearing related?' | rpxTranslate }}\n </th>\n <td class=\"govuk-table__cell\" [class.govuk-table__cell--no-border]=\"query.isHearingRelated\">\n {{ 'Is the query hearing related?' | rpxTranslate: null : (query.isHearingRelated) }}</td>\n </tr>\n <tr class=\"govuk-table__row govuk-table__row--isHearingRelated\" *ngIf=\"query.isHearingRelated === 'Yes'\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'What is the date of the hearing?' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.hearingDate | date: 'dd MMM yyyy' }}</td>\n </tr>\n <tr class=\"govuk-table__row\" *ngIf=\"query.attachments.length > 0\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Attachments' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">\n <ccd-query-attachments-read\n *ngIf=\"query.attachments\"\n [attachments]=\"query.attachments\"\n >\n </ccd-query-attachments-read>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <ng-container *ngIf=\"query.children?.length > 0\">\n <ng-container *ngFor=\"let child of query.children; let i = index;\">\n <ng-container *ngIf=\"i % 2 === 0; else followUpMessage\">\n <table class=\"govuk-table query-details-table\" [attr.aria-describedby]=\"'Response of the query' | rpxTranslate\">\n <caption class=\"govuk-table__caption govuk-table__caption--l\">\n <div>{{ 'Response' | rpxTranslate }}</div>\n </caption>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last response date' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.createdOn | date: 'dd MMM yyyy' }}</td>\n </tr>\n\n <tr *ngIf=\"isCaseworker()\" class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Caseworker name' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.name }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Response detail' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.body }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\" *ngIf=\"child.attachments.length > 0\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Attachments' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">\n <ccd-query-attachments-read\n *ngIf=\"child.attachments\"\n [attachments]=\"child.attachments\"\n >\n </ccd-query-attachments-read>\n </td>\n </tr>\n </tbody>\n </table>\n </ng-container>\n\n <ng-template #followUpMessage>\n <!-- <div class=\"query_details_caption\">{{ 'Follow-up' | rpxTranslate }}</div> -->\n <table class=\"govuk-table query-details-table\"\n [attr.aria-describedby]=\"'Follow-up of the response' | rpxTranslate\">\n <caption class=\"govuk-table__caption govuk-table__caption--l\">\n <div>{{ 'Follow up query' | rpxTranslate }}</div>\n </caption>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last submission date' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.createdOn | date: 'dd MMM yyyy' }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last submitted by' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.name }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Query detail' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.body }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\" *ngIf=\"child.attachments.length > 0\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Attachments' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">\n <ccd-query-attachments-read\n *ngIf=\"child.attachments\"\n [attachments]=\"child.attachments\"\n >\n </ccd-query-attachments-read>\n </td>\n </tr>\n </tbody>\n </table>\n </ng-template>\n </ng-container>\n </ng-container>\n</ng-container>\n", styles: [".query-details-table .govuk-table__header{width:330px}\n"] }]
|
|
20984
|
+
}], () => [{ type: SessionStorageService }, { type: i1$1.ActivatedRoute }, { type: i1$1.Router }], { query: [{
|
|
20910
20985
|
type: Input
|
|
20911
20986
|
}], backClicked: [{
|
|
20912
20987
|
type: Output
|
|
20913
20988
|
}], caseId: [{
|
|
20914
20989
|
type: Input
|
|
20990
|
+
}], hasResponded: [{
|
|
20991
|
+
type: Output
|
|
20992
|
+
}], totalNumberOfQueryChildren: [{
|
|
20993
|
+
type: Input
|
|
20915
20994
|
}] }); })();
|
|
20916
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryDetailsComponent, { className: "QueryDetailsComponent", filePath: "lib/shared/components/palette/query-management/components/query-details/query-details.component.ts", lineNumber:
|
|
20995
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryDetailsComponent, { className: "QueryDetailsComponent", filePath: "lib/shared/components/palette/query-management/components/query-details/query-details.component.ts", lineNumber: 11 }); })();
|
|
20917
20996
|
|
|
20918
20997
|
class QueryEventCompletionComponent {
|
|
20919
20998
|
eventCompletionParams;
|
|
@@ -21116,8 +21195,8 @@ class QueryWriteAddDocumentsComponent {
|
|
|
21116
21195
|
// This field is mocked to allow the document component to be used in isolation
|
|
21117
21196
|
this.mockDocumentCaseField = Object.assign(new CaseField(), {
|
|
21118
21197
|
id: QueryWriteAddDocumentsComponent.DOCUMENTS_FORM_CONTROL_NAME,
|
|
21119
|
-
label: this.label ? this.label : '
|
|
21120
|
-
hint_text: this.hintText ? this.hintText : '
|
|
21198
|
+
label: this.label ? this.label : 'Attach a document',
|
|
21199
|
+
hint_text: this.hintText ? this.hintText : 'Only attach documents related to your query. For all other documents use your case management document upload function.',
|
|
21121
21200
|
display_context: 'OPTIONAL',
|
|
21122
21201
|
display_context_parameter: '#COLLECTION(allowInsert,allowUpdate)',
|
|
21123
21202
|
field_type: Object.assign(new FieldType(), {
|
|
@@ -21505,8 +21584,8 @@ class QueryWriteRaiseQueryComponent {
|
|
|
21505
21584
|
}] }); })();
|
|
21506
21585
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryWriteRaiseQueryComponent, { className: "QueryWriteRaiseQueryComponent", filePath: "lib/shared/components/palette/query-management/components/query-write/query-write-raise-query/query-write-raise-query.component.ts", lineNumber: 8 }); })();
|
|
21507
21586
|
|
|
21508
|
-
function
|
|
21509
|
-
i0.ɵɵelementStart(0, "p",
|
|
21587
|
+
function QueryWriteRespondToQueryComponent_div_12_div_1_p_10_Template(rf, ctx) { if (rf & 1) {
|
|
21588
|
+
i0.ɵɵelementStart(0, "p", 16)(1, "span", 17);
|
|
21510
21589
|
i0.ɵɵtext(2);
|
|
21511
21590
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
21512
21591
|
i0.ɵɵelementEnd();
|
|
@@ -21514,66 +21593,123 @@ function QueryWriteRespondToQueryComponent_div_12_p_11_Template(rf, ctx) { if (r
|
|
|
21514
21593
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
21515
21594
|
i0.ɵɵelementEnd();
|
|
21516
21595
|
} if (rf & 2) {
|
|
21517
|
-
const ctx_r0 = i0.ɵɵnextContext(
|
|
21596
|
+
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
21518
21597
|
i0.ɵɵadvance(2);
|
|
21519
21598
|
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 2, "Error:"), " ");
|
|
21520
21599
|
i0.ɵɵadvance(2);
|
|
21521
21600
|
i0.ɵɵtextInterpolate1("", ctx_r0.queryCreateContext === ctx_r0.queryCreateContextEnum.RESPOND ? ctx_r0.raiseQueryErrorMessages.RESPOND_QUERY_BODY : i0.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessages.QUERY_BODY), " ");
|
|
21522
21601
|
} }
|
|
21523
|
-
function
|
|
21524
|
-
i0.ɵɵelementStart(0, "div"
|
|
21525
|
-
i0.ɵɵtext(
|
|
21526
|
-
i0.ɵɵpipe(
|
|
21602
|
+
function QueryWriteRespondToQueryComponent_div_12_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
21603
|
+
i0.ɵɵelementStart(0, "div")(1, "h1", 9);
|
|
21604
|
+
i0.ɵɵtext(2);
|
|
21605
|
+
i0.ɵɵpipe(3, "rpxTranslate");
|
|
21527
21606
|
i0.ɵɵelementEnd();
|
|
21528
|
-
i0.ɵɵelementStart(
|
|
21529
|
-
i0.ɵɵtext(
|
|
21530
|
-
i0.ɵɵpipe(
|
|
21607
|
+
i0.ɵɵelementStart(4, "div", 10)(5, "div", 11)(6, "div", 12)(7, "label", 13);
|
|
21608
|
+
i0.ɵɵtext(8);
|
|
21609
|
+
i0.ɵɵpipe(9, "rpxTranslate");
|
|
21531
21610
|
i0.ɵɵelementEnd()();
|
|
21532
|
-
i0.ɵɵtemplate(
|
|
21533
|
-
i0.ɵɵelementStart(
|
|
21534
|
-
i0.ɵɵtext(
|
|
21535
|
-
i0.ɵɵelementEnd()()()()
|
|
21611
|
+
i0.ɵɵtemplate(10, QueryWriteRespondToQueryComponent_div_12_div_1_p_10_Template, 6, 6, "p", 14);
|
|
21612
|
+
i0.ɵɵelementStart(11, "textarea", 15);
|
|
21613
|
+
i0.ɵɵtext(12, " ");
|
|
21614
|
+
i0.ɵɵelementEnd()()()();
|
|
21536
21615
|
} if (rf & 2) {
|
|
21537
|
-
let
|
|
21538
|
-
let tmp_5_0;
|
|
21616
|
+
let tmp_4_0;
|
|
21539
21617
|
let tmp_6_0;
|
|
21540
|
-
|
|
21541
|
-
i0.ɵɵ
|
|
21542
|
-
i0.ɵɵ
|
|
21618
|
+
let tmp_7_0;
|
|
21619
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
21620
|
+
i0.ɵɵadvance(2);
|
|
21621
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r0.queryCreateContext === ctx_r0.queryCreateContextEnum.RESPOND ? "Respond to a query" : i0.ɵɵpipeBind1(3, 9, "Ask a follow-up question"), " ");
|
|
21543
21622
|
i0.ɵɵadvance(2);
|
|
21544
21623
|
i0.ɵɵproperty("formGroup", ctx_r0.formGroup);
|
|
21545
21624
|
i0.ɵɵadvance();
|
|
21546
|
-
i0.ɵɵclassProp("govuk-form-group--error", ctx_r0.submitted && ((
|
|
21625
|
+
i0.ɵɵclassProp("govuk-form-group--error", ctx_r0.submitted && ((tmp_4_0 = ctx_r0.formGroup.get("body")) == null ? null : tmp_4_0.hasError("required")));
|
|
21547
21626
|
i0.ɵɵadvance(3);
|
|
21548
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r0.queryCreateContext === ctx_r0.queryCreateContextEnum.RESPOND ? "Response detail" : i0.ɵɵpipeBind1(
|
|
21627
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r0.queryCreateContext === ctx_r0.queryCreateContextEnum.RESPOND ? "Response detail" : i0.ɵɵpipeBind1(9, 11, "Query Body"), " ");
|
|
21549
21628
|
i0.ɵɵadvance(2);
|
|
21550
|
-
i0.ɵɵproperty("ngIf", ctx_r0.submitted && ((
|
|
21629
|
+
i0.ɵɵproperty("ngIf", ctx_r0.submitted && ((tmp_6_0 = ctx_r0.formGroup.get("body")) == null ? null : tmp_6_0.hasError("required")));
|
|
21551
21630
|
i0.ɵɵadvance();
|
|
21552
|
-
i0.ɵɵclassProp("govuk-textarea--error", ctx_r0.submitted && ((
|
|
21631
|
+
i0.ɵɵclassProp("govuk-textarea--error", ctx_r0.submitted && ((tmp_7_0 = ctx_r0.formGroup.get("body")) == null ? null : tmp_7_0.hasError("required")));
|
|
21553
21632
|
i0.ɵɵproperty("formControlName", "body");
|
|
21554
21633
|
} }
|
|
21634
|
+
function QueryWriteRespondToQueryComponent_div_12_Template(rf, ctx) { if (rf & 1) {
|
|
21635
|
+
i0.ɵɵelementStart(0, "div", 7);
|
|
21636
|
+
i0.ɵɵtemplate(1, QueryWriteRespondToQueryComponent_div_12_div_1_Template, 13, 13, "div", 8);
|
|
21637
|
+
i0.ɵɵelementEnd();
|
|
21638
|
+
} if (rf & 2) {
|
|
21639
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
21640
|
+
i0.ɵɵadvance();
|
|
21641
|
+
i0.ɵɵproperty("ngIf", !ctx_r0.hasRespondedToQuery);
|
|
21642
|
+
} }
|
|
21555
21643
|
class QueryWriteRespondToQueryComponent {
|
|
21556
21644
|
caseNotifier;
|
|
21645
|
+
route;
|
|
21557
21646
|
queryItem;
|
|
21558
21647
|
formGroup;
|
|
21559
21648
|
queryCreateContext;
|
|
21560
21649
|
submitted = false;
|
|
21650
|
+
caseQueriesCollections;
|
|
21561
21651
|
showForm;
|
|
21652
|
+
hasRespondedToQueryTask = new EventEmitter();
|
|
21562
21653
|
queryCreateContextEnum = QueryCreateContext;
|
|
21563
21654
|
raiseQueryErrorMessages = RaiseQueryErrorMessage;
|
|
21564
21655
|
caseId;
|
|
21656
|
+
queryItemId;
|
|
21565
21657
|
caseDetails;
|
|
21566
|
-
|
|
21658
|
+
totalNumberOfQueryChildren;
|
|
21659
|
+
queryItemDisplay;
|
|
21660
|
+
hasRespondedToQuery = false;
|
|
21661
|
+
static QUERY_ITEM_RESPOND = '3';
|
|
21662
|
+
static QUERY_ITEM_FOLLOWUP = '4';
|
|
21663
|
+
constructor(caseNotifier, route) {
|
|
21567
21664
|
this.caseNotifier = caseNotifier;
|
|
21665
|
+
this.route = route;
|
|
21568
21666
|
}
|
|
21569
21667
|
ngOnInit() {
|
|
21570
|
-
this.
|
|
21571
|
-
|
|
21572
|
-
|
|
21668
|
+
this.queryItemId = this.route.snapshot.params.qid;
|
|
21669
|
+
this.caseNotifier.caseView.pipe(take(1)).subscribe({
|
|
21670
|
+
next: (caseDetails) => {
|
|
21671
|
+
this.caseId = caseDetails?.case_id ?? '';
|
|
21672
|
+
this.caseDetails = caseDetails;
|
|
21673
|
+
},
|
|
21674
|
+
error: (err) => {
|
|
21675
|
+
console.error('Error retrieving case details:', err);
|
|
21676
|
+
}
|
|
21573
21677
|
});
|
|
21574
21678
|
}
|
|
21575
|
-
|
|
21576
|
-
|
|
21679
|
+
ngOnChanges() {
|
|
21680
|
+
if (this.queryItemId === QueryWriteRespondToQueryComponent.QUERY_ITEM_RESPOND
|
|
21681
|
+
&& this.caseQueriesCollections?.length > 0) {
|
|
21682
|
+
if (!this.caseQueriesCollections[0]) {
|
|
21683
|
+
console.error('caseQueriesCollections[0] is undefined!', this.caseQueriesCollections);
|
|
21684
|
+
return;
|
|
21685
|
+
}
|
|
21686
|
+
const numberOfQueryChildren = new QueryListData(this.caseQueriesCollections[0]);
|
|
21687
|
+
this.totalNumberOfQueryChildren = numberOfQueryChildren?.queries?.[0]?.children?.length || 0;
|
|
21688
|
+
const messageId = this.route.snapshot.params.dataid;
|
|
21689
|
+
if (!messageId) {
|
|
21690
|
+
console.warn('No messageId found in route params:', this.route.snapshot.params);
|
|
21691
|
+
return;
|
|
21692
|
+
}
|
|
21693
|
+
const filteredMessages = this.caseQueriesCollections
|
|
21694
|
+
.map((caseData) => caseData?.caseMessages || []) // Ensure caseMessages is always an array
|
|
21695
|
+
.flat() // Flatten into a single array of messages
|
|
21696
|
+
.filter((message) => message?.value?.id === messageId); // Safe access
|
|
21697
|
+
if (filteredMessages.length > 0) {
|
|
21698
|
+
const matchingMessage = filteredMessages[0]?.value;
|
|
21699
|
+
if (matchingMessage) {
|
|
21700
|
+
this.queryItemDisplay = new QueryListItem();
|
|
21701
|
+
Object.assign(this.queryItemDisplay, matchingMessage);
|
|
21702
|
+
this.queryItem = this.queryItemDisplay;
|
|
21703
|
+
}
|
|
21704
|
+
}
|
|
21705
|
+
}
|
|
21706
|
+
}
|
|
21707
|
+
hasResponded(value) {
|
|
21708
|
+
this.hasRespondedToQuery = value;
|
|
21709
|
+
this.hasRespondedToQueryTask.emit(value);
|
|
21710
|
+
}
|
|
21711
|
+
static ɵfac = function QueryWriteRespondToQueryComponent_Factory(t) { return new (t || QueryWriteRespondToQueryComponent)(i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute)); };
|
|
21712
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryWriteRespondToQueryComponent, selectors: [["ccd-query-write-respond-to-query"]], inputs: { queryItem: "queryItem", formGroup: "formGroup", queryCreateContext: "queryCreateContext", submitted: "submitted", caseQueriesCollections: "caseQueriesCollections", showForm: "showForm" }, outputs: { hasRespondedToQueryTask: "hasRespondedToQueryTask" }, features: [i0.ɵɵNgOnChangesFeature], decls: 13, vars: 10, consts: [[1, "govuk-!-margin-bottom-6"], [1, "govuk-caption-l"], [1, "govuk-heading-l", "govuk-!-margin-bottom-0"], [1, "govuk-!-margin-bottom-4"], [3, "caseDetails"], [3, "hasResponded", "query", "totalNumberOfQueryChildren"], ["class", "query-respond", 4, "ngIf"], [1, "query-respond"], [4, "ngIf"], [1, "govuk-heading-m"], [3, "formGroup"], [1, "govuk-form-group", "body-textarea"], [1, "govuk-label-wrapper"], ["for", "body", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "body-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "body", "name", "body", "rows", "5", "aria-describedby", "body-hint body-error", 1, "govuk-textarea", 3, "formControlName"], ["id", "body-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"]], template: function QueryWriteRespondToQueryComponent_Template(rf, ctx) { if (rf & 1) {
|
|
21577
21713
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 0)(2, "div", 1);
|
|
21578
21714
|
i0.ɵɵtext(3);
|
|
21579
21715
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
@@ -21585,27 +21721,27 @@ class QueryWriteRespondToQueryComponent {
|
|
|
21585
21721
|
i0.ɵɵelementStart(8, "div", 3);
|
|
21586
21722
|
i0.ɵɵelement(9, "ccd-query-case-details-header", 4);
|
|
21587
21723
|
i0.ɵɵelementEnd();
|
|
21588
|
-
i0.ɵɵelementStart(10, "div");
|
|
21589
|
-
i0.ɵɵ
|
|
21590
|
-
i0.ɵɵelementEnd()();
|
|
21591
|
-
i0.ɵɵtemplate(12, QueryWriteRespondToQueryComponent_div_12_Template,
|
|
21724
|
+
i0.ɵɵelementStart(10, "div")(11, "ccd-query-details", 5);
|
|
21725
|
+
i0.ɵɵlistener("hasResponded", function QueryWriteRespondToQueryComponent_Template_ccd_query_details_hasResponded_11_listener($event) { return ctx.hasResponded($event); });
|
|
21726
|
+
i0.ɵɵelementEnd()()();
|
|
21727
|
+
i0.ɵɵtemplate(12, QueryWriteRespondToQueryComponent_div_12_Template, 2, 1, "div", 6);
|
|
21592
21728
|
} if (rf & 2) {
|
|
21593
21729
|
i0.ɵɵadvance(3);
|
|
21594
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4,
|
|
21730
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 6, "Respond to a query"));
|
|
21595
21731
|
i0.ɵɵadvance(3);
|
|
21596
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7,
|
|
21732
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 8, "Query details"));
|
|
21597
21733
|
i0.ɵɵadvance(3);
|
|
21598
21734
|
i0.ɵɵproperty("caseDetails", ctx.caseDetails);
|
|
21599
21735
|
i0.ɵɵadvance(2);
|
|
21600
|
-
i0.ɵɵproperty("query", ctx.queryItem);
|
|
21736
|
+
i0.ɵɵproperty("query", ctx.queryItem)("totalNumberOfQueryChildren", ctx.totalNumberOfQueryChildren);
|
|
21601
21737
|
i0.ɵɵadvance();
|
|
21602
21738
|
i0.ɵɵproperty("ngIf", ctx.showForm);
|
|
21603
21739
|
} }, styles: [".query-respond[_ngcontent-%COMP%]{width:100%;max-width:720px}"] });
|
|
21604
21740
|
}
|
|
21605
21741
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryWriteRespondToQueryComponent, [{
|
|
21606
21742
|
type: Component,
|
|
21607
|
-
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
|
|
21608
|
-
}], () => [{ type: CaseNotifier }], { queryItem: [{
|
|
21743
|
+
args: [{ selector: 'ccd-query-write-respond-to-query', template: "<div class=\"govuk-!-margin-bottom-6\">\n <div class=\"govuk-!-margin-bottom-6\">\n <div class=\"govuk-caption-l\">{{ 'Respond to a query' | rpxTranslate }}</div>\n <h1 class=\"govuk-heading-l govuk-!-margin-bottom-0\">{{ 'Query details' | rpxTranslate }}</h1>\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <ccd-query-case-details-header [caseDetails]=\"caseDetails\"></ccd-query-case-details-header>\n </div>\n\n <div>\n <ccd-query-details [query]=\"queryItem\"\n [totalNumberOfQueryChildren]=\"totalNumberOfQueryChildren\"\n (hasResponded)=\"hasResponded($event)\"></ccd-query-details>\n </div>\n</div>\n<div class=\"query-respond\" *ngIf=\"showForm\">\n <div *ngIf=\"!hasRespondedToQuery\">\n <h1 class=\"govuk-heading-m\">\n {{ queryCreateContext === queryCreateContextEnum.RESPOND ? 'Respond to a query' : 'Ask a follow-up question' | rpxTranslate }}\n </h1>\n\n <div [formGroup]=\"formGroup\">\n <div class=\"govuk-form-group body-textarea\"\n [class.govuk-form-group--error]=\"submitted && formGroup.get('body')?.hasError('required')\">\n <div class=\"govuk-label-wrapper\">\n <label class=\"govuk-label govuk-label--m govuk-!-font-weight-bold\" for=\"body\">\n {{ queryCreateContext === queryCreateContextEnum.RESPOND ? 'Response detail' : 'Query Body' | rpxTranslate }}\n </label>\n </div>\n <p id=\"body-error\" class=\"govuk-error-message\"\n *ngIf=\"submitted && formGroup.get('body')?.hasError('required')\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }} </span>{{ queryCreateContext === queryCreateContextEnum.RESPOND ? raiseQueryErrorMessages.RESPOND_QUERY_BODY : raiseQueryErrorMessages.QUERY_BODY | rpxTranslate }}\n </p>\n <textarea [formControlName]=\"'body'\" class=\"govuk-textarea\"\n [class.govuk-textarea--error]=\"submitted && formGroup.get('body')?.hasError('required')\" id=\"body\"\n name=\"body\" rows=\"5\" aria-describedby=\"body-hint body-error\">\n </textarea>\n </div>\n </div>\n </div>\n</div>\n", styles: [".query-respond{width:100%;max-width:720px}\n"] }]
|
|
21744
|
+
}], () => [{ type: CaseNotifier }, { type: i1$1.ActivatedRoute }], { queryItem: [{
|
|
21609
21745
|
type: Input
|
|
21610
21746
|
}], formGroup: [{
|
|
21611
21747
|
type: Input
|
|
@@ -21613,8 +21749,12 @@ class QueryWriteRespondToQueryComponent {
|
|
|
21613
21749
|
type: Input
|
|
21614
21750
|
}], submitted: [{
|
|
21615
21751
|
type: Input
|
|
21752
|
+
}], caseQueriesCollections: [{
|
|
21753
|
+
type: Input
|
|
21616
21754
|
}], showForm: [{
|
|
21617
21755
|
type: Input
|
|
21756
|
+
}], hasRespondedToQueryTask: [{
|
|
21757
|
+
type: Output
|
|
21618
21758
|
}] }); })();
|
|
21619
21759
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryWriteRespondToQueryComponent, { className: "QueryWriteRespondToQueryComponent", filePath: "lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.ts", lineNumber: 14 }); })();
|
|
21620
21760
|
|
|
@@ -21745,7 +21885,6 @@ class QueryConfirmationComponent {
|
|
|
21745
21885
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryConfirmationComponent, { className: "QueryConfirmationComponent", filePath: "lib/shared/components/palette/query-management/components/query-confirmation/query-confirmation.component.ts", lineNumber: 9 }); })();
|
|
21746
21886
|
|
|
21747
21887
|
const _c0$B = (a0, a1) => ["/query-management", "query", a0, "4", a1];
|
|
21748
|
-
const _c1$e = (a0, a1) => ["/query-management", "query", a0, "3", a1];
|
|
21749
21888
|
function ReadQueryManagementFieldComponent_ng_container_0_ng_container_1_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
21750
21889
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
21751
21890
|
i0.ɵɵelementStart(0, "div", 5)(1, "ccd-query-list", 6);
|
|
@@ -21813,33 +21952,17 @@ function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_Template
|
|
|
21813
21952
|
i0.ɵɵadvance();
|
|
21814
21953
|
i0.ɵɵproperty("ngIf", (ctx_r1.query == null ? null : ctx_r1.query.children == null ? null : ctx_r1.query.children.length) > 0 && (ctx_r1.query == null ? null : ctx_r1.query.children == null ? null : ctx_r1.query.children.length) % 2 === 1)("ngIfElse", queryIsInReview_r5);
|
|
21815
21954
|
} }
|
|
21816
|
-
function ReadQueryManagementFieldComponent_ng_template_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
21817
|
-
i0.ɵɵelementContainerStart(0);
|
|
21818
|
-
i0.ɵɵelementStart(1, "button", 9);
|
|
21819
|
-
i0.ɵɵtext(2);
|
|
21820
|
-
i0.ɵɵpipe(3, "rpxTranslate");
|
|
21821
|
-
i0.ɵɵelementEnd();
|
|
21822
|
-
i0.ɵɵelementContainerEnd();
|
|
21823
|
-
} if (rf & 2) {
|
|
21824
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
21825
|
-
i0.ɵɵadvance();
|
|
21826
|
-
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction2(4, _c1$e, ctx_r1.caseId, ctx_r1.query.id));
|
|
21827
|
-
i0.ɵɵadvance();
|
|
21828
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2, "Respond to a query"), " ");
|
|
21829
|
-
} }
|
|
21830
21955
|
function ReadQueryManagementFieldComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
21831
21956
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
21832
21957
|
i0.ɵɵelementStart(0, "ccd-query-details", 7);
|
|
21833
21958
|
i0.ɵɵlistener("backClicked", function ReadQueryManagementFieldComponent_ng_template_1_Template_ccd_query_details_backClicked_0_listener() { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.showQueryList = true); });
|
|
21834
21959
|
i0.ɵɵelementEnd();
|
|
21835
|
-
i0.ɵɵtemplate(1, ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_Template, 4, 2, "ng-container", 8)
|
|
21960
|
+
i0.ɵɵtemplate(1, ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_Template, 4, 2, "ng-container", 8);
|
|
21836
21961
|
} if (rf & 2) {
|
|
21837
21962
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
21838
21963
|
i0.ɵɵproperty("query", ctx_r1.query)("caseId", ctx_r1.caseId);
|
|
21839
21964
|
i0.ɵɵadvance();
|
|
21840
21965
|
i0.ɵɵproperty("ngIf", !ctx_r1.isCaseworker());
|
|
21841
|
-
i0.ɵɵadvance();
|
|
21842
|
-
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);
|
|
21843
21966
|
} }
|
|
21844
21967
|
class ReadQueryManagementFieldComponent extends AbstractFieldReadComponent {
|
|
21845
21968
|
route;
|
|
@@ -21898,7 +22021,7 @@ class ReadQueryManagementFieldComponent extends AbstractFieldReadComponent {
|
|
|
21898
22021
|
}
|
|
21899
22022
|
static ɵfac = function ReadQueryManagementFieldComponent_Factory(t) { return new (t || ReadQueryManagementFieldComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(CaseNotifier)); };
|
|
21900
22023
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadQueryManagementFieldComponent, selectors: [["ccd-read-query-management-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 2, consts: [["singleQueryDetails", ""], ["queryIsInReview", ""], [4, "ngIf", "ngIfElse"], [4, "ngFor", "ngForOf"], ["class", "govuk-!-margin-top-8 govuk-!-margin-bottom-8", 4, "ngIf"], [1, "govuk-!-margin-top-8", "govuk-!-margin-bottom-8"], [3, "selectedQuery", "caseQueriesCollection"], [3, "backClicked", "query", "caseId"], [4, "ngIf"], ["id", "ask-follow-up-question", "data-module", "govuk-button", 1, "govuk-button", 3, "routerLink"], [1, "govuk-!-font-weight-bold"]], template: function ReadQueryManagementFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
21901
|
-
i0.ɵɵtemplate(0, ReadQueryManagementFieldComponent_ng_container_0_Template, 2, 1, "ng-container", 2)(1, ReadQueryManagementFieldComponent_ng_template_1_Template,
|
|
22024
|
+
i0.ɵɵtemplate(0, ReadQueryManagementFieldComponent_ng_container_0_Template, 2, 1, "ng-container", 2)(1, ReadQueryManagementFieldComponent_ng_template_1_Template, 2, 3, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
21902
22025
|
} if (rf & 2) {
|
|
21903
22026
|
const singleQueryDetails_r6 = i0.ɵɵreference(2);
|
|
21904
22027
|
i0.ɵɵproperty("ngIf", ctx.showQueryList)("ngIfElse", singleQueryDetails_r6);
|
|
@@ -21906,7 +22029,7 @@ class ReadQueryManagementFieldComponent extends AbstractFieldReadComponent {
|
|
|
21906
22029
|
}
|
|
21907
22030
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadQueryManagementFieldComponent, [{
|
|
21908
22031
|
type: Component,
|
|
21909
|
-
args: [{ selector: 'ccd-read-query-management-field', template: "<ng-container *ngIf=\"showQueryList; else singleQueryDetails\">\n <ng-container *ngFor=\"let caseQueriesCollection of caseQueriesCollections\">\n <div *ngIf=\"showQueryList\" class=\"govuk-!-margin-top-8 govuk-!-margin-bottom-8\">\n <ccd-query-list (selectedQuery)=\"setQuery($event)\" [caseQueriesCollection]=\"caseQueriesCollection\"></ccd-query-list>\n </div>\n </ng-container>\n</ng-container>\n\n<ng-template #singleQueryDetails>\n <ccd-query-details\n [query]=\"query\"\n (backClicked)=\"showQueryList = true\"\n [caseId]=\"caseId\"\n ></ccd-query-details>\n\n <ng-container *ngIf=\"!isCaseworker()\">\n <ng-container *ngIf=\"query?.children?.length > 0 && query?.children?.length % 2 === 1; else queryIsInReview\">\n <button id=\"ask-follow-up-question\" class=\"govuk-button\" data-module=\"govuk-button\"\n [routerLink]=\"['/query-management', 'query', caseId, '4', query.id]\">\n {{ 'Ask a follow-up question' | rpxTranslate }}\n </button>\n </ng-container>\n\n <ng-template #queryIsInReview>\n <div>\n <p class=\"govuk-!-font-weight-bold\">{{ 'Your query is under review' | rpxTranslate }}</p>\n <p>{{ 'Our team will read your query and will respond. Do not submit the same query more than once.' | rpxTranslate }}</p>\n </div>\n </ng-template>\n </ng-container>\n
|
|
22032
|
+
args: [{ selector: 'ccd-read-query-management-field', template: "<ng-container *ngIf=\"showQueryList; else singleQueryDetails\">\n <ng-container *ngFor=\"let caseQueriesCollection of caseQueriesCollections\">\n <div *ngIf=\"showQueryList\" class=\"govuk-!-margin-top-8 govuk-!-margin-bottom-8\">\n <ccd-query-list (selectedQuery)=\"setQuery($event)\" [caseQueriesCollection]=\"caseQueriesCollection\"></ccd-query-list>\n </div>\n </ng-container>\n</ng-container>\n\n<ng-template #singleQueryDetails>\n <ccd-query-details\n [query]=\"query\"\n (backClicked)=\"showQueryList = true\"\n [caseId]=\"caseId\"\n ></ccd-query-details>\n\n <ng-container *ngIf=\"!isCaseworker()\">\n <ng-container *ngIf=\"query?.children?.length > 0 && query?.children?.length % 2 === 1; else queryIsInReview\">\n <button id=\"ask-follow-up-question\" class=\"govuk-button\" data-module=\"govuk-button\"\n [routerLink]=\"['/query-management', 'query', caseId, '4', query.id]\">\n {{ 'Ask a follow-up question' | rpxTranslate }}\n </button>\n </ng-container>\n\n <ng-template #queryIsInReview>\n <div>\n <p class=\"govuk-!-font-weight-bold\">{{ 'Your query is under review' | rpxTranslate }}</p>\n <p>{{ 'Our team will read your query and will respond. Do not submit the same query more than once.' | rpxTranslate }}</p>\n </div>\n </ng-template>\n </ng-container>\n</ng-template>\n" }]
|
|
21910
22033
|
}], () => [{ type: i1$1.ActivatedRoute }, { type: SessionStorageService }, { type: CaseNotifier }], null); })();
|
|
21911
22034
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadQueryManagementFieldComponent, { className: "ReadQueryManagementFieldComponent", filePath: "lib/shared/components/palette/query-management/read-query-management-field.component.ts", lineNumber: 14 }); })();
|
|
21912
22035
|
|
|
@@ -27662,7 +27785,7 @@ class EventLogTableComponent {
|
|
|
27662
27785
|
|
|
27663
27786
|
function EventLogComponent_ccd_event_log_table_3_Template(rf, ctx) { if (rf & 1) {
|
|
27664
27787
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
27665
|
-
i0.ɵɵelementStart(0, "ccd-event-log-table",
|
|
27788
|
+
i0.ɵɵelementStart(0, "ccd-event-log-table", 8);
|
|
27666
27789
|
i0.ɵɵlistener("onSelect", function EventLogComponent_ccd_event_log_table_3_Template_ccd_event_log_table_onSelect_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.select($event)); })("onCaseHistory", function EventLogComponent_ccd_event_log_table_3_Template_ccd_event_log_table_onCaseHistory_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.caseHistoryClicked($event)); });
|
|
27667
27790
|
i0.ɵɵelementEnd();
|
|
27668
27791
|
} if (rf & 2) {
|
|
@@ -27671,7 +27794,7 @@ function EventLogComponent_ccd_event_log_table_3_Template(rf, ctx) { if (rf & 1)
|
|
|
27671
27794
|
} }
|
|
27672
27795
|
function EventLogComponent_ccd_event_log_table_4_Template(rf, ctx) { if (rf & 1) {
|
|
27673
27796
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
27674
|
-
i0.ɵɵelementStart(0, "ccd-event-log-table",
|
|
27797
|
+
i0.ɵɵelementStart(0, "ccd-event-log-table", 9);
|
|
27675
27798
|
i0.ɵɵlistener("onSelect", function EventLogComponent_ccd_event_log_table_4_Template_ccd_event_log_table_onSelect_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.select($event)); });
|
|
27676
27799
|
i0.ɵɵelementEnd();
|
|
27677
27800
|
} if (rf & 2) {
|
|
@@ -27679,7 +27802,7 @@ function EventLogComponent_ccd_event_log_table_4_Template(rf, ctx) { if (rf & 1)
|
|
|
27679
27802
|
i0.ɵɵproperty("events", ctx_r1.events)("selected", ctx_r1.selected);
|
|
27680
27803
|
} }
|
|
27681
27804
|
function EventLogComponent_ccd_event_log_details_7_Template(rf, ctx) { if (rf & 1) {
|
|
27682
|
-
i0.ɵɵelement(0, "ccd-event-log-details",
|
|
27805
|
+
i0.ɵɵelement(0, "ccd-event-log-details", 10);
|
|
27683
27806
|
} if (rf & 2) {
|
|
27684
27807
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
27685
27808
|
i0.ɵɵproperty("event", ctx_r1.selected);
|
|
@@ -27700,14 +27823,14 @@ class EventLogComponent {
|
|
|
27700
27823
|
this.onCaseHistory.emit(eventId);
|
|
27701
27824
|
}
|
|
27702
27825
|
static ɵfac = function EventLogComponent_Factory(t) { return new (t || EventLogComponent)(); };
|
|
27703
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EventLogComponent, selectors: [["ccd-event-log"]], inputs: { events: "events" }, outputs: { onCaseHistory: "onCaseHistory" }, decls: 8, vars: 4, consts: [[1, "grid-row"], [1, "column-one-half"], [3, "ngSwitch"], [3, "events", "selected", "onSelect", "onCaseHistory", 4, "ngSwitchCase"], [3, "events", "selected", "onSelect", 4, "ngSwitchCase"], [1, "EventLog-DetailsPanel"], [3, "event", 4, "ngIf"], [3, "onSelect", "onCaseHistory", "events", "selected"], [3, "onSelect", "events", "selected"], [3, "event"]], template: function EventLogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
27826
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EventLogComponent, selectors: [["ccd-event-log"]], inputs: { events: "events" }, outputs: { onCaseHistory: "onCaseHistory" }, decls: 8, vars: 4, consts: [[1, "grid-row"], [1, "column-one-half", "scrollbar"], [3, "ngSwitch"], [3, "events", "selected", "onSelect", "onCaseHistory", 4, "ngSwitchCase"], [3, "events", "selected", "onSelect", 4, "ngSwitchCase"], [1, "column-one-half"], [1, "EventLog-DetailsPanel"], [3, "event", 4, "ngIf"], [3, "onSelect", "onCaseHistory", "events", "selected"], [3, "onSelect", "events", "selected"], [3, "event"]], template: function EventLogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
27704
27827
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
|
|
27705
27828
|
i0.ɵɵelementContainerStart(2, 2);
|
|
27706
27829
|
i0.ɵɵtemplate(3, EventLogComponent_ccd_event_log_table_3_Template, 1, 2, "ccd-event-log-table", 3)(4, EventLogComponent_ccd_event_log_table_4_Template, 1, 2, "ccd-event-log-table", 4);
|
|
27707
27830
|
i0.ɵɵelementContainerEnd();
|
|
27708
27831
|
i0.ɵɵelementEnd();
|
|
27709
|
-
i0.ɵɵelementStart(5, "div",
|
|
27710
|
-
i0.ɵɵtemplate(7, EventLogComponent_ccd_event_log_details_7_Template, 1, 1, "ccd-event-log-details",
|
|
27832
|
+
i0.ɵɵelementStart(5, "div", 5)(6, "div", 6);
|
|
27833
|
+
i0.ɵɵtemplate(7, EventLogComponent_ccd_event_log_details_7_Template, 1, 1, "ccd-event-log-details", 7);
|
|
27711
27834
|
i0.ɵɵelementEnd()()();
|
|
27712
27835
|
} if (rf & 2) {
|
|
27713
27836
|
i0.ɵɵadvance(2);
|
|
@@ -27718,11 +27841,11 @@ class EventLogComponent {
|
|
|
27718
27841
|
i0.ɵɵproperty("ngSwitchCase", false);
|
|
27719
27842
|
i0.ɵɵadvance(3);
|
|
27720
27843
|
i0.ɵɵproperty("ngIf", ctx.selected);
|
|
27721
|
-
} }, styles: ["@media (max-width: 991px){[class*=col-md][_ngcontent-%COMP%]{margin-bottom:30px}}.EventLog-DetailsPanel[_ngcontent-%COMP%]{border:1px solid #bfc1c3;padding:0 10px 10px;margin-top:20px}"] });
|
|
27844
|
+
} }, styles: ["@media (max-width: 991px){[class*=col-md][_ngcontent-%COMP%]{margin-bottom:30px}}.column-half[_ngcontent-%COMP%], .column-one-half[_ngcontent-%COMP%]{float:left;width:50%}@media (min-width: 641px){.scrollbar[_ngcontent-%COMP%]{height:70vh;overflow-y:auto}}.EventLog-DetailsPanel[_ngcontent-%COMP%]{border:1px solid #bfc1c3;padding:0 10px 10px;margin-top:20px}"] });
|
|
27722
27845
|
}
|
|
27723
27846
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EventLogComponent, [{
|
|
27724
27847
|
type: Component,
|
|
27725
|
-
args: [{ selector: 'ccd-event-log', template: "<div class=\"grid-row\">\n <div class=\"column-one-half\">\n <ng-container [ngSwitch]=\"isPartOfCaseTimeline\">\n <ccd-event-log-table
|
|
27848
|
+
args: [{ selector: 'ccd-event-log', template: "<div class=\"grid-row\">\n <div class=\"column-one-half scrollbar\">\n <ng-container [ngSwitch]=\"isPartOfCaseTimeline\">\n <ccd-event-log-table\n *ngSwitchCase=\"true\"\n [events]=\"events\"\n [selected]=\"selected\"\n (onSelect)=\"select($event)\"\n (onCaseHistory)=\"caseHistoryClicked($event)\"\n ></ccd-event-log-table>\n <ccd-event-log-table\n *ngSwitchCase=\"false\"\n [events]=\"events\"\n [selected]=\"selected\"\n (onSelect)=\"select($event)\"\n ></ccd-event-log-table>\n </ng-container>\n </div>\n <div class=\"column-one-half\">\n <div class=\"EventLog-DetailsPanel\">\n <ccd-event-log-details\n *ngIf=\"selected\"\n [event]=\"selected\"\n ></ccd-event-log-details>\n </div>\n </div>\n</div>\n", styles: ["@media (max-width: 991px){[class*=col-md]{margin-bottom:30px}}.column-half,.column-one-half{float:left;width:50%}@media (min-width: 641px){.scrollbar{height:70vh;overflow-y:auto}}.EventLog-DetailsPanel{border:1px solid #bfc1c3;padding:0 10px 10px;margin-top:20px}\n"] }]
|
|
27726
27849
|
}], null, { events: [{
|
|
27727
27850
|
type: Input
|
|
27728
27851
|
}], onCaseHistory: [{
|
|
@@ -29269,7 +29392,7 @@ i0.ɵɵsetComponentScope(
|
|
|
29269
29392
|
// Components for Query Management
|
|
29270
29393
|
ReadQueryManagementFieldComponent, function () { return [i5.NgForOf, i5.NgIf, i1$1.RouterLink, QueryDetailsComponent,
|
|
29271
29394
|
QueryListComponent]; }, function () { return [i1.RpxTranslatePipe]; });
|
|
29272
|
-
i0.ɵɵsetComponentScope(QueryDetailsComponent, function () { return [i5.NgForOf, i5.NgIf, QueryAttachmentsReadComponent]; }, function () { return [i5.DatePipe, i1.RpxTranslatePipe]; });
|
|
29395
|
+
i0.ɵɵsetComponentScope(QueryDetailsComponent, function () { return [i5.NgForOf, i5.NgIf, AlertComponent, QueryAttachmentsReadComponent]; }, function () { return [i5.DatePipe, i1.RpxTranslatePipe]; });
|
|
29273
29396
|
i0.ɵɵsetComponentScope(QueryWriteRespondToQueryComponent, function () { return [i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, QueryDetailsComponent,
|
|
29274
29397
|
QueryCaseDetailsHeaderComponent]; }, function () { return [i1.RpxTranslatePipe]; });
|
|
29275
29398
|
i0.ɵɵsetComponentScope(QueryWriteRaiseQueryComponent, function () { return [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.RadioControlValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, QueryCaseDetailsHeaderComponent,
|
|
@@ -30569,7 +30692,7 @@ class PaginationComponent {
|
|
|
30569
30692
|
this.pResponsive = coerceToBoolean(value);
|
|
30570
30693
|
}
|
|
30571
30694
|
static ɵfac = function PaginationComponent_Factory(t) { return new (t || PaginationComponent)(); };
|
|
30572
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PaginationComponent, selectors: [["ccd-pagination"]], inputs: { visibilityLabel: "visibilityLabel", id: "id", maxSize: "maxSize", previousLabel: "previousLabel", nextLabel: "nextLabel", screenReaderPaginationLabel: "screenReaderPaginationLabel", screenReaderPageLabel: "screenReaderPageLabel", screenReaderCurrentLabel: "screenReaderCurrentLabel", directionLinks: "directionLinks", autoHide: "autoHide", responsive: "responsive" }, outputs: { pageChange: "pageChange", pageBoundsCorrection: "pageBoundsCorrection" }, decls: 5, vars: 6, consts: [["p", "paginationApi"], [3, "pageChange", "pageBoundsCorrection", "id", "maxSize"], ["role", "navigation"], ["class", "ngx-pagination",
|
|
30695
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PaginationComponent, selectors: [["ccd-pagination"]], inputs: { visibilityLabel: "visibilityLabel", id: "id", maxSize: "maxSize", previousLabel: "previousLabel", nextLabel: "nextLabel", screenReaderPaginationLabel: "screenReaderPaginationLabel", screenReaderPageLabel: "screenReaderPageLabel", screenReaderCurrentLabel: "screenReaderCurrentLabel", directionLinks: "directionLinks", autoHide: "autoHide", responsive: "responsive" }, outputs: { pageChange: "pageChange", pageBoundsCorrection: "pageBoundsCorrection" }, decls: 5, vars: 6, consts: [["p", "paginationApi"], [3, "pageChange", "pageBoundsCorrection", "id", "maxSize"], ["role", "navigation"], ["class", "ngx-pagination", 3, "responsive", 4, "ngIf"], [1, "ngx-pagination"], ["class", "pagination-previous", 3, "disabled", 4, "ngIf"], [1, "small-screen"], [3, "current", "ellipsis", 4, "ngFor", "ngForOf"], ["class", "pagination-next", 3, "disabled", 4, "ngIf"], [1, "pagination-previous"], ["tabindex", "0", 3, "keyup.enter", "click", 4, "ngIf"], [4, "ngIf"], ["tabindex", "0", 3, "keyup.enter", "click"], [1, "show-for-sr"], [1, "pagination-next"]], template: function PaginationComponent_Template(rf, ctx) { if (rf & 1) {
|
|
30573
30696
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
30574
30697
|
i0.ɵɵelementStart(0, "pagination-template", 1, 0);
|
|
30575
30698
|
i0.ɵɵlistener("pageChange", function PaginationComponent_Template_pagination_template_pageChange_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.pageChange.emit($event)); })("pageBoundsCorrection", function PaginationComponent_Template_pagination_template_pageBoundsCorrection_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.pageBoundsCorrection.emit($event)); });
|
|
@@ -30588,7 +30711,7 @@ class PaginationComponent {
|
|
|
30588
30711
|
}
|
|
30589
30712
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginationComponent, [{
|
|
30590
30713
|
type: Component,
|
|
30591
|
-
args: [{ selector: 'ccd-pagination', template: "<pagination-template #p=\"paginationApi\" [id]=\"id\" [maxSize]=\"maxSize\" (pageChange)=\"pageChange.emit($event)\"\n (pageBoundsCorrection)=\"pageBoundsCorrection.emit($event)\">\n <nav role=\"navigation\" [attr.aria-label]=\"'Pagination' | rpxTranslate\">\n <ul class=\"ngx-pagination\"
|
|
30714
|
+
args: [{ selector: 'ccd-pagination', template: "<pagination-template #p=\"paginationApi\" [id]=\"id\" [maxSize]=\"maxSize\" (pageChange)=\"pageChange.emit($event)\"\n (pageBoundsCorrection)=\"pageBoundsCorrection.emit($event)\">\n <nav role=\"navigation\" [attr.aria-label]=\"'Pagination' | rpxTranslate\">\n <ul class=\"ngx-pagination\" [attr.aria-label]=\"screenReaderPaginationLabel | rpxTranslate\"\n [class.responsive]=\"responsive\" *ngIf=\"!(autoHide && p.pages.length <= 1)\">\n <li class=\"pagination-previous\" [class.disabled]=\"p.isFirstPage()\" *ngIf=\"directionLinks\">\n <a tabindex=\"0\" *ngIf=\"1 < p.getCurrent()\" (keyup.enter)=\"p.previous()\" (click)=\"p.previous()\"\n [attr.aria-label]=\"previousLabel + ' ' + screenReaderPageLabel | rpxTranslate\">\n {{ previousLabel | rpxTranslate }} <span class=\"show-for-sr\">{{ screenReaderPageLabel | rpxTranslate }}</span>\n </a>\n <span *ngIf=\"p.isFirstPage()\">\n {{ previousLabel | rpxTranslate }} <span class=\"show-for-sr\">{{ screenReaderPageLabel | rpxTranslate }}</span>\n </span>\n </li>\n <li class=\"small-screen\">\n {{ p.getCurrent() }} / {{ p.getLastPage() }}\n </li>\n <li [class.current]=\"p.getCurrent() === page.value\" [class.ellipsis]=\"page.label === '...'\"\n *ngFor=\"let page of p.pages\">\n <a tabindex=\"0\" (keyup.enter)=\"p.setCurrent(page.value)\" (click)=\"p.setCurrent(page.value)\"\n *ngIf=\"p.getCurrent() !== page.value\">\n <span class=\"show-for-sr\">{{ screenReaderPageLabel | rpxTranslate }} </span>\n <span>{{ (page.label === '...') ? page.label : (page.label | number:'') }}</span>\n </a>\n <ng-container *ngIf=\"p.getCurrent() === page.value\">\n <span class=\"show-for-sr\">{{ screenReaderCurrentLabel | rpxTranslate }} </span>\n <span>{{ (page.label === '...') ? page.label : (page.label | number:'') }}</span>\n </ng-container>\n </li>\n <li class=\"pagination-next\" [class.disabled]=\"p.isLastPage()\" *ngIf=\"directionLinks\">\n <a tabindex=\"0\" *ngIf=\"!p.isLastPage()\" (keyup.enter)=\"p.next()\" (click)=\"p.next()\"\n [attr.aria-label]=\"nextLabel + ' ' + screenReaderPageLabel | rpxTranslate\">\n {{ nextLabel | rpxTranslate }} <span class=\"show-for-sr\">{{ screenReaderPageLabel | rpxTranslate }}</span>\n </a>\n <span *ngIf=\"p.isLastPage()\">\n {{ nextLabel | rpxTranslate }} <span class=\"show-for-sr\">{{ screenReaderPageLabel | rpxTranslate }}</span>\n </span>\n </li>\n </ul>\n </nav>\n</pagination-template>\n", styles: [".ngx-pagination{margin-left:0;margin-bottom:1rem;padding-top:25px;text-decoration:none;text-align:left;font-size:16px}.ngx-pagination:before,.ngx-pagination:after{content:\" \";display:table}.ngx-pagination:after{clear:both}.ngx-pagination li{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;margin-right:.0625rem;border-radius:0}.ngx-pagination li{display:inline-block}.ngx-pagination a,.ngx-pagination button{display:block;padding:.1875rem .625rem;border-radius:0;color:#005da6}.ngx-pagination a:hover,.ngx-pagination button:hover{background:#e6e6e6}.ngx-pagination .current{padding:.1875rem .625rem;background:#fff;color:#4c2c92;cursor:default;font-weight:900}.ngx-pagination .disabled{display:none}.ngx-pagination .disabled:hover{background:transparent}.ngx-pagination a,.ngx-pagination button{cursor:pointer}.ngx-pagination .pagination-previous a:before,.ngx-pagination .pagination-previous.disabled:before{margin-right:.5rem;display:inline-block;height:10px;width:10px;border-style:solid;color:#0a0a0a;background:transparent;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg);content:\"\";border-width:3px 0 0 3px}.ngx-pagination .pagination-next a:after,.ngx-pagination .pagination-next.disabled:after{margin-left:.5rem;display:inline-block;height:10px;width:10px;border-style:solid;color:#0a0a0a;background:transparent;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg);content:\"\";border-width:0 3px 3px 0}.ngx-pagination .show-for-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.ngx-pagination .small-screen{display:none}@media screen and (max-width: 601px){.ngx-pagination.responsive .small-screen{display:inline-block}.ngx-pagination.responsive li:not(.small-screen):not(.pagination-previous):not(.pagination-next){display:none}}\n"] }]
|
|
30592
30715
|
}], null, { visibilityLabel: [{
|
|
30593
30716
|
type: Input
|
|
30594
30717
|
}], id: [{
|