@hmcts/ccd-case-ui-toolkit 7.2.4-remove-substitutor-logs → 7.2.5-invalid-message
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/shared/components/palette/palette.module.mjs +2 -3
- package/esm2022/lib/shared/components/palette/query-management/components/query-details/query-details.component.mjs +120 -138
- package/esm2022/lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.mjs +35 -30
- package/esm2022/lib/shared/directives/substitutor/label-substitutor.directive.mjs +5 -1
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs +158 -166
- package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/lib/shared/components/palette/query-management/components/query-details/query-details.component.d.ts +0 -1
- package/lib/shared/components/palette/query-management/components/query-details/query-details.component.d.ts.map +1 -1
- package/lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.d.ts.map +1 -1
- package/lib/shared/directives/substitutor/label-substitutor.directive.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -6615,13 +6615,17 @@ class LabelSubstitutorDirective {
|
|
|
6615
6615
|
const oldLabel = this.caseField.label;
|
|
6616
6616
|
const substitutedLabel = this.resolvePlaceholders(fields, this.caseField.label);
|
|
6617
6617
|
if (oldLabel && oldLabel !== substitutedLabel) {
|
|
6618
|
+
console.log(`placeholders present: ${oldLabel} -> ${substitutedLabel}`);
|
|
6618
6619
|
// we need to translate the uninterpolated data then substitute the values in translated string
|
|
6619
6620
|
const translated = this.rpxTranslationPipe.transform(oldLabel);
|
|
6621
|
+
console.log(`translated: ${translated}`);
|
|
6620
6622
|
const transSubstitutedLabel = this.resolvePlaceholders(fields, translated);
|
|
6623
|
+
console.log(`translated and substituted: ${transSubstitutedLabel}`);
|
|
6621
6624
|
this.caseField.label = transSubstitutedLabel;
|
|
6622
6625
|
this.caseField.isTranslated = true;
|
|
6623
6626
|
}
|
|
6624
6627
|
else {
|
|
6628
|
+
console.log(`no placeholders present: ${oldLabel}`);
|
|
6625
6629
|
this.caseField.label = substitutedLabel;
|
|
6626
6630
|
this.caseField.isTranslated = false;
|
|
6627
6631
|
}
|
|
@@ -21650,21 +21654,10 @@ class QueryCheckYourAnswersComponent {
|
|
|
21650
21654
|
}] }); })();
|
|
21651
21655
|
(() => { (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 }); })();
|
|
21652
21656
|
|
|
21653
|
-
function
|
|
21654
|
-
i0.ɵɵ
|
|
21655
|
-
i0.ɵɵ
|
|
21656
|
-
i0.ɵɵ
|
|
21657
|
-
i0.ɵɵelementContainerEnd();
|
|
21658
|
-
i0.ɵɵelementEnd();
|
|
21659
|
-
} if (rf & 2) {
|
|
21660
|
-
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
21661
|
-
i0.ɵɵadvance(2);
|
|
21662
|
-
i0.ɵɵtextInterpolate(ctx_r0.message);
|
|
21663
|
-
} }
|
|
21664
|
-
function QueryDetailsComponent_ng_container_0_p_3_Template(rf, ctx) { if (rf & 1) {
|
|
21665
|
-
const _r2 = i0.ɵɵgetCurrentView();
|
|
21666
|
-
i0.ɵɵelementStart(0, "p")(1, "a", 12);
|
|
21667
|
-
i0.ɵɵlistener("click", function QueryDetailsComponent_ng_container_0_p_3_Template_a_click_1_listener() { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.onBack()); });
|
|
21657
|
+
function QueryDetailsComponent_ng_container_0_p_1_Template(rf, ctx) { if (rf & 1) {
|
|
21658
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
21659
|
+
i0.ɵɵelementStart(0, "p")(1, "a", 10);
|
|
21660
|
+
i0.ɵɵlistener("click", function QueryDetailsComponent_ng_container_0_p_1_Template_a_click_1_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onBack()); });
|
|
21668
21661
|
i0.ɵɵtext(2);
|
|
21669
21662
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
21670
21663
|
i0.ɵɵelementEnd()();
|
|
@@ -21672,49 +21665,49 @@ function QueryDetailsComponent_ng_container_0_p_3_Template(rf, ctx) { if (rf & 1
|
|
|
21672
21665
|
i0.ɵɵadvance(2);
|
|
21673
21666
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "Back to query list"));
|
|
21674
21667
|
} }
|
|
21675
|
-
function
|
|
21676
|
-
i0.ɵɵelementStart(0, "tr",
|
|
21668
|
+
function QueryDetailsComponent_ng_container_0_tr_42_Template(rf, ctx) { if (rf & 1) {
|
|
21669
|
+
i0.ɵɵelementStart(0, "tr", 11)(1, "th", 6);
|
|
21677
21670
|
i0.ɵɵtext(2);
|
|
21678
21671
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
21679
21672
|
i0.ɵɵelementEnd();
|
|
21680
|
-
i0.ɵɵelementStart(4, "td",
|
|
21673
|
+
i0.ɵɵelementStart(4, "td", 7);
|
|
21681
21674
|
i0.ɵɵtext(5);
|
|
21682
21675
|
i0.ɵɵpipe(6, "date");
|
|
21683
21676
|
i0.ɵɵelementEnd()();
|
|
21684
21677
|
} if (rf & 2) {
|
|
21685
|
-
const
|
|
21678
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
21686
21679
|
i0.ɵɵadvance(2);
|
|
21687
21680
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "What is the date of the hearing?"));
|
|
21688
21681
|
i0.ɵɵadvance(3);
|
|
21689
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(6, 4,
|
|
21682
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(6, 4, ctx_r1.query.hearingDate, "dd MMM yyyy"));
|
|
21690
21683
|
} }
|
|
21691
|
-
function
|
|
21692
|
-
i0.ɵɵelement(0, "ccd-query-attachments-read",
|
|
21684
|
+
function QueryDetailsComponent_ng_container_0_tr_43_ccd_query_attachments_read_5_Template(rf, ctx) { if (rf & 1) {
|
|
21685
|
+
i0.ɵɵelement(0, "ccd-query-attachments-read", 13);
|
|
21693
21686
|
} if (rf & 2) {
|
|
21694
|
-
const
|
|
21695
|
-
i0.ɵɵproperty("attachments",
|
|
21687
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
21688
|
+
i0.ɵɵproperty("attachments", ctx_r1.query.attachments);
|
|
21696
21689
|
} }
|
|
21697
|
-
function
|
|
21698
|
-
i0.ɵɵelementStart(0, "tr",
|
|
21690
|
+
function QueryDetailsComponent_ng_container_0_tr_43_Template(rf, ctx) { if (rf & 1) {
|
|
21691
|
+
i0.ɵɵelementStart(0, "tr", 5)(1, "th", 6);
|
|
21699
21692
|
i0.ɵɵtext(2);
|
|
21700
21693
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
21701
21694
|
i0.ɵɵelementEnd();
|
|
21702
|
-
i0.ɵɵelementStart(4, "td",
|
|
21703
|
-
i0.ɵɵtemplate(5,
|
|
21695
|
+
i0.ɵɵelementStart(4, "td", 7);
|
|
21696
|
+
i0.ɵɵtemplate(5, QueryDetailsComponent_ng_container_0_tr_43_ccd_query_attachments_read_5_Template, 1, 1, "ccd-query-attachments-read", 12);
|
|
21704
21697
|
i0.ɵɵelementEnd()();
|
|
21705
21698
|
} if (rf & 2) {
|
|
21706
|
-
const
|
|
21699
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
21707
21700
|
i0.ɵɵadvance(2);
|
|
21708
21701
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Attachments"));
|
|
21709
21702
|
i0.ɵɵadvance(3);
|
|
21710
|
-
i0.ɵɵproperty("ngIf",
|
|
21703
|
+
i0.ɵɵproperty("ngIf", ctx_r1.query.attachments);
|
|
21711
21704
|
} }
|
|
21712
|
-
function
|
|
21713
|
-
i0.ɵɵelementStart(0, "tr",
|
|
21705
|
+
function QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_ng_container_1_tr_15_Template(rf, ctx) { if (rf & 1) {
|
|
21706
|
+
i0.ɵɵelementStart(0, "tr", 5)(1, "th", 6);
|
|
21714
21707
|
i0.ɵɵtext(2);
|
|
21715
21708
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
21716
21709
|
i0.ɵɵelementEnd();
|
|
21717
|
-
i0.ɵɵelementStart(4, "td",
|
|
21710
|
+
i0.ɵɵelementStart(4, "td", 7);
|
|
21718
21711
|
i0.ɵɵtext(5);
|
|
21719
21712
|
i0.ɵɵelementEnd()();
|
|
21720
21713
|
} if (rf & 2) {
|
|
@@ -21724,19 +21717,19 @@ function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_
|
|
|
21724
21717
|
i0.ɵɵadvance(3);
|
|
21725
21718
|
i0.ɵɵtextInterpolate(child_r3.name);
|
|
21726
21719
|
} }
|
|
21727
|
-
function
|
|
21728
|
-
i0.ɵɵelement(0, "ccd-query-attachments-read",
|
|
21720
|
+
function QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_ng_container_1_tr_22_ccd_query_attachments_read_5_Template(rf, ctx) { if (rf & 1) {
|
|
21721
|
+
i0.ɵɵelement(0, "ccd-query-attachments-read", 13);
|
|
21729
21722
|
} if (rf & 2) {
|
|
21730
21723
|
const child_r3 = i0.ɵɵnextContext(3).$implicit;
|
|
21731
21724
|
i0.ɵɵproperty("attachments", child_r3.attachments);
|
|
21732
21725
|
} }
|
|
21733
|
-
function
|
|
21734
|
-
i0.ɵɵelementStart(0, "tr",
|
|
21726
|
+
function QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_ng_container_1_tr_22_Template(rf, ctx) { if (rf & 1) {
|
|
21727
|
+
i0.ɵɵelementStart(0, "tr", 5)(1, "th", 6);
|
|
21735
21728
|
i0.ɵɵtext(2);
|
|
21736
21729
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
21737
21730
|
i0.ɵɵelementEnd();
|
|
21738
|
-
i0.ɵɵelementStart(4, "td",
|
|
21739
|
-
i0.ɵɵtemplate(5,
|
|
21731
|
+
i0.ɵɵelementStart(4, "td", 7);
|
|
21732
|
+
i0.ɵɵtemplate(5, QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_ng_container_1_tr_22_ccd_query_attachments_read_5_Template, 1, 1, "ccd-query-attachments-read", 12);
|
|
21740
21733
|
i0.ɵɵelementEnd()();
|
|
21741
21734
|
} if (rf & 2) {
|
|
21742
21735
|
const child_r3 = i0.ɵɵnextContext(2).$implicit;
|
|
@@ -21745,36 +21738,36 @@ function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_
|
|
|
21745
21738
|
i0.ɵɵadvance(3);
|
|
21746
21739
|
i0.ɵɵproperty("ngIf", child_r3.attachments);
|
|
21747
21740
|
} }
|
|
21748
|
-
function
|
|
21741
|
+
function QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
21749
21742
|
i0.ɵɵelementContainerStart(0);
|
|
21750
|
-
i0.ɵɵelementStart(1, "table",
|
|
21743
|
+
i0.ɵɵelementStart(1, "table", 2);
|
|
21751
21744
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
21752
|
-
i0.ɵɵelementStart(3, "caption",
|
|
21745
|
+
i0.ɵɵelementStart(3, "caption", 3)(4, "div");
|
|
21753
21746
|
i0.ɵɵtext(5);
|
|
21754
21747
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
21755
21748
|
i0.ɵɵelementEnd()();
|
|
21756
|
-
i0.ɵɵelementStart(7, "tbody",
|
|
21749
|
+
i0.ɵɵelementStart(7, "tbody", 4)(8, "tr", 5)(9, "th", 6);
|
|
21757
21750
|
i0.ɵɵtext(10);
|
|
21758
21751
|
i0.ɵɵpipe(11, "rpxTranslate");
|
|
21759
21752
|
i0.ɵɵelementEnd();
|
|
21760
|
-
i0.ɵɵelementStart(12, "td",
|
|
21753
|
+
i0.ɵɵelementStart(12, "td", 7);
|
|
21761
21754
|
i0.ɵɵtext(13);
|
|
21762
21755
|
i0.ɵɵpipe(14, "date");
|
|
21763
21756
|
i0.ɵɵelementEnd()();
|
|
21764
|
-
i0.ɵɵtemplate(15,
|
|
21765
|
-
i0.ɵɵelementStart(16, "tr",
|
|
21757
|
+
i0.ɵɵtemplate(15, QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_ng_container_1_tr_15_Template, 6, 4, "tr", 9);
|
|
21758
|
+
i0.ɵɵelementStart(16, "tr", 5)(17, "th", 6);
|
|
21766
21759
|
i0.ɵɵtext(18);
|
|
21767
21760
|
i0.ɵɵpipe(19, "rpxTranslate");
|
|
21768
21761
|
i0.ɵɵelementEnd();
|
|
21769
|
-
i0.ɵɵelementStart(20, "td",
|
|
21762
|
+
i0.ɵɵelementStart(20, "td", 7);
|
|
21770
21763
|
i0.ɵɵtext(21);
|
|
21771
21764
|
i0.ɵɵelementEnd()();
|
|
21772
|
-
i0.ɵɵtemplate(22,
|
|
21765
|
+
i0.ɵɵtemplate(22, QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_ng_container_1_tr_22_Template, 6, 4, "tr", 9);
|
|
21773
21766
|
i0.ɵɵelementEnd()();
|
|
21774
21767
|
i0.ɵɵelementContainerEnd();
|
|
21775
21768
|
} if (rf & 2) {
|
|
21776
21769
|
const child_r3 = i0.ɵɵnextContext().$implicit;
|
|
21777
|
-
const
|
|
21770
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
21778
21771
|
i0.ɵɵadvance();
|
|
21779
21772
|
i0.ɵɵattribute("aria-describedby", i0.ɵɵpipeBind1(2, 8, "Response of the query"));
|
|
21780
21773
|
i0.ɵɵadvance(4);
|
|
@@ -21784,7 +21777,7 @@ function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_
|
|
|
21784
21777
|
i0.ɵɵadvance(3);
|
|
21785
21778
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(14, 14, child_r3.createdOn, "dd MMMM YYYY HH:mm"));
|
|
21786
21779
|
i0.ɵɵadvance(2);
|
|
21787
|
-
i0.ɵɵproperty("ngIf",
|
|
21780
|
+
i0.ɵɵproperty("ngIf", ctx_r1.isInternalUser());
|
|
21788
21781
|
i0.ɵɵadvance(3);
|
|
21789
21782
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(19, 17, "Response detail"));
|
|
21790
21783
|
i0.ɵɵadvance(3);
|
|
@@ -21792,19 +21785,19 @@ function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_
|
|
|
21792
21785
|
i0.ɵɵadvance();
|
|
21793
21786
|
i0.ɵɵproperty("ngIf", child_r3.attachments.length > 0);
|
|
21794
21787
|
} }
|
|
21795
|
-
function
|
|
21796
|
-
i0.ɵɵelement(0, "ccd-query-attachments-read",
|
|
21788
|
+
function QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_ng_template_2_tr_26_ccd_query_attachments_read_5_Template(rf, ctx) { if (rf & 1) {
|
|
21789
|
+
i0.ɵɵelement(0, "ccd-query-attachments-read", 13);
|
|
21797
21790
|
} if (rf & 2) {
|
|
21798
21791
|
const child_r3 = i0.ɵɵnextContext(3).$implicit;
|
|
21799
21792
|
i0.ɵɵproperty("attachments", child_r3.attachments);
|
|
21800
21793
|
} }
|
|
21801
|
-
function
|
|
21802
|
-
i0.ɵɵelementStart(0, "tr",
|
|
21794
|
+
function QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_ng_template_2_tr_26_Template(rf, ctx) { if (rf & 1) {
|
|
21795
|
+
i0.ɵɵelementStart(0, "tr", 5)(1, "th", 6);
|
|
21803
21796
|
i0.ɵɵtext(2);
|
|
21804
21797
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
21805
21798
|
i0.ɵɵelementEnd();
|
|
21806
|
-
i0.ɵɵelementStart(4, "td",
|
|
21807
|
-
i0.ɵɵtemplate(5,
|
|
21799
|
+
i0.ɵɵelementStart(4, "td", 7);
|
|
21800
|
+
i0.ɵɵtemplate(5, QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_ng_template_2_tr_26_ccd_query_attachments_read_5_Template, 1, 1, "ccd-query-attachments-read", 12);
|
|
21808
21801
|
i0.ɵɵelementEnd()();
|
|
21809
21802
|
} if (rf & 2) {
|
|
21810
21803
|
const child_r3 = i0.ɵɵnextContext(2).$implicit;
|
|
@@ -21813,36 +21806,36 @@ function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_
|
|
|
21813
21806
|
i0.ɵɵadvance(3);
|
|
21814
21807
|
i0.ɵɵproperty("ngIf", child_r3.attachments);
|
|
21815
21808
|
} }
|
|
21816
|
-
function
|
|
21817
|
-
i0.ɵɵelementStart(0, "table",
|
|
21809
|
+
function QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
21810
|
+
i0.ɵɵelementStart(0, "table", 2);
|
|
21818
21811
|
i0.ɵɵpipe(1, "rpxTranslate");
|
|
21819
|
-
i0.ɵɵelementStart(2, "caption",
|
|
21812
|
+
i0.ɵɵelementStart(2, "caption", 3)(3, "div");
|
|
21820
21813
|
i0.ɵɵtext(4);
|
|
21821
21814
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
21822
21815
|
i0.ɵɵelementEnd()();
|
|
21823
|
-
i0.ɵɵelementStart(6, "tbody",
|
|
21816
|
+
i0.ɵɵelementStart(6, "tbody", 4)(7, "tr", 5)(8, "th", 6);
|
|
21824
21817
|
i0.ɵɵtext(9);
|
|
21825
21818
|
i0.ɵɵpipe(10, "rpxTranslate");
|
|
21826
21819
|
i0.ɵɵelementEnd();
|
|
21827
|
-
i0.ɵɵelementStart(11, "td",
|
|
21820
|
+
i0.ɵɵelementStart(11, "td", 7);
|
|
21828
21821
|
i0.ɵɵtext(12);
|
|
21829
21822
|
i0.ɵɵpipe(13, "date");
|
|
21830
21823
|
i0.ɵɵelementEnd()();
|
|
21831
|
-
i0.ɵɵelementStart(14, "tr",
|
|
21824
|
+
i0.ɵɵelementStart(14, "tr", 5)(15, "th", 6);
|
|
21832
21825
|
i0.ɵɵtext(16);
|
|
21833
21826
|
i0.ɵɵpipe(17, "rpxTranslate");
|
|
21834
21827
|
i0.ɵɵelementEnd();
|
|
21835
|
-
i0.ɵɵelementStart(18, "td",
|
|
21828
|
+
i0.ɵɵelementStart(18, "td", 7);
|
|
21836
21829
|
i0.ɵɵtext(19);
|
|
21837
21830
|
i0.ɵɵelementEnd()();
|
|
21838
|
-
i0.ɵɵelementStart(20, "tr",
|
|
21831
|
+
i0.ɵɵelementStart(20, "tr", 5)(21, "th", 6);
|
|
21839
21832
|
i0.ɵɵtext(22);
|
|
21840
21833
|
i0.ɵɵpipe(23, "rpxTranslate");
|
|
21841
21834
|
i0.ɵɵelementEnd();
|
|
21842
|
-
i0.ɵɵelementStart(24, "td",
|
|
21835
|
+
i0.ɵɵelementStart(24, "td", 7);
|
|
21843
21836
|
i0.ɵɵtext(25);
|
|
21844
21837
|
i0.ɵɵelementEnd()();
|
|
21845
|
-
i0.ɵɵtemplate(26,
|
|
21838
|
+
i0.ɵɵtemplate(26, QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_ng_template_2_tr_26_Template, 6, 4, "tr", 9);
|
|
21846
21839
|
i0.ɵɵelementEnd()();
|
|
21847
21840
|
} if (rf & 2) {
|
|
21848
21841
|
const child_r3 = i0.ɵɵnextContext().$implicit;
|
|
@@ -21864,9 +21857,9 @@ function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_ng_
|
|
|
21864
21857
|
i0.ɵɵadvance();
|
|
21865
21858
|
i0.ɵɵproperty("ngIf", child_r3.attachments.length > 0);
|
|
21866
21859
|
} }
|
|
21867
|
-
function
|
|
21860
|
+
function QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
21868
21861
|
i0.ɵɵelementContainerStart(0);
|
|
21869
|
-
i0.ɵɵtemplate(1,
|
|
21862
|
+
i0.ɵɵtemplate(1, QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_ng_container_1_Template, 23, 19, "ng-container", 15)(2, QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_ng_template_2_Template, 27, 22, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
21870
21863
|
i0.ɵɵelementContainerEnd();
|
|
21871
21864
|
} if (rf & 2) {
|
|
21872
21865
|
const i_r4 = ctx.index;
|
|
@@ -21874,107 +21867,103 @@ function QueryDetailsComponent_ng_container_0_ng_container_46_ng_container_1_Tem
|
|
|
21874
21867
|
i0.ɵɵadvance();
|
|
21875
21868
|
i0.ɵɵproperty("ngIf", i_r4 % 2 === 0)("ngIfElse", followUpMessage_r5);
|
|
21876
21869
|
} }
|
|
21877
|
-
function
|
|
21870
|
+
function QueryDetailsComponent_ng_container_0_ng_container_44_Template(rf, ctx) { if (rf & 1) {
|
|
21878
21871
|
i0.ɵɵelementContainerStart(0);
|
|
21879
|
-
i0.ɵɵtemplate(1,
|
|
21872
|
+
i0.ɵɵtemplate(1, QueryDetailsComponent_ng_container_0_ng_container_44_ng_container_1_Template, 4, 2, "ng-container", 14);
|
|
21880
21873
|
i0.ɵɵelementContainerEnd();
|
|
21881
21874
|
} if (rf & 2) {
|
|
21882
|
-
const
|
|
21875
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
21883
21876
|
i0.ɵɵadvance();
|
|
21884
|
-
i0.ɵɵproperty("ngForOf",
|
|
21877
|
+
i0.ɵɵproperty("ngForOf", ctx_r1.query.children);
|
|
21885
21878
|
} }
|
|
21886
21879
|
function QueryDetailsComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
21887
21880
|
i0.ɵɵelementContainerStart(0);
|
|
21888
|
-
i0.ɵɵtemplate(1,
|
|
21889
|
-
i0.ɵɵ
|
|
21890
|
-
i0.ɵɵ
|
|
21891
|
-
i0.ɵɵelementStart(
|
|
21892
|
-
i0.ɵɵ
|
|
21893
|
-
i0.ɵɵ
|
|
21894
|
-
i0.ɵɵtext(9);
|
|
21895
|
-
i0.ɵɵpipe(10, "rpxTranslate");
|
|
21881
|
+
i0.ɵɵtemplate(1, QueryDetailsComponent_ng_container_0_p_1_Template, 4, 3, "p", 1);
|
|
21882
|
+
i0.ɵɵelementStart(2, "div")(3, "table", 2);
|
|
21883
|
+
i0.ɵɵpipe(4, "rpxTranslate");
|
|
21884
|
+
i0.ɵɵelementStart(5, "caption", 3)(6, "div");
|
|
21885
|
+
i0.ɵɵtext(7);
|
|
21886
|
+
i0.ɵɵpipe(8, "rpxTranslate");
|
|
21896
21887
|
i0.ɵɵelementEnd()();
|
|
21897
|
-
i0.ɵɵelementStart(
|
|
21898
|
-
i0.ɵɵtext(
|
|
21899
|
-
i0.ɵɵpipe(
|
|
21888
|
+
i0.ɵɵelementStart(9, "tbody", 4)(10, "tr", 5)(11, "th", 6);
|
|
21889
|
+
i0.ɵɵtext(12);
|
|
21890
|
+
i0.ɵɵpipe(13, "rpxTranslate");
|
|
21900
21891
|
i0.ɵɵelementEnd();
|
|
21901
|
-
i0.ɵɵelementStart(
|
|
21902
|
-
i0.ɵɵtext(
|
|
21892
|
+
i0.ɵɵelementStart(14, "td", 7);
|
|
21893
|
+
i0.ɵɵtext(15);
|
|
21903
21894
|
i0.ɵɵelementEnd()();
|
|
21904
|
-
i0.ɵɵelementStart(
|
|
21905
|
-
i0.ɵɵtext(
|
|
21906
|
-
i0.ɵɵpipe(
|
|
21895
|
+
i0.ɵɵelementStart(16, "tr", 5)(17, "th", 6);
|
|
21896
|
+
i0.ɵɵtext(18);
|
|
21897
|
+
i0.ɵɵpipe(19, "rpxTranslate");
|
|
21907
21898
|
i0.ɵɵelementEnd();
|
|
21908
|
-
i0.ɵɵelementStart(
|
|
21909
|
-
i0.ɵɵtext(
|
|
21910
|
-
i0.ɵɵpipe(
|
|
21899
|
+
i0.ɵɵelementStart(20, "td", 7);
|
|
21900
|
+
i0.ɵɵtext(21);
|
|
21901
|
+
i0.ɵɵpipe(22, "date");
|
|
21911
21902
|
i0.ɵɵelementEnd()();
|
|
21912
|
-
i0.ɵɵelementStart(
|
|
21913
|
-
i0.ɵɵtext(
|
|
21914
|
-
i0.ɵɵpipe(
|
|
21903
|
+
i0.ɵɵelementStart(23, "tr", 5)(24, "th", 6);
|
|
21904
|
+
i0.ɵɵtext(25);
|
|
21905
|
+
i0.ɵɵpipe(26, "rpxTranslate");
|
|
21915
21906
|
i0.ɵɵelementEnd();
|
|
21916
|
-
i0.ɵɵelementStart(
|
|
21917
|
-
i0.ɵɵtext(
|
|
21907
|
+
i0.ɵɵelementStart(27, "td", 7);
|
|
21908
|
+
i0.ɵɵtext(28);
|
|
21918
21909
|
i0.ɵɵelementEnd()();
|
|
21919
|
-
i0.ɵɵelementStart(
|
|
21920
|
-
i0.ɵɵtext(
|
|
21921
|
-
i0.ɵɵpipe(
|
|
21910
|
+
i0.ɵɵelementStart(29, "tr", 5)(30, "th", 6);
|
|
21911
|
+
i0.ɵɵtext(31);
|
|
21912
|
+
i0.ɵɵpipe(32, "rpxTranslate");
|
|
21922
21913
|
i0.ɵɵelementEnd();
|
|
21923
|
-
i0.ɵɵelementStart(
|
|
21924
|
-
i0.ɵɵtext(
|
|
21914
|
+
i0.ɵɵelementStart(33, "td", 7);
|
|
21915
|
+
i0.ɵɵtext(34);
|
|
21925
21916
|
i0.ɵɵelementEnd()();
|
|
21926
|
-
i0.ɵɵelementStart(
|
|
21927
|
-
i0.ɵɵtext(
|
|
21928
|
-
i0.ɵɵpipe(
|
|
21917
|
+
i0.ɵɵelementStart(35, "tr", 5)(36, "th", 6);
|
|
21918
|
+
i0.ɵɵtext(37);
|
|
21919
|
+
i0.ɵɵpipe(38, "rpxTranslate");
|
|
21929
21920
|
i0.ɵɵelementEnd();
|
|
21930
|
-
i0.ɵɵelementStart(
|
|
21931
|
-
i0.ɵɵtext(
|
|
21932
|
-
i0.ɵɵpipe(
|
|
21921
|
+
i0.ɵɵelementStart(39, "td", 7);
|
|
21922
|
+
i0.ɵɵtext(40);
|
|
21923
|
+
i0.ɵɵpipe(41, "rpxTranslate");
|
|
21933
21924
|
i0.ɵɵelementEnd()();
|
|
21934
|
-
i0.ɵɵtemplate(
|
|
21925
|
+
i0.ɵɵtemplate(42, QueryDetailsComponent_ng_container_0_tr_42_Template, 7, 7, "tr", 8)(43, QueryDetailsComponent_ng_container_0_tr_43_Template, 6, 4, "tr", 9);
|
|
21935
21926
|
i0.ɵɵelementEnd()()();
|
|
21936
|
-
i0.ɵɵtemplate(
|
|
21927
|
+
i0.ɵɵtemplate(44, QueryDetailsComponent_ng_container_0_ng_container_44_Template, 2, 1, "ng-container", 1);
|
|
21937
21928
|
i0.ɵɵelementContainerEnd();
|
|
21938
21929
|
} if (rf & 2) {
|
|
21939
|
-
const
|
|
21930
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
21940
21931
|
i0.ɵɵadvance();
|
|
21941
|
-
i0.ɵɵproperty("ngIf",
|
|
21932
|
+
i0.ɵɵproperty("ngIf", ctx_r1.showItem);
|
|
21942
21933
|
i0.ɵɵadvance(2);
|
|
21943
|
-
i0.ɵɵ
|
|
21944
|
-
i0.ɵɵadvance(2);
|
|
21945
|
-
i0.ɵɵattribute("aria-describedby", i0.ɵɵpipeBind1(6, 21, "Details of the query"));
|
|
21934
|
+
i0.ɵɵattribute("aria-describedby", i0.ɵɵpipeBind1(4, 20, "Details of the query"));
|
|
21946
21935
|
i0.ɵɵadvance(4);
|
|
21947
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
21936
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(8, 22, "Query details"));
|
|
21948
21937
|
i0.ɵɵadvance(5);
|
|
21949
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
21938
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(13, 24, "Last submitted by"));
|
|
21950
21939
|
i0.ɵɵadvance(3);
|
|
21951
|
-
i0.ɵɵtextInterpolate(
|
|
21940
|
+
i0.ɵɵtextInterpolate(ctx_r1.query.lastSubmittedBy);
|
|
21952
21941
|
i0.ɵɵadvance(3);
|
|
21953
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
21942
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(19, 26, "Submission date"));
|
|
21954
21943
|
i0.ɵɵadvance(3);
|
|
21955
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(
|
|
21944
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(22, 28, ctx_r1.query.createdOn, "dd MMMM YYYY HH:mm"));
|
|
21956
21945
|
i0.ɵɵadvance(4);
|
|
21957
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
21946
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(26, 31, "Query subject"));
|
|
21958
21947
|
i0.ɵɵadvance(3);
|
|
21959
|
-
i0.ɵɵtextInterpolate(
|
|
21948
|
+
i0.ɵɵtextInterpolate(ctx_r1.query.subject);
|
|
21960
21949
|
i0.ɵɵadvance(3);
|
|
21961
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
21950
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(32, 33, "Query body"));
|
|
21962
21951
|
i0.ɵɵadvance(3);
|
|
21963
|
-
i0.ɵɵtextInterpolate(
|
|
21952
|
+
i0.ɵɵtextInterpolate(ctx_r1.query.body);
|
|
21964
21953
|
i0.ɵɵadvance(2);
|
|
21965
|
-
i0.ɵɵclassProp("govuk-table__header--no-border",
|
|
21954
|
+
i0.ɵɵclassProp("govuk-table__header--no-border", ctx_r1.query.isHearingRelated);
|
|
21966
21955
|
i0.ɵɵadvance();
|
|
21967
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
21956
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(38, 35, "Is the query hearing related?"), " ");
|
|
21968
21957
|
i0.ɵɵadvance(2);
|
|
21969
|
-
i0.ɵɵclassProp("govuk-table__cell--no-border",
|
|
21958
|
+
i0.ɵɵclassProp("govuk-table__cell--no-border", ctx_r1.query.isHearingRelated);
|
|
21970
21959
|
i0.ɵɵadvance();
|
|
21971
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(
|
|
21960
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(41, 37, "Is the query hearing related?", null, ctx_r1.query.isHearingRelated), "");
|
|
21972
21961
|
i0.ɵɵadvance(2);
|
|
21973
|
-
i0.ɵɵproperty("ngIf",
|
|
21962
|
+
i0.ɵɵproperty("ngIf", ctx_r1.query.isHearingRelated === "Yes");
|
|
21974
21963
|
i0.ɵɵadvance();
|
|
21975
|
-
i0.ɵɵproperty("ngIf",
|
|
21964
|
+
i0.ɵɵproperty("ngIf", ctx_r1.query.attachments.length > 0);
|
|
21976
21965
|
i0.ɵɵadvance();
|
|
21977
|
-
i0.ɵɵproperty("ngIf", (
|
|
21966
|
+
i0.ɵɵproperty("ngIf", (ctx_r1.query.children == null ? null : ctx_r1.query.children.length) > 0);
|
|
21978
21967
|
} }
|
|
21979
21968
|
class QueryDetailsComponent {
|
|
21980
21969
|
sessionStorageService;
|
|
@@ -21986,7 +21975,6 @@ class QueryDetailsComponent {
|
|
|
21986
21975
|
backClicked = new EventEmitter();
|
|
21987
21976
|
hasResponded = new EventEmitter();
|
|
21988
21977
|
showItem = true;
|
|
21989
|
-
message;
|
|
21990
21978
|
static QUERY_ITEM_RESPOND = '3';
|
|
21991
21979
|
static QUERY_ITEM_FOLLOW_UP = '4';
|
|
21992
21980
|
queryItemId;
|
|
@@ -22018,7 +22006,6 @@ class QueryDetailsComponent {
|
|
|
22018
22006
|
this.hasResponded.emit(false);
|
|
22019
22007
|
return false;
|
|
22020
22008
|
}
|
|
22021
|
-
this.message = Constants.TASK_COMPLETION_ERROR;
|
|
22022
22009
|
this.hasResponded.emit(true);
|
|
22023
22010
|
return true;
|
|
22024
22011
|
}
|
|
@@ -22030,15 +22017,15 @@ class QueryDetailsComponent {
|
|
|
22030
22017
|
return false;
|
|
22031
22018
|
}
|
|
22032
22019
|
static ɵfac = function QueryDetailsComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || QueryDetailsComponent)(i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(i1$1.Router)); };
|
|
22033
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryDetailsComponent, selectors: [["ccd-query-details"]], inputs: { query: "query", caseId: "caseId", queryResponseStatus: "queryResponseStatus" }, outputs: { backClicked: "backClicked", hasResponded: "hasResponded" }, features: [i0.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [["followUpMessage", ""], [4, "ngIf"], [
|
|
22034
|
-
i0.ɵɵtemplate(0, QueryDetailsComponent_ng_container_0_Template,
|
|
22020
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryDetailsComponent, selectors: [["ccd-query-details"]], inputs: { query: "query", caseId: "caseId", queryResponseStatus: "queryResponseStatus" }, outputs: { backClicked: "backClicked", hasResponded: "hasResponded" }, features: [i0.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [["followUpMessage", ""], [4, "ngIf"], [1, "govuk-table", "query-details-table"], [1, "govuk-table__caption", "govuk-table__caption--l"], [1, "govuk-table__body"], [1, "govuk-table__row"], ["scope", "row", 1, "govuk-table__header"], [1, "govuk-table__cell"], ["class", "govuk-table__row govuk-table__row--isHearingRelated", 4, "ngIf"], ["class", "govuk-table__row", 4, "ngIf"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [1, "govuk-table__row", "govuk-table__row--isHearingRelated"], [3, "attachments", 4, "ngIf"], [3, "attachments"], [4, "ngFor", "ngForOf"], [4, "ngIf", "ngIfElse"]], template: function QueryDetailsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
22021
|
+
i0.ɵɵtemplate(0, QueryDetailsComponent_ng_container_0_Template, 45, 41, "ng-container", 1);
|
|
22035
22022
|
} if (rf & 2) {
|
|
22036
22023
|
i0.ɵɵproperty("ngIf", ctx.query);
|
|
22037
22024
|
} }, styles: [".query-details-table[_ngcontent-%COMP%] .govuk-table__header[_ngcontent-%COMP%]{width:330px}"] });
|
|
22038
22025
|
}
|
|
22039
22026
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryDetailsComponent, [{
|
|
22040
22027
|
type: Component,
|
|
22041
|
-
args: [{ selector: 'ccd-query-details', template: "<ng-container *ngIf=\"query\">\n <
|
|
22028
|
+
args: [{ selector: 'ccd-query-details', template: "<ng-container *ngIf=\"query\">\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"] }]
|
|
22042
22029
|
}], () => [{ type: SessionStorageService }, { type: i1$1.ActivatedRoute }, { type: i1$1.Router }], { query: [{
|
|
22043
22030
|
type: Input
|
|
22044
22031
|
}], caseId: [{
|
|
@@ -22050,7 +22037,7 @@ class QueryDetailsComponent {
|
|
|
22050
22037
|
}], hasResponded: [{
|
|
22051
22038
|
type: Output
|
|
22052
22039
|
}] }); })();
|
|
22053
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryDetailsComponent, { className: "QueryDetailsComponent", filePath: "lib/shared/components/palette/query-management/components/query-details/query-details.component.ts", lineNumber:
|
|
22040
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryDetailsComponent, { className: "QueryDetailsComponent", filePath: "lib/shared/components/palette/query-management/components/query-details/query-details.component.ts", lineNumber: 14 }); })();
|
|
22054
22041
|
|
|
22055
22042
|
class QueryEventCompletionComponent {
|
|
22056
22043
|
eventCompletionParams;
|
|
@@ -22764,38 +22751,43 @@ class QueryWriteRespondToQueryComponent {
|
|
|
22764
22751
|
});
|
|
22765
22752
|
}
|
|
22766
22753
|
ngOnChanges() {
|
|
22767
|
-
if (this.caseQueriesCollections
|
|
22768
|
-
|
|
22769
|
-
|
|
22770
|
-
|
|
22771
|
-
|
|
22772
|
-
|
|
22773
|
-
|
|
22774
|
-
|
|
22775
|
-
|
|
22776
|
-
|
|
22754
|
+
if (!this.caseQueriesCollections || this.caseQueriesCollections.length === 0) {
|
|
22755
|
+
// Silent return – this is not an error.
|
|
22756
|
+
return;
|
|
22757
|
+
}
|
|
22758
|
+
if (!this.caseQueriesCollections[0]) {
|
|
22759
|
+
console.error('caseQueriesCollections[0] is undefined!', this.caseQueriesCollections);
|
|
22760
|
+
return;
|
|
22761
|
+
}
|
|
22762
|
+
const messageId = this.route.snapshot.params?.dataid;
|
|
22763
|
+
if (!messageId) {
|
|
22764
|
+
console.warn('No messageId found in route params:', this.route.snapshot.params);
|
|
22765
|
+
return;
|
|
22766
|
+
}
|
|
22767
|
+
const allMessages = this.caseQueriesCollections
|
|
22768
|
+
.flatMap((caseData) => caseData?.caseMessages || []);
|
|
22769
|
+
const matchingMessage = allMessages.find((message) => message?.value?.id === messageId)?.value;
|
|
22770
|
+
if (!matchingMessage) {
|
|
22771
|
+
console.warn('No matching message found for ID:', messageId);
|
|
22772
|
+
return;
|
|
22773
|
+
}
|
|
22774
|
+
const queryWithChildren = new QueryListData(this.caseQueriesCollections[0]);
|
|
22775
|
+
let filteredQuery = [];
|
|
22776
|
+
if (this.queryItemId === QueryWriteRespondToQueryComponent.QUERY_ITEM_RESPOND) {
|
|
22777
|
+
if (matchingMessage?.parentId) {
|
|
22778
|
+
filteredQuery = queryWithChildren.queries.filter((query) => query?.id === matchingMessage.parentId);
|
|
22777
22779
|
}
|
|
22778
|
-
|
|
22779
|
-
.
|
|
22780
|
-
.flat() // Flatten into a single array of messages
|
|
22781
|
-
.filter((message) => message?.value?.id === messageId); // Safe access
|
|
22782
|
-
if (filteredMessages.length > 0) {
|
|
22783
|
-
const matchingMessage = filteredMessages[0]?.value;
|
|
22784
|
-
let filteredQuery = [];
|
|
22785
|
-
if (this.queryItemId === QueryWriteRespondToQueryComponent.QUERY_ITEM_RESPOND) {
|
|
22786
|
-
filteredQuery = queryWithChildren?.queries.filter((message) => filteredMessages[0]?.value?.id === message?.id);
|
|
22787
|
-
if (matchingMessage) {
|
|
22788
|
-
this.queryItemDisplay = new QueryListItem();
|
|
22789
|
-
Object.assign(this.queryItemDisplay, matchingMessage);
|
|
22790
|
-
this.queryItem = this.queryItemDisplay;
|
|
22791
|
-
}
|
|
22792
|
-
}
|
|
22793
|
-
else {
|
|
22794
|
-
filteredQuery = queryWithChildren?.queries.filter((message) => filteredMessages[0]?.value?.id === message?.id);
|
|
22795
|
-
}
|
|
22796
|
-
this.queryResponseStatus = filteredQuery[0]?.responseStatus;
|
|
22780
|
+
else {
|
|
22781
|
+
filteredQuery = queryWithChildren.queries.filter((query) => query?.id === matchingMessage.id);
|
|
22797
22782
|
}
|
|
22783
|
+
this.queryItemDisplay = new QueryListItem();
|
|
22784
|
+
Object.assign(this.queryItemDisplay, matchingMessage);
|
|
22785
|
+
this.queryItem = this.queryItemDisplay;
|
|
22786
|
+
}
|
|
22787
|
+
else {
|
|
22788
|
+
filteredQuery = queryWithChildren.queries.filter((query) => query?.id === matchingMessage.id);
|
|
22798
22789
|
}
|
|
22790
|
+
this.queryResponseStatus = filteredQuery[0]?.responseStatus;
|
|
22799
22791
|
}
|
|
22800
22792
|
hasResponded(value) {
|
|
22801
22793
|
this.hasRespondedToQuery = value;
|
|
@@ -30841,7 +30833,7 @@ i0.ɵɵsetComponentScope(
|
|
|
30841
30833
|
// Components for Query Management
|
|
30842
30834
|
ReadQueryManagementFieldComponent, function () { return [i5.NgForOf, i5.NgIf, i1$1.RouterLink, QueryDetailsComponent,
|
|
30843
30835
|
QueryListComponent]; }, function () { return [i1.RpxTranslatePipe]; });
|
|
30844
|
-
i0.ɵɵsetComponentScope(QueryDetailsComponent, function () { return [i5.NgForOf, i5.NgIf,
|
|
30836
|
+
i0.ɵɵsetComponentScope(QueryDetailsComponent, function () { return [i5.NgForOf, i5.NgIf, QueryAttachmentsReadComponent]; }, function () { return [i5.DatePipe, i1.RpxTranslatePipe]; });
|
|
30845
30837
|
i0.ɵɵsetComponentScope(QueryWriteRespondToQueryComponent, function () { return [i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, QueryDetailsComponent,
|
|
30846
30838
|
QueryCaseDetailsHeaderComponent]; }, function () { return [i1.RpxTranslatePipe]; });
|
|
30847
30839
|
i0.ɵɵsetComponentScope(QueryWriteRaiseQueryComponent, function () { return [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.RadioControlValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.MaxLengthValidator, i4.FormGroupDirective, i4.FormControlName, MarkdownComponent, QueryCaseDetailsHeaderComponent,
|