@hmcts/ccd-case-ui-toolkit 7.1.5-query-management → 7.1.7-query-management-caseQueriesCollection-workaround
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.mjs +14 -13
- package/esm2022/lib/shared/components/palette/case-file-view/test-data/categories-and-documents-test-data.mjs +12 -12
- package/esm2022/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.mjs +79 -18
- package/esm2022/lib/shared/components/palette/query-management/components/query-details/query-details.component.mjs +73 -72
- package/esm2022/lib/shared/components/palette/query-management/components/query-write/query-write-date-input/query-write-date-input.component.mjs +4 -4
- package/esm2022/lib/shared/components/palette/query-management/read-query-management-field.component.mjs +52 -25
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs +249 -162
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.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 +2 -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/read-query-management-field.component.d.ts +4 -1
- package/lib/shared/components/palette/query-management/read-query-management-field.component.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -40,7 +40,6 @@ import * as i2$2 from '@angular/cdk/overlay';
|
|
|
40
40
|
import { OverlayModule } from '@angular/cdk/overlay';
|
|
41
41
|
import * as i7 from '@angular/cdk/tree';
|
|
42
42
|
import { NestedTreeControl, CdkTreeModule } from '@angular/cdk/tree';
|
|
43
|
-
import moment$1 from 'moment/moment';
|
|
44
43
|
import * as i4$1 from '@angular-material-components/datetime-picker';
|
|
45
44
|
import { NGX_MAT_DATE_FORMATS, NgxMatDateAdapter, NgxMatDatetimePickerModule, NgxMatTimepickerModule, NgxMatNativeDateModule } from '@angular-material-components/datetime-picker';
|
|
46
45
|
import { NgxMatMomentAdapter, NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS } from '@angular-material-components/moment-adapter';
|
|
@@ -60,7 +59,7 @@ import { MatLegacyTabsModule } from '@angular/material/legacy-tabs';
|
|
|
60
59
|
import { decompressFromUTF16, compressToUTF16 } from 'lz-string';
|
|
61
60
|
|
|
62
61
|
const _c0$14 = [[["", "footerSolsNavLinks", ""]], [["", "footerCaseWorkerNavLinks", ""]]];
|
|
63
|
-
const _c1$
|
|
62
|
+
const _c1$v = ["[footerSolsNavLinks]", "[footerCaseWorkerNavLinks]"];
|
|
64
63
|
function FooterComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
65
64
|
i0.ɵɵelementStart(0, "div", 3)(1, "div", 4);
|
|
66
65
|
i0.ɵɵprojection(2);
|
|
@@ -136,7 +135,7 @@ class FooterComponent {
|
|
|
136
135
|
phone;
|
|
137
136
|
workhours;
|
|
138
137
|
static ɵfac = function FooterComponent_Factory(t) { return new (t || FooterComponent)(); };
|
|
139
|
-
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$v, 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) {
|
|
140
139
|
i0.ɵɵprojectionDef(_c0$14);
|
|
141
140
|
i0.ɵɵelementStart(0, "footer", 0)(1, "div", 1);
|
|
142
141
|
i0.ɵɵtemplate(2, FooterComponent_div_2_Template, 20, 15, "div", 2)(3, FooterComponent_div_3_Template, 20, 16, "div", 2);
|
|
@@ -165,7 +164,7 @@ class FooterComponent {
|
|
|
165
164
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FooterComponent, { className: "FooterComponent", filePath: "lib/components/footer/footer.component.ts", lineNumber: 8 }); })();
|
|
166
165
|
|
|
167
166
|
const _c0$13 = [[["", "headerNavigation", ""]]];
|
|
168
|
-
const _c1$
|
|
167
|
+
const _c1$u = ["[headerNavigation]"];
|
|
169
168
|
function HeaderBarComponent_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
170
169
|
i0.ɵɵelementStart(0, "div")(1, "a", 12);
|
|
171
170
|
i0.ɵɵelement(2, "img", 13);
|
|
@@ -207,7 +206,7 @@ class HeaderBarComponent {
|
|
|
207
206
|
this.signOutRequest.emit();
|
|
208
207
|
}
|
|
209
208
|
static ɵfac = function HeaderBarComponent_Factory(t) { return new (t || HeaderBarComponent)(); };
|
|
210
|
-
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$u, 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) {
|
|
211
210
|
i0.ɵɵprojectionDef(_c0$13);
|
|
212
211
|
i0.ɵɵelementStart(0, "header", 0)(1, "div", 1)(2, "div", 2);
|
|
213
212
|
i0.ɵɵtemplate(3, HeaderBarComponent_div_3_Template, 5, 3, "div", 3)(4, HeaderBarComponent_div_4_Template, 5, 3, "div", 4);
|
|
@@ -259,11 +258,11 @@ class HeaderBarComponent {
|
|
|
259
258
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(HeaderBarComponent, { className: "HeaderBarComponent", filePath: "lib/components/header/header-bar/header-bar.component.ts", lineNumber: 8 }); })();
|
|
260
259
|
|
|
261
260
|
const _c0$12 = [[["", "leftNavLinks", ""]], [["", "rightNavLinks", ""]]];
|
|
262
|
-
const _c1$
|
|
261
|
+
const _c1$t = ["[leftNavLinks]", "[rightNavLinks]"];
|
|
263
262
|
class NavigationComponent {
|
|
264
263
|
isSolicitor;
|
|
265
264
|
static ɵfac = function NavigationComponent_Factory(t) { return new (t || NavigationComponent)(); };
|
|
266
|
-
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$t, decls: 4, vars: 2, consts: [[1, "cut-nav-bar"]], template: function NavigationComponent_Template(rf, ctx) { if (rf & 1) {
|
|
267
266
|
i0.ɵɵprojectionDef(_c0$12);
|
|
268
267
|
i0.ɵɵelementStart(0, "div")(1, "nav", 0);
|
|
269
268
|
i0.ɵɵprojection(2);
|
|
@@ -384,10 +383,10 @@ class HeadersModule {
|
|
|
384
383
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(HeadersModule, { declarations: [PhaseComponent, HeaderBarComponent, NavigationComponent, NavigationItemComponent], imports: [CommonModule, RouterModule, i1.RpxTranslationModule], exports: [PhaseComponent, HeaderBarComponent, NavigationComponent, NavigationItemComponent] }); })();
|
|
385
384
|
|
|
386
385
|
const _c0$11 = [[["", "topBody", ""]], [["", "leftBody", ""]], [["", "rightBody", ""]]];
|
|
387
|
-
const _c1$
|
|
386
|
+
const _c1$s = ["[topBody]", "[leftBody]", "[rightBody]"];
|
|
388
387
|
class BodyComponent {
|
|
389
388
|
static ɵfac = function BodyComponent_Factory(t) { return new (t || BodyComponent)(); };
|
|
390
|
-
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$s, decls: 4, vars: 0, consts: [[1, "global-display"]], template: function BodyComponent_Template(rf, ctx) { if (rf & 1) {
|
|
391
390
|
i0.ɵɵprojectionDef(_c0$11);
|
|
392
391
|
i0.ɵɵelementStart(0, "div", 0);
|
|
393
392
|
i0.ɵɵprojection(1);
|
|
@@ -1002,7 +1001,7 @@ class NotificationBannerComponent {
|
|
|
1002
1001
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(NotificationBannerComponent, { className: "NotificationBannerComponent", filePath: "lib/components/banners/notification-banner/notification-banner.component.ts", lineNumber: 10 }); })();
|
|
1003
1002
|
|
|
1004
1003
|
const _c0$_ = ["*"];
|
|
1005
|
-
const _c1$
|
|
1004
|
+
const _c1$r = a0 => ({ "js-hidden": a0 });
|
|
1006
1005
|
class TabComponent {
|
|
1007
1006
|
id;
|
|
1008
1007
|
title;
|
|
@@ -1014,7 +1013,7 @@ class TabComponent {
|
|
|
1014
1013
|
i0.ɵɵprojection(1);
|
|
1015
1014
|
i0.ɵɵelementEnd();
|
|
1016
1015
|
} if (rf & 2) {
|
|
1017
|
-
i0.ɵɵproperty("id", ctx.id)("ngClass", i0.ɵɵpureFunction1(3, _c1$
|
|
1016
|
+
i0.ɵɵproperty("id", ctx.id)("ngClass", i0.ɵɵpureFunction1(3, _c1$r, !ctx.selected));
|
|
1018
1017
|
i0.ɵɵattribute("aria-hidden", !ctx.selected);
|
|
1019
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}}"] });
|
|
1020
1019
|
}
|
|
@@ -1031,7 +1030,7 @@ class TabComponent {
|
|
|
1031
1030
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TabComponent, { className: "TabComponent", filePath: "lib/components/tabs/tab.component.ts", lineNumber: 10 }); })();
|
|
1032
1031
|
|
|
1033
1032
|
const _c0$Z = ["tab"];
|
|
1034
|
-
const _c1$
|
|
1033
|
+
const _c1$q = ["*"];
|
|
1035
1034
|
const _c2$4 = () => ["."];
|
|
1036
1035
|
const _c3 = a0 => ({ "tabs-toggle-selected": a0 });
|
|
1037
1036
|
function TabsComponent_li_2_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -1081,7 +1080,7 @@ class TabsComponent {
|
|
|
1081
1080
|
} if (rf & 2) {
|
|
1082
1081
|
let _t;
|
|
1083
1082
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tabs = _t);
|
|
1084
|
-
} }, ngContentSelectors: _c1$
|
|
1083
|
+
} }, ngContentSelectors: _c1$q, 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) {
|
|
1085
1084
|
i0.ɵɵprojectionDef();
|
|
1086
1085
|
i0.ɵɵelementStart(0, "div", 1)(1, "ul", 2);
|
|
1087
1086
|
i0.ɵɵtemplate(2, TabsComponent_li_2_Template, 5, 11, "li", 3);
|
|
@@ -11670,7 +11669,7 @@ class WriteComplexFieldComponent extends AbstractFieldWriteComponent {
|
|
|
11670
11669
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteComplexFieldComponent, { className: "WriteComplexFieldComponent", filePath: "lib/shared/components/palette/complex/write-complex-field.component.ts", lineNumber: 21 }); })();
|
|
11671
11670
|
|
|
11672
11671
|
const _c0$V = ["writeComplexFieldComponent"];
|
|
11673
|
-
const _c1$
|
|
11672
|
+
const _c1$p = a0 => ({ "form-group-error": a0 });
|
|
11674
11673
|
const _c2$3 = a0 => ({ "govuk-input--error": a0 });
|
|
11675
11674
|
function WriteAddressFieldComponent_div_1_div_4_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
11676
11675
|
i0.ɵɵelementStart(0, "span", 14);
|
|
@@ -11697,7 +11696,7 @@ function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) { if (rf & 1)
|
|
|
11697
11696
|
i0.ɵɵelementEnd()();
|
|
11698
11697
|
} if (rf & 2) {
|
|
11699
11698
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
11700
|
-
i0.ɵɵproperty("id", ctx_r1.createElementId("postcodeLookup"))("ngClass", i0.ɵɵpureFunction1(13, _c1$
|
|
11699
|
+
i0.ɵɵproperty("id", ctx_r1.createElementId("postcodeLookup"))("ngClass", i0.ɵɵpureFunction1(13, _c1$p, ctx_r1.missingPostcode));
|
|
11701
11700
|
i0.ɵɵadvance();
|
|
11702
11701
|
i0.ɵɵproperty("for", ctx_r1.createElementId("postcodeInput"));
|
|
11703
11702
|
i0.ɵɵadvance(2);
|
|
@@ -11743,7 +11742,7 @@ function WriteAddressFieldComponent_div_1_div_5_Template(rf, ctx) { if (rf & 1)
|
|
|
11743
11742
|
i0.ɵɵelementEnd()();
|
|
11744
11743
|
} if (rf & 2) {
|
|
11745
11744
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
11746
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c1$
|
|
11745
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c1$p, ctx_r1.noAddressSelected));
|
|
11747
11746
|
i0.ɵɵadvance();
|
|
11748
11747
|
i0.ɵɵproperty("for", ctx_r1.createElementId("addressList"));
|
|
11749
11748
|
i0.ɵɵadvance(2);
|
|
@@ -13176,7 +13175,7 @@ class ReadCaseLinkFieldComponent extends AbstractFieldReadComponent {
|
|
|
13176
13175
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadCaseLinkFieldComponent, { className: "ReadCaseLinkFieldComponent", filePath: "lib/shared/components/palette/case-link/read-case-link-field.component.ts", lineNumber: 8 }); })();
|
|
13177
13176
|
|
|
13178
13177
|
const _c0$U = ["writeComplexFieldComponent"];
|
|
13179
|
-
const _c1$
|
|
13178
|
+
const _c1$o = a0 => ({ "form-group-error": a0 });
|
|
13180
13179
|
function WriteCaseLinkFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
13181
13180
|
i0.ɵɵelementStart(0, "span", 6);
|
|
13182
13181
|
i0.ɵɵtext(1);
|
|
@@ -13268,7 +13267,7 @@ class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
|
|
|
13268
13267
|
i0.ɵɵelement(5, "input", 5);
|
|
13269
13268
|
i0.ɵɵelementEnd();
|
|
13270
13269
|
} if (rf & 2) {
|
|
13271
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$
|
|
13270
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$o, !ctx.caseReferenceControl.valid && (ctx.caseReferenceControl.dirty || ctx.caseReferenceControl.touched)));
|
|
13272
13271
|
i0.ɵɵadvance();
|
|
13273
13272
|
i0.ɵɵproperty("for", ctx.id());
|
|
13274
13273
|
i0.ɵɵadvance();
|
|
@@ -13291,7 +13290,7 @@ class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
|
|
|
13291
13290
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteCaseLinkFieldComponent, { className: "WriteCaseLinkFieldComponent", filePath: "lib/shared/components/palette/case-link/write-case-link-field.component.ts", lineNumber: 11 }); })();
|
|
13292
13291
|
|
|
13293
13292
|
const _c0$T = (a0, a1, a2, a3, a4, a5) => ({ id: a0, label: a1, field_type: a2, display_context_parameter: a3, value: a4, hidden: a5 });
|
|
13294
|
-
const _c1$
|
|
13293
|
+
const _c1$n = (a0, a1, a2, a3, a4) => ({ id: a0, label: a1, field_type: a2, value: a3, hidden: a4 });
|
|
13295
13294
|
function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) { if (rf & 1) {
|
|
13296
13295
|
i0.ɵɵelementStart(0, "tbody")(1, "tr");
|
|
13297
13296
|
i0.ɵɵelement(2, "th", 4);
|
|
@@ -13312,7 +13311,7 @@ function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) { i
|
|
|
13312
13311
|
const i_r3 = ctx.index;
|
|
13313
13312
|
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
13314
13313
|
i0.ɵɵadvance(2);
|
|
13315
|
-
i0.ɵɵproperty("caseField", i0.ɵɵpureFunction5(4, _c1$
|
|
13314
|
+
i0.ɵɵproperty("caseField", i0.ɵɵpureFunction5(4, _c1$n, 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));
|
|
13316
13315
|
} }
|
|
13317
13316
|
function ReadCollectionFieldComponent_table_0_tbody_3_Template(rf, ctx) { if (rf & 1) {
|
|
13318
13317
|
i0.ɵɵelementStart(0, "tbody");
|
|
@@ -14118,7 +14117,7 @@ class FileUploadStateService {
|
|
|
14118
14117
|
}], null, null); })();
|
|
14119
14118
|
|
|
14120
14119
|
const _c0$R = ["fileInput"];
|
|
14121
|
-
const _c1$
|
|
14120
|
+
const _c1$m = a0 => ({ "form-group-error bottom-30": a0 });
|
|
14122
14121
|
function WriteDocumentFieldComponent_span_6_Template(rf, ctx) { if (rf & 1) {
|
|
14123
14122
|
i0.ɵɵelementStart(0, "span", 12);
|
|
14124
14123
|
i0.ɵɵtext(1);
|
|
@@ -14495,7 +14494,7 @@ class WriteDocumentFieldComponent extends AbstractFieldWriteComponent {
|
|
|
14495
14494
|
i0.ɵɵpipe(17, "rpxTranslate");
|
|
14496
14495
|
i0.ɵɵelementEnd()();
|
|
14497
14496
|
} if (rf & 2) {
|
|
14498
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(18, _c1$
|
|
14497
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(18, _c1$m, !ctx.valid));
|
|
14499
14498
|
i0.ɵɵadvance();
|
|
14500
14499
|
i0.ɵɵproperty("for", ctx.id());
|
|
14501
14500
|
i0.ɵɵadvance();
|
|
@@ -15023,7 +15022,7 @@ class ReadDynamicRadioListFieldComponent extends AbstractFieldReadComponent {
|
|
|
15023
15022
|
(() => { (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 }); })();
|
|
15024
15023
|
|
|
15025
15024
|
const _c0$O = a0 => ({ "form-group-error": a0 });
|
|
15026
|
-
const _c1$
|
|
15025
|
+
const _c1$l = a0 => ({ selected: a0 });
|
|
15027
15026
|
function WriteDynamicRadioListFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
15028
15027
|
i0.ɵɵelementStart(0, "span", 7);
|
|
15029
15028
|
i0.ɵɵtext(1);
|
|
@@ -15073,7 +15072,7 @@ function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) { if (rf &
|
|
|
15073
15072
|
} if (rf & 2) {
|
|
15074
15073
|
const radioButton_r2 = ctx.$implicit;
|
|
15075
15074
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
15076
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c1$
|
|
15075
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c1$l, ctx_r0.dynamicRadioListControl.value === radioButton_r2.code));
|
|
15077
15076
|
i0.ɵɵadvance();
|
|
15078
15077
|
i0.ɵɵproperty("id", ctx_r0.createElementId(radioButton_r2.code))("name", ctx_r0.id())("formControl", ctx_r0.dynamicRadioListControl)("value", radioButton_r2.code);
|
|
15079
15078
|
i0.ɵɵadvance();
|
|
@@ -15169,7 +15168,7 @@ class ReadEmailFieldComponent extends AbstractFieldReadComponent {
|
|
|
15169
15168
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadEmailFieldComponent, { className: "ReadEmailFieldComponent", filePath: "lib/shared/components/palette/email/read-email-field.component.ts", lineNumber: 10 }); })();
|
|
15170
15169
|
|
|
15171
15170
|
const _c0$N = a0 => ({ "form-group-error": a0 });
|
|
15172
|
-
const _c1$
|
|
15171
|
+
const _c1$k = a0 => ({ "govuk-input--error": a0 });
|
|
15173
15172
|
function WriteEmailFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
15174
15173
|
i0.ɵɵelementStart(0, "span", 6);
|
|
15175
15174
|
i0.ɵɵtext(1);
|
|
@@ -15224,7 +15223,7 @@ class WriteEmailFieldComponent extends AbstractFieldWriteComponent {
|
|
|
15224
15223
|
i0.ɵɵadvance();
|
|
15225
15224
|
i0.ɵɵproperty("ngIf", ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched));
|
|
15226
15225
|
i0.ɵɵadvance();
|
|
15227
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
15226
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$k, ctx.emailControl.errors && (ctx.emailControl.dirty || ctx.emailControl.touched)))("id", ctx.id())("formControl", ctx.emailControl);
|
|
15228
15227
|
} }, dependencies: [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
15229
15228
|
}
|
|
15230
15229
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteEmailFieldComponent, [{
|
|
@@ -15392,7 +15391,7 @@ class ReadFixedRadioListFieldComponent extends AbstractFieldReadComponent {
|
|
|
15392
15391
|
(() => { (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 }); })();
|
|
15393
15392
|
|
|
15394
15393
|
const _c0$L = a0 => ({ "form-group-error": a0 });
|
|
15395
|
-
const _c1$
|
|
15394
|
+
const _c1$j = a0 => ({ selected: a0 });
|
|
15396
15395
|
function WriteFixedRadioListFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
15397
15396
|
i0.ɵɵelementStart(0, "span", 6);
|
|
15398
15397
|
i0.ɵɵtext(1);
|
|
@@ -15433,7 +15432,7 @@ function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) { if (rf & 1)
|
|
|
15433
15432
|
} if (rf & 2) {
|
|
15434
15433
|
const radioButton_r2 = ctx.$implicit;
|
|
15435
15434
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
15436
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c1$
|
|
15435
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c1$j, ctx_r0.fixedRadioListControl.value === radioButton_r2.code));
|
|
15437
15436
|
i0.ɵɵadvance();
|
|
15438
15437
|
i0.ɵɵproperty("id", ctx_r0.id() + "-" + radioButton_r2.code)("name", ctx_r0.id())("formControl", ctx_r0.fixedRadioListControl)("value", radioButton_r2.code);
|
|
15439
15438
|
i0.ɵɵadvance();
|
|
@@ -15536,7 +15535,7 @@ class ReadJudicialUserFieldComponent extends AbstractFieldReadComponent {
|
|
|
15536
15535
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadJudicialUserFieldComponent, { className: "ReadJudicialUserFieldComponent", filePath: "lib/shared/components/palette/judicial-user/read-judicial-user-field.component.ts", lineNumber: 11 }); })();
|
|
15537
15536
|
|
|
15538
15537
|
const _c0$K = a0 => ({ "form-group-error": a0 });
|
|
15539
|
-
const _c1$
|
|
15538
|
+
const _c1$i = a0 => ({ "hide-autocomplete": a0 });
|
|
15540
15539
|
function WriteJudicialUserFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
15541
15540
|
i0.ɵɵelementStart(0, "span", 10);
|
|
15542
15541
|
i0.ɵɵtext(1);
|
|
@@ -15575,7 +15574,7 @@ function WriteJudicialUserFieldComponent_mat_option_8_Template(rf, ctx) { if (rf
|
|
|
15575
15574
|
} if (rf & 2) {
|
|
15576
15575
|
const judicialUser_r4 = ctx.$implicit;
|
|
15577
15576
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
15578
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c1$
|
|
15577
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c1$i, !ctx_r1.showAutocomplete))("value", judicialUser_r4);
|
|
15579
15578
|
i0.ɵɵadvance();
|
|
15580
15579
|
i0.ɵɵtextInterpolate2(" ", (judicialUser_r4 == null ? null : judicialUser_r4.fullName) ? judicialUser_r4.fullName : "", "", (judicialUser_r4 == null ? null : judicialUser_r4.emailId) ? " (" + judicialUser_r4.emailId + ")" : "", " ");
|
|
15581
15580
|
} }
|
|
@@ -16301,7 +16300,7 @@ class ValidatorsUtils {
|
|
|
16301
16300
|
}], null, null); })();
|
|
16302
16301
|
|
|
16303
16302
|
const _c0$J = a0 => ({ "govuk-form-group--error": a0 });
|
|
16304
|
-
const _c1$
|
|
16303
|
+
const _c1$h = a0 => ({ "table-group-error": a0 });
|
|
16305
16304
|
function LinkCasesComponent_div_8_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
16306
16305
|
i0.ɵɵelementStart(0, "span", 30)(1, "span", 31);
|
|
16307
16306
|
i0.ɵɵtext(2, "Error:");
|
|
@@ -16478,7 +16477,7 @@ function LinkCasesComponent_tr_31_Template(rf, ctx) { if (rf & 1) {
|
|
|
16478
16477
|
const case_r9 = ctx.$implicit;
|
|
16479
16478
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
16480
16479
|
i0.ɵɵadvance(2);
|
|
16481
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12, _c1$
|
|
16480
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12, _c1$h, ctx_r1.caseSelectionError && case_r9.caseReference === ctx_r1.linkCaseForm.value.caseNumber));
|
|
16482
16481
|
i0.ɵɵadvance(2);
|
|
16483
16482
|
i0.ɵɵtextInterpolate1("", case_r9.caseName, " ");
|
|
16484
16483
|
i0.ɵɵadvance(2);
|
|
@@ -18487,7 +18486,7 @@ class ReadNumberFieldComponent extends AbstractFieldReadComponent {
|
|
|
18487
18486
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadNumberFieldComponent, { className: "ReadNumberFieldComponent", filePath: "lib/shared/components/palette/number/read-number-field.component.ts", lineNumber: 8 }); })();
|
|
18488
18487
|
|
|
18489
18488
|
const _c0$F = a0 => ({ "form-group-error": a0 });
|
|
18490
|
-
const _c1$
|
|
18489
|
+
const _c1$g = a0 => ({ "govuk-input--error": a0 });
|
|
18491
18490
|
function WriteNumberFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
18492
18491
|
i0.ɵɵelementStart(0, "span", 6);
|
|
18493
18492
|
i0.ɵɵtext(1);
|
|
@@ -18542,7 +18541,7 @@ class WriteNumberFieldComponent extends AbstractFieldWriteComponent {
|
|
|
18542
18541
|
i0.ɵɵadvance();
|
|
18543
18542
|
i0.ɵɵproperty("ngIf", ctx.numberControl.errors && ctx.numberControl.dirty);
|
|
18544
18543
|
i0.ɵɵadvance();
|
|
18545
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
18544
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$g, ctx.numberControl.errors && ctx.numberControl.dirty))("id", ctx.id())("formControl", ctx.numberControl);
|
|
18546
18545
|
} }, dependencies: [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.NumberValueAccessor, i4.NgControlStatus, i4.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
18547
18546
|
}
|
|
18548
18547
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteNumberFieldComponent, [{
|
|
@@ -19170,7 +19169,7 @@ class ReadPhoneUKFieldComponent extends AbstractFieldReadComponent {
|
|
|
19170
19169
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadPhoneUKFieldComponent, { className: "ReadPhoneUKFieldComponent", filePath: "lib/shared/components/palette/phone-uk/read-phone-uk-field.component.ts", lineNumber: 8 }); })();
|
|
19171
19170
|
|
|
19172
19171
|
const _c0$D = a0 => ({ "form-group-error": a0 });
|
|
19173
|
-
const _c1$
|
|
19172
|
+
const _c1$f = a0 => ({ "govuk-input--error": a0 });
|
|
19174
19173
|
function WritePhoneUKFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
19175
19174
|
i0.ɵɵelementStart(0, "span", 6);
|
|
19176
19175
|
i0.ɵɵtext(1);
|
|
@@ -19225,7 +19224,7 @@ class WritePhoneUKFieldComponent extends AbstractFieldWriteComponent {
|
|
|
19225
19224
|
i0.ɵɵadvance();
|
|
19226
19225
|
i0.ɵɵproperty("ngIf", ctx.phoneUkControl.errors && (ctx.phoneUkControl.dirty || ctx.phoneUkControl.touched));
|
|
19227
19226
|
i0.ɵɵadvance();
|
|
19228
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$
|
|
19227
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c1$f, ctx.phoneUkControl.errors && ctx.phoneUkControl.dirty))("id", ctx.id())("formControl", ctx.phoneUkControl);
|
|
19229
19228
|
} }, dependencies: [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
19230
19229
|
}
|
|
19231
19230
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WritePhoneUKFieldComponent, [{
|
|
@@ -20097,6 +20096,7 @@ class QueryCheckYourAnswersComponent {
|
|
|
20097
20096
|
queryItem;
|
|
20098
20097
|
queryCreateContext;
|
|
20099
20098
|
eventData = null;
|
|
20099
|
+
roleName;
|
|
20100
20100
|
backClicked = new EventEmitter();
|
|
20101
20101
|
querySubmitted = new EventEmitter();
|
|
20102
20102
|
caseViewTrigger;
|
|
@@ -20193,14 +20193,52 @@ class QueryCheckYourAnswersComponent {
|
|
|
20193
20193
|
const caseMessage = this.queryCreateContext === QueryCreateContext.NEW_QUERY
|
|
20194
20194
|
? QueryManagementUtils.getNewQueryData(this.formGroup, currentUserDetails)
|
|
20195
20195
|
: QueryManagementUtils.getRespondOrFollowupQueryData(this.formGroup, this.queryItem, currentUserDetails);
|
|
20196
|
+
const messageId = this.route.snapshot.params.dataid; // Get the message ID from route params (if present)
|
|
20197
|
+
const isNewQuery = this.queryCreateContext === QueryCreateContext.NEW_QUERY; // Check if this is a new query
|
|
20196
20198
|
// Check if the field ID has been set dynamically
|
|
20197
20199
|
if (!this.fieldId) {
|
|
20198
20200
|
console.error('Error: Field ID for CaseQueriesCollection not found. Cannot proceed with data generation.');
|
|
20199
20201
|
this.router.navigate(['/', 'service-down']);
|
|
20200
20202
|
}
|
|
20201
|
-
//
|
|
20202
|
-
const newQueryData = {
|
|
20203
|
-
|
|
20203
|
+
// Initialize new query data structure
|
|
20204
|
+
const newQueryData = {};
|
|
20205
|
+
if (this.caseQueriesCollections?.length) {
|
|
20206
|
+
let matchedCollection;
|
|
20207
|
+
// If it's not a new query, try to find the existing collection with the message ID
|
|
20208
|
+
if (!isNewQuery && messageId) {
|
|
20209
|
+
matchedCollection = this.caseQueriesCollections.find((collection) => collection.caseMessages.some((message) => message.value.id === messageId));
|
|
20210
|
+
}
|
|
20211
|
+
if (matchedCollection) {
|
|
20212
|
+
// Append the new case message to the matched collection's caseMessages
|
|
20213
|
+
matchedCollection.caseMessages.push({
|
|
20214
|
+
id: null,
|
|
20215
|
+
value: caseMessage
|
|
20216
|
+
});
|
|
20217
|
+
// Add the matched collection to newQueryData
|
|
20218
|
+
newQueryData[this.fieldId] = {
|
|
20219
|
+
...matchedCollection, // Keep existing data intact
|
|
20220
|
+
caseMessages: [...matchedCollection.caseMessages] // Append the updated messages array
|
|
20221
|
+
};
|
|
20222
|
+
}
|
|
20223
|
+
else {
|
|
20224
|
+
// If no collection matches, or it's a new query
|
|
20225
|
+
newQueryData[this.fieldId] = {
|
|
20226
|
+
partyName: '', // Not returned by CCD
|
|
20227
|
+
roleOnCase: '', // Not returned by CCD
|
|
20228
|
+
caseMessages: [
|
|
20229
|
+
{
|
|
20230
|
+
id: null,
|
|
20231
|
+
value: caseMessage
|
|
20232
|
+
}
|
|
20233
|
+
]
|
|
20234
|
+
};
|
|
20235
|
+
// If caseQueriesCollections is not empty, append its data
|
|
20236
|
+
newQueryData[this.fieldId].caseMessages.push(...this.caseQueriesCollections.flatMap((collection) => collection.caseMessages));
|
|
20237
|
+
}
|
|
20238
|
+
}
|
|
20239
|
+
else {
|
|
20240
|
+
// If there are no existing collections, create a new one (e.g., for new queries)
|
|
20241
|
+
newQueryData[this.fieldId] = {
|
|
20204
20242
|
partyName: '', // Not returned by CCD
|
|
20205
20243
|
roleOnCase: '', // Not returned by CCD
|
|
20206
20244
|
caseMessages: [
|
|
@@ -20209,19 +20247,19 @@ class QueryCheckYourAnswersComponent {
|
|
|
20209
20247
|
value: caseMessage
|
|
20210
20248
|
}
|
|
20211
20249
|
]
|
|
20212
|
-
}
|
|
20213
|
-
};
|
|
20214
|
-
// If caseQueriesCollections is not empty, append its data
|
|
20215
|
-
if (this.caseQueriesCollections?.length) {
|
|
20216
|
-
newQueryData[this.fieldId].caseMessages.push(...this.caseQueriesCollections.flatMap((collection) => collection.caseMessages));
|
|
20250
|
+
};
|
|
20217
20251
|
}
|
|
20218
20252
|
return newQueryData;
|
|
20219
20253
|
}
|
|
20220
20254
|
setCaseQueriesCollectionData() {
|
|
20221
20255
|
if (this.eventData?.case_fields?.length) {
|
|
20256
|
+
// Workaround for multiple qmCaseQueriesCollections that are not to be appearing in the eventData
|
|
20257
|
+
// Counts number qmCaseQueriesCollections
|
|
20258
|
+
const numberOfCaseQueriesCollections = this.eventData?.case_fields?.filter((caseField) => caseField.field_type.id === this.CASE_QUERIES_COLLECTION_ID &&
|
|
20259
|
+
caseField.field_type.type === this.FIELD_TYPE_COMPLEX)?.length || 0;
|
|
20222
20260
|
this.caseQueriesCollections = this.eventData.case_fields.reduce((acc, caseField) => {
|
|
20223
20261
|
// Extract the ID based on conditions, updating this.fieldId dynamically
|
|
20224
|
-
this.extractCaseQueryId(caseField);
|
|
20262
|
+
this.extractCaseQueryId(caseField, numberOfCaseQueriesCollections);
|
|
20225
20263
|
const extractedCaseQueriesFromCaseField = QueryManagementUtils.extractCaseQueriesFromCaseField(caseField);
|
|
20226
20264
|
if (extractedCaseQueriesFromCaseField && typeof extractedCaseQueriesFromCaseField === 'object') {
|
|
20227
20265
|
acc.push(extractedCaseQueriesFromCaseField);
|
|
@@ -20230,16 +20268,36 @@ class QueryCheckYourAnswersComponent {
|
|
|
20230
20268
|
}, []);
|
|
20231
20269
|
}
|
|
20232
20270
|
}
|
|
20233
|
-
extractCaseQueryId(data) {
|
|
20234
|
-
|
|
20235
|
-
|
|
20236
|
-
|
|
20237
|
-
|
|
20238
|
-
this.
|
|
20271
|
+
extractCaseQueryId(data, count) {
|
|
20272
|
+
const { id, value, acls } = data;
|
|
20273
|
+
const messageId = this.route.snapshot.params.dataid;
|
|
20274
|
+
// Check if the field_type matches CaseQueriesCollection and type is Complex
|
|
20275
|
+
if (data.field_type.id === this.CASE_QUERIES_COLLECTION_ID && data.field_type.type === this.FIELD_TYPE_COMPLEX) {
|
|
20276
|
+
if (this.queryCreateContext === QueryCreateContext.NEW_QUERY) {
|
|
20277
|
+
//if number qmCaseQueriesCollection is more then filter out the right qmCaseQueriesCollection
|
|
20278
|
+
if (count > 1) {
|
|
20279
|
+
const matchingRole = acls?.find((acl) => acl.role === this.roleName);
|
|
20280
|
+
if (matchingRole) {
|
|
20281
|
+
this.fieldId = id;
|
|
20282
|
+
}
|
|
20283
|
+
}
|
|
20284
|
+
else {
|
|
20285
|
+
// Set the field ID dynamically based on the extracted data
|
|
20286
|
+
this.fieldId = id; // Store the ID for use in generating newQueryData
|
|
20287
|
+
}
|
|
20288
|
+
}
|
|
20289
|
+
// If messageId is present, find the corresponding case message
|
|
20290
|
+
if (messageId && value?.caseMessages) {
|
|
20291
|
+
// If a matching message is found, set the fieldId to the corresponding id
|
|
20292
|
+
const matchedMessage = value?.caseMessages?.find((message) => message.value.id === messageId);
|
|
20293
|
+
if (matchedMessage) {
|
|
20294
|
+
this.fieldId = id;
|
|
20295
|
+
}
|
|
20296
|
+
}
|
|
20239
20297
|
}
|
|
20240
20298
|
}
|
|
20241
20299
|
static ɵfac = function QueryCheckYourAnswersComponent_Factory(t) { return new (t || QueryCheckYourAnswersComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(WorkAllocationService), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(EventTriggerService)); };
|
|
20242
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryCheckYourAnswersComponent, selectors: [["ccd-query-check-your-answers"]], inputs: { formGroup: "formGroup", queryItem: "queryItem", queryCreateContext: "queryCreateContext", eventData: "eventData" }, outputs: { backClicked: "backClicked", querySubmitted: "querySubmitted" }, decls: 43, vars: 27, consts: [["defaultCheckYourAnswersTitle", ""], ["isHearingRelatedFalse", ""], [1, "govuk-grid-row"], [1, "govuk-grid-column-two-thirds-from-desktop"], ["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], [4, "ngIf"], [1, "govuk-heading-l"], [4, "ngIf", "ngIfElse"], [1, "govuk-!-margin-bottom-4"], ["class", "govuk-summary-list govuk-!-margin-bottom-0", 4, "ngIf"], [1, "govuk-summary-list", "govuk-!-margin-bottom-0"], [1, "govuk-summary-list__row"], [1, "govuk-summary-list__key"], [1, "govuk-summary-list__value"], [1, "govuk-summary-list__actions"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [1, "govuk-summary-list__value", "govuk-summary-list__value--documentAttached"], [3, "attachments", 4, "ngIf"], ["data-module", "govuk-button", 1, "govuk-button", "govuk-button--secondary", "govuk-!-margin-right-3", 3, "click"], ["data-module", "govuk-button", 1, "govuk-button", 3, "click"], [3, "eventCompletionParams"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [4, "ngFor", "ngForOf"], ["href", "javascript:void(0)", 1, "validation-error", 3, "id"], [1, "govuk-caption-l"], ["href", "javascript:void(0)", "class", "govuk-link", 3, "click", 4, "ngIf"], ["class", "govuk-summary-list__row", 4, "ngIf"], [3, "attachments"]], template: function QueryCheckYourAnswersComponent_Template(rf, ctx) { if (rf & 1) {
|
|
20300
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryCheckYourAnswersComponent, selectors: [["ccd-query-check-your-answers"]], inputs: { formGroup: "formGroup", queryItem: "queryItem", queryCreateContext: "queryCreateContext", eventData: "eventData", roleName: "roleName" }, outputs: { backClicked: "backClicked", querySubmitted: "querySubmitted" }, decls: 43, vars: 27, consts: [["defaultCheckYourAnswersTitle", ""], ["isHearingRelatedFalse", ""], [1, "govuk-grid-row"], [1, "govuk-grid-column-two-thirds-from-desktop"], ["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], [4, "ngIf"], [1, "govuk-heading-l"], [4, "ngIf", "ngIfElse"], [1, "govuk-!-margin-bottom-4"], ["class", "govuk-summary-list govuk-!-margin-bottom-0", 4, "ngIf"], [1, "govuk-summary-list", "govuk-!-margin-bottom-0"], [1, "govuk-summary-list__row"], [1, "govuk-summary-list__key"], [1, "govuk-summary-list__value"], [1, "govuk-summary-list__actions"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [1, "govuk-summary-list__value", "govuk-summary-list__value--documentAttached"], [3, "attachments", 4, "ngIf"], ["data-module", "govuk-button", 1, "govuk-button", "govuk-button--secondary", "govuk-!-margin-right-3", 3, "click"], ["data-module", "govuk-button", 1, "govuk-button", 3, "click"], [3, "eventCompletionParams"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [4, "ngFor", "ngForOf"], ["href", "javascript:void(0)", 1, "validation-error", 3, "id"], [1, "govuk-caption-l"], ["href", "javascript:void(0)", "class", "govuk-link", 3, "click", 4, "ngIf"], ["class", "govuk-summary-list__row", 4, "ngIf"], [3, "attachments"]], template: function QueryCheckYourAnswersComponent_Template(rf, ctx) { if (rf & 1) {
|
|
20243
20301
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
20244
20302
|
i0.ɵɵelementStart(0, "div", 2)(1, "div", 3);
|
|
20245
20303
|
i0.ɵɵtemplate(2, QueryCheckYourAnswersComponent_div_2_Template, 7, 4, "div", 4)(3, QueryCheckYourAnswersComponent_ng_container_3_Template, 4, 3, "ng-container", 5);
|
|
@@ -20332,14 +20390,16 @@ class QueryCheckYourAnswersComponent {
|
|
|
20332
20390
|
type: Input
|
|
20333
20391
|
}], eventData: [{
|
|
20334
20392
|
type: Input
|
|
20393
|
+
}], roleName: [{
|
|
20394
|
+
type: Input
|
|
20335
20395
|
}], backClicked: [{
|
|
20336
20396
|
type: Output
|
|
20337
20397
|
}], querySubmitted: [{
|
|
20338
20398
|
type: Output
|
|
20339
20399
|
}] }); })();
|
|
20340
|
-
(() => { (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:
|
|
20400
|
+
(() => { (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: 24 }); })();
|
|
20341
20401
|
|
|
20342
|
-
function
|
|
20402
|
+
function QueryDetailsComponent_ng_container_0_tr_46_Template(rf, ctx) { if (rf & 1) {
|
|
20343
20403
|
i0.ɵɵelementStart(0, "tr", 11)(1, "th", 7);
|
|
20344
20404
|
i0.ɵɵtext(2);
|
|
20345
20405
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
@@ -20355,13 +20415,13 @@ function QueryDetailsComponent_ng_container_0_tr_45_Template(rf, ctx) { if (rf &
|
|
|
20355
20415
|
i0.ɵɵadvance(3);
|
|
20356
20416
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(6, 4, ctx_r1.query.hearingDate, "dd MMM yyyy"));
|
|
20357
20417
|
} }
|
|
20358
|
-
function
|
|
20418
|
+
function QueryDetailsComponent_ng_container_0_ccd_query_attachments_read_52_Template(rf, ctx) { if (rf & 1) {
|
|
20359
20419
|
i0.ɵɵelement(0, "ccd-query-attachments-read", 12);
|
|
20360
20420
|
} if (rf & 2) {
|
|
20361
20421
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
20362
20422
|
i0.ɵɵproperty("attachments", ctx_r1.query.attachments);
|
|
20363
20423
|
} }
|
|
20364
|
-
function
|
|
20424
|
+
function QueryDetailsComponent_ng_container_0_ng_container_53_ng_container_1_ng_container_1_tr_15_Template(rf, ctx) { if (rf & 1) {
|
|
20365
20425
|
i0.ɵɵelementStart(0, "tr", 6)(1, "th", 7);
|
|
20366
20426
|
i0.ɵɵtext(2);
|
|
20367
20427
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
@@ -20376,13 +20436,13 @@ function QueryDetailsComponent_ng_container_0_ng_container_52_ng_container_1_ng_
|
|
|
20376
20436
|
i0.ɵɵadvance(3);
|
|
20377
20437
|
i0.ɵɵtextInterpolate(child_r3.name);
|
|
20378
20438
|
} }
|
|
20379
|
-
function
|
|
20439
|
+
function QueryDetailsComponent_ng_container_0_ng_container_53_ng_container_1_ng_container_1_ccd_query_attachments_read_27_Template(rf, ctx) { if (rf & 1) {
|
|
20380
20440
|
i0.ɵɵelement(0, "ccd-query-attachments-read", 12);
|
|
20381
20441
|
} if (rf & 2) {
|
|
20382
20442
|
const child_r3 = i0.ɵɵnextContext(2).$implicit;
|
|
20383
20443
|
i0.ɵɵproperty("attachments", child_r3.attachments);
|
|
20384
20444
|
} }
|
|
20385
|
-
function
|
|
20445
|
+
function QueryDetailsComponent_ng_container_0_ng_container_53_ng_container_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
20386
20446
|
i0.ɵɵelementContainerStart(0);
|
|
20387
20447
|
i0.ɵɵelementStart(1, "table", 3);
|
|
20388
20448
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
@@ -20398,7 +20458,7 @@ function QueryDetailsComponent_ng_container_0_ng_container_52_ng_container_1_ng_
|
|
|
20398
20458
|
i0.ɵɵtext(13);
|
|
20399
20459
|
i0.ɵɵpipe(14, "date");
|
|
20400
20460
|
i0.ɵɵelementEnd()();
|
|
20401
|
-
i0.ɵɵtemplate(15,
|
|
20461
|
+
i0.ɵɵtemplate(15, QueryDetailsComponent_ng_container_0_ng_container_53_ng_container_1_ng_container_1_tr_15_Template, 6, 4, "tr", 15);
|
|
20402
20462
|
i0.ɵɵelementStart(16, "tr", 6)(17, "th", 7);
|
|
20403
20463
|
i0.ɵɵtext(18);
|
|
20404
20464
|
i0.ɵɵpipe(19, "rpxTranslate");
|
|
@@ -20411,7 +20471,7 @@ function QueryDetailsComponent_ng_container_0_ng_container_52_ng_container_1_ng_
|
|
|
20411
20471
|
i0.ɵɵpipe(25, "rpxTranslate");
|
|
20412
20472
|
i0.ɵɵelementEnd();
|
|
20413
20473
|
i0.ɵɵelementStart(26, "td", 8);
|
|
20414
|
-
i0.ɵɵtemplate(27,
|
|
20474
|
+
i0.ɵɵtemplate(27, QueryDetailsComponent_ng_container_0_ng_container_53_ng_container_1_ng_container_1_ccd_query_attachments_read_27_Template, 1, 1, "ccd-query-attachments-read", 10);
|
|
20415
20475
|
i0.ɵɵelementEnd()()()();
|
|
20416
20476
|
i0.ɵɵelementContainerEnd();
|
|
20417
20477
|
} if (rf & 2) {
|
|
@@ -20436,13 +20496,13 @@ function QueryDetailsComponent_ng_container_0_ng_container_52_ng_container_1_ng_
|
|
|
20436
20496
|
i0.ɵɵadvance(3);
|
|
20437
20497
|
i0.ɵɵproperty("ngIf", child_r3.attachments);
|
|
20438
20498
|
} }
|
|
20439
|
-
function
|
|
20499
|
+
function QueryDetailsComponent_ng_container_0_ng_container_53_ng_container_1_ng_template_2_ccd_query_attachments_read_34_Template(rf, ctx) { if (rf & 1) {
|
|
20440
20500
|
i0.ɵɵelement(0, "ccd-query-attachments-read", 12);
|
|
20441
20501
|
} if (rf & 2) {
|
|
20442
20502
|
const child_r3 = i0.ɵɵnextContext(2).$implicit;
|
|
20443
20503
|
i0.ɵɵproperty("attachments", child_r3.attachments);
|
|
20444
20504
|
} }
|
|
20445
|
-
function
|
|
20505
|
+
function QueryDetailsComponent_ng_container_0_ng_container_53_ng_container_1_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
20446
20506
|
i0.ɵɵelementStart(0, "div", 16);
|
|
20447
20507
|
i0.ɵɵtext(1);
|
|
20448
20508
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
@@ -20480,7 +20540,7 @@ function QueryDetailsComponent_ng_container_0_ng_container_52_ng_container_1_ng_
|
|
|
20480
20540
|
i0.ɵɵpipe(32, "rpxTranslate");
|
|
20481
20541
|
i0.ɵɵelementEnd();
|
|
20482
20542
|
i0.ɵɵelementStart(33, "td", 8);
|
|
20483
|
-
i0.ɵɵtemplate(34,
|
|
20543
|
+
i0.ɵɵtemplate(34, QueryDetailsComponent_ng_container_0_ng_container_53_ng_container_1_ng_template_2_ccd_query_attachments_read_34_Template, 1, 1, "ccd-query-attachments-read", 10);
|
|
20484
20544
|
i0.ɵɵelementEnd()()()();
|
|
20485
20545
|
} if (rf & 2) {
|
|
20486
20546
|
const child_r3 = i0.ɵɵnextContext().$implicit;
|
|
@@ -20507,9 +20567,9 @@ function QueryDetailsComponent_ng_container_0_ng_container_52_ng_container_1_ng_
|
|
|
20507
20567
|
i0.ɵɵadvance(3);
|
|
20508
20568
|
i0.ɵɵproperty("ngIf", child_r3.attachments);
|
|
20509
20569
|
} }
|
|
20510
|
-
function
|
|
20570
|
+
function QueryDetailsComponent_ng_container_0_ng_container_53_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
20511
20571
|
i0.ɵɵelementContainerStart(0);
|
|
20512
|
-
i0.ɵɵtemplate(1,
|
|
20572
|
+
i0.ɵɵtemplate(1, QueryDetailsComponent_ng_container_0_ng_container_53_ng_container_1_ng_container_1_Template, 28, 22, "ng-container", 14)(2, QueryDetailsComponent_ng_container_0_ng_container_53_ng_container_1_ng_template_2_Template, 35, 28, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
20513
20573
|
i0.ɵɵelementContainerEnd();
|
|
20514
20574
|
} if (rf & 2) {
|
|
20515
20575
|
const i_r4 = ctx.index;
|
|
@@ -20517,9 +20577,9 @@ function QueryDetailsComponent_ng_container_0_ng_container_52_ng_container_1_Tem
|
|
|
20517
20577
|
i0.ɵɵadvance();
|
|
20518
20578
|
i0.ɵɵproperty("ngIf", i_r4 % 2 === 0)("ngIfElse", followUpMessage_r5);
|
|
20519
20579
|
} }
|
|
20520
|
-
function
|
|
20580
|
+
function QueryDetailsComponent_ng_container_0_ng_container_53_Template(rf, ctx) { if (rf & 1) {
|
|
20521
20581
|
i0.ɵɵelementContainerStart(0);
|
|
20522
|
-
i0.ɵɵtemplate(1,
|
|
20582
|
+
i0.ɵɵtemplate(1, QueryDetailsComponent_ng_container_0_ng_container_53_ng_container_1_Template, 4, 2, "ng-container", 13);
|
|
20523
20583
|
i0.ɵɵelementContainerEnd();
|
|
20524
20584
|
} if (rf & 2) {
|
|
20525
20585
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
@@ -20529,100 +20589,101 @@ function QueryDetailsComponent_ng_container_0_ng_container_52_Template(rf, ctx)
|
|
|
20529
20589
|
function QueryDetailsComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
20530
20590
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
20531
20591
|
i0.ɵɵelementContainerStart(0);
|
|
20532
|
-
i0.ɵɵ
|
|
20533
|
-
i0.ɵɵ
|
|
20534
|
-
i0.ɵɵ
|
|
20535
|
-
i0.ɵɵ
|
|
20592
|
+
i0.ɵɵelement(1, "br");
|
|
20593
|
+
i0.ɵɵelementStart(2, "p")(3, "a", 2);
|
|
20594
|
+
i0.ɵɵlistener("click", function QueryDetailsComponent_ng_container_0_Template_a_click_3_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onBack()); });
|
|
20595
|
+
i0.ɵɵtext(4);
|
|
20596
|
+
i0.ɵɵpipe(5, "rpxTranslate");
|
|
20536
20597
|
i0.ɵɵelementEnd()();
|
|
20537
|
-
i0.ɵɵelementStart(
|
|
20538
|
-
i0.ɵɵpipe(
|
|
20539
|
-
i0.ɵɵelementStart(
|
|
20540
|
-
i0.ɵɵtext(
|
|
20541
|
-
i0.ɵɵpipe(
|
|
20598
|
+
i0.ɵɵelementStart(6, "div")(7, "table", 3);
|
|
20599
|
+
i0.ɵɵpipe(8, "rpxTranslate");
|
|
20600
|
+
i0.ɵɵelementStart(9, "caption", 4)(10, "div");
|
|
20601
|
+
i0.ɵɵtext(11);
|
|
20602
|
+
i0.ɵɵpipe(12, "rpxTranslate");
|
|
20542
20603
|
i0.ɵɵelementEnd()();
|
|
20543
|
-
i0.ɵɵelementStart(
|
|
20544
|
-
i0.ɵɵtext(
|
|
20545
|
-
i0.ɵɵpipe(
|
|
20604
|
+
i0.ɵɵelementStart(13, "tbody", 5)(14, "tr", 6)(15, "th", 7);
|
|
20605
|
+
i0.ɵɵtext(16);
|
|
20606
|
+
i0.ɵɵpipe(17, "rpxTranslate");
|
|
20546
20607
|
i0.ɵɵelementEnd();
|
|
20547
|
-
i0.ɵɵelementStart(
|
|
20548
|
-
i0.ɵɵtext(
|
|
20608
|
+
i0.ɵɵelementStart(18, "td", 8);
|
|
20609
|
+
i0.ɵɵtext(19);
|
|
20549
20610
|
i0.ɵɵelementEnd()();
|
|
20550
|
-
i0.ɵɵelementStart(
|
|
20551
|
-
i0.ɵɵtext(
|
|
20552
|
-
i0.ɵɵpipe(
|
|
20611
|
+
i0.ɵɵelementStart(20, "tr", 6)(21, "th", 7);
|
|
20612
|
+
i0.ɵɵtext(22);
|
|
20613
|
+
i0.ɵɵpipe(23, "rpxTranslate");
|
|
20553
20614
|
i0.ɵɵelementEnd();
|
|
20554
|
-
i0.ɵɵelementStart(
|
|
20555
|
-
i0.ɵɵtext(
|
|
20556
|
-
i0.ɵɵpipe(
|
|
20615
|
+
i0.ɵɵelementStart(24, "td", 8);
|
|
20616
|
+
i0.ɵɵtext(25);
|
|
20617
|
+
i0.ɵɵpipe(26, "date");
|
|
20557
20618
|
i0.ɵɵelementEnd()();
|
|
20558
|
-
i0.ɵɵelementStart(
|
|
20559
|
-
i0.ɵɵtext(
|
|
20560
|
-
i0.ɵɵpipe(
|
|
20619
|
+
i0.ɵɵelementStart(27, "tr", 6)(28, "th", 7);
|
|
20620
|
+
i0.ɵɵtext(29);
|
|
20621
|
+
i0.ɵɵpipe(30, "rpxTranslate");
|
|
20561
20622
|
i0.ɵɵelementEnd();
|
|
20562
|
-
i0.ɵɵelementStart(
|
|
20563
|
-
i0.ɵɵtext(
|
|
20623
|
+
i0.ɵɵelementStart(31, "td", 8);
|
|
20624
|
+
i0.ɵɵtext(32);
|
|
20564
20625
|
i0.ɵɵelementEnd()();
|
|
20565
|
-
i0.ɵɵelementStart(
|
|
20566
|
-
i0.ɵɵtext(
|
|
20567
|
-
i0.ɵɵpipe(
|
|
20626
|
+
i0.ɵɵelementStart(33, "tr", 6)(34, "th", 7);
|
|
20627
|
+
i0.ɵɵtext(35);
|
|
20628
|
+
i0.ɵɵpipe(36, "rpxTranslate");
|
|
20568
20629
|
i0.ɵɵelementEnd();
|
|
20569
|
-
i0.ɵɵelementStart(
|
|
20570
|
-
i0.ɵɵtext(
|
|
20630
|
+
i0.ɵɵelementStart(37, "td", 8);
|
|
20631
|
+
i0.ɵɵtext(38);
|
|
20571
20632
|
i0.ɵɵelementEnd()();
|
|
20572
|
-
i0.ɵɵelementStart(
|
|
20573
|
-
i0.ɵɵtext(
|
|
20574
|
-
i0.ɵɵpipe(
|
|
20633
|
+
i0.ɵɵelementStart(39, "tr", 6)(40, "th", 7);
|
|
20634
|
+
i0.ɵɵtext(41);
|
|
20635
|
+
i0.ɵɵpipe(42, "rpxTranslate");
|
|
20575
20636
|
i0.ɵɵelementEnd();
|
|
20576
|
-
i0.ɵɵelementStart(
|
|
20577
|
-
i0.ɵɵtext(
|
|
20578
|
-
i0.ɵɵpipe(
|
|
20637
|
+
i0.ɵɵelementStart(43, "td", 8);
|
|
20638
|
+
i0.ɵɵtext(44);
|
|
20639
|
+
i0.ɵɵpipe(45, "rpxTranslate");
|
|
20579
20640
|
i0.ɵɵelementEnd()();
|
|
20580
|
-
i0.ɵɵtemplate(
|
|
20581
|
-
i0.ɵɵelementStart(
|
|
20582
|
-
i0.ɵɵtext(
|
|
20583
|
-
i0.ɵɵpipe(
|
|
20641
|
+
i0.ɵɵtemplate(46, QueryDetailsComponent_ng_container_0_tr_46_Template, 7, 7, "tr", 9);
|
|
20642
|
+
i0.ɵɵelementStart(47, "tr", 6)(48, "th", 7);
|
|
20643
|
+
i0.ɵɵtext(49);
|
|
20644
|
+
i0.ɵɵpipe(50, "rpxTranslate");
|
|
20584
20645
|
i0.ɵɵelementEnd();
|
|
20585
|
-
i0.ɵɵelementStart(
|
|
20586
|
-
i0.ɵɵtemplate(
|
|
20646
|
+
i0.ɵɵelementStart(51, "td", 8);
|
|
20647
|
+
i0.ɵɵtemplate(52, QueryDetailsComponent_ng_container_0_ccd_query_attachments_read_52_Template, 1, 1, "ccd-query-attachments-read", 10);
|
|
20587
20648
|
i0.ɵɵelementEnd()()()()();
|
|
20588
|
-
i0.ɵɵtemplate(
|
|
20649
|
+
i0.ɵɵtemplate(53, QueryDetailsComponent_ng_container_0_ng_container_53_Template, 2, 1, "ng-container", 1);
|
|
20589
20650
|
i0.ɵɵelementContainerEnd();
|
|
20590
20651
|
} if (rf & 2) {
|
|
20591
20652
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
20653
|
+
i0.ɵɵadvance(4);
|
|
20654
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 21, "Back to query list"));
|
|
20592
20655
|
i0.ɵɵadvance(3);
|
|
20593
|
-
i0.ɵɵ
|
|
20594
|
-
i0.ɵɵadvance(3);
|
|
20595
|
-
i0.ɵɵattribute("aria-describedby", i0.ɵɵpipeBind1(7, 23, "Details of the query"));
|
|
20656
|
+
i0.ɵɵattribute("aria-describedby", i0.ɵɵpipeBind1(8, 23, "Details of the query"));
|
|
20596
20657
|
i0.ɵɵadvance(4);
|
|
20597
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
20658
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(12, 25, "Query details"));
|
|
20598
20659
|
i0.ɵɵadvance(5);
|
|
20599
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
20660
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(17, 27, "Last submitted by"));
|
|
20600
20661
|
i0.ɵɵadvance(3);
|
|
20601
20662
|
i0.ɵɵtextInterpolate(ctx_r1.query.lastSubmittedBy);
|
|
20602
20663
|
i0.ɵɵadvance(3);
|
|
20603
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
20664
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(23, 29, "Submission date"));
|
|
20604
20665
|
i0.ɵɵadvance(3);
|
|
20605
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(
|
|
20666
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(26, 31, ctx_r1.query.createdOn, "dd MMM yyyy"));
|
|
20606
20667
|
i0.ɵɵadvance(4);
|
|
20607
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
20668
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(30, 34, "Query subject"));
|
|
20608
20669
|
i0.ɵɵadvance(3);
|
|
20609
20670
|
i0.ɵɵtextInterpolate(ctx_r1.query.subject);
|
|
20610
20671
|
i0.ɵɵadvance(3);
|
|
20611
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
20672
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(36, 36, "Query body"));
|
|
20612
20673
|
i0.ɵɵadvance(3);
|
|
20613
20674
|
i0.ɵɵtextInterpolate(ctx_r1.query.body);
|
|
20614
20675
|
i0.ɵɵadvance(2);
|
|
20615
20676
|
i0.ɵɵclassProp("govuk-table__header--no-border", ctx_r1.query.isHearingRelated);
|
|
20616
20677
|
i0.ɵɵadvance();
|
|
20617
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
20678
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(42, 38, "Is the query hearing related?"), " ");
|
|
20618
20679
|
i0.ɵɵadvance(2);
|
|
20619
20680
|
i0.ɵɵclassProp("govuk-table__cell--no-border", ctx_r1.query.isHearingRelated);
|
|
20620
20681
|
i0.ɵɵadvance();
|
|
20621
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(
|
|
20682
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(45, 40, "Is the query hearing related?", null, ctx_r1.query.isHearingRelated ? "Yes" : "No"), "");
|
|
20622
20683
|
i0.ɵɵadvance(2);
|
|
20623
20684
|
i0.ɵɵproperty("ngIf", ctx_r1.query.isHearingRelated);
|
|
20624
20685
|
i0.ɵɵadvance(3);
|
|
20625
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
20686
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(50, 44, "Attachments"));
|
|
20626
20687
|
i0.ɵɵadvance(3);
|
|
20627
20688
|
i0.ɵɵproperty("ngIf", ctx_r1.query.attachments);
|
|
20628
20689
|
i0.ɵɵadvance();
|
|
@@ -20647,14 +20708,14 @@ class QueryDetailsComponent {
|
|
|
20647
20708
|
}
|
|
20648
20709
|
static ɵfac = function QueryDetailsComponent_Factory(t) { return new (t || QueryDetailsComponent)(i0.ɵɵdirectiveInject(SessionStorageService)); };
|
|
20649
20710
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryDetailsComponent, selectors: [["ccd-query-details"]], inputs: { query: "query", caseId: "caseId" }, outputs: { backClicked: "backClicked" }, decls: 1, vars: 1, consts: [["followUpMessage", ""], [4, "ngIf"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [1, "govuk-table", "query-details-table"], [1, "govuk-table__caption", "govuk-table__caption--l"], [1, "govuk-table__body"], [1, "govuk-table__row"], ["scope", "row", 1, "govuk-table__header"], [1, "govuk-table__cell"], ["class", "govuk-table__row govuk-table__row--isHearingRelated", 4, "ngIf"], [3, "attachments", 4, "ngIf"], [1, "govuk-table__row", "govuk-table__row--isHearingRelated"], [3, "attachments"], [4, "ngFor", "ngForOf"], [4, "ngIf", "ngIfElse"], ["class", "govuk-table__row", 4, "ngIf"], [1, "query_details_caption"]], template: function QueryDetailsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
20650
|
-
i0.ɵɵtemplate(0, QueryDetailsComponent_ng_container_0_Template,
|
|
20711
|
+
i0.ɵɵtemplate(0, QueryDetailsComponent_ng_container_0_Template, 54, 46, "ng-container", 1);
|
|
20651
20712
|
} if (rf & 2) {
|
|
20652
20713
|
i0.ɵɵproperty("ngIf", ctx.query);
|
|
20653
20714
|
} }, styles: [".query-details-table[_ngcontent-%COMP%] .govuk-table__header[_ngcontent-%COMP%]{width:330px}"] });
|
|
20654
20715
|
}
|
|
20655
20716
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryDetailsComponent, [{
|
|
20656
20717
|
type: Component,
|
|
20657
|
-
args: [{ selector: 'ccd-query-details', template: "<ng-container *ngIf=\"query\">\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 ? 'Yes' : 'No') }}</td>\n </tr>\n <tr class=\"govuk-table__row govuk-table__row--isHearingRelated\" *ngIf=\"query.isHearingRelated\">\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\">\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\">\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\">\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"] }]
|
|
20718
|
+
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 ? 'Yes' : 'No') }}</td>\n </tr>\n <tr class=\"govuk-table__row govuk-table__row--isHearingRelated\" *ngIf=\"query.isHearingRelated\">\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\">\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\">\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\">\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"] }]
|
|
20658
20719
|
}], () => [{ type: SessionStorageService }], { query: [{
|
|
20659
20720
|
type: Input
|
|
20660
20721
|
}], backClicked: [{
|
|
@@ -20973,7 +21034,7 @@ class QueryWriteDateInputComponent {
|
|
|
20973
21034
|
useExisting: forwardRef(() => QueryWriteDateInputComponent),
|
|
20974
21035
|
multi: true
|
|
20975
21036
|
}
|
|
20976
|
-
])], decls: 19, vars: 24, consts: [[1, "govuk-date-input", 3, "id"], [1, "govuk-date-input__item"], [1, "govuk-form-group"], [1, "govuk-label", "govuk-date-input__label", 3, "for"], ["type", "text", "inputmode", "numeric", 1, "govuk-input", "govuk-date-input__input", "govuk-input--width-2", 3, "ngModelChange", "input", "id", "name", "ngModel", "disabled"], ["id", "formControlName + '-year'", "type", "text", "inputmode", "numeric", 1, "govuk-input", "govuk-date-input__input", "govuk-input--width-4", 3, "ngModelChange", "input", "name", "ngModel", "disabled"]], template: function QueryWriteDateInputComponent_Template(rf, ctx) { if (rf & 1) {
|
|
21037
|
+
])], decls: 19, vars: 24, consts: [[1, "govuk-date-input", 3, "id"], [1, "govuk-date-input__item"], [1, "govuk-form-group"], [1, "govuk-label", "govuk-date-input__label", 3, "for"], ["type", "text", "inputmode", "numeric", "maxlength", "2", 1, "govuk-input", "govuk-date-input__input", "govuk-input--width-2", 3, "ngModelChange", "input", "id", "name", "ngModel", "disabled"], ["id", "formControlName + '-year'", "type", "text", "inputmode", "numeric", "maxlength", "4", 1, "govuk-input", "govuk-date-input__input", "govuk-input--width-4", 3, "ngModelChange", "input", "name", "ngModel", "disabled"]], template: function QueryWriteDateInputComponent_Template(rf, ctx) { if (rf & 1) {
|
|
20977
21038
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "label", 3);
|
|
20978
21039
|
i0.ɵɵtext(4);
|
|
20979
21040
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
@@ -21024,7 +21085,7 @@ class QueryWriteDateInputComponent {
|
|
|
21024
21085
|
i0.ɵɵproperty("name", ctx.formControlName + "-year");
|
|
21025
21086
|
i0.ɵɵtwoWayProperty("ngModel", ctx.year);
|
|
21026
21087
|
i0.ɵɵproperty("disabled", ctx.disabled);
|
|
21027
|
-
} }, dependencies: [i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgModel, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
21088
|
+
} }, dependencies: [i4.DefaultValueAccessor, i4.NgControlStatus, i4.MaxLengthValidator, i4.NgModel, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
21028
21089
|
}
|
|
21029
21090
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryWriteDateInputComponent, [{
|
|
21030
21091
|
type: Component,
|
|
@@ -21034,7 +21095,7 @@ class QueryWriteDateInputComponent {
|
|
|
21034
21095
|
useExisting: forwardRef(() => QueryWriteDateInputComponent),
|
|
21035
21096
|
multi: true
|
|
21036
21097
|
}
|
|
21037
|
-
], template: "<div class=\"govuk-date-input\" [id]=\"formControlName\">\n <div class=\"govuk-date-input__item\">\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-date-input__label\" [for]=\"formControlName + '-day'\">\n {{ 'Day' | rpxTranslate }}\n </label>\n <input class=\"govuk-input govuk-date-input__input govuk-input--width-2\" [id]=\"formControlName + '-day'\"\n [name]=\"formControlName + '-day'\" type=\"text\" inputmode=\"numeric\"\n [(ngModel)]=\"day\" (input)=\"updateDate()\" [disabled]=\"disabled\">\n </div>\n </div>\n <div class=\"govuk-date-input__item\">\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-date-input__label\" [for]=\"formControlName + '-month'\">\n {{ 'Month' | rpxTranslate }}\n </label>\n <input class=\"govuk-input govuk-date-input__input govuk-input--width-2\" [id]=\"formControlName + '-month'\"\n [name]=\"formControlName + '-month'\" type=\"text\" inputmode=\"numeric\"\n [(ngModel)]=\"month\" (input)=\"updateDate()\" [disabled]=\"disabled\">\n </div>\n </div>\n <div class=\"govuk-date-input__item\">\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-date-input__label\" [for]=\"formControlName + '-year'\">\n {{ 'Year' | rpxTranslate }}\n </label>\n <input class=\"govuk-input govuk-date-input__input govuk-input--width-4\" id=\"formControlName + '-year'\"\n [name]=\"formControlName + '-year'\" type=\"text\" inputmode=\"numeric\"\n [(ngModel)]=\"year\" (input)=\"updateDate()\" [disabled]=\"disabled\">\n </div>\n </div>\n</div>\n" }]
|
|
21098
|
+
], template: "<div class=\"govuk-date-input\" [id]=\"formControlName\">\n <div class=\"govuk-date-input__item\">\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-date-input__label\" [for]=\"formControlName + '-day'\">\n {{ 'Day' | rpxTranslate }}\n </label>\n <input class=\"govuk-input govuk-date-input__input govuk-input--width-2\" [id]=\"formControlName + '-day'\"\n [name]=\"formControlName + '-day'\" type=\"text\" inputmode=\"numeric\" maxlength=\"2\"\n [(ngModel)]=\"day\" (input)=\"updateDate()\" [disabled]=\"disabled\">\n </div>\n </div>\n <div class=\"govuk-date-input__item\">\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-date-input__label\" [for]=\"formControlName + '-month'\">\n {{ 'Month' | rpxTranslate }}\n </label>\n <input class=\"govuk-input govuk-date-input__input govuk-input--width-2\" [id]=\"formControlName + '-month'\"\n [name]=\"formControlName + '-month'\" type=\"text\" inputmode=\"numeric\" maxlength=\"2\"\n [(ngModel)]=\"month\" (input)=\"updateDate()\" [disabled]=\"disabled\">\n </div>\n </div>\n <div class=\"govuk-date-input__item\">\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-date-input__label\" [for]=\"formControlName + '-year'\">\n {{ 'Year' | rpxTranslate }}\n </label>\n <input class=\"govuk-input govuk-date-input__input govuk-input--width-4\" id=\"formControlName + '-year'\"\n [name]=\"formControlName + '-year'\" type=\"text\" inputmode=\"numeric\" maxlength=\"4\"\n [(ngModel)]=\"year\" (input)=\"updateDate()\" [disabled]=\"disabled\">\n </div>\n </div>\n</div>\n" }]
|
|
21038
21099
|
}], null, { formControlName: [{
|
|
21039
21100
|
type: Input
|
|
21040
21101
|
}] }); })();
|
|
@@ -21464,6 +21525,7 @@ class QueryConfirmationComponent {
|
|
|
21464
21525
|
(() => { (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 }); })();
|
|
21465
21526
|
|
|
21466
21527
|
const _c0$B = (a0, a1) => ["/query-management", "query", a0, "4", a1];
|
|
21528
|
+
const _c1$e = (a0, a1) => ["/query-management", "query", a0, "3", a1];
|
|
21467
21529
|
function ReadQueryManagementFieldComponent_ng_container_0_ng_container_1_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
21468
21530
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
21469
21531
|
i0.ɵɵelementStart(0, "div", 5)(1, "ccd-query-list", 6);
|
|
@@ -21492,7 +21554,7 @@ function ReadQueryManagementFieldComponent_ng_container_0_Template(rf, ctx) { if
|
|
|
21492
21554
|
i0.ɵɵadvance();
|
|
21493
21555
|
i0.ɵɵproperty("ngForOf", ctx_r1.caseQueriesCollections);
|
|
21494
21556
|
} }
|
|
21495
|
-
function
|
|
21557
|
+
function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
21496
21558
|
i0.ɵɵelementContainerStart(0);
|
|
21497
21559
|
i0.ɵɵelementStart(1, "button", 9);
|
|
21498
21560
|
i0.ɵɵtext(2);
|
|
@@ -21500,13 +21562,13 @@ function ReadQueryManagementFieldComponent_ng_template_1_ng_container_6_Template
|
|
|
21500
21562
|
i0.ɵɵelementEnd();
|
|
21501
21563
|
i0.ɵɵelementContainerEnd();
|
|
21502
21564
|
} if (rf & 2) {
|
|
21503
|
-
const ctx_r1 = i0.ɵɵnextContext(
|
|
21565
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
21504
21566
|
i0.ɵɵadvance();
|
|
21505
21567
|
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction2(4, _c0$B, ctx_r1.caseId, ctx_r1.query.id));
|
|
21506
21568
|
i0.ɵɵadvance();
|
|
21507
21569
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2, "Ask a follow-up question"), " ");
|
|
21508
21570
|
} }
|
|
21509
|
-
function
|
|
21571
|
+
function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
21510
21572
|
i0.ɵɵelementStart(0, "div")(1, "p", 10);
|
|
21511
21573
|
i0.ɵɵtext(2);
|
|
21512
21574
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
@@ -21521,37 +21583,55 @@ function ReadQueryManagementFieldComponent_ng_template_1_ng_template_7_Template(
|
|
|
21521
21583
|
i0.ɵɵadvance(3);
|
|
21522
21584
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 4, "Our team will read your query and will respond. Do not submit the same query more than once."));
|
|
21523
21585
|
} }
|
|
21586
|
+
function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
21587
|
+
i0.ɵɵelementContainerStart(0);
|
|
21588
|
+
i0.ɵɵtemplate(1, ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_ng_container_1_Template, 4, 7, "ng-container", 2)(2, ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_ng_template_2_Template, 7, 6, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
21589
|
+
i0.ɵɵelementContainerEnd();
|
|
21590
|
+
} if (rf & 2) {
|
|
21591
|
+
const queryIsInReview_r5 = i0.ɵɵreference(3);
|
|
21592
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
21593
|
+
i0.ɵɵadvance();
|
|
21594
|
+
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);
|
|
21595
|
+
} }
|
|
21596
|
+
function ReadQueryManagementFieldComponent_ng_template_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
21597
|
+
i0.ɵɵelementContainerStart(0);
|
|
21598
|
+
i0.ɵɵelementStart(1, "button", 9);
|
|
21599
|
+
i0.ɵɵtext(2);
|
|
21600
|
+
i0.ɵɵpipe(3, "rpxTranslate");
|
|
21601
|
+
i0.ɵɵelementEnd();
|
|
21602
|
+
i0.ɵɵelementContainerEnd();
|
|
21603
|
+
} if (rf & 2) {
|
|
21604
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
21605
|
+
i0.ɵɵadvance();
|
|
21606
|
+
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction2(4, _c1$e, ctx_r1.caseId, ctx_r1.query.id));
|
|
21607
|
+
i0.ɵɵadvance();
|
|
21608
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2, "Response to a query"), " ");
|
|
21609
|
+
} }
|
|
21524
21610
|
function ReadQueryManagementFieldComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
21525
21611
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
21526
|
-
i0.ɵɵ
|
|
21527
|
-
i0.ɵɵ
|
|
21528
|
-
i0.ɵɵlistener("click", function ReadQueryManagementFieldComponent_ng_template_1_Template_a_click_2_listener() { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.backToQueryListPage()); });
|
|
21529
|
-
i0.ɵɵtext(3);
|
|
21530
|
-
i0.ɵɵpipe(4, "rpxTranslate");
|
|
21531
|
-
i0.ɵɵelementEnd()();
|
|
21532
|
-
i0.ɵɵelementStart(5, "ccd-query-details", 8);
|
|
21533
|
-
i0.ɵɵlistener("backClicked", function ReadQueryManagementFieldComponent_ng_template_1_Template_ccd_query_details_backClicked_5_listener() { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.showQueryList = true); });
|
|
21612
|
+
i0.ɵɵelementStart(0, "ccd-query-details", 7);
|
|
21613
|
+
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); });
|
|
21534
21614
|
i0.ɵɵelementEnd();
|
|
21535
|
-
i0.ɵɵtemplate(
|
|
21615
|
+
i0.ɵɵtemplate(1, ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_Template, 4, 2, "ng-container", 8)(2, ReadQueryManagementFieldComponent_ng_template_1_ng_container_2_Template, 4, 7, "ng-container", 8);
|
|
21536
21616
|
} if (rf & 2) {
|
|
21537
|
-
const queryIsInReview_r5 = i0.ɵɵreference(8);
|
|
21538
21617
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
21539
|
-
i0.ɵɵadvance(3);
|
|
21540
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 5, "Back to queries"));
|
|
21541
|
-
i0.ɵɵadvance(2);
|
|
21542
21618
|
i0.ɵɵproperty("query", ctx_r1.query)("caseId", ctx_r1.caseId);
|
|
21543
21619
|
i0.ɵɵadvance();
|
|
21544
|
-
i0.ɵɵproperty("ngIf",
|
|
21620
|
+
i0.ɵɵproperty("ngIf", !ctx_r1.isCaseworker());
|
|
21621
|
+
i0.ɵɵadvance();
|
|
21622
|
+
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);
|
|
21545
21623
|
} }
|
|
21546
21624
|
class ReadQueryManagementFieldComponent extends AbstractFieldReadComponent {
|
|
21547
21625
|
route;
|
|
21626
|
+
sessionStorageService;
|
|
21548
21627
|
caseQueriesCollections;
|
|
21549
21628
|
query;
|
|
21550
21629
|
showQueryList = true;
|
|
21551
21630
|
caseId;
|
|
21552
|
-
constructor(route) {
|
|
21631
|
+
constructor(route, sessionStorageService) {
|
|
21553
21632
|
super();
|
|
21554
21633
|
this.route = route;
|
|
21634
|
+
this.sessionStorageService = sessionStorageService;
|
|
21555
21635
|
}
|
|
21556
21636
|
ngOnInit() {
|
|
21557
21637
|
this.caseId = this.route.snapshot.params.cid;
|
|
@@ -21583,9 +21663,15 @@ class ReadQueryManagementFieldComponent extends AbstractFieldReadComponent {
|
|
|
21583
21663
|
this.showQueryList = true;
|
|
21584
21664
|
this.query = null;
|
|
21585
21665
|
}
|
|
21586
|
-
|
|
21587
|
-
|
|
21588
|
-
|
|
21666
|
+
isCaseworker() {
|
|
21667
|
+
const userDetails = JSON.parse(this.sessionStorageService?.getItem('userDetails'));
|
|
21668
|
+
return userDetails && userDetails.roles
|
|
21669
|
+
&& !(userDetails.roles.includes('pui-case-manager')
|
|
21670
|
+
|| userDetails.roles.some((role) => role.toLowerCase().includes('judge')));
|
|
21671
|
+
}
|
|
21672
|
+
static ɵfac = function ReadQueryManagementFieldComponent_Factory(t) { return new (t || ReadQueryManagementFieldComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(SessionStorageService)); };
|
|
21673
|
+
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) {
|
|
21674
|
+
i0.ɵɵtemplate(0, ReadQueryManagementFieldComponent_ng_container_0_Template, 2, 1, "ng-container", 2)(1, ReadQueryManagementFieldComponent_ng_template_1_Template, 3, 4, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
21589
21675
|
} if (rf & 2) {
|
|
21590
21676
|
const singleQueryDetails_r6 = i0.ɵɵreference(2);
|
|
21591
21677
|
i0.ɵɵproperty("ngIf", ctx.showQueryList)("ngIfElse", singleQueryDetails_r6);
|
|
@@ -21593,9 +21679,9 @@ class ReadQueryManagementFieldComponent extends AbstractFieldReadComponent {
|
|
|
21593
21679
|
}
|
|
21594
21680
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadQueryManagementFieldComponent, [{
|
|
21595
21681
|
type: Component,
|
|
21596
|
-
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 <
|
|
21597
|
-
}], () => [{ type: i1$1.ActivatedRoute }], null); })();
|
|
21598
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadQueryManagementFieldComponent, { className: "ReadQueryManagementFieldComponent", filePath: "lib/shared/components/palette/query-management/read-query-management-field.component.ts", lineNumber:
|
|
21682
|
+
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\n <ng-container *ngIf=\"query?.children?.length >= 0 && isCaseworker() && query?.children?.length % 2 === 0\">\n <button id=\"ask-follow-up-question\" class=\"govuk-button\" data-module=\"govuk-button\"\n [routerLink]=\"['/query-management', 'query', caseId, '3', query.id]\"\n >\n {{ 'Response to a query' | rpxTranslate }}\n </button>\n </ng-container>\n</ng-template>\n" }]
|
|
21683
|
+
}], () => [{ type: i1$1.ActivatedRoute }, { type: SessionStorageService }], null); })();
|
|
21684
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadQueryManagementFieldComponent, { className: "ReadQueryManagementFieldComponent", filePath: "lib/shared/components/palette/query-management/read-query-management-field.component.ts", lineNumber: 13 }); })();
|
|
21599
21685
|
|
|
21600
21686
|
class ReadTextAreaFieldComponent extends AbstractFieldReadComponent {
|
|
21601
21687
|
static ɵfac = /*@__PURE__*/ (() => { let ɵReadTextAreaFieldComponent_BaseFactory; return function ReadTextAreaFieldComponent_Factory(t) { return (ɵReadTextAreaFieldComponent_BaseFactory || (ɵReadTextAreaFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadTextAreaFieldComponent)))(t || ReadTextAreaFieldComponent); }; })();
|
|
@@ -22837,10 +22923,11 @@ function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template(rf, c
|
|
|
22837
22923
|
i0.ɵɵelement(6, "br");
|
|
22838
22924
|
i0.ɵɵelementStart(7, "span", 17);
|
|
22839
22925
|
i0.ɵɵtext(8);
|
|
22840
|
-
i0.ɵɵpipe(9, "
|
|
22926
|
+
i0.ɵɵpipe(9, "ccdDate");
|
|
22927
|
+
i0.ɵɵpipe(10, "date");
|
|
22841
22928
|
i0.ɵɵelementEnd()();
|
|
22842
|
-
i0.ɵɵelementStart(
|
|
22843
|
-
i0.ɵɵlistener("changeFolderAction", function
|
|
22929
|
+
i0.ɵɵelementStart(11, "div", 18)(12, "ccd-case-file-view-folder-document-actions", 19);
|
|
22930
|
+
i0.ɵɵlistener("changeFolderAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_changeFolderAction_12_listener() { const node_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.triggerDocumentAction("changeFolder", node_r2)); })("openInANewTabAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_openInANewTabAction_12_listener() { const node_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.triggerDocumentAction("openInANewTab", node_r2)); })("downloadAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_downloadAction_12_listener() { const node_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.triggerDocumentAction("download", node_r2)); })("printAction", function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template_ccd_case_file_view_folder_document_actions_printAction_12_listener() { const node_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.triggerDocumentAction("print", node_r2)); });
|
|
22844
22931
|
i0.ɵɵelementEnd()()()();
|
|
22845
22932
|
} if (rf & 2) {
|
|
22846
22933
|
const node_r2 = ctx.$implicit;
|
|
@@ -22850,8 +22937,8 @@ function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template(rf, c
|
|
|
22850
22937
|
i0.ɵɵadvance(4);
|
|
22851
22938
|
i0.ɵɵtextInterpolate1(" ", node_r2.name, " ");
|
|
22852
22939
|
i0.ɵɵadvance(3);
|
|
22853
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(9, 5, node_r2.upload_timestamp, "dd MMM YYYY HH:mm"));
|
|
22854
|
-
i0.ɵɵadvance(
|
|
22940
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(10, 8, i0.ɵɵpipeBind2(9, 5, node_r2.upload_timestamp, "local"), "dd MMM YYYY HH:mm"));
|
|
22941
|
+
i0.ɵɵadvance(4);
|
|
22855
22942
|
i0.ɵɵproperty("allowMoving", ctx_r2.allowMoving);
|
|
22856
22943
|
} }
|
|
22857
22944
|
function CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_5_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -22884,7 +22971,7 @@ function CaseFileViewFolderComponent_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
|
22884
22971
|
i0.ɵɵelementStart(0, "div", 7);
|
|
22885
22972
|
i0.ɵɵtemplate(1, CaseFileViewFolderComponent_div_8_div_1_Template, 2, 0, "div", 8);
|
|
22886
22973
|
i0.ɵɵelementStart(2, "div")(3, "cdk-tree", 9);
|
|
22887
|
-
i0.ɵɵtemplate(4, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template,
|
|
22974
|
+
i0.ɵɵtemplate(4, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_4_Template, 13, 11, "cdk-nested-tree-node", 10)(5, CaseFileViewFolderComponent_div_8_cdk_nested_tree_node_5_Template, 10, 6, "cdk-nested-tree-node", 11);
|
|
22888
22975
|
i0.ɵɵelementEnd()()();
|
|
22889
22976
|
} if (rf & 2) {
|
|
22890
22977
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
@@ -22991,7 +23078,7 @@ class CaseFileViewFolderComponent {
|
|
|
22991
23078
|
documentTreeNode.document_binary_url = document.document_binary_url;
|
|
22992
23079
|
documentTreeNode.attribute_path = document.attribute_path;
|
|
22993
23080
|
documentTreeNode.upload_timestamp = this.appConfig.getEnableCaseFileViewVersion1_1()
|
|
22994
|
-
&& document.upload_timestamp ?
|
|
23081
|
+
&& document.upload_timestamp ? document.upload_timestamp.toString() : '';
|
|
22995
23082
|
documentsToReturn.push(documentTreeNode);
|
|
22996
23083
|
});
|
|
22997
23084
|
return documentsToReturn;
|
|
@@ -23006,7 +23093,7 @@ class CaseFileViewFolderComponent {
|
|
|
23006
23093
|
documentTreeNode.document_binary_url = document.document_binary_url;
|
|
23007
23094
|
documentTreeNode.attribute_path = document.attribute_path;
|
|
23008
23095
|
documentTreeNode.upload_timestamp = this.appConfig.getEnableCaseFileViewVersion1_1()
|
|
23009
|
-
&& document.upload_timestamp ?
|
|
23096
|
+
&& document.upload_timestamp ? document.upload_timestamp.toString() : '';
|
|
23010
23097
|
documents.push(documentTreeNode);
|
|
23011
23098
|
});
|
|
23012
23099
|
const uncategorisedNode = new DocumentTreeNode();
|
|
@@ -23140,11 +23227,11 @@ class CaseFileViewFolderComponent {
|
|
|
23140
23227
|
i0.ɵɵtextInterpolate1("Documents (", ctx.documentCount, ")");
|
|
23141
23228
|
i0.ɵɵadvance(3);
|
|
23142
23229
|
i0.ɵɵproperty("ngIf", ctx.documentTreeData);
|
|
23143
|
-
} }, dependencies: [i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, i7.CdkNestedTreeNode, i7.CdkTreeNodeDef, i7.CdkTreeNodeToggle, i7.CdkTree, i7.CdkTreeNodeOutlet, CaseFileViewFolderSortComponent, CaseFileViewFolderDocumentActionsComponent, i5.DatePipe], styles: ["[_nghost-%COMP%]{display:flex;height:100%;flex-direction:column}[_nghost-%COMP%] .document-tree-container[_ngcontent-%COMP%]{flex:1 0}.document-filter-container[_ngcontent-%COMP%]{border-bottom:2px solid #C9C9C9}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%]{padding:10px}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%] .document-search[_ngcontent-%COMP%]{background:url(/assets/images/icon-search-black.svg) no-repeat right #fff;background-position-x:calc(100% - 4px);padding-right:30px;width:100%}.document-filter-container[_ngcontent-%COMP%] .documents-title[_ngcontent-%COMP%]{height:30%;margin-left:8px;font-weight:700}.document-tree-container[_ngcontent-%COMP%]{padding:4px;overflow-x:hidden;overflow-y:scroll}.document-tree-container__node[_ngcontent-%COMP%]{display:block}.document-tree-container__node[_ngcontent-%COMP%] .document-tree-container__node[_ngcontent-%COMP%]{padding-left:40px}.document-tree-container[_ngcontent-%COMP%] .document-tree-invisible[_ngcontent-%COMP%]{display:none}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar{width:7px}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border:4px solid rgba(0,0,0,0);background-clip:padding-box;border-radius:9999px;background-color:#aaa}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-button{display:none}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-track-piece{background:#eee}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#ccc}.document-folders-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #C9C9C9;padding:10px}.document-folders-header__title[_ngcontent-%COMP%]{font-weight:700}.node[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;padding:10px;background:none;border:0;cursor:pointer;white-space:nowrap}.node--selected[_ngcontent-%COMP%]{background:#fff2cc}.node__icon[_ngcontent-%COMP%]{position:relative;display:inline-block}.node__count[_ngcontent-%COMP%]{color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:.875rem;padding-top:4px}.node__iconImg[_ngcontent-%COMP%]{display:block;height:30px;width:30px}.node__name[_ngcontent-%COMP%]{margin-left:6px;font-size:1rem;overflow:hidden;text-overflow:ellipsis}.node__document-options[_ngcontent-%COMP%]{margin-left:auto;margin-right:0}.node__document-upload-timestamp[_ngcontent-%COMP%]{font-size:.8rem;float:left;padding-left:10px}"] });
|
|
23230
|
+
} }, dependencies: [i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, i7.CdkNestedTreeNode, i7.CdkTreeNodeDef, i7.CdkTreeNodeToggle, i7.CdkTree, i7.CdkTreeNodeOutlet, CaseFileViewFolderSortComponent, CaseFileViewFolderDocumentActionsComponent, i5.DatePipe, DatePipe], styles: ["[_nghost-%COMP%]{display:flex;height:100%;flex-direction:column}[_nghost-%COMP%] .document-tree-container[_ngcontent-%COMP%]{flex:1 0}.document-filter-container[_ngcontent-%COMP%]{border-bottom:2px solid #C9C9C9}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%]{padding:10px}.document-filter-container[_ngcontent-%COMP%] .document-filter[_ngcontent-%COMP%] .document-search[_ngcontent-%COMP%]{background:url(/assets/images/icon-search-black.svg) no-repeat right #fff;background-position-x:calc(100% - 4px);padding-right:30px;width:100%}.document-filter-container[_ngcontent-%COMP%] .documents-title[_ngcontent-%COMP%]{height:30%;margin-left:8px;font-weight:700}.document-tree-container[_ngcontent-%COMP%]{padding:4px;overflow-x:hidden;overflow-y:scroll}.document-tree-container__node[_ngcontent-%COMP%]{display:block}.document-tree-container__node[_ngcontent-%COMP%] .document-tree-container__node[_ngcontent-%COMP%]{padding-left:40px}.document-tree-container[_ngcontent-%COMP%] .document-tree-invisible[_ngcontent-%COMP%]{display:none}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar{width:7px}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border:4px solid rgba(0,0,0,0);background-clip:padding-box;border-radius:9999px;background-color:#aaa}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-button{display:none}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-track-piece{background:#eee}.document-tree-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#ccc}.document-folders-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #C9C9C9;padding:10px}.document-folders-header__title[_ngcontent-%COMP%]{font-weight:700}.node[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;padding:10px;background:none;border:0;cursor:pointer;white-space:nowrap}.node--selected[_ngcontent-%COMP%]{background:#fff2cc}.node__icon[_ngcontent-%COMP%]{position:relative;display:inline-block}.node__count[_ngcontent-%COMP%]{color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:.875rem;padding-top:4px}.node__iconImg[_ngcontent-%COMP%]{display:block;height:30px;width:30px}.node__name[_ngcontent-%COMP%]{margin-left:6px;font-size:1rem;overflow:hidden;text-overflow:ellipsis}.node__document-options[_ngcontent-%COMP%]{margin-left:auto;margin-right:0}.node__document-upload-timestamp[_ngcontent-%COMP%]{font-size:.8rem;float:left;padding-left:10px}"] });
|
|
23144
23231
|
}
|
|
23145
23232
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFolderComponent, [{
|
|
23146
23233
|
type: Component,
|
|
23147
|
-
args: [{ selector: 'ccd-case-file-view-folder', template: "<div class=\"document-filter-container\">\n <div class=\"form-group document-filter\" [formGroup]=\"documentFilterFormGroup\">\n <input class=\"form-control document-search\"\n type=\"search\"\n id=\"document-search\"\n name=\"documentSearchFormControl\"\n formControlName=\"documentSearchFormControl\"\n placeholder=\"Search by document name\"\n aria-label=\"Search by document name\">\n </div>\n</div>\n\n<div class=\"document-folders-header\">\n <div class=\"document-folders-header__title\">Documents ({{ documentCount }})</div>\n <div>\n <ccd-case-file-view-folder-sort\n (sortAscending)=\"sortDataSourceAscending($event)\"\n (sortDescending)=\"sortDataSourceDescending($event)\"\n ></ccd-case-file-view-folder-sort>\n </div>\n</div>\n\n<div class=\"document-tree-container\" *ngIf=\"documentTreeData\">\n <div *ngIf=\"!nestedDataSource || nestedDataSource.length === 0\">\n No results found\n </div>\n <div>\n <cdk-tree [dataSource]=\"nestedDataSource\" [treeControl]=\"nestedTreeControl\">\n <!-- document -->\n <cdk-nested-tree-node class=\"document-tree-container__node document-tree-container__node--document\" *cdkTreeNodeDef=\"let node\">\n <button class=\"node\" (click)=\"selectedNodeItem = node; clickedDocument.emit(node)\"\n [class.node--selected]=\"selectedNodeItem?.name === node.name\">\n <div class=\"node__icon\" disabled>\n <img src=\"/assets/img/case-file-view/case-file-view-document.svg\" class=\"node__iconImg\" alt=\"Document icon\">\n </div>\n <span class=\"node__name node-name-document\">\n {{node.name}}\n <br>\n <span class=\"node__document-upload-timestamp\">{{node.upload_timestamp | date:\"dd MMM YYYY HH:mm\"}}</span>\n </span>\n <div class=\"node__document-options\">\n <ccd-case-file-view-folder-document-actions\n (changeFolderAction)=\"triggerDocumentAction('changeFolder', node)\"\n (openInANewTabAction)=\"triggerDocumentAction('openInANewTab', node)\"\n (downloadAction)=\"triggerDocumentAction('download', node)\"\n (printAction)=\"triggerDocumentAction('print', node)\"\n [allowMoving]=\"allowMoving\"\n >\n </ccd-case-file-view-folder-document-actions>\n </div>\n </button>\n </cdk-nested-tree-node>\n <!-- folder-->\n <cdk-nested-tree-node class=\"document-tree-container__node document-tree-container__folder\" *cdkTreeNodeDef=\"let node; when: nestedChildren\">\n <button class=\"node\" cdkTreeNodeToggle>\n <div class=\"node__icon\" [attr.aria-label]=\"'toggle ' + node.name\" >\n <img class=\"node__iconImg\"\n [src]=\"nestedTreeControl.isExpanded(node) ? '/assets/images/folder-open.png' : '/assets/images/folder.png'\" alt=\"Folder icon\">\n <span class=\"node__count\">{{node.childDocumentCount}}</span>\n </div>\n <span class=\"node__name node__name--folder\">{{node.name}}</span>\n </button>\n\n <div [class.document-tree-invisible]=\"!nestedTreeControl.isExpanded(node)\">\n <ng-container cdkTreeNodeOutlet></ng-container>\n </div>\n </cdk-nested-tree-node>\n </cdk-tree>\n </div>\n</div>\n", styles: [":host{display:flex;height:100%;flex-direction:column}:host .document-tree-container{flex:1 0}.document-filter-container{border-bottom:2px solid #C9C9C9}.document-filter-container .document-filter{padding:10px}.document-filter-container .document-filter .document-search{background:url(/assets/images/icon-search-black.svg) no-repeat right #fff;background-position-x:calc(100% - 4px);padding-right:30px;width:100%}.document-filter-container .documents-title{height:30%;margin-left:8px;font-weight:700}.document-tree-container{padding:4px;overflow-x:hidden;overflow-y:scroll}.document-tree-container__node{display:block}.document-tree-container__node .document-tree-container__node{padding-left:40px}.document-tree-container .document-tree-invisible{display:none}.document-tree-container::-webkit-scrollbar{width:7px}.document-tree-container::-webkit-scrollbar-thumb{border:4px solid rgba(0,0,0,0);background-clip:padding-box;border-radius:9999px;background-color:#aaa}.document-tree-container::-webkit-scrollbar-button{display:none}.document-tree-container::-webkit-scrollbar-track-piece{background:#eee}.document-tree-container::-webkit-scrollbar-thumb{background:#ccc}.document-folders-header{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #C9C9C9;padding:10px}.document-folders-header__title{font-weight:700}.node{display:flex;align-items:center;width:100%;padding:10px;background:none;border:0;cursor:pointer;white-space:nowrap}.node--selected{background:#fff2cc}.node__icon{position:relative;display:inline-block}.node__count{color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:.875rem;padding-top:4px}.node__iconImg{display:block;height:30px;width:30px}.node__name{margin-left:6px;font-size:1rem;overflow:hidden;text-overflow:ellipsis}.node__document-options{margin-left:auto;margin-right:0}.node__document-upload-timestamp{font-size:.8rem;float:left;padding-left:10px}\n"] }]
|
|
23234
|
+
args: [{ selector: 'ccd-case-file-view-folder', template: "<div class=\"document-filter-container\">\n <div class=\"form-group document-filter\" [formGroup]=\"documentFilterFormGroup\">\n <input class=\"form-control document-search\"\n type=\"search\"\n id=\"document-search\"\n name=\"documentSearchFormControl\"\n formControlName=\"documentSearchFormControl\"\n placeholder=\"Search by document name\"\n aria-label=\"Search by document name\">\n </div>\n</div>\n\n<div class=\"document-folders-header\">\n <div class=\"document-folders-header__title\">Documents ({{ documentCount }})</div>\n <div>\n <ccd-case-file-view-folder-sort\n (sortAscending)=\"sortDataSourceAscending($event)\"\n (sortDescending)=\"sortDataSourceDescending($event)\"\n ></ccd-case-file-view-folder-sort>\n </div>\n</div>\n\n<div class=\"document-tree-container\" *ngIf=\"documentTreeData\">\n <div *ngIf=\"!nestedDataSource || nestedDataSource.length === 0\">\n No results found\n </div>\n <div>\n <cdk-tree [dataSource]=\"nestedDataSource\" [treeControl]=\"nestedTreeControl\">\n <!-- document -->\n <cdk-nested-tree-node class=\"document-tree-container__node document-tree-container__node--document\" *cdkTreeNodeDef=\"let node\">\n <button class=\"node\" (click)=\"selectedNodeItem = node; clickedDocument.emit(node)\"\n [class.node--selected]=\"selectedNodeItem?.name === node.name\">\n <div class=\"node__icon\" disabled>\n <img src=\"/assets/img/case-file-view/case-file-view-document.svg\" class=\"node__iconImg\" alt=\"Document icon\">\n </div>\n <span class=\"node__name node-name-document\">\n {{node.name}}\n <br>\n <span class=\"node__document-upload-timestamp\">{{node.upload_timestamp | ccdDate : 'local' | date:\"dd MMM YYYY HH:mm\"}}</span>\n </span>\n <div class=\"node__document-options\">\n <ccd-case-file-view-folder-document-actions\n (changeFolderAction)=\"triggerDocumentAction('changeFolder', node)\"\n (openInANewTabAction)=\"triggerDocumentAction('openInANewTab', node)\"\n (downloadAction)=\"triggerDocumentAction('download', node)\"\n (printAction)=\"triggerDocumentAction('print', node)\"\n [allowMoving]=\"allowMoving\"\n >\n </ccd-case-file-view-folder-document-actions>\n </div>\n </button>\n </cdk-nested-tree-node>\n <!-- folder-->\n <cdk-nested-tree-node class=\"document-tree-container__node document-tree-container__folder\" *cdkTreeNodeDef=\"let node; when: nestedChildren\">\n <button class=\"node\" cdkTreeNodeToggle>\n <div class=\"node__icon\" [attr.aria-label]=\"'toggle ' + node.name\" >\n <img class=\"node__iconImg\"\n [src]=\"nestedTreeControl.isExpanded(node) ? '/assets/images/folder-open.png' : '/assets/images/folder.png'\" alt=\"Folder icon\">\n <span class=\"node__count\">{{node.childDocumentCount}}</span>\n </div>\n <span class=\"node__name node__name--folder\">{{node.name}}</span>\n </button>\n\n <div [class.document-tree-invisible]=\"!nestedTreeControl.isExpanded(node)\">\n <ng-container cdkTreeNodeOutlet></ng-container>\n </div>\n </cdk-nested-tree-node>\n </cdk-tree>\n </div>\n</div>\n", styles: [":host{display:flex;height:100%;flex-direction:column}:host .document-tree-container{flex:1 0}.document-filter-container{border-bottom:2px solid #C9C9C9}.document-filter-container .document-filter{padding:10px}.document-filter-container .document-filter .document-search{background:url(/assets/images/icon-search-black.svg) no-repeat right #fff;background-position-x:calc(100% - 4px);padding-right:30px;width:100%}.document-filter-container .documents-title{height:30%;margin-left:8px;font-weight:700}.document-tree-container{padding:4px;overflow-x:hidden;overflow-y:scroll}.document-tree-container__node{display:block}.document-tree-container__node .document-tree-container__node{padding-left:40px}.document-tree-container .document-tree-invisible{display:none}.document-tree-container::-webkit-scrollbar{width:7px}.document-tree-container::-webkit-scrollbar-thumb{border:4px solid rgba(0,0,0,0);background-clip:padding-box;border-radius:9999px;background-color:#aaa}.document-tree-container::-webkit-scrollbar-button{display:none}.document-tree-container::-webkit-scrollbar-track-piece{background:#eee}.document-tree-container::-webkit-scrollbar-thumb{background:#ccc}.document-folders-header{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #C9C9C9;padding:10px}.document-folders-header__title{font-weight:700}.node{display:flex;align-items:center;width:100%;padding:10px;background:none;border:0;cursor:pointer;white-space:nowrap}.node--selected{background:#fff2cc}.node__icon{position:relative;display:inline-block}.node__count{color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:.875rem;padding-top:4px}.node__iconImg{display:block;height:30px;width:30px}.node__name{margin-left:6px;font-size:1rem;overflow:hidden;text-overflow:ellipsis}.node__document-options{margin-left:auto;margin-right:0}.node__document-upload-timestamp{font-size:.8rem;float:left;padding-left:10px}\n"] }]
|
|
23148
23235
|
}], () => [{ type: WindowService }, { type: i1$1.Router }, { type: DocumentManagementService }, { type: i1$3.MatLegacyDialog }, { type: AbstractAppConfig }], { categoriesAndDocuments: [{
|
|
23149
23236
|
type: Input
|
|
23150
23237
|
}], allowMoving: [{
|
|
@@ -23154,7 +23241,7 @@ class CaseFileViewFolderComponent {
|
|
|
23154
23241
|
}], moveDocument: [{
|
|
23155
23242
|
type: Output
|
|
23156
23243
|
}] }); })();
|
|
23157
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseFileViewFolderComponent, { className: "CaseFileViewFolderComponent", filePath: "lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.ts", lineNumber:
|
|
23244
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseFileViewFolderComponent, { className: "CaseFileViewFolderComponent", filePath: "lib/shared/components/palette/case-file-view/components/case-file-view-folder/case-file-view-folder.component.ts", lineNumber: 27 }); })();
|
|
23158
23245
|
|
|
23159
23246
|
const _c0$s = a0 => ({ "form-group-error": a0 });
|
|
23160
23247
|
function AddCommentsComponent_span_7_Template(rf, ctx) { if (rf & 1) {
|