@hmcts/ccd-case-ui-toolkit 6.16.0-query-management-raise-query-function-v7 → 6.16.0-query-management-CYA-continue-v2

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.
Files changed (39) hide show
  1. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +421 -372
  2. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
  3. package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
  4. package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
  5. package/esm2015/lib/shared/components/palette/palette.module.js +9 -14
  6. package/esm2015/lib/shared/components/palette/query-management/__mocks__/index.js +27 -1
  7. package/esm2015/lib/shared/components/palette/query-management/components/index.js +3 -3
  8. package/esm2015/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.js +137 -0
  9. package/esm2015/lib/shared/components/palette/query-management/components/query-management-error-messages/query-management-error-message.model.js +2 -0
  10. package/esm2015/lib/shared/components/palette/query-management/components/query-write/query-write-add-documents/query-write-add-documents.component.js +15 -9
  11. package/esm2015/lib/shared/components/palette/query-management/components/query-write/query-write-raise-query/query-write-raise-query.component.js +19 -40
  12. package/esm2015/lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.js +20 -18
  13. package/esm2015/lib/shared/components/palette/query-management/index.js +2 -2
  14. package/esm2015/lib/shared/components/palette/query-management/utils/query-management.utils.js +11 -1
  15. package/esm2015/lib/shared/components/palette/query-management/write-query-management-field.component.js +18 -3
  16. package/fesm2015/hmcts-ccd-case-ui-toolkit.js +353 -305
  17. package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
  18. package/lib/shared/components/palette/palette.module.d.ts +3 -3
  19. package/lib/shared/components/palette/palette.module.d.ts.map +1 -1
  20. package/lib/shared/components/palette/query-management/__mocks__/index.d.ts +2 -0
  21. package/lib/shared/components/palette/query-management/__mocks__/index.d.ts.map +1 -1
  22. package/lib/shared/components/palette/query-management/components/index.d.ts +2 -2
  23. package/lib/shared/components/palette/query-management/components/index.d.ts.map +1 -1
  24. package/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.d.ts +16 -0
  25. package/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.d.ts.map +1 -0
  26. package/lib/shared/components/palette/query-management/components/query-management-error-messages/query-management-error-message.model.d.ts +5 -0
  27. package/lib/shared/components/palette/query-management/components/query-management-error-messages/query-management-error-message.model.d.ts.map +1 -0
  28. package/lib/shared/components/palette/query-management/components/query-write/query-write-add-documents/query-write-add-documents.component.d.ts +5 -4
  29. package/lib/shared/components/palette/query-management/components/query-write/query-write-add-documents/query-write-add-documents.component.d.ts.map +1 -1
  30. package/lib/shared/components/palette/query-management/index.d.ts +1 -1
  31. package/lib/shared/components/palette/query-management/index.d.ts.map +1 -1
  32. package/lib/shared/components/palette/query-management/utils/query-management.utils.d.ts +5 -0
  33. package/lib/shared/components/palette/query-management/utils/query-management.utils.d.ts.map +1 -1
  34. package/lib/shared/components/palette/query-management/write-query-management-field.component.d.ts +5 -1
  35. package/lib/shared/components/palette/query-management/write-query-management-field.component.d.ts.map +1 -1
  36. package/package.json +1 -1
  37. package/esm2015/lib/shared/components/palette/query-management/components/query-write/query-write-date-input/query-write-date-input.component.js +0 -125
  38. package/lib/shared/components/palette/query-management/components/query-write/query-write-date-input/query-write-date-input.component.d.ts +0 -20
  39. package/lib/shared/components/palette/query-management/components/query-write/query-write-date-input/query-write-date-input.component.d.ts.map +0 -1
@@ -17611,64 +17611,31 @@ const partyMessagesMockData = [
17611
17611
  ]
17612
17612
  }
17613
17613
  ];
17614
-
17615
- class QueryListItem {
17616
- constructor() {
17617
- this.children = [];
17618
- }
17619
- get lastSubmittedMessage() {
17620
- const getLastSubmittedMessage = (item) => {
17621
- let lastSubmittedMessage = item;
17622
- if (item.children && item.children.length > 0) {
17623
- for (const child of item.children) {
17624
- const childLastSubmittedMessage = getLastSubmittedMessage(child);
17625
- if (childLastSubmittedMessage.createdOn > lastSubmittedMessage.createdOn) {
17626
- lastSubmittedMessage = childLastSubmittedMessage;
17627
- }
17628
- }
17629
- }
17630
- return lastSubmittedMessage;
17631
- };
17632
- return getLastSubmittedMessage(this);
17633
- }
17634
- get lastSubmittedBy() {
17635
- return this.lastSubmittedMessage.name;
17636
- }
17637
- get lastSubmittedDate() {
17638
- return new Date(this.lastSubmittedMessage.createdOn);
17639
- }
17640
- get lastResponseBy() {
17641
- var _a;
17642
- return ((_a = this.children) === null || _a === void 0 ? void 0 : _a.length) > 0 ? this.lastSubmittedMessage.name : '';
17643
- }
17644
- get lastResponseDate() {
17645
- var _a;
17646
- return ((_a = this.children) === null || _a === void 0 ? void 0 : _a.length) > 0 ? new Date(this.lastSubmittedMessage.createdOn) : null;
17647
- }
17648
- }
17649
-
17650
- class QueryListData {
17651
- constructor(partyMessagesGroup) {
17652
- this.partyName = partyMessagesGroup.partyName;
17653
- this.roleOnCase = partyMessagesGroup.roleOnCase;
17654
- // get the parent messages (messages without parentId) and add the children to them
17655
- const parentMessages = partyMessagesGroup.partyMessages.filter((message) => !message.parentId);
17656
- this.partyMessages = parentMessages.map((message) => this.buildQueryListItem(message, partyMessagesGroup.partyMessages));
17657
- }
17658
- buildQueryListItem(message, allMessages) {
17659
- const queryListItem = new QueryListItem();
17660
- Object.assign(queryListItem, Object.assign(Object.assign({}, message), { children: allMessages
17661
- .filter((childMessage) => childMessage.parentId === message.id)
17662
- .map((childMessage) => this.buildQueryListItem(childMessage, allMessages)) }));
17663
- return queryListItem;
17664
- }
17665
- }
17666
-
17667
- var QueryListResponseStatus;
17668
- (function (QueryListResponseStatus) {
17669
- QueryListResponseStatus["NEW"] = "New";
17670
- QueryListResponseStatus["RESPONDED"] = "Responded";
17671
- })(QueryListResponseStatus || (QueryListResponseStatus = {}));
17614
+ const caseFieldMockData = Object.assign(new CaseField(), {
17615
+ id: '',
17616
+ label: '',
17617
+ hint_text: '',
17618
+ field_type: Object.assign(new FieldType(), {
17619
+ id: 'QueryDocuments',
17620
+ type: 'QueryDocuments',
17621
+ min: null,
17622
+ max: null,
17623
+ regular_expression: null,
17624
+ fixed_list_items: [],
17625
+ complex_fields: [],
17626
+ collection_field_type: Object.assign(new FieldType(), {
17627
+ id: 'Document',
17628
+ type: 'Document',
17629
+ min: null,
17630
+ max: null,
17631
+ regular_expression: null,
17632
+ fixed_list_items: [],
17633
+ complex_fields: [],
17634
+ collection_field_type: null
17635
+ })
17636
+ }),
17637
+ display_context_parameter: '#COLLECTION(allowInsert,allowUpdate)'
17638
+ });
17672
17639
 
17673
17640
  class MarkdownComponent {
17674
17641
  constructor() { }
@@ -17766,75 +17733,231 @@ QueryCaseDetailsHeaderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryCase
17766
17733
  }]
17767
17734
  }], function () { return [{ type: i1$1.ActivatedRoute }]; }, null); })();
17768
17735
 
17769
- class QueryCreateComponent {
17736
+ class QueryListItem {
17770
17737
  constructor() {
17738
+ this.children = [];
17771
17739
  }
17772
- ngOnInit() {
17740
+ get lastSubmittedMessage() {
17741
+ const getLastSubmittedMessage = (item) => {
17742
+ let lastSubmittedMessage = item;
17743
+ if (item.children && item.children.length > 0) {
17744
+ for (const child of item.children) {
17745
+ const childLastSubmittedMessage = getLastSubmittedMessage(child);
17746
+ if (childLastSubmittedMessage.createdOn > lastSubmittedMessage.createdOn) {
17747
+ lastSubmittedMessage = childLastSubmittedMessage;
17748
+ }
17749
+ }
17750
+ }
17751
+ return lastSubmittedMessage;
17752
+ };
17753
+ return getLastSubmittedMessage(this);
17754
+ }
17755
+ get lastSubmittedBy() {
17756
+ return this.lastSubmittedMessage.name;
17757
+ }
17758
+ get lastSubmittedDate() {
17759
+ return new Date(this.lastSubmittedMessage.createdOn);
17760
+ }
17761
+ get lastResponseBy() {
17762
+ var _a;
17763
+ return ((_a = this.children) === null || _a === void 0 ? void 0 : _a.length) > 0 ? this.lastSubmittedMessage.name : '';
17764
+ }
17765
+ get lastResponseDate() {
17766
+ var _a;
17767
+ return ((_a = this.children) === null || _a === void 0 ? void 0 : _a.length) > 0 ? new Date(this.lastSubmittedMessage.createdOn) : null;
17773
17768
  }
17774
17769
  }
17775
- QueryCreateComponent.ɵfac = function QueryCreateComponent_Factory(t) { return new (t || QueryCreateComponent)(); };
17776
- QueryCreateComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryCreateComponent, selectors: [["ccd-query-create"]], decls: 0, vars: 0, template: function QueryCreateComponent_Template(rf, ctx) { }, encapsulation: 2 });
17777
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryCreateComponent, [{
17778
- type: Component,
17779
- args: [{
17780
- selector: 'ccd-query-create',
17781
- templateUrl: './query-create.component.html',
17782
- }]
17783
- }], function () { return []; }, null); })();
17784
17770
 
17785
- function QueryDetailsComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
17786
- const _r2 = i0.ɵɵgetCurrentView();
17787
- i0.ɵɵelementContainerStart(0);
17788
- i0.ɵɵelementStart(1, "p");
17789
- i0.ɵɵelement(2, "br");
17790
- i0.ɵɵelementStart(3, "a", 1);
17791
- i0.ɵɵlistener("click", function QueryDetailsComponent_ng_container_0_Template_a_click_3_listener() { i0.ɵɵrestoreView(_r2); const ctx_r1 = i0.ɵɵnextContext(); return ctx_r1.onBack(); });
17792
- i0.ɵɵtext(4);
17793
- i0.ɵɵpipe(5, "rpxTranslate");
17794
- i0.ɵɵelementEnd();
17795
- i0.ɵɵelementEnd();
17796
- i0.ɵɵelementStart(6, "div", 2);
17797
- i0.ɵɵtext(7);
17798
- i0.ɵɵpipe(8, "rpxTranslate");
17799
- i0.ɵɵelementEnd();
17800
- i0.ɵɵelement(9, "ccd-query-details-table", 3);
17801
- i0.ɵɵelementContainerEnd();
17771
+ class QueryListData {
17772
+ constructor(partyMessagesGroup) {
17773
+ this.partyName = partyMessagesGroup.partyName;
17774
+ this.roleOnCase = partyMessagesGroup.roleOnCase;
17775
+ // get the parent messages (messages without parentId) and add the children to them
17776
+ const parentMessages = partyMessagesGroup.partyMessages.filter((message) => !message.parentId);
17777
+ this.partyMessages = parentMessages.map((message) => this.buildQueryListItem(message, partyMessagesGroup.partyMessages));
17778
+ }
17779
+ buildQueryListItem(message, allMessages) {
17780
+ const queryListItem = new QueryListItem();
17781
+ Object.assign(queryListItem, Object.assign(Object.assign({}, message), { children: allMessages
17782
+ .filter((childMessage) => childMessage.parentId === message.id)
17783
+ .map((childMessage) => this.buildQueryListItem(childMessage, allMessages)) }));
17784
+ return queryListItem;
17785
+ }
17786
+ }
17787
+
17788
+ var QueryListResponseStatus;
17789
+ (function (QueryListResponseStatus) {
17790
+ QueryListResponseStatus["NEW"] = "New";
17791
+ QueryListResponseStatus["RESPONDED"] = "Responded";
17792
+ })(QueryListResponseStatus || (QueryListResponseStatus = {}));
17793
+
17794
+ class QueryManagementUtils {
17795
+ static extractCaseQueriesFromCaseField() {
17796
+ }
17797
+ static documentToCollectionFormDocument(document) {
17798
+ return {
17799
+ id: null,
17800
+ value: {
17801
+ document_filename: document.originalDocumentName,
17802
+ document_url: document._links.self.href,
17803
+ document_binary_url: document._links.binary.href
17804
+ }
17805
+ };
17806
+ }
17807
+ }
17808
+ QueryManagementUtils.ɵfac = function QueryManagementUtils_Factory(t) { return new (t || QueryManagementUtils)(); };
17809
+ QueryManagementUtils.ɵprov = i0.ɵɵdefineInjectable({ token: QueryManagementUtils, factory: QueryManagementUtils.ɵfac });
17810
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryManagementUtils, [{
17811
+ type: Injectable
17812
+ }], null, null); })();
17813
+
17814
+ function QueryCheckYourAnswersComponent_ccd_read_collection_field_31_Template(rf, ctx) { if (rf & 1) {
17815
+ i0.ɵɵelement(0, "ccd-read-collection-field", 14);
17802
17816
  } if (rf & 2) {
17803
17817
  const ctx_r0 = i0.ɵɵnextContext();
17804
- i0.ɵɵadvance(4);
17805
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 3, "Back to queries"));
17806
- i0.ɵɵadvance(3);
17807
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(8, 5, "Query details"));
17808
- i0.ɵɵadvance(2);
17809
- i0.ɵɵproperty("queryItem", ctx_r0.query);
17818
+ i0.ɵɵproperty("caseField", ctx_r0.caseField);
17810
17819
  } }
17811
- class QueryDetailsComponent {
17820
+ class QueryCheckYourAnswersComponent {
17812
17821
  constructor() {
17813
17822
  this.backClicked = new EventEmitter();
17814
17823
  }
17815
- onBack() {
17824
+ ngOnInit() {
17825
+ this.caseField = caseFieldMockData;
17826
+ this.caseField.value = this.formGroup.get('attachments').value
17827
+ .map(QueryManagementUtils.documentToCollectionFormDocument);
17828
+ }
17829
+ goBack() {
17816
17830
  this.backClicked.emit(true);
17817
17831
  }
17818
17832
  }
17819
- QueryDetailsComponent.ɵfac = function QueryDetailsComponent_Factory(t) { return new (t || QueryDetailsComponent)(); };
17820
- QueryDetailsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryDetailsComponent, selectors: [["ccd-query-details"]], inputs: { query: "query" }, outputs: { backClicked: "backClicked" }, decls: 1, vars: 1, consts: [[4, "ngIf"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [1, "query_details_caption"], [3, "queryItem"]], template: function QueryDetailsComponent_Template(rf, ctx) { if (rf & 1) {
17821
- i0.ɵɵtemplate(0, QueryDetailsComponent_ng_container_0_Template, 10, 7, "ng-container", 0);
17833
+ QueryCheckYourAnswersComponent.ɵfac = function QueryCheckYourAnswersComponent_Factory(t) { return new (t || QueryCheckYourAnswersComponent)(); };
17834
+ QueryCheckYourAnswersComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryCheckYourAnswersComponent, selectors: [["ccd-query-check-your-answers"]], inputs: { formGroup: "formGroup", queryItem: "queryItem" }, outputs: { backClicked: "backClicked" }, decls: 44, vars: 27, consts: [[1, "govuk-grid-row"], [1, "govuk-grid-column-two-thirds-from-desktop"], [1, "govuk-heading-l"], [1, "govuk-!-margin-bottom-4"], [1, "govuk-summary-list", "govuk-!-margin-bottom-0"], [1, "govuk-summary-list__row"], [1, "govuk-summary-list__key"], [1, "govuk-summary-list__value"], [1, "govuk-summary-list__actions"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [1, "govuk-summary-list__value", "govuk-summary-list__value--documentAttached"], [3, "caseField", 4, "ngIf"], ["data-module", "govuk-button", 1, "govuk-button", "govuk-button--secondary", "govuk-!-margin-right-3", 3, "click"], ["data-module", "govuk-button", 1, "govuk-button"], [3, "caseField"]], template: function QueryCheckYourAnswersComponent_Template(rf, ctx) { if (rf & 1) {
17835
+ i0.ɵɵelementStart(0, "div", 0);
17836
+ i0.ɵɵelementStart(1, "div", 1);
17837
+ i0.ɵɵelementStart(2, "h1", 2);
17838
+ i0.ɵɵtext(3);
17839
+ i0.ɵɵpipe(4, "rpxTranslate");
17840
+ i0.ɵɵelementEnd();
17841
+ i0.ɵɵelementStart(5, "div", 3);
17842
+ i0.ɵɵelement(6, "ccd-query-case-details-header");
17843
+ i0.ɵɵelementEnd();
17844
+ i0.ɵɵelementStart(7, "dl", 4);
17845
+ i0.ɵɵelementStart(8, "div", 5);
17846
+ i0.ɵɵelementStart(9, "dt", 6);
17847
+ i0.ɵɵtext(10);
17848
+ i0.ɵɵpipe(11, "rpxTranslate");
17849
+ i0.ɵɵelementEnd();
17850
+ i0.ɵɵelementStart(12, "dd", 7);
17851
+ i0.ɵɵtext(13);
17852
+ i0.ɵɵelementEnd();
17853
+ i0.ɵɵelementEnd();
17854
+ i0.ɵɵelementEnd();
17855
+ i0.ɵɵelementStart(14, "dl", 4);
17856
+ i0.ɵɵelementStart(15, "div", 5);
17857
+ i0.ɵɵelementStart(16, "dt", 6);
17858
+ i0.ɵɵtext(17);
17859
+ i0.ɵɵpipe(18, "rpxTranslate");
17860
+ i0.ɵɵelementEnd();
17861
+ i0.ɵɵelementStart(19, "dd", 7);
17862
+ i0.ɵɵtext(20);
17863
+ i0.ɵɵelementEnd();
17864
+ i0.ɵɵelementStart(21, "dd", 8);
17865
+ i0.ɵɵelementStart(22, "a", 9);
17866
+ i0.ɵɵlistener("click", function QueryCheckYourAnswersComponent_Template_a_click_22_listener() { return ctx.goBack(); });
17867
+ i0.ɵɵtext(23);
17868
+ i0.ɵɵpipe(24, "rpxTranslate");
17869
+ i0.ɵɵelementEnd();
17870
+ i0.ɵɵelementEnd();
17871
+ i0.ɵɵelementEnd();
17872
+ i0.ɵɵelementEnd();
17873
+ i0.ɵɵelementStart(25, "dl", 4);
17874
+ i0.ɵɵelementStart(26, "div", 5);
17875
+ i0.ɵɵelementStart(27, "dt", 6);
17876
+ i0.ɵɵtext(28);
17877
+ i0.ɵɵpipe(29, "rpxTranslate");
17878
+ i0.ɵɵelementEnd();
17879
+ i0.ɵɵelementStart(30, "dd", 10);
17880
+ i0.ɵɵtemplate(31, QueryCheckYourAnswersComponent_ccd_read_collection_field_31_Template, 1, 1, "ccd-read-collection-field", 11);
17881
+ i0.ɵɵelementEnd();
17882
+ i0.ɵɵelementStart(32, "dd", 8);
17883
+ i0.ɵɵelementStart(33, "a", 9);
17884
+ i0.ɵɵlistener("click", function QueryCheckYourAnswersComponent_Template_a_click_33_listener() { return ctx.goBack(); });
17885
+ i0.ɵɵtext(34);
17886
+ i0.ɵɵpipe(35, "rpxTranslate");
17887
+ i0.ɵɵelementEnd();
17888
+ i0.ɵɵelementEnd();
17889
+ i0.ɵɵelementEnd();
17890
+ i0.ɵɵelementEnd();
17891
+ i0.ɵɵelement(36, "br");
17892
+ i0.ɵɵelementStart(37, "div");
17893
+ i0.ɵɵelementStart(38, "button", 12);
17894
+ i0.ɵɵlistener("click", function QueryCheckYourAnswersComponent_Template_button_click_38_listener() { return ctx.goBack(); });
17895
+ i0.ɵɵtext(39);
17896
+ i0.ɵɵpipe(40, "rpxTranslate");
17897
+ i0.ɵɵelementEnd();
17898
+ i0.ɵɵelementStart(41, "button", 13);
17899
+ i0.ɵɵtext(42);
17900
+ i0.ɵɵpipe(43, "rpxTranslate");
17901
+ i0.ɵɵelementEnd();
17902
+ i0.ɵɵelementEnd();
17903
+ i0.ɵɵelementEnd();
17904
+ i0.ɵɵelementEnd();
17822
17905
  } if (rf & 2) {
17823
- i0.ɵɵproperty("ngIf", ctx.query);
17824
- } }, styles: [".query_details_caption[_ngcontent-%COMP%]{background:#f3f2f1;padding:10px;font-size:x-large;font-weight:700}"] });
17825
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryDetailsComponent, [{
17906
+ i0.ɵɵadvance(3);
17907
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 11, "Review query response details"));
17908
+ i0.ɵɵadvance(7);
17909
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(11, 13, "Submitted query"), " ");
17910
+ i0.ɵɵadvance(3);
17911
+ i0.ɵɵtextInterpolate1(" ", ctx.queryItem.subject, " ");
17912
+ i0.ɵɵadvance(4);
17913
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(18, 15, "Response message"), " ");
17914
+ i0.ɵɵadvance(3);
17915
+ i0.ɵɵtextInterpolate1(" ", ctx.formGroup.controls["body"].value, " ");
17916
+ i0.ɵɵadvance(3);
17917
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(24, 17, "Change"), " ");
17918
+ i0.ɵɵadvance(5);
17919
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(29, 19, "Document attached"), " ");
17920
+ i0.ɵɵadvance(3);
17921
+ i0.ɵɵproperty("ngIf", ctx.caseField);
17922
+ i0.ɵɵadvance(3);
17923
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(35, 21, "Change"), " ");
17924
+ i0.ɵɵadvance(5);
17925
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(40, 23, "Previous"), " ");
17926
+ i0.ɵɵadvance(3);
17927
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(43, 25, "Submit"), " ");
17928
+ } }, styles: ["ccd-query-check-your-answers .collection-field-table tr>td{border-bottom:none;padding-bottom:0}ccd-query-check-your-answers .govuk-summary-list__value--documentAttached{vertical-align:middle}"], encapsulation: 2 });
17929
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryCheckYourAnswersComponent, [{
17826
17930
  type: Component,
17827
17931
  args: [{
17828
- selector: 'ccd-query-details',
17829
- templateUrl: './query-details.component.html',
17830
- styleUrls: ['./query-details.component.scss']
17932
+ selector: 'ccd-query-check-your-answers',
17933
+ templateUrl: './query-check-your-answers.component.html',
17934
+ styleUrls: ['./query-check-your-answers.component.scss'],
17935
+ encapsulation: ViewEncapsulation.None
17831
17936
  }]
17832
- }], null, { query: [{
17937
+ }], null, { formGroup: [{
17938
+ type: Input
17939
+ }], queryItem: [{
17833
17940
  type: Input
17834
17941
  }], backClicked: [{
17835
17942
  type: Output
17836
17943
  }] }); })();
17837
17944
 
17945
+ class QueryCreateComponent {
17946
+ constructor() {
17947
+ }
17948
+ ngOnInit() {
17949
+ }
17950
+ }
17951
+ QueryCreateComponent.ɵfac = function QueryCreateComponent_Factory(t) { return new (t || QueryCreateComponent)(); };
17952
+ QueryCreateComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryCreateComponent, selectors: [["ccd-query-create"]], decls: 0, vars: 0, template: function QueryCreateComponent_Template(rf, ctx) { }, encapsulation: 2 });
17953
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryCreateComponent, [{
17954
+ type: Component,
17955
+ args: [{
17956
+ selector: 'ccd-query-create',
17957
+ templateUrl: './query-create.component.html',
17958
+ }]
17959
+ }], function () { return []; }, null); })();
17960
+
17838
17961
  function QueryDetailsTableComponent_ng_container_0_tr_35_Template(rf, ctx) { if (rf & 1) {
17839
17962
  i0.ɵɵelementStart(0, "tr", 3);
17840
17963
  i0.ɵɵelementStart(1, "th", 4);
@@ -17980,6 +18103,59 @@ QueryDetailsTableComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryDetailsTa
17980
18103
  type: Input
17981
18104
  }] }); })();
17982
18105
 
18106
+ function QueryDetailsComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
18107
+ const _r2 = i0.ɵɵgetCurrentView();
18108
+ i0.ɵɵelementContainerStart(0);
18109
+ i0.ɵɵelementStart(1, "p");
18110
+ i0.ɵɵelement(2, "br");
18111
+ i0.ɵɵelementStart(3, "a", 1);
18112
+ i0.ɵɵlistener("click", function QueryDetailsComponent_ng_container_0_Template_a_click_3_listener() { i0.ɵɵrestoreView(_r2); const ctx_r1 = i0.ɵɵnextContext(); return ctx_r1.onBack(); });
18113
+ i0.ɵɵtext(4);
18114
+ i0.ɵɵpipe(5, "rpxTranslate");
18115
+ i0.ɵɵelementEnd();
18116
+ i0.ɵɵelementEnd();
18117
+ i0.ɵɵelementStart(6, "div", 2);
18118
+ i0.ɵɵtext(7);
18119
+ i0.ɵɵpipe(8, "rpxTranslate");
18120
+ i0.ɵɵelementEnd();
18121
+ i0.ɵɵelement(9, "ccd-query-details-table", 3);
18122
+ i0.ɵɵelementContainerEnd();
18123
+ } if (rf & 2) {
18124
+ const ctx_r0 = i0.ɵɵnextContext();
18125
+ i0.ɵɵadvance(4);
18126
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 3, "Back to queries"));
18127
+ i0.ɵɵadvance(3);
18128
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(8, 5, "Query details"));
18129
+ i0.ɵɵadvance(2);
18130
+ i0.ɵɵproperty("queryItem", ctx_r0.query);
18131
+ } }
18132
+ class QueryDetailsComponent {
18133
+ constructor() {
18134
+ this.backClicked = new EventEmitter();
18135
+ }
18136
+ onBack() {
18137
+ this.backClicked.emit(true);
18138
+ }
18139
+ }
18140
+ QueryDetailsComponent.ɵfac = function QueryDetailsComponent_Factory(t) { return new (t || QueryDetailsComponent)(); };
18141
+ QueryDetailsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryDetailsComponent, selectors: [["ccd-query-details"]], inputs: { query: "query" }, outputs: { backClicked: "backClicked" }, decls: 1, vars: 1, consts: [[4, "ngIf"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [1, "query_details_caption"], [3, "queryItem"]], template: function QueryDetailsComponent_Template(rf, ctx) { if (rf & 1) {
18142
+ i0.ɵɵtemplate(0, QueryDetailsComponent_ng_container_0_Template, 10, 7, "ng-container", 0);
18143
+ } if (rf & 2) {
18144
+ i0.ɵɵproperty("ngIf", ctx.query);
18145
+ } }, styles: [".query_details_caption[_ngcontent-%COMP%]{background:#f3f2f1;padding:10px;font-size:x-large;font-weight:700}"] });
18146
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryDetailsComponent, [{
18147
+ type: Component,
18148
+ args: [{
18149
+ selector: 'ccd-query-details',
18150
+ templateUrl: './query-details.component.html',
18151
+ styleUrls: ['./query-details.component.scss']
18152
+ }]
18153
+ }], null, { query: [{
18154
+ type: Input
18155
+ }], backClicked: [{
18156
+ type: Output
18157
+ }] }); })();
18158
+
17983
18159
  var SortOrder;
17984
18160
  (function (SortOrder) {
17985
18161
  SortOrder[SortOrder["ASCENDING"] = 0] = "ASCENDING";
@@ -18156,136 +18332,18 @@ QueryListComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryListComponent, se
18156
18332
  type: Output
18157
18333
  }] }); })();
18158
18334
 
18159
- class QueryWriteDateInputComponent {
18160
- constructor() {
18161
- this.disabled = false;
18162
- }
18163
- writeValue(date) {
18164
- if (date instanceof Date && !isNaN(date.getTime())) {
18165
- this.day = date.getDate();
18166
- this.month = date.getMonth() + 1; // Months are zero-based
18167
- this.year = date.getFullYear();
18168
- }
18169
- else {
18170
- this.day = null;
18171
- this.month = null;
18172
- this.year = null;
18173
- }
18174
- }
18175
- registerOnChange(fn) {
18176
- this.onChange = fn;
18177
- }
18178
- registerOnTouched(fn) {
18179
- this.onTouched = fn;
18180
- }
18181
- setDisabledState(isDisabled) {
18182
- this.disabled = isDisabled;
18183
- }
18184
- updateDate() {
18185
- const updatedValue = this.onChange && this.isValidDateInput() ?
18186
- new Date(this.year, this.month - 1, this.day)
18187
- : null;
18188
- this.onChange(updatedValue);
18189
- this.onTouched();
18190
- }
18191
- isValidDateInput() {
18192
- const isValidDay = this.day >= 1 && this.day <= 31;
18193
- const isValidMonth = this.month >= 1 && this.month <= 12;
18194
- const isValidYear = this.year >= 0;
18195
- return isValidDay && isValidMonth && isValidYear;
18196
- }
18197
- }
18198
- QueryWriteDateInputComponent.ɵfac = function QueryWriteDateInputComponent_Factory(t) { return new (t || QueryWriteDateInputComponent)(); };
18199
- QueryWriteDateInputComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryWriteDateInputComponent, selectors: [["ccd-query-write-date-input"]], inputs: { formControlName: "formControlName" }, features: [i0.ɵɵProvidersFeature([
18200
- {
18201
- provide: NG_VALUE_ACCESSOR,
18202
- useExisting: forwardRef(() => QueryWriteDateInputComponent),
18203
- multi: true
18204
- }
18205
- ])], decls: 19, vars: 24, consts: [[1, "govuk-date-input", 3, "id"], [1, "govuk-date-input__item"], [1, "govuk-form-group"], [1, "govuk-label", "govuk-date-input__label", 3, "for"], ["type", "text", "inputmode", "numeric", 1, "govuk-input", "govuk-date-input__input", "govuk-input--width-2", 3, "id", "name", "ngModel", "disabled", "ngModelChange", "input"], ["id", "formControlName + '-year'", "type", "text", "inputmode", "numeric", 1, "govuk-input", "govuk-date-input__input", "govuk-input--width-4", 3, "name", "ngModel", "disabled", "ngModelChange", "input"]], template: function QueryWriteDateInputComponent_Template(rf, ctx) { if (rf & 1) {
18206
- i0.ɵɵelementStart(0, "div", 0);
18207
- i0.ɵɵelementStart(1, "div", 1);
18208
- i0.ɵɵelementStart(2, "div", 2);
18209
- i0.ɵɵelementStart(3, "label", 3);
18210
- i0.ɵɵtext(4);
18211
- i0.ɵɵpipe(5, "rpxTranslate");
18212
- i0.ɵɵelementEnd();
18213
- i0.ɵɵelementStart(6, "input", 4);
18214
- i0.ɵɵlistener("ngModelChange", function QueryWriteDateInputComponent_Template_input_ngModelChange_6_listener($event) { return ctx.day = $event; })("input", function QueryWriteDateInputComponent_Template_input_input_6_listener() { return ctx.updateDate(); });
18215
- i0.ɵɵelementEnd();
18216
- i0.ɵɵelementEnd();
18217
- i0.ɵɵelementEnd();
18218
- i0.ɵɵelementStart(7, "div", 1);
18219
- i0.ɵɵelementStart(8, "div", 2);
18220
- i0.ɵɵelementStart(9, "label", 3);
18221
- i0.ɵɵtext(10);
18222
- i0.ɵɵpipe(11, "rpxTranslate");
18223
- i0.ɵɵelementEnd();
18224
- i0.ɵɵelementStart(12, "input", 4);
18225
- i0.ɵɵlistener("ngModelChange", function QueryWriteDateInputComponent_Template_input_ngModelChange_12_listener($event) { return ctx.month = $event; })("input", function QueryWriteDateInputComponent_Template_input_input_12_listener() { return ctx.updateDate(); });
18226
- i0.ɵɵelementEnd();
18227
- i0.ɵɵelementEnd();
18228
- i0.ɵɵelementEnd();
18229
- i0.ɵɵelementStart(13, "div", 1);
18230
- i0.ɵɵelementStart(14, "div", 2);
18231
- i0.ɵɵelementStart(15, "label", 3);
18232
- i0.ɵɵtext(16);
18233
- i0.ɵɵpipe(17, "rpxTranslate");
18234
- i0.ɵɵelementEnd();
18235
- i0.ɵɵelementStart(18, "input", 5);
18236
- i0.ɵɵlistener("ngModelChange", function QueryWriteDateInputComponent_Template_input_ngModelChange_18_listener($event) { return ctx.year = $event; })("input", function QueryWriteDateInputComponent_Template_input_input_18_listener() { return ctx.updateDate(); });
18237
- i0.ɵɵelementEnd();
18238
- i0.ɵɵelementEnd();
18239
- i0.ɵɵelementEnd();
18240
- i0.ɵɵelementEnd();
18241
- } if (rf & 2) {
18242
- i0.ɵɵproperty("id", ctx.formControlName);
18243
- i0.ɵɵadvance(3);
18244
- i0.ɵɵproperty("for", ctx.formControlName + "-day");
18245
- i0.ɵɵadvance(1);
18246
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 18, "Day"), " ");
18247
- i0.ɵɵadvance(2);
18248
- i0.ɵɵproperty("id", ctx.formControlName + "-day")("name", ctx.formControlName + "-day")("ngModel", ctx.day)("disabled", ctx.disabled);
18249
- i0.ɵɵadvance(3);
18250
- i0.ɵɵproperty("for", ctx.formControlName + "-month");
18251
- i0.ɵɵadvance(1);
18252
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(11, 20, "Month"), " ");
18253
- i0.ɵɵadvance(2);
18254
- i0.ɵɵproperty("id", ctx.formControlName + "-month")("name", ctx.formControlName + "-month")("ngModel", ctx.month)("disabled", ctx.disabled);
18255
- i0.ɵɵadvance(3);
18256
- i0.ɵɵproperty("for", ctx.formControlName + "-year");
18257
- i0.ɵɵadvance(1);
18258
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17, 22, "Year"), " ");
18259
- i0.ɵɵadvance(2);
18260
- i0.ɵɵproperty("name", ctx.formControlName + "-year")("ngModel", ctx.year)("disabled", ctx.disabled);
18261
- } }, directives: [i3.DefaultValueAccessor, i3.NgControlStatus, i3.NgModel], pipes: [i1.RpxTranslatePipe], encapsulation: 2 });
18262
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryWriteDateInputComponent, [{
18263
- type: Component,
18264
- args: [{
18265
- selector: 'ccd-query-write-date-input',
18266
- templateUrl: './query-write-date-input.component.html',
18267
- providers: [
18268
- {
18269
- provide: NG_VALUE_ACCESSOR,
18270
- useExisting: forwardRef(() => QueryWriteDateInputComponent),
18271
- multi: true
18272
- }
18273
- ]
18274
- }]
18275
- }], null, { formControlName: [{
18276
- type: Input
18277
- }] }); })();
18278
-
18279
18335
  class QueryWriteAddDocumentsComponent {
18280
18336
  constructor() {
18281
18337
  this.documentFormGroup = new FormGroup({});
18282
18338
  this.documentCollectionUpdate = new EventEmitter();
18339
+ }
18340
+ ngOnInit() {
18341
+ var _a;
18283
18342
  // This field is mocked to allow the document component to be used in isolation
18284
18343
  this.mockDocumentCaseField = Object.assign(new CaseField(), {
18285
18344
  id: QueryWriteAddDocumentsComponent.DOCUMENTS_FORM_CONTROL_NAME,
18286
- label: 'Add document',
18345
+ label: 'Add document (optional)',
18287
18346
  hint_text: 'Attach a document to this message',
18288
- display_context: 'OPTIONAL',
18289
18347
  display_context_parameter: '#COLLECTION(allowInsert,allowUpdate)',
18290
18348
  field_type: Object.assign(new FieldType(), {
18291
18349
  id: 'queryDocuments',
@@ -18307,11 +18365,12 @@ class QueryWriteAddDocumentsComponent {
18307
18365
  })
18308
18366
  }),
18309
18367
  });
18368
+ this.mockDocumentCaseField.value = (_a = this.formGroup.get('attachments')) === null || _a === void 0 ? void 0 : _a.value.map(QueryManagementUtils.documentToCollectionFormDocument);
18310
18369
  }
18311
18370
  ngAfterViewInit() {
18312
- const formControl = this.documentFormGroup.get(QueryWriteAddDocumentsComponent.DOCUMENTS_FORM_CONTROL_NAME);
18313
- if (formControl) {
18314
- this.documentFormControlSubscription = formControl.valueChanges
18371
+ const documentFormControl = this.documentFormGroup.get(QueryWriteAddDocumentsComponent.DOCUMENTS_FORM_CONTROL_NAME);
18372
+ if (documentFormControl) {
18373
+ this.documentFormControlSubscription = documentFormControl.valueChanges
18315
18374
  .pipe(map(documents => (documents.filter((document) => { var _a; return !!((_a = document === null || document === void 0 ? void 0 : document.value) === null || _a === void 0 ? void 0 : _a.document_url); }))), map(documents => documents.map(document => document === null || document === void 0 ? void 0 : document.value)), tap(documents => this.documentCollectionUpdate.emit(documents)))
18316
18375
  .subscribe();
18317
18376
  }
@@ -18323,7 +18382,7 @@ class QueryWriteAddDocumentsComponent {
18323
18382
  }
18324
18383
  QueryWriteAddDocumentsComponent.DOCUMENTS_FORM_CONTROL_NAME = 'documentCollection';
18325
18384
  QueryWriteAddDocumentsComponent.ɵfac = function QueryWriteAddDocumentsComponent_Factory(t) { return new (t || QueryWriteAddDocumentsComponent)(); };
18326
- QueryWriteAddDocumentsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryWriteAddDocumentsComponent, selectors: [["ccd-query-write-add-documents"]], outputs: { documentCollectionUpdate: "documentCollectionUpdate" }, decls: 1, vars: 2, consts: [[3, "formGroup", "caseField"]], template: function QueryWriteAddDocumentsComponent_Template(rf, ctx) { if (rf & 1) {
18385
+ QueryWriteAddDocumentsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryWriteAddDocumentsComponent, selectors: [["ccd-query-write-add-documents"]], inputs: { formGroup: "formGroup" }, outputs: { documentCollectionUpdate: "documentCollectionUpdate" }, decls: 1, vars: 2, consts: [[3, "formGroup", "caseField"]], template: function QueryWriteAddDocumentsComponent_Template(rf, ctx) { if (rf & 1) {
18327
18386
  i0.ɵɵelement(0, "ccd-write-collection-field", 0);
18328
18387
  } if (rf & 2) {
18329
18388
  i0.ɵɵproperty("formGroup", ctx.documentFormGroup)("caseField", ctx.mockDocumentCaseField);
@@ -18334,13 +18393,15 @@ QueryWriteAddDocumentsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryWrit
18334
18393
  selector: 'ccd-query-write-add-documents',
18335
18394
  templateUrl: './query-write-add-documents.component.html'
18336
18395
  }]
18337
- }], function () { return []; }, { documentCollectionUpdate: [{
18396
+ }], null, { formGroup: [{
18397
+ type: Input
18398
+ }], documentCollectionUpdate: [{
18338
18399
  type: Output
18339
18400
  }] }); })();
18340
18401
 
18341
18402
  function QueryWriteRaiseQueryComponent_p_22_Template(rf, ctx) { if (rf & 1) {
18342
- i0.ɵɵelementStart(0, "p", 28);
18343
- i0.ɵɵelementStart(1, "span", 29);
18403
+ i0.ɵɵelementStart(0, "p", 27);
18404
+ i0.ɵɵelementStart(1, "span", 28);
18344
18405
  i0.ɵɵtext(2);
18345
18406
  i0.ɵɵpipe(3, "rpxTranslate");
18346
18407
  i0.ɵɵelementEnd();
@@ -18354,8 +18415,8 @@ function QueryWriteRaiseQueryComponent_p_22_Template(rf, ctx) { if (rf & 1) {
18354
18415
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, "Enter a message"), " ");
18355
18416
  } }
18356
18417
  function QueryWriteRaiseQueryComponent_p_32_Template(rf, ctx) { if (rf & 1) {
18357
- i0.ɵɵelementStart(0, "p", 30);
18358
- i0.ɵɵelementStart(1, "span", 29);
18418
+ i0.ɵɵelementStart(0, "p", 29);
18419
+ i0.ɵɵelementStart(1, "span", 28);
18359
18420
  i0.ɵɵtext(2);
18360
18421
  i0.ɵɵpipe(3, "rpxTranslate");
18361
18422
  i0.ɵɵelementEnd();
@@ -18369,8 +18430,8 @@ function QueryWriteRaiseQueryComponent_p_32_Template(rf, ctx) { if (rf & 1) {
18369
18430
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, "Enter a subject"), " ");
18370
18431
  } }
18371
18432
  function QueryWriteRaiseQueryComponent_p_42_Template(rf, ctx) { if (rf & 1) {
18372
- i0.ɵɵelementStart(0, "p", 31);
18373
- i0.ɵɵelementStart(1, "span", 29);
18433
+ i0.ɵɵelementStart(0, "p", 30);
18434
+ i0.ɵɵelementStart(1, "span", 28);
18374
18435
  i0.ɵɵtext(2);
18375
18436
  i0.ɵɵpipe(3, "rpxTranslate");
18376
18437
  i0.ɵɵelementEnd();
@@ -18383,28 +18444,10 @@ function QueryWriteRaiseQueryComponent_p_42_Template(rf, ctx) { if (rf & 1) {
18383
18444
  i0.ɵɵadvance(2);
18384
18445
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, "Enter a query body"), " ");
18385
18446
  } }
18386
- function QueryWriteRaiseQueryComponent_ng_container_62_Template(rf, ctx) { if (rf & 1) {
18387
- i0.ɵɵelementContainerStart(0);
18388
- i0.ɵɵelementStart(1, "div", 32);
18389
- i0.ɵɵelementStart(2, "fieldset", 33);
18390
- i0.ɵɵelementStart(3, "legend");
18391
- i0.ɵɵelementStart(4, "label", 34);
18392
- i0.ɵɵtext(5);
18393
- i0.ɵɵpipe(6, "rpxTranslate");
18394
- i0.ɵɵelementEnd();
18395
- i0.ɵɵelementEnd();
18396
- i0.ɵɵelement(7, "ccd-query-write-date-input", 35);
18397
- i0.ɵɵelementEnd();
18398
- i0.ɵɵelementEnd();
18399
- i0.ɵɵelementContainerEnd();
18400
- } if (rf & 2) {
18401
- i0.ɵɵadvance(5);
18402
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 1, "Hearing date"), " ");
18403
- } }
18404
18447
  class QueryWriteRaiseQueryComponent {
18405
18448
  }
18406
18449
  QueryWriteRaiseQueryComponent.ɵfac = function QueryWriteRaiseQueryComponent_Factory(t) { return new (t || QueryWriteRaiseQueryComponent)(); };
18407
- QueryWriteRaiseQueryComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryWriteRaiseQueryComponent, selectors: [["ccd-query-write-raise-query"]], inputs: { formGroup: "formGroup" }, decls: 63, vars: 61, consts: [[1, "govuk-!-margin-bottom-6"], [1, "govuk-caption-l"], [1, "govuk-heading-l", "govuk-!-margin-bottom-4"], [1, "govuk-!-margin-bottom-4"], [3, "formGroup"], [1, "govuk-form-group"], [1, "govuk-label-wrapper"], ["for", "query-raise-fullName", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "query-raise-fullName-hint", 1, "govuk-hint"], ["id", "query-raise-fullName-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "query-raise-fullName", "name", "query-raise-fullName", "type", "text", 1, "govuk-input", 3, "formControlName"], ["for", "query-raise-subject", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "query-raise-subject-hint", 1, "govuk-hint"], ["id", "query-raise-subject-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "query-raise-subject", "name", "query-raise-subject", "type", "text", 1, "govuk-input", 3, "formControlName"], ["for", "query-raise-body", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "query-raise-body-hint", 1, "govuk-hint"], ["id", "query-raise-body-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "query-raise-body", "name", "query-body", "rows", "5", "aria-describedby", "query-body-hint query-body-error", 1, "govuk-textarea", 3, "formControlName"], [1, "govuk-fieldset"], [1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["data-module", "govuk-radios", 1, "govuk-radios", "govuk-radios--inline"], [1, "govuk-radios__item"], ["id", "query-raise-isHearingRelated-yes", "name", "query-raise-isHearingRelated-yes", "type", "radio", 1, "govuk-radios__input", 3, "checked", "value"], ["for", "query-raise-isHearingRelated-yes", 1, "govuk-label", "govuk-radios__label"], ["id", "query-raise-isHearingRelated-no", "name", "query-raise-isHearingRelated-no", "type", "radio", 1, "govuk-radios__input", 3, "checked", "value"], ["for", "query-raise-isHearingRelated-no", 1, "govuk-label", "govuk-radios__label"], [4, "ngIf"], ["id", "query-raise-fullName-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "query-raise-subject-error", 1, "govuk-error-message"], ["id", "query-raise-body-error", 1, "govuk-error-message"], [1, "govuk-!-margin-top-1"], ["role", "group", 1, "govuk-fieldset"], [1, "govuk-label", "govuk-label--s"], ["formControlName", "hearingDate"]], template: function QueryWriteRaiseQueryComponent_Template(rf, ctx) { if (rf & 1) {
18450
+ QueryWriteRaiseQueryComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryWriteRaiseQueryComponent, selectors: [["ccd-query-write-raise-query"]], inputs: { formGroup: "formGroup" }, decls: 62, vars: 60, consts: [[1, "govuk-!-margin-bottom-6"], [1, "govuk-caption-l"], [1, "govuk-heading-l", "govuk-!-margin-bottom-4"], [1, "govuk-!-margin-bottom-4"], [3, "formGroup"], [1, "govuk-form-group"], [1, "govuk-label-wrapper"], ["for", "query-raise-fullName", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "query-raise-fullName-hint", 1, "govuk-hint"], ["id", "query-raise-fullName-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "query-raise-fullName", "name", "query-raise-fullName", "type", "text", 1, "govuk-input", 3, "formControlName"], ["for", "query-raise-subject", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "query-raise-subject-hint", 1, "govuk-hint"], ["id", "query-raise-subject-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "query-raise-subject", "name", "query-raise-subject", "type", "text", 1, "govuk-input", 3, "formControlName"], ["for", "query-raise-body", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "query-raise-body-hint", 1, "govuk-hint"], ["id", "query-raise-body-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "query-raise-body", "name", "query-body", "rows", "5", "aria-describedby", "query-body-hint query-body-error", 1, "govuk-textarea", 3, "formControlName"], [1, "govuk-fieldset"], [1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["data-module", "govuk-radios", 1, "govuk-radios", "govuk-radios--inline"], [1, "govuk-radios__item"], ["id", "query-raise-isHearingRelated-yes", "name", "query-raise-isHearingRelated-yes", "type", "radio", 1, "govuk-radios__input", 3, "checked", "value"], ["for", "query-raise-isHearingRelated-yes", 1, "govuk-label", "govuk-radios__label"], ["id", "query-raise-isHearingRelated-no", "name", "query-raise-isHearingRelated-no", "type", "radio", 1, "govuk-radios__input", 3, "checked", "value"], ["for", "query-raise-isHearingRelated-no", 1, "govuk-label", "govuk-radios__label"], ["id", "query-raise-fullName-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "query-raise-subject-error", 1, "govuk-error-message"], ["id", "query-raise-body-error", 1, "govuk-error-message"]], template: function QueryWriteRaiseQueryComponent_Template(rf, ctx) { if (rf & 1) {
18408
18451
  i0.ɵɵelementStart(0, "div");
18409
18452
  i0.ɵɵelementStart(1, "div", 0);
18410
18453
  i0.ɵɵelementStart(2, "div", 1);
@@ -18492,7 +18535,6 @@ QueryWriteRaiseQueryComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryWriteR
18492
18535
  i0.ɵɵelementEnd();
18493
18536
  i0.ɵɵelementEnd();
18494
18537
  i0.ɵɵelementEnd();
18495
- i0.ɵɵtemplate(62, QueryWriteRaiseQueryComponent_ng_container_62_Template, 8, 3, "ng-container", 27);
18496
18538
  i0.ɵɵelementEnd();
18497
18539
  i0.ɵɵelementEnd();
18498
18540
  i0.ɵɵelementEnd();
@@ -18509,17 +18551,17 @@ QueryWriteRaiseQueryComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryWriteR
18509
18551
  let tmp_18_0 = null;
18510
18552
  let tmp_19_0 = null;
18511
18553
  i0.ɵɵadvance(3);
18512
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 35, "Raise a query"));
18554
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 34, "Raise a query"));
18513
18555
  i0.ɵɵadvance(3);
18514
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 37, "Enter query details"));
18556
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 36, "Enter query details"));
18515
18557
  i0.ɵɵadvance(6);
18516
18558
  i0.ɵɵproperty("formGroup", ctx.formGroup);
18517
18559
  i0.ɵɵadvance(2);
18518
18560
  i0.ɵɵclassProp("govuk-form-group--error", (tmp_3_0 = ctx.formGroup.get("fullName")) == null ? null : tmp_3_0.errors == null ? null : tmp_3_0.errors.length);
18519
18561
  i0.ɵɵadvance(3);
18520
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(18, 39, "Full name"), " ");
18562
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(18, 38, "Full name"), " ");
18521
18563
  i0.ɵɵadvance(3);
18522
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(21, 41, "Your full name must be included here"), " ");
18564
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(21, 40, "Your full name must be included here"), " ");
18523
18565
  i0.ɵɵadvance(2);
18524
18566
  i0.ɵɵproperty("ngIf", (tmp_6_0 = ctx.formGroup.get("body")) == null ? null : tmp_6_0.errors == null ? null : tmp_6_0.errors.length);
18525
18567
  i0.ɵɵadvance(1);
@@ -18528,9 +18570,9 @@ QueryWriteRaiseQueryComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryWriteR
18528
18570
  i0.ɵɵadvance(1);
18529
18571
  i0.ɵɵclassProp("govuk-form-group--error", (tmp_9_0 = ctx.formGroup.get("subject")) == null ? null : tmp_9_0.errors == null ? null : tmp_9_0.errors.length);
18530
18572
  i0.ɵɵadvance(3);
18531
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(28, 43, "Query subject"), " ");
18573
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(28, 42, "Query subject"), " ");
18532
18574
  i0.ɵɵadvance(3);
18533
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(31, 45, "The subject should be a summary of your query"), " ");
18575
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(31, 44, "The subject should be a summary of your query"), " ");
18534
18576
  i0.ɵɵadvance(2);
18535
18577
  i0.ɵɵproperty("ngIf", (tmp_12_0 = ctx.formGroup.get("body")) == null ? null : tmp_12_0.errors == null ? null : tmp_12_0.errors.length);
18536
18578
  i0.ɵɵadvance(1);
@@ -18539,26 +18581,24 @@ QueryWriteRaiseQueryComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryWriteR
18539
18581
  i0.ɵɵadvance(1);
18540
18582
  i0.ɵɵclassProp("govuk-form-group--error", (tmp_15_0 = ctx.formGroup.get("body")) == null ? null : tmp_15_0.errors == null ? null : tmp_15_0.errors.length);
18541
18583
  i0.ɵɵadvance(3);
18542
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(38, 47, "Query body"), " ");
18584
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(38, 46, "Query body"), " ");
18543
18585
  i0.ɵɵadvance(3);
18544
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(41, 49, "Include as many details as possible so case workers can respond to your query"), " ");
18586
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(41, 48, "Include as many details as possible so case workers can respond to your query"), " ");
18545
18587
  i0.ɵɵadvance(2);
18546
18588
  i0.ɵɵproperty("ngIf", (tmp_18_0 = ctx.formGroup.get("body")) == null ? null : tmp_18_0.errors == null ? null : tmp_18_0.errors.length);
18547
18589
  i0.ɵɵadvance(1);
18548
18590
  i0.ɵɵclassProp("govuk-textarea--error", (tmp_19_0 = ctx.formGroup.get("body")) == null ? null : tmp_19_0.errors == null ? null : tmp_19_0.errors.length);
18549
18591
  i0.ɵɵproperty("formControlName", "body");
18550
18592
  i0.ɵɵadvance(6);
18551
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(50, 51, "Is the query hearing related?"), " ");
18593
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(50, 50, "Is the query hearing related?"), " ");
18552
18594
  i0.ɵɵadvance(4);
18553
18595
  i0.ɵɵproperty("checked", ctx.formGroup.get("isHearingRelated").value === true)("value", true);
18554
18596
  i0.ɵɵadvance(2);
18555
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(56, 53, "Is the query hearing related?", null, "Yes"), " ");
18597
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(56, 52, "Is the query hearing related?", null, "Yes"), " ");
18556
18598
  i0.ɵɵadvance(3);
18557
18599
  i0.ɵɵproperty("checked", ctx.formGroup.get("isHearingRelated").value === false)("value", false);
18558
18600
  i0.ɵɵadvance(2);
18559
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(61, 57, "Is the query hearing related?", null, "No"), " ");
18560
- i0.ɵɵadvance(2);
18561
- i0.ɵɵproperty("ngIf", ctx.formGroup.get("isHearingRelated").value);
18601
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(61, 56, "Is the query hearing related?", null, "No"), " ");
18562
18602
  } }, encapsulation: 2 });
18563
18603
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryWriteRaiseQueryComponent, [{
18564
18604
  type: Component,
@@ -18570,7 +18610,7 @@ QueryWriteRaiseQueryComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryWriteR
18570
18610
  type: Input
18571
18611
  }] }); })();
18572
18612
 
18573
- function QueryWriteRespondToQueryComponent_p_26_Template(rf, ctx) { if (rf & 1) {
18613
+ function QueryWriteRespondToQueryComponent_p_27_Template(rf, ctx) { if (rf & 1) {
18574
18614
  i0.ɵɵelementStart(0, "p", 15);
18575
18615
  i0.ɵɵelementStart(1, "span", 16);
18576
18616
  i0.ɵɵtext(2);
@@ -18588,7 +18628,7 @@ function QueryWriteRespondToQueryComponent_p_26_Template(rf, ctx) { if (rf & 1)
18588
18628
  class QueryWriteRespondToQueryComponent {
18589
18629
  }
18590
18630
  QueryWriteRespondToQueryComponent.ɵfac = function QueryWriteRespondToQueryComponent_Factory(t) { return new (t || QueryWriteRespondToQueryComponent)(); };
18591
- QueryWriteRespondToQueryComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryWriteRespondToQueryComponent, selectors: [["ccd-query-write-respond-to-query"]], inputs: { queryItem: "queryItem", formGroup: "formGroup" }, decls: 29, vars: 23, consts: [[1, "govuk-!-margin-bottom-2"], ["href", "javascript:void(0)", 1, "govuk-back-link", "govuk-!-margin-top-0"], [1, "govuk-!-margin-bottom-6"], [1, "govuk-caption-l"], [1, "govuk-heading-l", "govuk-!-margin-bottom-0"], [1, "govuk-!-margin-bottom-4"], [3, "queryItem"], [1, "query-respond"], [1, "govuk-heading-m"], [3, "formGroup"], [1, "govuk-form-group", "body-textarea"], [1, "govuk-label-wrapper"], ["for", "query-body", 1, "govuk-label", "govuk-!-font-weight-bold"], ["id", "query-body-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "query-body", "name", "query-body", "rows", "5", "aria-describedby", "query-body-hint query-body-error", 1, "govuk-textarea", 3, "formControlName"], ["id", "query-body-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"]], template: function QueryWriteRespondToQueryComponent_Template(rf, ctx) { if (rf & 1) {
18631
+ QueryWriteRespondToQueryComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryWriteRespondToQueryComponent, selectors: [["ccd-query-write-respond-to-query"]], inputs: { queryItem: "queryItem", formGroup: "formGroup" }, decls: 30, vars: 23, consts: [[1, "govuk-!-margin-bottom-2"], ["href", "javascript:void(0)", 1, "govuk-back-link", "govuk-!-margin-top-0"], [1, "govuk-!-margin-bottom-6"], [1, "govuk-caption-l"], [1, "govuk-heading-l", "govuk-!-margin-bottom-0"], [1, "govuk-!-margin-bottom-4"], [3, "queryItem"], [1, "query-respond"], [1, "govuk-heading-m"], [3, "formGroup"], [1, "govuk-form-group", "body-textarea"], [1, "govuk-label-wrapper"], ["for", "query-body", 1, "govuk-label", "govuk-!-font-weight-bold"], ["id", "query-body-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "query-body", "name", "query-body", "rows", "5", "aria-describedby", "query-body-hint query-body-error", 1, "govuk-textarea", 3, "formControlName"], ["id", "query-body-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"]], template: function QueryWriteRespondToQueryComponent_Template(rf, ctx) { if (rf & 1) {
18592
18632
  i0.ɵɵelementStart(0, "div", 0);
18593
18633
  i0.ɵɵelementStart(1, "a", 1);
18594
18634
  i0.ɵɵtext(2);
@@ -18614,21 +18654,23 @@ QueryWriteRespondToQueryComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryWr
18614
18654
  i0.ɵɵelementEnd();
18615
18655
  i0.ɵɵelementEnd();
18616
18656
  i0.ɵɵelementStart(16, "div", 7);
18617
- i0.ɵɵelementStart(17, "h1", 8);
18618
- i0.ɵɵtext(18);
18619
- i0.ɵɵpipe(19, "rpxTranslate");
18657
+ i0.ɵɵelementStart(17, "div", 5);
18658
+ i0.ɵɵelementStart(18, "h1", 8);
18659
+ i0.ɵɵtext(19);
18660
+ i0.ɵɵpipe(20, "rpxTranslate");
18661
+ i0.ɵɵelementEnd();
18662
+ i0.ɵɵelementStart(21, "div", 9);
18663
+ i0.ɵɵelementStart(22, "div", 10);
18664
+ i0.ɵɵelementStart(23, "div", 11);
18665
+ i0.ɵɵelementStart(24, "label", 12);
18666
+ i0.ɵɵtext(25);
18667
+ i0.ɵɵpipe(26, "rpxTranslate");
18620
18668
  i0.ɵɵelementEnd();
18621
- i0.ɵɵelementStart(20, "div", 9);
18622
- i0.ɵɵelementStart(21, "div", 10);
18623
- i0.ɵɵelementStart(22, "div", 11);
18624
- i0.ɵɵelementStart(23, "label", 12);
18625
- i0.ɵɵtext(24);
18626
- i0.ɵɵpipe(25, "rpxTranslate");
18627
18669
  i0.ɵɵelementEnd();
18670
+ i0.ɵɵtemplate(27, QueryWriteRespondToQueryComponent_p_27_Template, 6, 6, "p", 13);
18671
+ i0.ɵɵelementStart(28, "textarea", 14);
18672
+ i0.ɵɵtext(29, " ");
18628
18673
  i0.ɵɵelementEnd();
18629
- i0.ɵɵtemplate(26, QueryWriteRespondToQueryComponent_p_26_Template, 6, 6, "p", 13);
18630
- i0.ɵɵelementStart(27, "textarea", 14);
18631
- i0.ɵɵtext(28, " ");
18632
18674
  i0.ɵɵelementEnd();
18633
18675
  i0.ɵɵelementEnd();
18634
18676
  i0.ɵɵelementEnd();
@@ -18645,14 +18687,14 @@ QueryWriteRespondToQueryComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryWr
18645
18687
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(11, 17, "Query details"));
18646
18688
  i0.ɵɵadvance(5);
18647
18689
  i0.ɵɵproperty("queryItem", ctx.queryItem);
18648
- i0.ɵɵadvance(3);
18649
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(19, 19, "Respond to a query"));
18690
+ i0.ɵɵadvance(4);
18691
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(20, 19, "Respond to a query"));
18650
18692
  i0.ɵɵadvance(2);
18651
18693
  i0.ɵɵproperty("formGroup", ctx.formGroup);
18652
18694
  i0.ɵɵadvance(1);
18653
18695
  i0.ɵɵclassProp("govuk-form-group--error", (tmp_6_0 = ctx.formGroup.get("body")) == null ? null : tmp_6_0.errors == null ? null : tmp_6_0.errors.length);
18654
18696
  i0.ɵɵadvance(3);
18655
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(25, 21, "Response message"), " ");
18697
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(26, 21, "Response message"), " ");
18656
18698
  i0.ɵɵadvance(2);
18657
18699
  i0.ɵɵproperty("ngIf", (tmp_8_0 = ctx.formGroup.get("body")) == null ? null : tmp_8_0.errors == null ? null : tmp_8_0.errors.length);
18658
18700
  i0.ɵɵadvance(1);
@@ -18672,16 +18714,6 @@ QueryWriteRespondToQueryComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryWr
18672
18714
  type: Input
18673
18715
  }] }); })();
18674
18716
 
18675
- class QueryManagementUtils {
18676
- static extractCaseQueriesFromCaseField() {
18677
- }
18678
- }
18679
- QueryManagementUtils.ɵfac = function QueryManagementUtils_Factory(t) { return new (t || QueryManagementUtils)(); };
18680
- QueryManagementUtils.ɵprov = i0.ɵɵdefineInjectable({ token: QueryManagementUtils, factory: QueryManagementUtils.ɵfac });
18681
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryManagementUtils, [{
18682
- type: Injectable
18683
- }], null, null); })();
18684
-
18685
18717
  function ReadQueryManagementFieldComponent_ng_container_1_div_1_Template(rf, ctx) { if (rf & 1) {
18686
18718
  const _r5 = i0.ɵɵgetCurrentView();
18687
18719
  i0.ɵɵelementStart(0, "div", 3);
@@ -18775,7 +18807,22 @@ function WriteQueryManagementFieldComponent_ng_template_2_Template(rf, ctx) { if
18775
18807
  class WriteQueryManagementFieldComponent extends AbstractFieldReadComponent {
18776
18808
  constructor() {
18777
18809
  super();
18778
- this.formGroup = new FormGroup({});
18810
+ this.responseFormGroup = new FormGroup({
18811
+ response: new FormControl('', [Validators.required]),
18812
+ documents: new FormControl([])
18813
+ });
18814
+ this.errorMessages = [];
18815
+ this.submitted = false;
18816
+ }
18817
+ submitForm() {
18818
+ this.submitted = true;
18819
+ this.errorMessages = [];
18820
+ window.scrollTo(0, 0);
18821
+ if (!this.responseFormGroup.valid) {
18822
+ if (this.responseFormGroup.controls.response.hasError('required')) {
18823
+ this.errorMessages.push({ controlName: 'response', message: 'Add a response before continue' });
18824
+ }
18825
+ }
18779
18826
  }
18780
18827
  }
18781
18828
  WriteQueryManagementFieldComponent.ɵfac = function WriteQueryManagementFieldComponent_Factory(t) { return new (t || WriteQueryManagementFieldComponent)(); };
@@ -25631,8 +25678,8 @@ const PALETTE_COMPONENTS = [
25631
25678
  QueryWriteRespondToQueryComponent,
25632
25679
  QueryWriteRaiseQueryComponent,
25633
25680
  QueryCaseDetailsHeaderComponent,
25681
+ QueryCheckYourAnswersComponent,
25634
25682
  QueryWriteAddDocumentsComponent,
25635
- QueryWriteDateInputComponent
25636
25683
  ];
25637
25684
  class PaletteModule {
25638
25685
  }
@@ -25814,8 +25861,8 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
25814
25861
  QueryWriteRespondToQueryComponent,
25815
25862
  QueryWriteRaiseQueryComponent,
25816
25863
  QueryCaseDetailsHeaderComponent,
25817
- QueryWriteAddDocumentsComponent,
25818
- QueryWriteDateInputComponent], imports: [CommonModule,
25864
+ QueryCheckYourAnswersComponent,
25865
+ QueryWriteAddDocumentsComponent], imports: [CommonModule,
25819
25866
  RouterModule,
25820
25867
  FormsModule,
25821
25868
  ReactiveFormsModule,
@@ -25962,8 +26009,8 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
25962
26009
  QueryWriteRespondToQueryComponent,
25963
26010
  QueryWriteRaiseQueryComponent,
25964
26011
  QueryCaseDetailsHeaderComponent,
25965
- QueryWriteAddDocumentsComponent,
25966
- QueryWriteDateInputComponent] }); })();
26012
+ QueryCheckYourAnswersComponent,
26013
+ QueryWriteAddDocumentsComponent] }); })();
25967
26014
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaletteModule, [{
25968
26015
  type: NgModule,
25969
26016
  args: [{
@@ -26107,7 +26154,8 @@ i0.ɵɵsetComponentScope(WriteQueryManagementFieldComponent, [i5.NgIf, QueryWrit
26107
26154
  i0.ɵɵsetComponentScope(QueryDetailsComponent, [i5.NgIf, QueryDetailsTableComponent], [i1.RpxTranslatePipe]);
26108
26155
  i0.ɵɵsetComponentScope(QueryWriteRespondToQueryComponent, [QueryCaseDetailsHeaderComponent,
26109
26156
  QueryDetailsTableComponent, i3.NgControlStatusGroup, i3.FormGroupDirective, i5.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.FormControlName], [i1.RpxTranslatePipe]);
26110
- i0.ɵɵsetComponentScope(QueryWriteRaiseQueryComponent, [QueryCaseDetailsHeaderComponent, i3.NgControlStatusGroup, i3.FormGroupDirective, i5.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.FormControlName, QueryWriteDateInputComponent], [i1.RpxTranslatePipe]);
26157
+ i0.ɵɵsetComponentScope(QueryWriteRaiseQueryComponent, [QueryCaseDetailsHeaderComponent, i3.NgControlStatusGroup, i3.FormGroupDirective, i5.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.FormControlName], [i1.RpxTranslatePipe]);
26158
+ i0.ɵɵsetComponentScope(QueryCheckYourAnswersComponent, [QueryCaseDetailsHeaderComponent, i5.NgIf, ReadCollectionFieldComponent], [i1.RpxTranslatePipe]);
26111
26159
  i0.ɵɵsetComponentScope(QueryWriteAddDocumentsComponent, [WriteCollectionFieldComponent, i3.NgControlStatusGroup, i3.FormGroupDirective], []);
26112
26160
 
26113
26161
  class Confirmation {
@@ -35462,5 +35510,5 @@ class TestRouteSnapshotBuilder {
35462
35510
  * Generated bundle index. Do not edit.
35463
35511
  */
35464
35512
 
35465
- export { AbstractAppConfig, AbstractFieldReadComponent, AbstractFieldWriteComponent, Activity, ActivityBannerComponent, ActivityComponent, ActivityIconComponent, ActivityInfo, ActivityModule, ActivityPollingService, ActivityService, AddCommentsComponent, AddCommentsErrorMessage, AddCommentsStep, AddressModel, AddressOption, AddressesService, Alert, AlertComponent, AlertIconClassPipe, AlertMessageType, AlertModule, AlertService, AuthService, Banner, BannersService, BeforeYouStartComponent, BodyComponent, BrowserService, CCDCaseLinkType, CallbackErrorsComponent, CallbackErrorsContext, CaseAccessUtils, CaseBasicAccessViewComponent, CaseChallengedAccessRequestComponent, CaseChallengedAccessSuccessComponent, CaseCreateComponent, CaseDetails, CaseEditComponent, CaseEditConfirmComponent, CaseEditDataModule, CaseEditDataService, CaseEditFormComponent, CaseEditPageComponent, CaseEditSubmitComponent, CaseEditWizardGuard, CaseEditorConfig, CaseEditorModule, CaseEvent, CaseEventData, CaseEventTrigger, CaseEventTriggerComponent, CaseField, CaseFieldService, CaseFileViewFieldComponent, CaseFileViewFolderComponent, CaseFileViewFolderDocumentActionsComponent, CaseFileViewFolderSelectorComponent, CaseFileViewFolderSortComponent, CaseFileViewOverlayMenuComponent, CaseFileViewService, CaseFlagDisplayContextParameter, CaseFlagFieldState, CaseFlagFormFields, CaseFlagRefdataService, CaseFlagStatus, CaseFlagSummaryListComponent, CaseFlagSummaryListDisplayMode, CaseFlagTableComponent, CaseFlagText, CaseFlagWizardStepTitle, CaseFullAccessViewComponent, CaseHeaderComponent, CaseHeaderModule, CaseHistoryViewerFieldComponent, CaseLink, CaseLinkResponse, CaseListComponent, CaseListFiltersComponent, CaseListFiltersModule, CaseListModule, CaseNotifier, CasePaymentHistoryViewerFieldComponent, CasePrintDocument, CasePrinterComponent, CaseProgressComponent, CaseReferencePipe, CaseResolver, CaseSpecificAccessRequestComponent, CaseSpecificAccessSuccessComponent, CaseState, CaseTab, CaseTimelineComponent, CaseTimelineDisplayMode, CaseTimelineModule, CaseType, CaseTypeLite, CaseView, CaseViewComponent, CaseViewEvent, CaseViewTrigger, CaseViewerComponent, CaseViewerModule, CasesService, CaseworkerService, CcdCYAPageLabelFilterPipe, CcdCaseTitlePipe, CcdCollectionTableCaseFieldsFilterPipe, CcdPageFieldsPipe, CcdTabFieldsPipe, CheckYourAnswersComponent, ConditionalShowFormDirective, ConditionalShowModule, ConditionalShowRegistrarService, ConfirmFlagStatusComponent, ConfirmStatusErrorMessage, ConfirmStatusStep, Confirmation, ConvertHrefToRouterService, CreateCaseFiltersComponent, CreateCaseFiltersModule, CreateCaseFiltersSelection, DRAFT_PREFIX, DRAFT_QUERY_PARAM, DashPipe, DateInputComponent, DatePipe, DateTimeFormatUtils, DatetimePickerComponent, DefinitionsModule, DefinitionsService, DeleteOrCancelDialogComponent, DialogsModule, DisplayMode, Document, DocumentData, DocumentDialogComponent, DocumentLinks, DocumentManagementService, DocumentUrlPipe, Draft, DraftService, DynamicListPipe, DynamicRadioListPipe, ESQueryType, Embedded, EnumDisplayDescriptionPipe, ErrorMessageComponent, ErrorNotifierService, EventCaseField, EventCompletionReturnStates, EventCompletionStateMachineService, EventCompletionStates, EventLogComponent, EventLogDetailsComponent, EventLogTableComponent, EventMessageModule, EventStartComponent, EventStartModule, EventStartStateMachineService, EventStatusService, EventTriggerResolver, EventTriggerService, Fee, FeeValue, Field, FieldLabelPipe, FieldReadComponent, FieldReadLabelComponent, FieldType, FieldTypeSanitiser, FieldWriteComponent, FieldsFilterPipe, FieldsPurger, FieldsUtils, FirstErrorPipe, FixedListItem, FixedListPipe, FixedRadioListPipe, FlagFieldDisplayPipe, FocusElementDirective, FocusElementModule, FooterComponent, FormDocument, FormErrorService, FormValidatorsService, FormValueService, FormatTranslatorService, GreyBarService, HRef, HeaderBarComponent, HeadersModule, HttpError, HttpErrorService, HttpService, IsCompoundPipe, IsMandatoryPipe, IsReadOnlyAndNotCollectionPipe, IsReadOnlyPipe, JudicialworkerService, Jurisdiction, JurisdictionService, LabelFieldComponent, LabelSubstitutorDirective, LabelSubstitutorModule, LanguageInterpreterDisplayPipe, LinkCaseReason, LinkCasesComponent, LinkCasesFromReasonValuePipe, LinkCasesReasonValuePipe, LinkDetails, LinkFromReason, LinkReason, LinkedCasesErrorMessages, LinkedCasesEventTriggers, LinkedCasesFromTableComponent, LinkedCasesPages, LinkedCasesResponse, LinkedCasesToTableComponent, LoadingModule, LoadingService, LoadingSpinnerComponent, LoadingSpinnerModule, MEDIA_VIEWER_LOCALSTORAGE_KEY, MULTIPLE_TASKS_FOUND, ManageCaseFlagsComponent, ManageCaseFlagsLabelDisplayPipe, MarkdownComponent, MarkdownComponentModule, MoneyGbpInputComponent, MultipleTasksExistComponent, NavigationComponent, NavigationItemComponent, NavigationNotifierService, NavigationOrigin, NoLinkedCasesComponent, NoTasksAvailableComponent, NotificationBannerComponent, NotificationBannerHeaderClass, NotificationBannerType, OrderService, OrderSummary, OrganisationConverter, OrganisationService, PageValidationService, PaginationComponent, PaginationMetadata, PaginationModule, PaletteContext, PaletteModule, PaletteService, PaletteUtilsModule, Patterns, PaymentField, PhaseComponent, PipesModule, PlaceholderService, PrintUrlPipe, Profile, ProfileNotifier, ProfileService, QueryCaseDetailsHeaderComponent, QueryCreateComponent, QueryDetailsComponent, QueryDetailsTableComponent, QueryListComponent, QueryListData, QueryListItem, QueryListResponseStatus, QueryWriteAddDocumentsComponent, QueryWriteDateInputComponent, QueryWriteRaiseQueryComponent, QueryWriteRespondToQueryComponent, ReadCaseFlagFieldComponent, ReadCaseLinkFieldComponent, ReadCollectionFieldComponent, ReadComplexFieldCollectionTableComponent, ReadComplexFieldComponent, ReadComplexFieldRawComponent, ReadComplexFieldTableComponent, ReadDateFieldComponent, ReadDocumentFieldComponent, ReadDynamicListFieldComponent, ReadDynamicMultiSelectListFieldComponent, ReadDynamicRadioListFieldComponent, ReadEmailFieldComponent, ReadFieldsFilterPipe, ReadFixedListFieldComponent, ReadFixedRadioListFieldComponent, ReadJudicialUserFieldComponent, ReadLinkedCasesFieldComponent, ReadMoneyGbpFieldComponent, ReadMultiSelectListFieldComponent, ReadNumberFieldComponent, ReadOrderSummaryFieldComponent, ReadOrderSummaryRowComponent, ReadOrganisationFieldComponent, ReadOrganisationFieldRawComponent, ReadOrganisationFieldTableComponent, ReadPhoneUKFieldComponent, ReadQueryManagementFieldComponent, ReadTextAreaFieldComponent, ReadTextFieldComponent, ReadYesNoFieldComponent, RefdataCaseFlagType, RemoveDialogComponent, RequestOptionsBuilder, RouterHelperService, SaveOrDiscardDialogComponent, SearchFiltersComponent, SearchFiltersModule, SearchFiltersWrapperComponent, SearchInput, SearchLanguageInterpreterComponent, SearchLanguageInterpreterErrorMessage, SearchLanguageInterpreterStep, SearchResultComponent, SearchResultModule, SearchResultView, SearchResultViewColumn, SearchResultViewItem, SearchResultViewItemComparatorFactory, SearchService, SelectFlagErrorMessage, SelectFlagLocationComponent, SelectFlagLocationErrorMessage, SelectFlagTypeComponent, SelectFlagTypeErrorMessage, SessionStorageService, ShowCondition, SortOrder$1 as SortOrder, SortParameters, SortSearchResultPipe, TabComponent, TableColumnConfig, TableConfig, TabsComponent, TabsModule, TaskAssignedComponent, TaskCancelledComponent, TaskConflictComponent, TaskUnassignedComponent, Terms, TestRouteSnapshotBuilder, UnLinkCasesComponent, UnsupportedFieldComponent, UpdateFlagAddTranslationErrorMessage, UpdateFlagAddTranslationFormComponent, UpdateFlagAddTranslationStep, UpdateFlagComponent, UpdateFlagErrorMessage, UpdateFlagStep, UpdateFlagTitleDisplayPipe, WaysToPayFieldComponent, WindowService, Wizard, WizardFactoryService, WizardPage, WizardPageField, WorkAllocationService, WorkbasketFiltersComponent, WorkbasketFiltersModule, WorkbasketInput, WorkbasketInputFilterService, WorkbasketInputModel, WriteAddressFieldComponent, WriteCaseFlagFieldComponent, WriteCaseLinkFieldComponent, WriteCollectionFieldComponent, WriteComplexFieldComponent, WriteDateContainerFieldComponent, WriteDateFieldComponent, WriteDocumentFieldComponent, WriteDynamicListFieldComponent, WriteDynamicMultiSelectListFieldComponent, WriteDynamicRadioListFieldComponent, WriteEmailFieldComponent, WriteFixedListFieldComponent, WriteFixedRadioListFieldComponent, WriteJudicialUserFieldComponent, WriteLinkedCasesFieldComponent, WriteMoneyGbpFieldComponent, WriteMultiSelectListFieldComponent, WriteNumberFieldComponent, WriteOrderSummaryFieldComponent, WriteOrganisationComplexFieldComponent, WriteOrganisationFieldComponent, WritePhoneUKFieldComponent, WriteQueryManagementFieldComponent, WriteTextAreaFieldComponent, WriteTextFieldComponent, WriteYesNoFieldComponent, YesNoService, aCaseField, createACL, createCaseEventTrigger, createCaseField, createComplexFieldOverride, createFieldType, createFixedListFieldType, createHiddenComplexFieldOverride, createMultiSelectListFieldType, createWizardPage, createWizardPageField, editorRouting, initDialog, newCaseField, partyMessagesMockData, textFieldType, viewerRouting };
35513
+ export { AbstractAppConfig, AbstractFieldReadComponent, AbstractFieldWriteComponent, Activity, ActivityBannerComponent, ActivityComponent, ActivityIconComponent, ActivityInfo, ActivityModule, ActivityPollingService, ActivityService, AddCommentsComponent, AddCommentsErrorMessage, AddCommentsStep, AddressModel, AddressOption, AddressesService, Alert, AlertComponent, AlertIconClassPipe, AlertMessageType, AlertModule, AlertService, AuthService, Banner, BannersService, BeforeYouStartComponent, BodyComponent, BrowserService, CCDCaseLinkType, CallbackErrorsComponent, CallbackErrorsContext, CaseAccessUtils, CaseBasicAccessViewComponent, CaseChallengedAccessRequestComponent, CaseChallengedAccessSuccessComponent, CaseCreateComponent, CaseDetails, CaseEditComponent, CaseEditConfirmComponent, CaseEditDataModule, CaseEditDataService, CaseEditFormComponent, CaseEditPageComponent, CaseEditSubmitComponent, CaseEditWizardGuard, CaseEditorConfig, CaseEditorModule, CaseEvent, CaseEventData, CaseEventTrigger, CaseEventTriggerComponent, CaseField, CaseFieldService, CaseFileViewFieldComponent, CaseFileViewFolderComponent, CaseFileViewFolderDocumentActionsComponent, CaseFileViewFolderSelectorComponent, CaseFileViewFolderSortComponent, CaseFileViewOverlayMenuComponent, CaseFileViewService, CaseFlagDisplayContextParameter, CaseFlagFieldState, CaseFlagFormFields, CaseFlagRefdataService, CaseFlagStatus, CaseFlagSummaryListComponent, CaseFlagSummaryListDisplayMode, CaseFlagTableComponent, CaseFlagText, CaseFlagWizardStepTitle, CaseFullAccessViewComponent, CaseHeaderComponent, CaseHeaderModule, CaseHistoryViewerFieldComponent, CaseLink, CaseLinkResponse, CaseListComponent, CaseListFiltersComponent, CaseListFiltersModule, CaseListModule, CaseNotifier, CasePaymentHistoryViewerFieldComponent, CasePrintDocument, CasePrinterComponent, CaseProgressComponent, CaseReferencePipe, CaseResolver, CaseSpecificAccessRequestComponent, CaseSpecificAccessSuccessComponent, CaseState, CaseTab, CaseTimelineComponent, CaseTimelineDisplayMode, CaseTimelineModule, CaseType, CaseTypeLite, CaseView, CaseViewComponent, CaseViewEvent, CaseViewTrigger, CaseViewerComponent, CaseViewerModule, CasesService, CaseworkerService, CcdCYAPageLabelFilterPipe, CcdCaseTitlePipe, CcdCollectionTableCaseFieldsFilterPipe, CcdPageFieldsPipe, CcdTabFieldsPipe, CheckYourAnswersComponent, ConditionalShowFormDirective, ConditionalShowModule, ConditionalShowRegistrarService, ConfirmFlagStatusComponent, ConfirmStatusErrorMessage, ConfirmStatusStep, Confirmation, ConvertHrefToRouterService, CreateCaseFiltersComponent, CreateCaseFiltersModule, CreateCaseFiltersSelection, DRAFT_PREFIX, DRAFT_QUERY_PARAM, DashPipe, DateInputComponent, DatePipe, DateTimeFormatUtils, DatetimePickerComponent, DefinitionsModule, DefinitionsService, DeleteOrCancelDialogComponent, DialogsModule, DisplayMode, Document, DocumentData, DocumentDialogComponent, DocumentLinks, DocumentManagementService, DocumentUrlPipe, Draft, DraftService, DynamicListPipe, DynamicRadioListPipe, ESQueryType, Embedded, EnumDisplayDescriptionPipe, ErrorMessageComponent, ErrorNotifierService, EventCaseField, EventCompletionReturnStates, EventCompletionStateMachineService, EventCompletionStates, EventLogComponent, EventLogDetailsComponent, EventLogTableComponent, EventMessageModule, EventStartComponent, EventStartModule, EventStartStateMachineService, EventStatusService, EventTriggerResolver, EventTriggerService, Fee, FeeValue, Field, FieldLabelPipe, FieldReadComponent, FieldReadLabelComponent, FieldType, FieldTypeSanitiser, FieldWriteComponent, FieldsFilterPipe, FieldsPurger, FieldsUtils, FirstErrorPipe, FixedListItem, FixedListPipe, FixedRadioListPipe, FlagFieldDisplayPipe, FocusElementDirective, FocusElementModule, FooterComponent, FormDocument, FormErrorService, FormValidatorsService, FormValueService, FormatTranslatorService, GreyBarService, HRef, HeaderBarComponent, HeadersModule, HttpError, HttpErrorService, HttpService, IsCompoundPipe, IsMandatoryPipe, IsReadOnlyAndNotCollectionPipe, IsReadOnlyPipe, JudicialworkerService, Jurisdiction, JurisdictionService, LabelFieldComponent, LabelSubstitutorDirective, LabelSubstitutorModule, LanguageInterpreterDisplayPipe, LinkCaseReason, LinkCasesComponent, LinkCasesFromReasonValuePipe, LinkCasesReasonValuePipe, LinkDetails, LinkFromReason, LinkReason, LinkedCasesErrorMessages, LinkedCasesEventTriggers, LinkedCasesFromTableComponent, LinkedCasesPages, LinkedCasesResponse, LinkedCasesToTableComponent, LoadingModule, LoadingService, LoadingSpinnerComponent, LoadingSpinnerModule, MEDIA_VIEWER_LOCALSTORAGE_KEY, MULTIPLE_TASKS_FOUND, ManageCaseFlagsComponent, ManageCaseFlagsLabelDisplayPipe, MarkdownComponent, MarkdownComponentModule, MoneyGbpInputComponent, MultipleTasksExistComponent, NavigationComponent, NavigationItemComponent, NavigationNotifierService, NavigationOrigin, NoLinkedCasesComponent, NoTasksAvailableComponent, NotificationBannerComponent, NotificationBannerHeaderClass, NotificationBannerType, OrderService, OrderSummary, OrganisationConverter, OrganisationService, PageValidationService, PaginationComponent, PaginationMetadata, PaginationModule, PaletteContext, PaletteModule, PaletteService, PaletteUtilsModule, Patterns, PaymentField, PhaseComponent, PipesModule, PlaceholderService, PrintUrlPipe, Profile, ProfileNotifier, ProfileService, QueryCaseDetailsHeaderComponent, QueryCheckYourAnswersComponent, QueryCreateComponent, QueryDetailsComponent, QueryDetailsTableComponent, QueryListComponent, QueryListData, QueryListItem, QueryListResponseStatus, QueryWriteAddDocumentsComponent, QueryWriteRaiseQueryComponent, QueryWriteRespondToQueryComponent, ReadCaseFlagFieldComponent, ReadCaseLinkFieldComponent, ReadCollectionFieldComponent, ReadComplexFieldCollectionTableComponent, ReadComplexFieldComponent, ReadComplexFieldRawComponent, ReadComplexFieldTableComponent, ReadDateFieldComponent, ReadDocumentFieldComponent, ReadDynamicListFieldComponent, ReadDynamicMultiSelectListFieldComponent, ReadDynamicRadioListFieldComponent, ReadEmailFieldComponent, ReadFieldsFilterPipe, ReadFixedListFieldComponent, ReadFixedRadioListFieldComponent, ReadJudicialUserFieldComponent, ReadLinkedCasesFieldComponent, ReadMoneyGbpFieldComponent, ReadMultiSelectListFieldComponent, ReadNumberFieldComponent, ReadOrderSummaryFieldComponent, ReadOrderSummaryRowComponent, ReadOrganisationFieldComponent, ReadOrganisationFieldRawComponent, ReadOrganisationFieldTableComponent, ReadPhoneUKFieldComponent, ReadQueryManagementFieldComponent, ReadTextAreaFieldComponent, ReadTextFieldComponent, ReadYesNoFieldComponent, RefdataCaseFlagType, RemoveDialogComponent, RequestOptionsBuilder, RouterHelperService, SaveOrDiscardDialogComponent, SearchFiltersComponent, SearchFiltersModule, SearchFiltersWrapperComponent, SearchInput, SearchLanguageInterpreterComponent, SearchLanguageInterpreterErrorMessage, SearchLanguageInterpreterStep, SearchResultComponent, SearchResultModule, SearchResultView, SearchResultViewColumn, SearchResultViewItem, SearchResultViewItemComparatorFactory, SearchService, SelectFlagErrorMessage, SelectFlagLocationComponent, SelectFlagLocationErrorMessage, SelectFlagTypeComponent, SelectFlagTypeErrorMessage, SessionStorageService, ShowCondition, SortOrder$1 as SortOrder, SortParameters, SortSearchResultPipe, TabComponent, TableColumnConfig, TableConfig, TabsComponent, TabsModule, TaskAssignedComponent, TaskCancelledComponent, TaskConflictComponent, TaskUnassignedComponent, Terms, TestRouteSnapshotBuilder, UnLinkCasesComponent, UnsupportedFieldComponent, UpdateFlagAddTranslationErrorMessage, UpdateFlagAddTranslationFormComponent, UpdateFlagAddTranslationStep, UpdateFlagComponent, UpdateFlagErrorMessage, UpdateFlagStep, UpdateFlagTitleDisplayPipe, WaysToPayFieldComponent, WindowService, Wizard, WizardFactoryService, WizardPage, WizardPageField, WorkAllocationService, WorkbasketFiltersComponent, WorkbasketFiltersModule, WorkbasketInput, WorkbasketInputFilterService, WorkbasketInputModel, WriteAddressFieldComponent, WriteCaseFlagFieldComponent, WriteCaseLinkFieldComponent, WriteCollectionFieldComponent, WriteComplexFieldComponent, WriteDateContainerFieldComponent, WriteDateFieldComponent, WriteDocumentFieldComponent, WriteDynamicListFieldComponent, WriteDynamicMultiSelectListFieldComponent, WriteDynamicRadioListFieldComponent, WriteEmailFieldComponent, WriteFixedListFieldComponent, WriteFixedRadioListFieldComponent, WriteJudicialUserFieldComponent, WriteLinkedCasesFieldComponent, WriteMoneyGbpFieldComponent, WriteMultiSelectListFieldComponent, WriteNumberFieldComponent, WriteOrderSummaryFieldComponent, WriteOrganisationComplexFieldComponent, WriteOrganisationFieldComponent, WritePhoneUKFieldComponent, WriteQueryManagementFieldComponent, WriteTextAreaFieldComponent, WriteTextFieldComponent, WriteYesNoFieldComponent, YesNoService, aCaseField, caseFieldMockData, createACL, createCaseEventTrigger, createCaseField, createComplexFieldOverride, createFieldType, createFixedListFieldType, createHiddenComplexFieldOverride, createMultiSelectListFieldType, createWizardPage, createWizardPageField, editorRouting, initDialog, newCaseField, partyMessagesMockData, textFieldType, viewerRouting };
35466
35514
  //# sourceMappingURL=hmcts-ccd-case-ui-toolkit.js.map