@hmcts/ccd-case-ui-toolkit 7.1.80 → 7.1.81-prerelease-qm
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/collection/write-collection-field.component.mjs +16 -17
- package/esm2022/lib/shared/components/palette/palette.module.mjs +1 -1
- package/esm2022/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.mjs +21 -6
- package/esm2022/lib/shared/components/palette/query-management/components/query-confirmation/query-confirmation.component.mjs +33 -31
- package/esm2022/lib/shared/components/palette/query-management/components/query-details/query-details.component.mjs +5 -5
- package/esm2022/lib/shared/components/palette/query-management/components/query-list/query-list.component.mjs +4 -4
- package/esm2022/lib/shared/components/palette/query-management/models/query-list/query-list-data/query-list-data.model.mjs +8 -4
- package/esm2022/lib/shared/components/palette/query-management/models/query-list/query-list-item/query-list-item.model.mjs +33 -5
- package/esm2022/lib/shared/components/palette/query-management/read-query-management-field.component.mjs +3 -3
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs +125 -78
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.d.ts +4 -1
- package/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/components/query-confirmation/query-confirmation.component.d.ts +4 -1
- package/lib/shared/components/palette/query-management/components/query-confirmation/query-confirmation.component.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/models/query-list/query-list-data/query-list-data.model.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/models/query-list/query-list-item/query-list-item.model.d.ts +1 -0
- package/lib/shared/components/palette/query-management/models/query-list/query-list-item/query-list-item.model.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -27,7 +27,7 @@ import { MatDialogConfig } from '@angular/material/dialog';
|
|
|
27
27
|
import * as i2 from '@nicky-lenaers/ngx-scroll-to';
|
|
28
28
|
import { ScrollToModule } from '@nicky-lenaers/ngx-scroll-to';
|
|
29
29
|
import * as marked from 'marked';
|
|
30
|
-
import * as
|
|
30
|
+
import * as i2$1 from 'ngx-markdown';
|
|
31
31
|
import { MarkdownModule } from 'ngx-markdown';
|
|
32
32
|
import * as i6 from '@angular/material/legacy-autocomplete';
|
|
33
33
|
import { MatLegacyAutocompleteModule } from '@angular/material/legacy-autocomplete';
|
|
@@ -36,7 +36,7 @@ import { MAT_LEGACY_DATE_LOCALE } from '@angular/material/legacy-core';
|
|
|
36
36
|
import * as i3 from '@hmcts/ccpay-web-component';
|
|
37
37
|
import { PaymentLibModule } from '@hmcts/ccpay-web-component';
|
|
38
38
|
import { v4 } from 'uuid';
|
|
39
|
-
import * as i2$
|
|
39
|
+
import * as i2$2 from '@angular/cdk/overlay';
|
|
40
40
|
import { OverlayModule } from '@angular/cdk/overlay';
|
|
41
41
|
import * as i7$1 from '@angular/cdk/tree';
|
|
42
42
|
import { NestedTreeControl, CdkTreeModule } from '@angular/cdk/tree';
|
|
@@ -53,7 +53,7 @@ import { MatLegacyInputModule } from '@angular/material/legacy-input';
|
|
|
53
53
|
import * as i14 from '@hmcts/media-viewer';
|
|
54
54
|
import { MediaViewerModule } from '@hmcts/media-viewer';
|
|
55
55
|
import { PortalModule } from '@angular/cdk/portal';
|
|
56
|
-
import * as i2$
|
|
56
|
+
import * as i2$3 from 'ngx-pagination';
|
|
57
57
|
import { NgxPaginationModule, PaginatePipe } from 'ngx-pagination';
|
|
58
58
|
import * as i10 from '@angular/material/legacy-tabs';
|
|
59
59
|
import { MatLegacyTabsModule } from '@angular/material/legacy-tabs';
|
|
@@ -14364,17 +14364,16 @@ class RemoveDialogComponent {
|
|
|
14364
14364
|
|
|
14365
14365
|
const _c0$S = ["collectionItem"];
|
|
14366
14366
|
function WriteCollectionFieldComponent_h2_8_span_1_Template(rf, ctx) { if (rf & 1) {
|
|
14367
|
-
i0.ɵɵelementStart(0, "span", 10)
|
|
14368
|
-
i0.ɵɵ
|
|
14369
|
-
i0.ɵɵ
|
|
14370
|
-
i0.ɵɵelementEnd()();
|
|
14367
|
+
i0.ɵɵelementStart(0, "span", 10);
|
|
14368
|
+
i0.ɵɵelement(1, "ccd-markdown", 11);
|
|
14369
|
+
i0.ɵɵelementEnd();
|
|
14371
14370
|
} if (rf & 2) {
|
|
14372
14371
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
14373
|
-
i0.ɵɵadvance(
|
|
14374
|
-
i0.ɵɵ
|
|
14372
|
+
i0.ɵɵadvance();
|
|
14373
|
+
i0.ɵɵproperty("content", ctx_r0.caseField.hint_text);
|
|
14375
14374
|
} }
|
|
14376
14375
|
function WriteCollectionFieldComponent_h2_8_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
14377
|
-
i0.ɵɵelementStart(0, "span",
|
|
14376
|
+
i0.ɵɵelementStart(0, "span", 12);
|
|
14378
14377
|
i0.ɵɵtext(1);
|
|
14379
14378
|
i0.ɵɵpipe(2, "ccdFirstError");
|
|
14380
14379
|
i0.ɵɵelementEnd();
|
|
@@ -14385,7 +14384,7 @@ function WriteCollectionFieldComponent_h2_8_span_2_Template(rf, ctx) { if (rf &
|
|
|
14385
14384
|
} }
|
|
14386
14385
|
function WriteCollectionFieldComponent_h2_8_Template(rf, ctx) { if (rf & 1) {
|
|
14387
14386
|
i0.ɵɵelementStart(0, "h2", 3);
|
|
14388
|
-
i0.ɵɵtemplate(1, WriteCollectionFieldComponent_h2_8_span_1_Template,
|
|
14387
|
+
i0.ɵɵtemplate(1, WriteCollectionFieldComponent_h2_8_span_1_Template, 2, 1, "span", 8)(2, WriteCollectionFieldComponent_h2_8_span_2_Template, 3, 4, "span", 9);
|
|
14389
14388
|
i0.ɵɵelementEnd();
|
|
14390
14389
|
} if (rf & 2) {
|
|
14391
14390
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
@@ -14396,16 +14395,16 @@ function WriteCollectionFieldComponent_h2_8_Template(rf, ctx) { if (rf & 1) {
|
|
|
14396
14395
|
} }
|
|
14397
14396
|
function WriteCollectionFieldComponent_div_9_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
14398
14397
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
14399
|
-
i0.ɵɵelementStart(0, "div", 1, 0)(2, "div",
|
|
14398
|
+
i0.ɵɵelementStart(0, "div", 1, 0)(2, "div", 16)(3, "div", 17)(4, "legend", 18)(5, "label", 19)(6, "h3", 20);
|
|
14400
14399
|
i0.ɵɵtext(7);
|
|
14401
14400
|
i0.ɵɵpipe(8, "rpxTranslate");
|
|
14402
14401
|
i0.ɵɵelementEnd()()()();
|
|
14403
|
-
i0.ɵɵelementStart(9, "div",
|
|
14402
|
+
i0.ɵɵelementStart(9, "div", 21)(10, "button", 22);
|
|
14404
14403
|
i0.ɵɵlistener("click", function WriteCollectionFieldComponent_div_9_div_2_Template_button_click_10_listener() { const i_r3 = i0.ɵɵrestoreView(_r2).index; const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.openModal(i_r3)); });
|
|
14405
14404
|
i0.ɵɵtext(11);
|
|
14406
14405
|
i0.ɵɵpipe(12, "rpxTranslate");
|
|
14407
14406
|
i0.ɵɵelementEnd()()();
|
|
14408
|
-
i0.ɵɵelement(13, "ccd-field-write",
|
|
14407
|
+
i0.ɵɵelement(13, "ccd-field-write", 23);
|
|
14409
14408
|
i0.ɵɵelementEnd();
|
|
14410
14409
|
} if (rf & 2) {
|
|
14411
14410
|
const item_r4 = ctx.$implicit;
|
|
@@ -14425,8 +14424,8 @@ function WriteCollectionFieldComponent_div_9_div_2_Template(rf, ctx) { if (rf &
|
|
|
14425
14424
|
i0.ɵɵproperty("caseField", item_r4.caseField)("caseFields", ctx_r0.caseFields)("formGroup", ctx_r0.formGroup)("parent", item_r4.container)("idPrefix", item_r4.prefix)("hidden", item_r4.caseField.hidden)("isExpanded", ctx_r0.isExpanded)("isInSearchBlock", ctx_r0.isInSearchBlock);
|
|
14426
14425
|
} }
|
|
14427
14426
|
function WriteCollectionFieldComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
14428
|
-
i0.ɵɵelementStart(0, "div",
|
|
14429
|
-
i0.ɵɵtemplate(2, WriteCollectionFieldComponent_div_9_div_2_Template, 14, 19, "div",
|
|
14427
|
+
i0.ɵɵelementStart(0, "div", 13)(1, "fieldset", 14);
|
|
14428
|
+
i0.ɵɵtemplate(2, WriteCollectionFieldComponent_div_9_div_2_Template, 14, 19, "div", 15);
|
|
14430
14429
|
i0.ɵɵelementEnd()();
|
|
14431
14430
|
} if (rf & 2) {
|
|
14432
14431
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
@@ -14436,7 +14435,7 @@ function WriteCollectionFieldComponent_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
14436
14435
|
} }
|
|
14437
14436
|
function WriteCollectionFieldComponent_button_10_Template(rf, ctx) { if (rf & 1) {
|
|
14438
14437
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
14439
|
-
i0.ɵɵelementStart(0, "button",
|
|
14438
|
+
i0.ɵɵelementStart(0, "button", 24);
|
|
14440
14439
|
i0.ɵɵlistener("click", function WriteCollectionFieldComponent_button_10_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.addItem(false)); });
|
|
14441
14440
|
i0.ɵɵtext(1);
|
|
14442
14441
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
@@ -14754,7 +14753,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
|
|
|
14754
14753
|
} if (rf & 2) {
|
|
14755
14754
|
let _t;
|
|
14756
14755
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.items = _t);
|
|
14757
|
-
} }, inputs: { caseFields: "caseFields" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 11, vars: 11, consts: [["collectionItem", ""], [1, "form-group", 3, "id"], [1, "panel", "collection-indicator"], [1, "heading-h2", "error-spacing"], ["type", "button", 1, "button", "write-collection-add-item__top", 3, "click", "disabled"], ["class", "heading-h2 error-spacing", 4, "ngIf"], ["class", "form-group", 3, "hidden", 4, "ngIf"], ["class", "button write-collection-add-item__bottom", "type", "button", 3, "disabled", "click", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [1, "form-hint"], [1, "error-message"], [1, "form-group", 3, "hidden"], [1, "govuk-fieldset"], ["class", "form-group", 3, "id", 4, "ngFor", "ngForOf"], [1, "collection-title"], [1, "float-left"], [1, "govuk-fieldset__legend"], [3, "for"], [1, "heading-h3"], [1, "float-right"], ["type", "button", 1, "button", "button-secondary", 3, "click", "disabled"], [3, "caseField", "caseFields", "formGroup", "parent", "idPrefix", "hidden", "isExpanded", "isInSearchBlock"], ["type", "button", 1, "button", "write-collection-add-item__bottom", 3, "click", "disabled"]], template: function WriteCollectionFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
14756
|
+
} }, inputs: { caseFields: "caseFields" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 11, vars: 11, consts: [["collectionItem", ""], [1, "form-group", 3, "id"], [1, "panel", "collection-indicator"], [1, "heading-h2", "error-spacing"], ["type", "button", 1, "button", "write-collection-add-item__top", 3, "click", "disabled"], ["class", "heading-h2 error-spacing", 4, "ngIf"], ["class", "form-group", 3, "hidden", 4, "ngIf"], ["class", "button write-collection-add-item__bottom", "type", "button", 3, "disabled", "click", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [1, "form-hint"], [3, "content"], [1, "error-message"], [1, "form-group", 3, "hidden"], [1, "govuk-fieldset"], ["class", "form-group", 3, "id", 4, "ngFor", "ngForOf"], [1, "collection-title"], [1, "float-left"], [1, "govuk-fieldset__legend"], [3, "for"], [1, "heading-h3"], [1, "float-right"], ["type", "button", 1, "button", "button-secondary", 3, "click", "disabled"], [3, "caseField", "caseFields", "formGroup", "parent", "idPrefix", "hidden", "isExpanded", "isInSearchBlock"], ["type", "button", 1, "button", "write-collection-add-item__bottom", 3, "click", "disabled"]], template: function WriteCollectionFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
14758
14757
|
i0.ɵɵelementStart(0, "div", 1)(1, "div", 2)(2, "h2", 3);
|
|
14759
14758
|
i0.ɵɵtext(3);
|
|
14760
14759
|
i0.ɵɵpipe(4, "ccdFieldLabel");
|
|
@@ -14784,7 +14783,7 @@ class WriteCollectionFieldComponent extends AbstractFieldWriteComponent {
|
|
|
14784
14783
|
}
|
|
14785
14784
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteCollectionFieldComponent, [{
|
|
14786
14785
|
type: Component,
|
|
14787
|
-
args: [{ selector: 'ccd-write-collection-field', template: "<div class=\"form-group\" [id]=\"id()\">\n\n <div class=\"panel collection-indicator\">\n\n <h2 class=\"heading-h2 error-spacing\">\n {{(caseField | ccdFieldLabel)}}\n </h2>\n <button class=\"button write-collection-add-item__top\" type=\"button\" (click)=\"addItem(true)\" [disabled]=\"isNotAuthorisedToCreate() || isSearchFilter()\">{{'Add new' | rpxTranslate}}</button>\n <h2 class=\"heading-h2 error-spacing\" *ngIf=\"caseField.hint_text || formArray.errors\">\n <span *ngIf=\"caseField.hint_text\" class=\"form-hint\">\n <markdown
|
|
14786
|
+
args: [{ selector: 'ccd-write-collection-field', template: "<div class=\"form-group\" [id]=\"id()\">\n\n <div class=\"panel collection-indicator\">\n\n <h2 class=\"heading-h2 error-spacing\">\n {{(caseField | ccdFieldLabel)}}\n </h2>\n <button class=\"button write-collection-add-item__top\" type=\"button\" (click)=\"addItem(true)\" [disabled]=\"isNotAuthorisedToCreate() || isSearchFilter()\">{{'Add new' | rpxTranslate}}</button>\n <h2 class=\"heading-h2 error-spacing\" *ngIf=\"caseField.hint_text || formArray.errors\">\n <span *ngIf=\"caseField.hint_text\" class=\"form-hint\">\n <ccd-markdown [content]=\"caseField.hint_text\"></ccd-markdown>\n </span>\n <span *ngIf=\"formArray.errors\" class=\"error-message\">\n {{(formArray.errors | ccdFirstError:caseField.label)}}\n </span>\n </h2>\n\n <div class=\"form-group\" [hidden]=\"caseField.hidden\" *ngIf=\"caseField.value && caseField.value.length\">\n <fieldset class=\"govuk-fieldset\">\n <div *ngFor=\"let item of collItems; let i = index\" #collectionItem\n [id]=\"this.buildIdPrefix(i) + i\" class=\"form-group\">\n <div class=\"collection-title\">\n <div class=\"float-left\">\n <legend class=\"govuk-fieldset__legend\">\n <label [for]=\"item.prefix + i\"><h3 class=\"heading-h3\">{{itemLabel(i) | rpxTranslate}}</h3></label>\n </legend>\n </div>\n <div class=\"float-right\">\n <button class=\"button button-secondary\" type=\"button\" (click)=\"openModal(i)\"\n [disabled]=\"isNotAuthorisedToDelete(i)\"\n attr.aria-label=\"Remove {{ itemLabel(i) }}\">{{'Remove' | rpxTranslate}}</button>\n </div>\n </div>\n <ccd-field-write [caseField]=\"item.caseField\"\n [caseFields]=\"caseFields\"\n [formGroup]=\"formGroup\"\n [parent]=\"item.container\"\n [idPrefix]=\"item.prefix\"\n [hidden]=\"item.caseField.hidden\"\n [isExpanded]=\"isExpanded\"\n [isInSearchBlock]=\"isInSearchBlock\">\n </ccd-field-write>\n </div>\n </fieldset>\n </div>\n\n <button class=\"button write-collection-add-item__bottom\" type=\"button\" (click)=\"addItem(false)\" [disabled]=\"isNotAuthorisedToCreate() || isSearchFilter()\" *ngIf=\"caseField.value && caseField.value.length\">{{'Add new' | rpxTranslate }}</button>\n\n </div>\n\n</div>\n", styles: [".collection-field-table tr:first-child>td{padding-top:0}.collection-field-table tr:last-child>td{border-bottom:none}.collection-field-table td.collection-actions{width:1px;white-space:nowrap}.error-spacing{margin-top:10px}.collection-title{height:51px}.float-left{float:left;padding-top:8px}.float-right{float:right}.complex-panel{margin:13px 0;border:1px solid #bfc1c3}.complex-panel .complex-panel-title{background-color:#dee0e2;padding:5px 5px 2px;border-bottom:1px solid #bfc1c3;display:block;color:#0b0c0c;font-family:nta,Arial,sans-serif;font-weight:700;text-transform:none;font-size:16px;line-height:1.25}@media (min-width: 641px){.complex-panel .complex-panel-title{font-size:19px;line-height:1.3157894737}}.complex-panel .complex-panel-table>tbody>tr>th{vertical-align:top}.complex-panel .complex-panel-table>tbody>tr:last-child>th,.complex-panel .complex-panel-table>tbody>tr:last-child>td{border-bottom:none}.complex-panel .complex-panel-simple-field th{padding-left:5px;width:295px}.complex-panel .complex-panel-compound-field td{padding:5px}.collection-indicator{border-left:solid 5px #b1b4b6}\n"] }]
|
|
14788
14787
|
}], () => [{ type: i1$3.MatLegacyDialog }, { type: i2.ScrollToService }, { type: ProfileNotifier }, { type: i0.ChangeDetectorRef }], { caseFields: [{
|
|
14789
14788
|
type: Input
|
|
14790
14789
|
}], items: [{
|
|
@@ -15724,7 +15723,7 @@ class MarkdownComponent {
|
|
|
15724
15723
|
} if (rf & 2) {
|
|
15725
15724
|
i0.ɵɵadvance();
|
|
15726
15725
|
i0.ɵɵproperty("data", i0.ɵɵpipeBind1(3, 3, i0.ɵɵpipeBind1(2, 1, ctx.content)));
|
|
15727
|
-
} }, dependencies: [
|
|
15726
|
+
} }, dependencies: [i2$1.MarkdownComponent, i1.RpxTranslatePipe, CaseReferencePipe], encapsulation: 2, changeDetection: 0 });
|
|
15728
15727
|
}
|
|
15729
15728
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MarkdownComponent, [{
|
|
15730
15729
|
type: Component,
|
|
@@ -20856,10 +20855,11 @@ class QueryListItem {
|
|
|
20856
20855
|
createdBy;
|
|
20857
20856
|
parentId;
|
|
20858
20857
|
children = [];
|
|
20858
|
+
messageIndexInParent = null;
|
|
20859
20859
|
get lastSubmittedMessage() {
|
|
20860
20860
|
const getLastSubmittedMessage = (item) => {
|
|
20861
20861
|
let lastSubmittedMessage = item;
|
|
20862
|
-
if (item.children && item.children.length >
|
|
20862
|
+
if (item.children && item.children.length > 1) {
|
|
20863
20863
|
for (const child of item.children) {
|
|
20864
20864
|
const childLastSubmittedMessage = getLastSubmittedMessage(child);
|
|
20865
20865
|
if (childLastSubmittedMessage.createdOn > lastSubmittedMessage.createdOn) {
|
|
@@ -20875,20 +20875,47 @@ class QueryListItem {
|
|
|
20875
20875
|
return this.lastSubmittedMessage.name;
|
|
20876
20876
|
}
|
|
20877
20877
|
get lastSubmittedDate() {
|
|
20878
|
-
|
|
20878
|
+
const childrenCount = this.children.length;
|
|
20879
|
+
if (childrenCount <= 1) {
|
|
20880
|
+
return new Date(this.lastSubmittedMessage.createdOn);
|
|
20881
|
+
}
|
|
20882
|
+
let index;
|
|
20883
|
+
if (childrenCount > 1) {
|
|
20884
|
+
index = childrenCount % 2 === 0 ? childrenCount - 1 : childrenCount - 2;
|
|
20885
|
+
}
|
|
20886
|
+
return new Date(this.children[index].createdOn);
|
|
20879
20887
|
}
|
|
20880
20888
|
get lastResponseBy() {
|
|
20881
20889
|
return this.children?.length > 0 ? this.lastSubmittedMessage.name : '';
|
|
20882
20890
|
}
|
|
20883
20891
|
get lastResponseDate() {
|
|
20884
|
-
|
|
20892
|
+
const childrenCount = this.children.length;
|
|
20893
|
+
if (childrenCount === 0) {
|
|
20894
|
+
return null;
|
|
20895
|
+
}
|
|
20896
|
+
let index;
|
|
20897
|
+
if (childrenCount === 1) {
|
|
20898
|
+
index = 0;
|
|
20899
|
+
}
|
|
20900
|
+
else {
|
|
20901
|
+
index = childrenCount % 2 === 1 ? childrenCount - 1 : childrenCount - 2;
|
|
20902
|
+
}
|
|
20903
|
+
return new Date(this.children[index].createdOn);
|
|
20885
20904
|
}
|
|
20886
20905
|
get responseStatus() {
|
|
20887
|
-
|
|
20906
|
+
// Child logic (position-based)
|
|
20907
|
+
if (this.messageIndexInParent !== null) {
|
|
20908
|
+
return this.messageIndexInParent % 2 === 0
|
|
20909
|
+
? QueryItemResponseStatus.RESPONDED
|
|
20910
|
+
: QueryItemResponseStatus.AWAITING;
|
|
20911
|
+
}
|
|
20912
|
+
// Parent logic (children count)
|
|
20913
|
+
if (this.children && this.children.length > 0) {
|
|
20888
20914
|
return this.children.length % 2 === 1
|
|
20889
20915
|
? QueryItemResponseStatus.RESPONDED
|
|
20890
20916
|
: QueryItemResponseStatus.AWAITING;
|
|
20891
20917
|
}
|
|
20918
|
+
// No children — still awaiting
|
|
20892
20919
|
return QueryItemResponseStatus.AWAITING;
|
|
20893
20920
|
}
|
|
20894
20921
|
}
|
|
@@ -20905,12 +20932,16 @@ class QueryListData {
|
|
|
20905
20932
|
this.queries = parentMessages.map((message) => this.buildQueryListItem(message, caseQueriesCollection.caseMessages));
|
|
20906
20933
|
}
|
|
20907
20934
|
buildQueryListItem(message, allMessages) {
|
|
20935
|
+
const childrenMessages = allMessages.filter((childMessage) => childMessage.value.parentId === message.value.id);
|
|
20936
|
+
const children = childrenMessages.map((childMessage, index) => {
|
|
20937
|
+
const childItem = this.buildQueryListItem(childMessage, allMessages);
|
|
20938
|
+
childItem.messageIndexInParent = index; // Assign index for status logic
|
|
20939
|
+
return childItem;
|
|
20940
|
+
});
|
|
20908
20941
|
const queryListItem = new QueryListItem();
|
|
20909
20942
|
Object.assign(queryListItem, {
|
|
20910
20943
|
...message.value,
|
|
20911
|
-
children
|
|
20912
|
-
.filter((childMessage) => childMessage.value.parentId === message.value.id)
|
|
20913
|
-
.map((childMessage) => this.buildQueryListItem(childMessage, allMessages))
|
|
20944
|
+
children
|
|
20914
20945
|
});
|
|
20915
20946
|
return queryListItem;
|
|
20916
20947
|
}
|
|
@@ -21206,6 +21237,7 @@ class QueryCheckYourAnswersComponent {
|
|
|
21206
21237
|
eventData = null;
|
|
21207
21238
|
backClicked = new EventEmitter();
|
|
21208
21239
|
querySubmitted = new EventEmitter();
|
|
21240
|
+
callbackConfirmationMessage = new EventEmitter();
|
|
21209
21241
|
caseViewTrigger;
|
|
21210
21242
|
caseDetails;
|
|
21211
21243
|
queryId;
|
|
@@ -21287,7 +21319,12 @@ class QueryCheckYourAnswersComponent {
|
|
|
21287
21319
|
const createEvent$ = this.createEvent(data);
|
|
21288
21320
|
if (this.queryCreateContext === QueryCreateContext.RESPOND) {
|
|
21289
21321
|
if (this.filteredTasks?.length > 0) {
|
|
21290
|
-
this.createEventSubscription = createEvent$.pipe(switchMap((createEventResponse) =>
|
|
21322
|
+
this.createEventSubscription = createEvent$.pipe(switchMap((createEventResponse) => {
|
|
21323
|
+
const confirmationBody = createEventResponse?.after_submit_callback_response?.confirmation_body;
|
|
21324
|
+
const confirmationHeader = createEventResponse?.after_submit_callback_response?.confirmation_header;
|
|
21325
|
+
this.callbackConfirmationMessage.emit({ body: confirmationBody, header: confirmationHeader });
|
|
21326
|
+
return this.workAllocationService.completeTask(this.filteredTasks[0].id, this.caseViewTrigger.name);
|
|
21327
|
+
})).subscribe({
|
|
21291
21328
|
next: () => this.finaliseSubmission(),
|
|
21292
21329
|
error: (error) => this.handleError(error)
|
|
21293
21330
|
});
|
|
@@ -21305,7 +21342,12 @@ class QueryCheckYourAnswersComponent {
|
|
|
21305
21342
|
}
|
|
21306
21343
|
else {
|
|
21307
21344
|
this.createEventSubscription = createEvent$.subscribe({
|
|
21308
|
-
next: () =>
|
|
21345
|
+
next: (callbackResponse) => {
|
|
21346
|
+
this.finaliseSubmission();
|
|
21347
|
+
const confirmationBody = callbackResponse?.after_submit_callback_response?.confirmation_body;
|
|
21348
|
+
const confirmationHeader = callbackResponse?.after_submit_callback_response?.confirmation_header;
|
|
21349
|
+
this.callbackConfirmationMessage.emit({ body: confirmationBody, header: confirmationHeader });
|
|
21350
|
+
},
|
|
21309
21351
|
error: (error) => this.handleError(error)
|
|
21310
21352
|
});
|
|
21311
21353
|
}
|
|
@@ -21466,11 +21508,13 @@ class QueryCheckYourAnswersComponent {
|
|
|
21466
21508
|
const candidateFields = this.eventData?.case_fields?.filter((field) => field.field_type.id === this.CASE_QUERIES_COLLECTION_ID &&
|
|
21467
21509
|
field.field_type.type === this.FIELD_TYPE_COMPLEX &&
|
|
21468
21510
|
field.display_context !== this.DISPLAY_CONTEXT_READONLY);
|
|
21469
|
-
if (!candidateFields?.length)
|
|
21511
|
+
if (!candidateFields?.length) {
|
|
21470
21512
|
return undefined;
|
|
21513
|
+
}
|
|
21471
21514
|
const firstPageFields = this.eventData?.wizard_pages?.[0]?.wizard_page_fields;
|
|
21472
|
-
if (!firstPageFields)
|
|
21515
|
+
if (!firstPageFields) {
|
|
21473
21516
|
return undefined;
|
|
21517
|
+
}
|
|
21474
21518
|
return candidateFields
|
|
21475
21519
|
.map((field) => {
|
|
21476
21520
|
const wizardField = firstPageFields.find(f => f.case_field_id === field.id);
|
|
@@ -21489,7 +21533,7 @@ class QueryCheckYourAnswersComponent {
|
|
|
21489
21533
|
}
|
|
21490
21534
|
}
|
|
21491
21535
|
static ɵfac = function QueryCheckYourAnswersComponent_Factory(t) { return new (t || QueryCheckYourAnswersComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(WorkAllocationService), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(QualifyingQuestionService)); };
|
|
21492
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryCheckYourAnswersComponent, selectors: [["ccd-query-check-your-answers"]], inputs: { formGroup: "formGroup", queryItem: "queryItem", queryCreateContext: "queryCreateContext", eventData: "eventData" }, outputs: { backClicked: "backClicked", querySubmitted: "querySubmitted" }, decls: 33, vars: 22, consts: [["defaultCheckYourAnswersTitle", ""], ["isHearingRelatedFalse", ""], [1, "govuk-grid-row"], [1, "govuk-grid-column-two-thirds-from-desktop"], ["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], [4, "ngIf"], [1, "govuk-heading-l"], [4, "ngIf", "ngIfElse"], [1, "govuk-!-margin-bottom-4"], [3, "caseDetails"], ["class", "govuk-summary-list govuk-!-margin-bottom-0", 4, "ngIf"], [1, "govuk-summary-list", "govuk-!-margin-bottom-0"], [1, "govuk-summary-list__row"], [1, "govuk-summary-list__key"], [1, "govuk-summary-list__value"], [1, "govuk-summary-list__actions"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], ["data-module", "govuk-button", 1, "govuk-button", "govuk-button--secondary", "govuk-!-margin-right-3", 3, "click"], ["data-module", "govuk-button", "type", "submit", 1, "govuk-button", 3, "click"], [3, "eventCompletionParams"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [4, "ngFor", "ngForOf"], ["href", "javascript:void(0)", 1, "validation-error", 3, "id"], [1, "govuk-caption-l"], ["href", "javascript:void(0)", "class", "govuk-link", 3, "click", 4, "ngIf"], ["class", "govuk-summary-list__row", 4, "ngIf"], [1, "govuk-summary-list__value", "govuk-summary-list__value--documentAttached"], [3, "attachments", 4, "ngIf"], [3, "attachments"]], template: function QueryCheckYourAnswersComponent_Template(rf, ctx) { if (rf & 1) {
|
|
21536
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryCheckYourAnswersComponent, selectors: [["ccd-query-check-your-answers"]], inputs: { formGroup: "formGroup", queryItem: "queryItem", queryCreateContext: "queryCreateContext", eventData: "eventData" }, outputs: { backClicked: "backClicked", querySubmitted: "querySubmitted", callbackConfirmationMessage: "callbackConfirmationMessage" }, decls: 33, vars: 22, consts: [["defaultCheckYourAnswersTitle", ""], ["isHearingRelatedFalse", ""], [1, "govuk-grid-row"], [1, "govuk-grid-column-two-thirds-from-desktop"], ["class", "govuk-error-summary", "aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 4, "ngIf"], [4, "ngIf"], [1, "govuk-heading-l"], [4, "ngIf", "ngIfElse"], [1, "govuk-!-margin-bottom-4"], [3, "caseDetails"], ["class", "govuk-summary-list govuk-!-margin-bottom-0", 4, "ngIf"], [1, "govuk-summary-list", "govuk-!-margin-bottom-0"], [1, "govuk-summary-list__row"], [1, "govuk-summary-list__key"], [1, "govuk-summary-list__value"], [1, "govuk-summary-list__actions"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], ["data-module", "govuk-button", 1, "govuk-button", "govuk-button--secondary", "govuk-!-margin-right-3", 3, "click"], ["data-module", "govuk-button", "type", "submit", 1, "govuk-button", 3, "click"], [3, "eventCompletionParams"], ["aria-labelledby", "error-summary-title", "role", "alert", "tabindex", "-1", "data-module", "govuk-error-summary", 1, "govuk-error-summary"], ["id", "error-summary-title", 1, "govuk-error-summary__title"], [1, "govuk-error-summary__body"], [1, "govuk-list", "govuk-error-summary__list"], [4, "ngFor", "ngForOf"], ["href", "javascript:void(0)", 1, "validation-error", 3, "id"], [1, "govuk-caption-l"], ["href", "javascript:void(0)", "class", "govuk-link", 3, "click", 4, "ngIf"], ["class", "govuk-summary-list__row", 4, "ngIf"], [1, "govuk-summary-list__value", "govuk-summary-list__value--documentAttached"], [3, "attachments", 4, "ngIf"], [3, "attachments"]], template: function QueryCheckYourAnswersComponent_Template(rf, ctx) { if (rf & 1) {
|
|
21493
21537
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
21494
21538
|
i0.ɵɵelementStart(0, "div", 2)(1, "div", 3);
|
|
21495
21539
|
i0.ɵɵtemplate(2, QueryCheckYourAnswersComponent_div_2_Template, 7, 4, "div", 4)(3, QueryCheckYourAnswersComponent_ng_container_3_Template, 4, 3, "ng-container", 5);
|
|
@@ -21572,6 +21616,8 @@ class QueryCheckYourAnswersComponent {
|
|
|
21572
21616
|
type: Output
|
|
21573
21617
|
}], querySubmitted: [{
|
|
21574
21618
|
type: Output
|
|
21619
|
+
}], callbackConfirmationMessage: [{
|
|
21620
|
+
type: Output
|
|
21575
21621
|
}] }); })();
|
|
21576
21622
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryCheckYourAnswersComponent, { className: "QueryCheckYourAnswersComponent", filePath: "lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.ts", lineNumber: 28 }); })();
|
|
21577
21623
|
|
|
@@ -21707,7 +21753,7 @@ function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_
|
|
|
21707
21753
|
i0.ɵɵadvance(5);
|
|
21708
21754
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(11, 12, "Last response date"));
|
|
21709
21755
|
i0.ɵɵadvance(3);
|
|
21710
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(14, 14, child_r3.createdOn, "dd
|
|
21756
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(14, 14, child_r3.createdOn, "dd MMMM YYYY HH:mm"));
|
|
21711
21757
|
i0.ɵɵadvance(2);
|
|
21712
21758
|
i0.ɵɵproperty("ngIf", ctx_r0.isInternalUser());
|
|
21713
21759
|
i0.ɵɵadvance(3);
|
|
@@ -21777,7 +21823,7 @@ function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_
|
|
|
21777
21823
|
i0.ɵɵadvance(5);
|
|
21778
21824
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10, 13, "Last submission date"));
|
|
21779
21825
|
i0.ɵɵadvance(3);
|
|
21780
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(13, 15, child_r3.createdOn, "dd
|
|
21826
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(13, 15, child_r3.createdOn, "dd MMMM YYYY HH:mm"));
|
|
21781
21827
|
i0.ɵɵadvance(4);
|
|
21782
21828
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(17, 18, "Last submitted by"));
|
|
21783
21829
|
i0.ɵɵadvance(3);
|
|
@@ -21877,7 +21923,7 @@ function QueryDetailsComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
21877
21923
|
i0.ɵɵadvance(3);
|
|
21878
21924
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(21, 27, "Submission date"));
|
|
21879
21925
|
i0.ɵɵadvance(3);
|
|
21880
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(24, 29, ctx_r0.query.createdOn, "dd
|
|
21926
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(24, 29, ctx_r0.query.createdOn, "dd MMMM YYYY HH:mm"));
|
|
21881
21927
|
i0.ɵɵadvance(4);
|
|
21882
21928
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(28, 32, "Query subject"));
|
|
21883
21929
|
i0.ɵɵadvance(3);
|
|
@@ -21963,7 +22009,7 @@ class QueryDetailsComponent {
|
|
|
21963
22009
|
}
|
|
21964
22010
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryDetailsComponent, [{
|
|
21965
22011
|
type: Component,
|
|
21966
|
-
args: [{ selector: 'ccd-query-details', template: "<ng-container *ngIf=\"query\">\n <cut-alert type=\"error\" *ngIf=\"hasRespondedToQuery() && !showItem\">\n <ng-container>{{message}}</ng-container>\n </cut-alert>\n\n <br/>\n <p *ngIf=\"showItem\">\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
|
|
22012
|
+
args: [{ selector: 'ccd-query-details', template: "<ng-container *ngIf=\"query\">\n <cut-alert type=\"error\" *ngIf=\"hasRespondedToQuery() && !showItem\">\n <ng-container>{{message}}</ng-container>\n </cut-alert>\n\n <br/>\n <p *ngIf=\"showItem\">\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 MMMM YYYY HH:mm' }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Query subject' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.subject }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Query body' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.body }}</td>\n </tr>\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\" [class.govuk-table__header--no-border]=\"query.isHearingRelated\">\n {{ 'Is the query hearing related?' | rpxTranslate }}\n </th>\n <td class=\"govuk-table__cell\" [class.govuk-table__cell--no-border]=\"query.isHearingRelated\">\n {{ 'Is the query hearing related?' | rpxTranslate: null : (query.isHearingRelated) }}</td>\n </tr>\n <tr class=\"govuk-table__row govuk-table__row--isHearingRelated\" *ngIf=\"query.isHearingRelated === 'Yes'\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'What is the date of the hearing?' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ query.hearingDate | date: 'dd MMM yyyy' }}</td>\n </tr>\n <tr class=\"govuk-table__row\" *ngIf=\"query.attachments.length > 0\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Attachments' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">\n <ccd-query-attachments-read\n *ngIf=\"query.attachments\"\n [attachments]=\"query.attachments\"\n >\n </ccd-query-attachments-read>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <ng-container *ngIf=\"query.children?.length > 0\">\n <ng-container *ngFor=\"let child of query.children; let i = index;\">\n <ng-container *ngIf=\"i % 2 === 0; else followUpMessage\">\n <table class=\"govuk-table query-details-table\" [attr.aria-describedby]=\"'Response of the query' | rpxTranslate\">\n <caption class=\"govuk-table__caption govuk-table__caption--l\">\n <div>{{ 'Response' | rpxTranslate }}</div>\n </caption>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last response date' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.createdOn | date: 'dd MMMM YYYY HH:mm' }}</td>\n </tr>\n\n <tr *ngIf=\"isInternalUser()\" class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Caseworker name' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.name }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Response detail' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.body }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\" *ngIf=\"child.attachments.length > 0\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Attachments' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">\n <ccd-query-attachments-read\n *ngIf=\"child.attachments\"\n [attachments]=\"child.attachments\"\n >\n </ccd-query-attachments-read>\n </td>\n </tr>\n </tbody>\n </table>\n </ng-container>\n\n <ng-template #followUpMessage>\n <!-- <div class=\"query_details_caption\">{{ 'Follow-up' | rpxTranslate }}</div> -->\n <table class=\"govuk-table query-details-table\"\n [attr.aria-describedby]=\"'Follow-up of the response' | rpxTranslate\">\n <caption class=\"govuk-table__caption govuk-table__caption--l\">\n <div>{{ 'Follow up query' | rpxTranslate }}</div>\n </caption>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last submission date' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.createdOn | date: 'dd MMMM YYYY HH:mm'}}</td>\n </tr>\n\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Last submitted by' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.name }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Query detail' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">{{ child.body }}</td>\n </tr>\n\n <tr class=\"govuk-table__row\" *ngIf=\"child.attachments.length > 0\">\n <th scope=\"row\" class=\"govuk-table__header\">{{ 'Attachments' | rpxTranslate }}</th>\n <td class=\"govuk-table__cell\">\n <ccd-query-attachments-read\n *ngIf=\"child.attachments\"\n [attachments]=\"child.attachments\"\n >\n </ccd-query-attachments-read>\n </td>\n </tr>\n </tbody>\n </table>\n </ng-template>\n </ng-container>\n </ng-container>\n</ng-container>\n", styles: [".query-details-table .govuk-table__header{width:330px}\n"] }]
|
|
21967
22013
|
}], () => [{ type: SessionStorageService }, { type: i1$1.ActivatedRoute }, { type: i1$1.Router }], { query: [{
|
|
21968
22014
|
type: Input
|
|
21969
22015
|
}], caseId: [{
|
|
@@ -22051,9 +22097,9 @@ function QueryListComponent_ng_container_0_tr_9_Template(rf, ctx) { if (rf & 1)
|
|
|
22051
22097
|
i0.ɵɵadvance(2);
|
|
22052
22098
|
i0.ɵɵtextInterpolate(message_r6.lastSubmittedBy);
|
|
22053
22099
|
i0.ɵɵadvance(2);
|
|
22054
|
-
i0.ɵɵ
|
|
22100
|
+
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind2(8, 5, message_r6.lastSubmittedDate, "dd MMM YYYY HH:mm"), " ");
|
|
22055
22101
|
i0.ɵɵadvance(3);
|
|
22056
|
-
i0.ɵɵ
|
|
22102
|
+
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind2(11, 8, message_r6.lastResponseDate, "dd MMM YYYY HH:mm"), " ");
|
|
22057
22103
|
i0.ɵɵadvance(3);
|
|
22058
22104
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(14, 11, message_r6.responseStatus));
|
|
22059
22105
|
} }
|
|
@@ -22157,7 +22203,7 @@ class QueryListComponent {
|
|
|
22157
22203
|
}
|
|
22158
22204
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryListComponent, [{
|
|
22159
22205
|
type: Component,
|
|
22160
|
-
args: [{ selector: 'ccd-query-list', template: "<ng-container *ngIf=\"queryListData\">\n <table class=\"govuk-table query-list__table\">\n <caption class=\"govuk-table__caption govuk-table__caption--l query-list__caption\">\n <div class=\"query-list__caption-text\">{{ queryListData.partyName }}</div>\n </caption>\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row query-list__row\">\n <th scope=\"col\" class=\"govuk-table__header\" [attr.aria-sort]=\"getAriaSortHeaderValue(col)\"\n *ngFor=\"let col of displayedColumns; let i = index;\">\n <button type=\"button\" [attr.data-index]=\"i\" aria-sort=\"none\" (click)=\"sortTable(col)\" href=\"javascript:void(0)\">\n {{ col.displayName | rpxTranslate }}\n </button>\n </th>\n </tr>\n </thead>\n\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row query-list__row\"\n *ngFor=\"let message of queryListData.queries\"\n >\n <td class=\"govuk-table__cell query-list__cell query-list__cell--first\">\n <a href=\"javascript:void(0)\" (click)=\"showDetails(message)\">{{ message.subject }}</a>\n </td>\n <td class=\"govuk-table__cell query-list__cell\">{{ message.lastSubmittedBy }}</td>\n <td class=\"govuk-table__cell query-list__cell\">{{ message.lastSubmittedDate | date: 'dd MMM YYYY' }}</td>\n <td class=\"govuk-table__cell query-list__cell\">{{ message.lastResponseDate | date: 'dd MMM YYYY' }}</td>\n <td class=\"govuk-table__cell query-list__cell\">{{ message.responseStatus | rpxTranslate }}</td>\n </tr>\n </tbody>\n </table>\n</ng-container>\n", styles: ["@charset \"UTF-8\";.query-list__row>*:first-child{padding-left:10px}.query-list__row>*:last-child{padding-right:10px}.query-list__cell--first{width:33%}.query-list__table{border:1px solid #b1b4b6;border-top:none}.query-list__caption{background-color:#dee0e2;border:1px solid #b1b4b6;border-bottom:none;font-weight:700;margin-bottom:0;padding:10px}.query-list__caption{font-size:18px}[aria-sort] button,[aria-sort] button:hover,[aria-sort] button:hover:hover{background-color:transparent;border-width:0;-webkit-box-shadow:0 0 0 0;-moz-box-shadow:0 0 0 0;box-shadow:0 0;color:#000;cursor:pointer;font-family:inherit;font-weight:inherit;padding:0 10px 0 0;position:relative;text-align:inherit;font-size:1em;margin:0}[aria-sort] button:focus,[aria-sort] button:hover:focus{background-color:#fd0;color:#000;box-shadow:0 -2px #fd0,0 4px #000;outline:none}[aria-sort]:first-child button{right:auto}[aria-sort] button:before{content:\" \\25bc\";position:absolute;right:-1px;top:9px;font-size:.5em}[aria-sort] button:after{content:\" \\25b2\";position:absolute;right:-1px;top:1px;font-size:.5em}[aria-sort=ascending] button:before,[aria-sort=descending] button:before{content:none}[aria-sort=ascending] button:after{content:\" \\25b2\";font-size:.8em;position:absolute;right:-5px;top:2px}[aria-sort=descending] button:after{content:\" \\25bc\";font-size:.8em;position:absolute;right:-5px;top:2px}\n"] }]
|
|
22206
|
+
args: [{ selector: 'ccd-query-list', template: "<ng-container *ngIf=\"queryListData\">\n <table class=\"govuk-table query-list__table\">\n <caption class=\"govuk-table__caption govuk-table__caption--l query-list__caption\">\n <div class=\"query-list__caption-text\">{{ queryListData.partyName }}</div>\n </caption>\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row query-list__row\">\n <th scope=\"col\" class=\"govuk-table__header\" [attr.aria-sort]=\"getAriaSortHeaderValue(col)\"\n *ngFor=\"let col of displayedColumns; let i = index;\">\n <button type=\"button\" [attr.data-index]=\"i\" aria-sort=\"none\" (click)=\"sortTable(col)\" href=\"javascript:void(0)\">\n {{ col.displayName | rpxTranslate }}\n </button>\n </th>\n </tr>\n </thead>\n\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row query-list__row\"\n *ngFor=\"let message of queryListData.queries\"\n >\n <td class=\"govuk-table__cell query-list__cell query-list__cell--first\">\n <a href=\"javascript:void(0)\" (click)=\"showDetails(message)\">{{ message.subject }}</a>\n </td>\n <td class=\"govuk-table__cell query-list__cell\">{{ message.lastSubmittedBy }}</td>\n <td class=\"govuk-table__cell query-list__cell\">{{ message.lastSubmittedDate | date: 'dd MMM YYYY HH:mm' }} </td>\n <td class=\"govuk-table__cell query-list__cell\">{{ message.lastResponseDate | date: 'dd MMM YYYY HH:mm' }} </td>\n <td class=\"govuk-table__cell query-list__cell\">{{ message.responseStatus | rpxTranslate }}</td>\n </tr>\n </tbody>\n </table>\n</ng-container>\n", styles: ["@charset \"UTF-8\";.query-list__row>*:first-child{padding-left:10px}.query-list__row>*:last-child{padding-right:10px}.query-list__cell--first{width:33%}.query-list__table{border:1px solid #b1b4b6;border-top:none}.query-list__caption{background-color:#dee0e2;border:1px solid #b1b4b6;border-bottom:none;font-weight:700;margin-bottom:0;padding:10px}.query-list__caption{font-size:18px}[aria-sort] button,[aria-sort] button:hover,[aria-sort] button:hover:hover{background-color:transparent;border-width:0;-webkit-box-shadow:0 0 0 0;-moz-box-shadow:0 0 0 0;box-shadow:0 0;color:#000;cursor:pointer;font-family:inherit;font-weight:inherit;padding:0 10px 0 0;position:relative;text-align:inherit;font-size:1em;margin:0}[aria-sort] button:focus,[aria-sort] button:hover:focus{background-color:#fd0;color:#000;box-shadow:0 -2px #fd0,0 4px #000;outline:none}[aria-sort]:first-child button{right:auto}[aria-sort] button:before{content:\" \\25bc\";position:absolute;right:-1px;top:9px;font-size:.5em}[aria-sort] button:after{content:\" \\25b2\";position:absolute;right:-1px;top:1px;font-size:.5em}[aria-sort=ascending] button:before,[aria-sort=descending] button:before{content:none}[aria-sort=ascending] button:after{content:\" \\25b2\";font-size:.8em;position:absolute;right:-5px;top:2px}[aria-sort=descending] button:after{content:\" \\25bc\";font-size:.8em;position:absolute;right:-5px;top:2px}\n"] }]
|
|
22161
22207
|
}], null, { caseQueriesCollection: [{
|
|
22162
22208
|
type: Input
|
|
22163
22209
|
}], selectedQuery: [{
|
|
@@ -22783,27 +22829,25 @@ function QueryConfirmationComponent_main_0_ng_container_3_Template(rf, ctx) { if
|
|
|
22783
22829
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
22784
22830
|
i0.ɵɵelementEnd();
|
|
22785
22831
|
i0.ɵɵelementStart(5, "div", 7);
|
|
22786
|
-
i0.ɵɵ
|
|
22832
|
+
i0.ɵɵelement(6, "ccd-markdown", 8);
|
|
22787
22833
|
i0.ɵɵpipe(7, "rpxTranslate");
|
|
22788
22834
|
i0.ɵɵelementEnd()();
|
|
22789
|
-
i0.ɵɵelementStart(8, "div",
|
|
22835
|
+
i0.ɵɵelementStart(8, "div", 9)(9, "h3", 10);
|
|
22790
22836
|
i0.ɵɵtext(10);
|
|
22791
22837
|
i0.ɵɵpipe(11, "rpxTranslate");
|
|
22792
22838
|
i0.ɵɵelementEnd();
|
|
22793
|
-
i0.ɵɵ
|
|
22794
|
-
i0.ɵɵ
|
|
22795
|
-
i0.ɵɵ
|
|
22796
|
-
i0.ɵɵ
|
|
22797
|
-
i0.ɵɵ
|
|
22798
|
-
i0.ɵɵtext(16);
|
|
22799
|
-
i0.ɵɵpipe(17, "rpxTranslate");
|
|
22839
|
+
i0.ɵɵelement(12, "ccd-markdown", 8);
|
|
22840
|
+
i0.ɵɵpipe(13, "rpxTranslate");
|
|
22841
|
+
i0.ɵɵelementStart(14, "p");
|
|
22842
|
+
i0.ɵɵtext(15);
|
|
22843
|
+
i0.ɵɵpipe(16, "rpxTranslate");
|
|
22800
22844
|
i0.ɵɵelementEnd();
|
|
22801
|
-
i0.ɵɵelementStart(
|
|
22802
|
-
i0.ɵɵtext(
|
|
22803
|
-
i0.ɵɵpipe(
|
|
22804
|
-
i0.ɵɵelementStart(
|
|
22805
|
-
i0.ɵɵtext(
|
|
22806
|
-
i0.ɵɵpipe(
|
|
22845
|
+
i0.ɵɵelementStart(17, "p");
|
|
22846
|
+
i0.ɵɵtext(18);
|
|
22847
|
+
i0.ɵɵpipe(19, "rpxTranslate");
|
|
22848
|
+
i0.ɵɵelementStart(20, "a", 11);
|
|
22849
|
+
i0.ɵɵtext(21);
|
|
22850
|
+
i0.ɵɵpipe(22, "rpxTranslate");
|
|
22807
22851
|
i0.ɵɵelementEnd()()();
|
|
22808
22852
|
i0.ɵɵelementContainerEnd();
|
|
22809
22853
|
} if (rf & 2) {
|
|
@@ -22811,19 +22855,19 @@ function QueryConfirmationComponent_main_0_ng_container_3_Template(rf, ctx) { if
|
|
|
22811
22855
|
i0.ɵɵadvance(3);
|
|
22812
22856
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 9, "Query submitted"));
|
|
22813
22857
|
i0.ɵɵadvance(3);
|
|
22814
|
-
i0.ɵɵ
|
|
22858
|
+
i0.ɵɵproperty("content", i0.ɵɵpipeBind1(7, 11, ctx_r0.callbackConfirmationMessageText == null ? null : ctx_r0.callbackConfirmationMessageText.header));
|
|
22815
22859
|
i0.ɵɵadvance(4);
|
|
22816
22860
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(11, 13, "What happens next"));
|
|
22861
|
+
i0.ɵɵadvance(2);
|
|
22862
|
+
i0.ɵɵproperty("content", i0.ɵɵpipeBind1(13, 15, ctx_r0.callbackConfirmationMessageText == null ? null : ctx_r0.callbackConfirmationMessageText.body));
|
|
22817
22863
|
i0.ɵɵadvance(3);
|
|
22818
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
22819
|
-
i0.ɵɵadvance(3);
|
|
22820
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(17, 17, "When the response is available it will be added to the 'Queries' section."));
|
|
22864
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(16, 17, "When the response is available it will be added to the 'Queries' section."));
|
|
22821
22865
|
i0.ɵɵadvance(3);
|
|
22822
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
22866
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(19, 19, "You can"), " ");
|
|
22823
22867
|
i0.ɵɵadvance(2);
|
|
22824
22868
|
i0.ɵɵpropertyInterpolate1("routerLink", "/cases/case-details/", ctx_r0.caseId, "");
|
|
22825
22869
|
i0.ɵɵadvance();
|
|
22826
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
22870
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(22, 21, "Go back to the case"));
|
|
22827
22871
|
} }
|
|
22828
22872
|
function QueryConfirmationComponent_main_0_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
|
22829
22873
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -22831,19 +22875,19 @@ function QueryConfirmationComponent_main_0_ng_container_4_Template(rf, ctx) { if
|
|
|
22831
22875
|
i0.ɵɵtext(3);
|
|
22832
22876
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
22833
22877
|
i0.ɵɵelementEnd();
|
|
22834
|
-
i0.ɵɵelementStart(5, "div",
|
|
22878
|
+
i0.ɵɵelementStart(5, "div", 12);
|
|
22835
22879
|
i0.ɵɵtext(6);
|
|
22836
22880
|
i0.ɵɵpipe(7, "rpxTranslate");
|
|
22837
22881
|
i0.ɵɵelementEnd()();
|
|
22838
|
-
i0.ɵɵelementStart(8, "div",
|
|
22882
|
+
i0.ɵɵelementStart(8, "div", 9);
|
|
22839
22883
|
i0.ɵɵtext(9);
|
|
22840
22884
|
i0.ɵɵpipe(10, "rpxTranslate");
|
|
22841
|
-
i0.ɵɵelementStart(11, "a",
|
|
22885
|
+
i0.ɵɵelementStart(11, "a", 13);
|
|
22842
22886
|
i0.ɵɵtext(12);
|
|
22843
22887
|
i0.ɵɵpipe(13, "rpxTranslate");
|
|
22844
22888
|
i0.ɵɵelementEnd();
|
|
22845
22889
|
i0.ɵɵtext(14, " or ");
|
|
22846
|
-
i0.ɵɵelementStart(15, "a",
|
|
22890
|
+
i0.ɵɵelementStart(15, "a", 14);
|
|
22847
22891
|
i0.ɵɵtext(16);
|
|
22848
22892
|
i0.ɵɵpipe(17, "rpxTranslate");
|
|
22849
22893
|
i0.ɵɵelementEnd()();
|
|
@@ -22867,7 +22911,7 @@ function QueryConfirmationComponent_main_0_ng_container_4_Template(rf, ctx) { if
|
|
|
22867
22911
|
} }
|
|
22868
22912
|
function QueryConfirmationComponent_main_0_Template(rf, ctx) { if (rf & 1) {
|
|
22869
22913
|
i0.ɵɵelementStart(0, "main", 1)(1, "div", 2)(2, "div", 3);
|
|
22870
|
-
i0.ɵɵtemplate(3, QueryConfirmationComponent_main_0_ng_container_3_Template,
|
|
22914
|
+
i0.ɵɵtemplate(3, QueryConfirmationComponent_main_0_ng_container_3_Template, 23, 23, "ng-container", 4)(4, QueryConfirmationComponent_main_0_ng_container_4_Template, 18, 19, "ng-container", 4);
|
|
22871
22915
|
i0.ɵɵelementEnd()()();
|
|
22872
22916
|
} if (rf & 2) {
|
|
22873
22917
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
@@ -22879,6 +22923,7 @@ function QueryConfirmationComponent_main_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
22879
22923
|
class QueryConfirmationComponent {
|
|
22880
22924
|
route;
|
|
22881
22925
|
queryCreateContext;
|
|
22926
|
+
callbackConfirmationMessageText = {};
|
|
22882
22927
|
caseId = '';
|
|
22883
22928
|
queryCreateContextEnum = QueryCreateContext;
|
|
22884
22929
|
constructor(route) {
|
|
@@ -22888,17 +22933,19 @@ class QueryConfirmationComponent {
|
|
|
22888
22933
|
this.caseId = this.route.snapshot.params.cid;
|
|
22889
22934
|
}
|
|
22890
22935
|
static ɵfac = function QueryConfirmationComponent_Factory(t) { return new (t || QueryConfirmationComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute)); };
|
|
22891
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryConfirmationComponent, selectors: [["ccd-query-confirmation"]], inputs: { queryCreateContext: "queryCreateContext" }, decls: 1, vars: 1, consts: [["class", "govuk-main-wrapper", 4, "ngIf"], [1, "govuk-main-wrapper"], [1, "govuk-grid-row"], [1, "govuk-grid-column-two-thirds"], [4, "ngIf"], [1, "govuk-panel", "govuk-panel--confirmation"], [1, "govuk-panel__title"], [1, "govuk-panel__body"], [1, "govuk-body"], [1, "govuk-heading-s"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "routerLink"], ["id", "tasks-link", "href", "javascript:void(0)", 1, "govuk-link", 3, "routerLink"], ["id", "case-link", "href", "javascript:void(0)", 1, "govuk-link", 3, "routerLink"]], template: function QueryConfirmationComponent_Template(rf, ctx) { if (rf & 1) {
|
|
22936
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryConfirmationComponent, selectors: [["ccd-query-confirmation"]], inputs: { queryCreateContext: "queryCreateContext", callbackConfirmationMessageText: "callbackConfirmationMessageText" }, decls: 1, vars: 1, consts: [["class", "govuk-main-wrapper", 4, "ngIf"], [1, "govuk-main-wrapper"], [1, "govuk-grid-row"], [1, "govuk-grid-column-two-thirds"], [4, "ngIf"], [1, "govuk-panel", "govuk-panel--confirmation"], [1, "govuk-panel__title"], [1, "qm-confirmation", "govuk-panel__body"], [3, "content"], [1, "govuk-body"], [1, "govuk-heading-s"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "routerLink"], [1, "govuk-panel__body"], ["id", "tasks-link", "href", "javascript:void(0)", 1, "govuk-link", 3, "routerLink"], ["id", "case-link", "href", "javascript:void(0)", 1, "govuk-link", 3, "routerLink"]], template: function QueryConfirmationComponent_Template(rf, ctx) { if (rf & 1) {
|
|
22892
22937
|
i0.ɵɵtemplate(0, QueryConfirmationComponent_main_0_Template, 5, 2, "main", 0);
|
|
22893
22938
|
} if (rf & 2) {
|
|
22894
22939
|
i0.ɵɵproperty("ngIf", ctx.queryCreateContext);
|
|
22895
|
-
} }, dependencies: [i5.NgIf, i1$1.RouterLink, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
22940
|
+
} }, dependencies: [i5.NgIf, i1$1.RouterLink, MarkdownComponent, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
22896
22941
|
}
|
|
22897
22942
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryConfirmationComponent, [{
|
|
22898
22943
|
type: Component,
|
|
22899
|
-
args: [{ selector: 'ccd-query-confirmation', template: "<main class=\"govuk-main-wrapper\" *ngIf=\"queryCreateContext\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <ng-container *ngIf=\"queryCreateContext === queryCreateContextEnum.NEW_QUERY || queryCreateContext === queryCreateContextEnum.FOLLOWUP\">\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">{{'Query submitted' | rpxTranslate}}</h1>\n <div class=\"govuk-panel__body\"
|
|
22944
|
+
args: [{ selector: 'ccd-query-confirmation', template: "<main class=\"govuk-main-wrapper\" *ngIf=\"queryCreateContext\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <ng-container *ngIf=\"queryCreateContext === queryCreateContextEnum.NEW_QUERY || queryCreateContext === queryCreateContextEnum.FOLLOWUP\">\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">{{'Query submitted' | rpxTranslate}}</h1>\n <div class=\"qm-confirmation govuk-panel__body\">\n <ccd-markdown [content]=\"callbackConfirmationMessageText?.header | rpxTranslate\"></ccd-markdown>\n </div>\n </div>\n <div class=\"govuk-body\">\n <h3 class=\"govuk-heading-s\">{{'What happens next' | rpxTranslate}}</h3>\n <ccd-markdown [content]=\"callbackConfirmationMessageText?.body | rpxTranslate\"></ccd-markdown>\n <p>{{'When the response is available it will be added to the \\'Queries\\' section.' | rpxTranslate}}</p>\n <p>\n {{'You can' | rpxTranslate}}\n <a class=\"govuk-link\" href=\"javascript:void(0)\" routerLink=\"/cases/case-details/{{caseId}}\">{{'Go back to the case' | rpxTranslate}}</a>\n </p>\n </div>\n </ng-container>\n <ng-container *ngIf=\"queryCreateContext === queryCreateContextEnum.RESPOND\">\n <div class=\"govuk-panel govuk-panel--confirmation\">\n <h1 class=\"govuk-panel__title\">{{'Query response submitted' | rpxTranslate}}</h1>\n <div class=\"govuk-panel__body\">{{'This query response has been added to the case' | rpxTranslate}}</div>\n </div>\n <div class=\"govuk-body\">\n {{'You can' | rpxTranslate}}\n <a class=\"govuk-link\" id=\"tasks-link\" href=\"javascript:void(0)\" routerLink=\"/cases/case-details/{{caseId}}/tasks\">{{'return to tasks' | rpxTranslate}}</a> or\n <a class=\"govuk-link\" id=\"case-link\" href=\"javascript:void(0)\" routerLink=\"/cases/case-details/{{caseId}}\">{{'Go back to the case' | rpxTranslate}}</a>\n </div>\n </ng-container>\n </div>\n </div>\n</main>\n" }]
|
|
22900
22945
|
}], () => [{ type: i1$1.ActivatedRoute }], { queryCreateContext: [{
|
|
22901
22946
|
type: Input
|
|
22947
|
+
}], callbackConfirmationMessageText: [{
|
|
22948
|
+
type: Input
|
|
22902
22949
|
}] }); })();
|
|
22903
22950
|
(() => { (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 }); })();
|
|
22904
22951
|
|
|
@@ -22958,7 +23005,7 @@ function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_ng_templ
|
|
|
22958
23005
|
i0.ɵɵadvance(2);
|
|
22959
23006
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Your query is under review"));
|
|
22960
23007
|
i0.ɵɵadvance(3);
|
|
22961
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 4, "Our team will read your query and
|
|
23008
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 4, "Our team will read your query and respond. Do not submit the same query more than once."));
|
|
22962
23009
|
} }
|
|
22963
23010
|
function ReadQueryManagementFieldComponent_ng_template_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
22964
23011
|
i0.ɵɵelementContainerStart(0);
|
|
@@ -23044,7 +23091,7 @@ class ReadQueryManagementFieldComponent extends AbstractFieldReadComponent {
|
|
|
23044
23091
|
}
|
|
23045
23092
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadQueryManagementFieldComponent, [{
|
|
23046
23093
|
type: Component,
|
|
23047
|
-
args: [{ selector: 'ccd-read-query-management-field', template: "<ng-container *ngIf=\"showQueryList; else singleQueryDetails\">\n <ng-container *ngFor=\"let caseQueriesCollection of caseQueriesCollections\">\n <div *ngIf=\"showQueryList\" class=\"govuk-!-margin-top-8 govuk-!-margin-bottom-8\">\n <ccd-query-list (selectedQuery)=\"setQuery($event)\" [caseQueriesCollection]=\"caseQueriesCollection\"></ccd-query-list>\n </div>\n </ng-container>\n</ng-container>\n\n<ng-template #singleQueryDetails>\n <ccd-query-details\n [query]=\"query\"\n (backClicked)=\"showQueryList = true\"\n [caseId]=\"caseId\"\n ></ccd-query-details>\n\n <ng-container *ngIf=\"!isInternalUser()\">\n <ng-container *ngIf=\"query?.children?.length > 0 && query?.children?.length % 2 === 1; else queryIsInReview\">\n <button id=\"ask-follow-up-question\" class=\"govuk-button\" data-module=\"govuk-button\"\n [routerLink]=\"['/query-management', 'query', caseId, '4', query.id]\">\n {{ 'Ask a follow-up question' | rpxTranslate }}\n </button>\n </ng-container>\n\n <ng-template #queryIsInReview>\n <div>\n <p class=\"govuk-!-font-weight-bold\">{{ 'Your query is under review' | rpxTranslate }}</p>\n <p>{{ 'Our team will read your query and
|
|
23094
|
+
args: [{ selector: 'ccd-read-query-management-field', template: "<ng-container *ngIf=\"showQueryList; else singleQueryDetails\">\n <ng-container *ngFor=\"let caseQueriesCollection of caseQueriesCollections\">\n <div *ngIf=\"showQueryList\" class=\"govuk-!-margin-top-8 govuk-!-margin-bottom-8\">\n <ccd-query-list (selectedQuery)=\"setQuery($event)\" [caseQueriesCollection]=\"caseQueriesCollection\"></ccd-query-list>\n </div>\n </ng-container>\n</ng-container>\n\n<ng-template #singleQueryDetails>\n <ccd-query-details\n [query]=\"query\"\n (backClicked)=\"showQueryList = true\"\n [caseId]=\"caseId\"\n ></ccd-query-details>\n\n <ng-container *ngIf=\"!isInternalUser()\">\n <ng-container *ngIf=\"query?.children?.length > 0 && query?.children?.length % 2 === 1; else queryIsInReview\">\n <button id=\"ask-follow-up-question\" class=\"govuk-button\" data-module=\"govuk-button\"\n [routerLink]=\"['/query-management', 'query', caseId, '4', query.id]\">\n {{ 'Ask a follow-up question' | rpxTranslate }}\n </button>\n </ng-container>\n\n <ng-template #queryIsInReview>\n <div>\n <p class=\"govuk-!-font-weight-bold\">{{ 'Your query is under review' | rpxTranslate }}</p>\n <p>{{ 'Our team will read your query and respond. Do not submit the same query more than once.' | rpxTranslate }}</p>\n </div>\n </ng-template>\n </ng-container>\n</ng-template>\n" }]
|
|
23048
23095
|
}], () => [{ type: i1$1.ActivatedRoute }, { type: SessionStorageService }, { type: CaseNotifier }], null); })();
|
|
23049
23096
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadQueryManagementFieldComponent, { className: "ReadQueryManagementFieldComponent", filePath: "lib/shared/components/palette/query-management/read-query-management-field.component.ts", lineNumber: 15 }); })();
|
|
23050
23097
|
|
|
@@ -24009,7 +24056,7 @@ class CaseFileViewOverlayMenuComponent {
|
|
|
24009
24056
|
const trigger_r5 = i0.ɵɵreference(2);
|
|
24010
24057
|
i0.ɵɵadvance(4);
|
|
24011
24058
|
i0.ɵɵproperty("cdkConnectedOverlayOrigin", trigger_r5)("cdkConnectedOverlayOpen", ctx.isOpen)("cdkConnectedOverlayHasBackdrop", true)("cdkConnectedOverlayBackdropClass", "cdk-overlay-transparent-backdrop");
|
|
24012
|
-
} }, dependencies: [i5.NgForOf, i5.NgIf, i2$
|
|
24059
|
+
} }, dependencies: [i5.NgForOf, i5.NgIf, i2$2.CdkConnectedOverlay, i2$2.CdkOverlayOrigin], styles: [".overlay-toggle[_ngcontent-%COMP%]{display:block;background:none;border:0;padding:0 6px;margin-right:-4px;cursor:pointer}.overlay-menu[_ngcontent-%COMP%]{background-color:#fafafa;border:1px solid grey;margin-top:8px;font-size:1rem}.overlay-menu__title[_ngcontent-%COMP%], .overlay-menu__item[_ngcontent-%COMP%]{padding:10px;border-bottom:1px solid grey}.overlay-menu__title[_ngcontent-%COMP%]:last-child, .overlay-menu__item[_ngcontent-%COMP%]:last-child{border:none}.overlay-menu__title[_ngcontent-%COMP%]{padding-left:6px;padding-right:6px}.overlay-menu__item[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer;font-size:.875em}.overlay-menu__item[_ngcontent-%COMP%]:hover{background-color:#fff2cc}.overlay-menu__item[_ngcontent-%COMP%]:focus{border:2px solid #ffbf47}.overlay-menu__itemIcon[_ngcontent-%COMP%]{height:1.25em;width:1.25em;margin-right:6px}"] });
|
|
24013
24060
|
}
|
|
24014
24061
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewOverlayMenuComponent, [{
|
|
24015
24062
|
type: Component,
|
|
@@ -29674,7 +29721,7 @@ class MarkdownComponentModule {
|
|
|
29674
29721
|
}], null, null); })();
|
|
29675
29722
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MarkdownComponentModule, { declarations: [MarkdownComponent,
|
|
29676
29723
|
RouterLinkComponent], imports: [CommonModule,
|
|
29677
|
-
ReactiveFormsModule, i1.RpxTranslationModule, PipesModule,
|
|
29724
|
+
ReactiveFormsModule, i1.RpxTranslationModule, PipesModule, i2$1.MarkdownModule, RouterModule], exports: [MarkdownComponent,
|
|
29678
29725
|
RouterLinkComponent] }); })();
|
|
29679
29726
|
|
|
29680
29727
|
class FeeValue {
|
|
@@ -30493,7 +30540,7 @@ class PaletteModule {
|
|
|
30493
30540
|
BodyModule,
|
|
30494
30541
|
FormModule,
|
|
30495
30542
|
TabsModule,
|
|
30496
|
-
LabelSubstitutorModule,
|
|
30543
|
+
LabelSubstitutorModule, i2$1.MarkdownModule, NgxMatDatetimePickerModule,
|
|
30497
30544
|
NgxMatTimepickerModule,
|
|
30498
30545
|
NgxMatNativeDateModule,
|
|
30499
30546
|
MatLegacyFormFieldModule,
|
|
@@ -30666,7 +30713,7 @@ i0.ɵɵsetComponentScope(ReadLinkedCasesFieldComponent, function () { return [i5
|
|
|
30666
30713
|
i0.ɵɵsetComponentScope(WriteAddressFieldComponent, function () { return [i5.NgClass, i5.NgForOf, i5.NgIf, i4.NgSelectOption, i4.ɵNgSelectMultipleOption, i4.DefaultValueAccessor, i4.SelectControlValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormControlDirective, i4.FormGroupDirective, WriteComplexFieldComponent]; }, function () { return [FieldLabelPipe, i1.RpxTranslatePipe]; });
|
|
30667
30714
|
i0.ɵɵsetComponentScope(WriteComplexFieldComponent, function () { return [i5.NgForOf, i5.NgIf, i5.NgSwitch, i5.NgSwitchCase, i4.NgControlStatusGroup, i4.FormGroupDirective, LabelSubstitutorDirective, FieldReadComponent,
|
|
30668
30715
|
FieldWriteComponent]; }, function () { return [FieldLabelPipe, IsReadOnlyPipe]; });
|
|
30669
|
-
i0.ɵɵsetComponentScope(WriteDocumentFieldComponent, function () { return [i5.NgClass, i5.NgIf,
|
|
30716
|
+
i0.ɵɵsetComponentScope(WriteDocumentFieldComponent, function () { return [i5.NgClass, i5.NgIf, i2$1.MarkdownComponent, ReadDocumentFieldComponent]; }, function () { return [FieldLabelPipe, i1.RpxTranslatePipe]; });
|
|
30670
30717
|
i0.ɵɵsetComponentScope(WriteDateContainerFieldComponent, function () { return [i5.NgIf, i4.NgControlStatusGroup, i4.FormGroupDirective, DatetimePickerComponent,
|
|
30671
30718
|
WriteDateFieldComponent]; }, []);
|
|
30672
30719
|
i0.ɵɵsetComponentScope(WriteCaseFlagFieldComponent, function () { return [i5.NgForOf, i5.NgIf, i5.NgSwitch, i5.NgSwitchCase, i4.NgControlStatusGroup, i4.FormGroupDirective, SelectFlagTypeComponent,
|
|
@@ -30686,7 +30733,7 @@ i0.ɵɵsetComponentScope(WriteOrganisationFieldComponent, function () { return [
|
|
|
30686
30733
|
i0.ɵɵsetComponentScope(WriteOrderSummaryFieldComponent, function () { return [ReadOrderSummaryFieldComponent]; }, []);
|
|
30687
30734
|
i0.ɵɵsetComponentScope(WriteDateContainerFieldComponent, function () { return [i5.NgIf, i4.NgControlStatusGroup, i4.FormGroupDirective, DatetimePickerComponent,
|
|
30688
30735
|
WriteDateFieldComponent]; }, []);
|
|
30689
|
-
i0.ɵɵsetComponentScope(WriteCollectionFieldComponent, function () { return [i5.NgForOf, i5.NgIf, i4.NgControlStatusGroup, i4.FormGroupDirective,
|
|
30736
|
+
i0.ɵɵsetComponentScope(WriteCollectionFieldComponent, function () { return [i5.NgForOf, i5.NgIf, i4.NgControlStatusGroup, i4.FormGroupDirective, MarkdownComponent, FieldWriteComponent]; }, function () { return [FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe]; });
|
|
30690
30737
|
i0.ɵɵsetComponentScope(
|
|
30691
30738
|
// ComponentLauncher web components
|
|
30692
30739
|
CaseFileViewFieldComponent, function () { return [i5.NgForOf, i5.NgIf, i14.MediaViewerComponent, CaseFileViewFolderComponent]; }, []);
|
|
@@ -32087,7 +32134,7 @@ class PaginationComponent {
|
|
|
32087
32134
|
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(3, 4, "Pagination"));
|
|
32088
32135
|
i0.ɵɵadvance(2);
|
|
32089
32136
|
i0.ɵɵproperty("ngIf", !(ctx.autoHide && p_r3.pages.length <= 1));
|
|
32090
|
-
} }, dependencies: [i5.NgForOf, i5.NgIf, i2$
|
|
32137
|
+
} }, dependencies: [i5.NgForOf, i5.NgIf, i2$3.PaginationControlsDirective, i5.DecimalPipe, i1.RpxTranslatePipe], styles: [".ngx-pagination[_ngcontent-%COMP%]{margin-left:0;margin-bottom:1rem;padding-top:25px;text-decoration:none;text-align:left;font-size:16px}.ngx-pagination[_ngcontent-%COMP%]:before, .ngx-pagination[_ngcontent-%COMP%]:after{content:\" \";display:table}.ngx-pagination[_ngcontent-%COMP%]:after{clear:both}.ngx-pagination[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;margin-right:.0625rem;border-radius:0}.ngx-pagination[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:inline-block}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:block;padding:.1875rem .625rem;border-radius:0;color:#005da6}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:#e6e6e6}.ngx-pagination[_ngcontent-%COMP%] .current[_ngcontent-%COMP%]{padding:.1875rem .625rem;background:#fff;color:#4c2c92;cursor:default;font-weight:900;text-decoration:none}.ngx-pagination[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]{display:none}.ngx-pagination[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]:hover{background:transparent}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{cursor:pointer}.ngx-pagination[_ngcontent-%COMP%] .pagination-previous[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:before, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous.disabled[_ngcontent-%COMP%]:before{margin-right:.5rem;display:inline-block;height:10px;width:10px;border-style:solid;color:#0a0a0a;background:transparent;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg);content:\"\";border-width:3px 0 0 3px}.ngx-pagination[_ngcontent-%COMP%] .pagination-next[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-next.disabled[_ngcontent-%COMP%]:after{margin-left:.5rem;display:inline-block;height:10px;width:10px;border-style:solid;color:#0a0a0a;background:transparent;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg);content:\"\";border-width:0 3px 3px 0}.ngx-pagination[_ngcontent-%COMP%] .show-for-sr[_ngcontent-%COMP%]{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.ngx-pagination[_ngcontent-%COMP%] .small-screen[_ngcontent-%COMP%]{display:none}@media screen and (max-width: 601px){.ngx-pagination.responsive[_ngcontent-%COMP%] .small-screen[_ngcontent-%COMP%]{display:inline-block}.ngx-pagination.responsive[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:not(.small-screen):not(.pagination-previous):not(.pagination-next){display:none}}"] });
|
|
32091
32138
|
}
|
|
32092
32139
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginationComponent, [{
|
|
32093
32140
|
type: Component,
|
|
@@ -32433,7 +32480,7 @@ class CaseListComponent {
|
|
|
32433
32480
|
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind2(10, 10, ctx.cases, i0.ɵɵpureFunction3(13, _c0$c, ctx.pageSize, ctx.currentPageNo, ctx.totalResultsCount)));
|
|
32434
32481
|
i0.ɵɵadvance(2);
|
|
32435
32482
|
i0.ɵɵproperty("ngIf", ctx.totalResultsCount > ctx.pageSize);
|
|
32436
|
-
} }, dependencies: [i5.NgForOf, i5.NgIf, i5.NgSwitch, i5.NgSwitchCase, i5.NgSwitchDefault, i1$1.RouterLink, PaginationComponent, i5.CurrencyPipe, i2$
|
|
32483
|
+
} }, dependencies: [i5.NgForOf, i5.NgIf, i5.NgSwitch, i5.NgSwitchCase, i5.NgSwitchDefault, i1$1.RouterLink, PaginationComponent, i5.CurrencyPipe, i2$3.PaginatePipe, i1.RpxTranslatePipe] });
|
|
32437
32484
|
}
|
|
32438
32485
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseListComponent, [{
|
|
32439
32486
|
type: Component,
|
|
@@ -39508,7 +39555,7 @@ class SearchResultModule {
|
|
|
39508
39555
|
PipesModule,
|
|
39509
39556
|
ActivityModule,
|
|
39510
39557
|
PaginationModule, i1.RpxTranslationModule, PaletteModule], exports: [SearchResultComponent] }); })();
|
|
39511
|
-
i0.ɵɵsetComponentScope(SearchResultComponent, function () { return [i5.NgForOf, i5.NgIf, i1$1.RouterLink, LabelSubstitutorDirective, ActivityComponent, PaginationComponent, FieldReadComponent]; }, function () { return [i5.DecimalPipe, i2$
|
|
39558
|
+
i0.ɵɵsetComponentScope(SearchResultComponent, function () { return [i5.NgForOf, i5.NgIf, i1$1.RouterLink, LabelSubstitutorDirective, ActivityComponent, PaginationComponent, FieldReadComponent]; }, function () { return [i5.DecimalPipe, i2$3.PaginatePipe, CaseReferencePipe, SortSearchResultPipe, i1.RpxTranslatePipe]; });
|
|
39512
39559
|
|
|
39513
39560
|
// tslint:disable:variable-name
|
|
39514
39561
|
class ComplexFieldOverride {
|