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

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 +375 -424
  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 +14 -9
  6. package/esm2015/lib/shared/components/palette/query-management/__mocks__/index.js +1 -27
  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-write/query-write-add-documents/query-write-add-documents.component.js +9 -15
  9. package/esm2015/lib/shared/components/palette/query-management/components/query-write/query-write-date-input/query-write-date-input.component.js +125 -0
  10. package/esm2015/lib/shared/components/palette/query-management/components/query-write/query-write-raise-query/query-write-raise-query.component.js +40 -19
  11. package/esm2015/lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.js +18 -20
  12. package/esm2015/lib/shared/components/palette/query-management/index.js +2 -2
  13. package/esm2015/lib/shared/components/palette/query-management/utils/query-management.utils.js +1 -11
  14. package/esm2015/lib/shared/components/palette/query-management/write-query-management-field.component.js +3 -18
  15. package/fesm2015/hmcts-ccd-case-ui-toolkit.js +305 -353
  16. package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
  17. package/lib/shared/components/palette/palette.module.d.ts +3 -3
  18. package/lib/shared/components/palette/palette.module.d.ts.map +1 -1
  19. package/lib/shared/components/palette/query-management/__mocks__/index.d.ts +0 -2
  20. package/lib/shared/components/palette/query-management/__mocks__/index.d.ts.map +1 -1
  21. package/lib/shared/components/palette/query-management/components/index.d.ts +2 -2
  22. package/lib/shared/components/palette/query-management/components/index.d.ts.map +1 -1
  23. package/lib/shared/components/palette/query-management/components/query-write/query-write-add-documents/query-write-add-documents.component.d.ts +4 -5
  24. package/lib/shared/components/palette/query-management/components/query-write/query-write-add-documents/query-write-add-documents.component.d.ts.map +1 -1
  25. package/lib/shared/components/palette/query-management/components/query-write/query-write-date-input/query-write-date-input.component.d.ts +20 -0
  26. package/lib/shared/components/palette/query-management/components/query-write/query-write-date-input/query-write-date-input.component.d.ts.map +1 -0
  27. package/lib/shared/components/palette/query-management/index.d.ts +1 -1
  28. package/lib/shared/components/palette/query-management/index.d.ts.map +1 -1
  29. package/lib/shared/components/palette/query-management/utils/query-management.utils.d.ts +0 -5
  30. package/lib/shared/components/palette/query-management/utils/query-management.utils.d.ts.map +1 -1
  31. package/lib/shared/components/palette/query-management/write-query-management-field.component.d.ts +1 -5
  32. package/lib/shared/components/palette/query-management/write-query-management-field.component.d.ts.map +1 -1
  33. package/package.json +1 -1
  34. package/esm2015/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.js +0 -137
  35. package/esm2015/lib/shared/components/palette/query-management/components/query-management-error-messages/query-management-error-message.model.js +0 -2
  36. package/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.d.ts +0 -16
  37. package/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.d.ts.map +0 -1
  38. package/lib/shared/components/palette/query-management/components/query-management-error-messages/query-management-error-message.model.d.ts +0 -5
  39. package/lib/shared/components/palette/query-management/components/query-management-error-messages/query-management-error-message.model.d.ts.map +0 -1
@@ -17611,31 +17611,64 @@ const partyMessagesMockData = [
17611
17611
  ]
17612
17612
  }
17613
17613
  ];
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
- });
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 = {}));
17639
17672
 
17640
17673
  class MarkdownComponent {
17641
17674
  constructor() { }
@@ -17733,231 +17766,75 @@ QueryCaseDetailsHeaderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryCase
17733
17766
  }]
17734
17767
  }], function () { return [{ type: i1$1.ActivatedRoute }]; }, null); })();
17735
17768
 
17736
- class QueryListItem {
17769
+ class QueryCreateComponent {
17737
17770
  constructor() {
17738
- this.children = [];
17739
- }
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
17771
  }
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;
17768
- }
17769
- }
17770
-
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
- };
17772
+ ngOnInit() {
17806
17773
  }
17807
17774
  }
17808
- QueryManagementUtils.ɵfac = function QueryManagementUtils_Factory(t) { return new (t || QueryManagementUtils)(); };
17809
- QueryManagementUtilsprov = i0.ɵɵdefineInjectable({ token: QueryManagementUtils, factory: QueryManagementUtils.ɵfac });
17810
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryManagementUtils, [{
17811
- type: Injectable
17812
- }], null, null); })();
17775
+ QueryCreateComponent.ɵfac = function QueryCreateComponent_Factory(t) { return new (t || QueryCreateComponent)(); };
17776
+ QueryCreateComponentcmp = 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); })();
17813
17784
 
17814
- function QueryCheckYourAnswersComponent_ccd_read_collection_field_31_Template(rf, ctx) { if (rf & 1) {
17815
- i0.ɵɵelement(0, "ccd-read-collection-field", 14);
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();
17816
17802
  } if (rf & 2) {
17817
17803
  const ctx_r0 = i0.ɵɵnextContext();
17818
- i0.ɵɵproperty("caseField", ctx_r0.caseField);
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);
17819
17810
  } }
17820
- class QueryCheckYourAnswersComponent {
17811
+ class QueryDetailsComponent {
17821
17812
  constructor() {
17822
17813
  this.backClicked = new EventEmitter();
17823
17814
  }
17824
- ngOnInit() {
17825
- this.caseField = caseFieldMockData;
17826
- this.caseField.value = this.formGroup.get('attachments').value
17827
- .map(QueryManagementUtils.documentToCollectionFormDocument);
17828
- }
17829
- goBack() {
17815
+ onBack() {
17830
17816
  this.backClicked.emit(true);
17831
17817
  }
17832
17818
  }
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();
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);
17905
17822
  } if (rf & 2) {
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, [{
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, [{
17930
17826
  type: Component,
17931
17827
  args: [{
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
17828
+ selector: 'ccd-query-details',
17829
+ templateUrl: './query-details.component.html',
17830
+ styleUrls: ['./query-details.component.scss']
17936
17831
  }]
17937
- }], null, { formGroup: [{
17938
- type: Input
17939
- }], queryItem: [{
17832
+ }], null, { query: [{
17940
17833
  type: Input
17941
17834
  }], backClicked: [{
17942
17835
  type: Output
17943
17836
  }] }); })();
17944
17837
 
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
-
17961
17838
  function QueryDetailsTableComponent_ng_container_0_tr_35_Template(rf, ctx) { if (rf & 1) {
17962
17839
  i0.ɵɵelementStart(0, "tr", 3);
17963
17840
  i0.ɵɵelementStart(1, "th", 4);
@@ -18103,59 +17980,6 @@ QueryDetailsTableComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryDetailsTa
18103
17980
  type: Input
18104
17981
  }] }); })();
18105
17982
 
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
-
18159
17983
  var SortOrder;
18160
17984
  (function (SortOrder) {
18161
17985
  SortOrder[SortOrder["ASCENDING"] = 0] = "ASCENDING";
@@ -18332,18 +18156,136 @@ QueryListComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryListComponent, se
18332
18156
  type: Output
18333
18157
  }] }); })();
18334
18158
 
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
+
18335
18279
  class QueryWriteAddDocumentsComponent {
18336
18280
  constructor() {
18337
18281
  this.documentFormGroup = new FormGroup({});
18338
18282
  this.documentCollectionUpdate = new EventEmitter();
18339
- }
18340
- ngOnInit() {
18341
- var _a;
18342
18283
  // This field is mocked to allow the document component to be used in isolation
18343
18284
  this.mockDocumentCaseField = Object.assign(new CaseField(), {
18344
18285
  id: QueryWriteAddDocumentsComponent.DOCUMENTS_FORM_CONTROL_NAME,
18345
- label: 'Add document (optional)',
18286
+ label: 'Add document',
18346
18287
  hint_text: 'Attach a document to this message',
18288
+ display_context: 'OPTIONAL',
18347
18289
  display_context_parameter: '#COLLECTION(allowInsert,allowUpdate)',
18348
18290
  field_type: Object.assign(new FieldType(), {
18349
18291
  id: 'queryDocuments',
@@ -18365,12 +18307,11 @@ class QueryWriteAddDocumentsComponent {
18365
18307
  })
18366
18308
  }),
18367
18309
  });
18368
- this.mockDocumentCaseField.value = (_a = this.formGroup.get('attachments')) === null || _a === void 0 ? void 0 : _a.value.map(QueryManagementUtils.documentToCollectionFormDocument);
18369
18310
  }
18370
18311
  ngAfterViewInit() {
18371
- const documentFormControl = this.documentFormGroup.get(QueryWriteAddDocumentsComponent.DOCUMENTS_FORM_CONTROL_NAME);
18372
- if (documentFormControl) {
18373
- this.documentFormControlSubscription = documentFormControl.valueChanges
18312
+ const formControl = this.documentFormGroup.get(QueryWriteAddDocumentsComponent.DOCUMENTS_FORM_CONTROL_NAME);
18313
+ if (formControl) {
18314
+ this.documentFormControlSubscription = formControl.valueChanges
18374
18315
  .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)))
18375
18316
  .subscribe();
18376
18317
  }
@@ -18382,7 +18323,7 @@ class QueryWriteAddDocumentsComponent {
18382
18323
  }
18383
18324
  QueryWriteAddDocumentsComponent.DOCUMENTS_FORM_CONTROL_NAME = 'documentCollection';
18384
18325
  QueryWriteAddDocumentsComponent.ɵfac = function QueryWriteAddDocumentsComponent_Factory(t) { return new (t || QueryWriteAddDocumentsComponent)(); };
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) {
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) {
18386
18327
  i0.ɵɵelement(0, "ccd-write-collection-field", 0);
18387
18328
  } if (rf & 2) {
18388
18329
  i0.ɵɵproperty("formGroup", ctx.documentFormGroup)("caseField", ctx.mockDocumentCaseField);
@@ -18393,15 +18334,13 @@ QueryWriteAddDocumentsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryWrit
18393
18334
  selector: 'ccd-query-write-add-documents',
18394
18335
  templateUrl: './query-write-add-documents.component.html'
18395
18336
  }]
18396
- }], null, { formGroup: [{
18397
- type: Input
18398
- }], documentCollectionUpdate: [{
18337
+ }], function () { return []; }, { documentCollectionUpdate: [{
18399
18338
  type: Output
18400
18339
  }] }); })();
18401
18340
 
18402
18341
  function QueryWriteRaiseQueryComponent_p_22_Template(rf, ctx) { if (rf & 1) {
18403
- i0.ɵɵelementStart(0, "p", 27);
18404
- i0.ɵɵelementStart(1, "span", 28);
18342
+ i0.ɵɵelementStart(0, "p", 28);
18343
+ i0.ɵɵelementStart(1, "span", 29);
18405
18344
  i0.ɵɵtext(2);
18406
18345
  i0.ɵɵpipe(3, "rpxTranslate");
18407
18346
  i0.ɵɵelementEnd();
@@ -18415,8 +18354,8 @@ function QueryWriteRaiseQueryComponent_p_22_Template(rf, ctx) { if (rf & 1) {
18415
18354
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, "Enter a message"), " ");
18416
18355
  } }
18417
18356
  function QueryWriteRaiseQueryComponent_p_32_Template(rf, ctx) { if (rf & 1) {
18418
- i0.ɵɵelementStart(0, "p", 29);
18419
- i0.ɵɵelementStart(1, "span", 28);
18357
+ i0.ɵɵelementStart(0, "p", 30);
18358
+ i0.ɵɵelementStart(1, "span", 29);
18420
18359
  i0.ɵɵtext(2);
18421
18360
  i0.ɵɵpipe(3, "rpxTranslate");
18422
18361
  i0.ɵɵelementEnd();
@@ -18430,8 +18369,8 @@ function QueryWriteRaiseQueryComponent_p_32_Template(rf, ctx) { if (rf & 1) {
18430
18369
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, "Enter a subject"), " ");
18431
18370
  } }
18432
18371
  function QueryWriteRaiseQueryComponent_p_42_Template(rf, ctx) { if (rf & 1) {
18433
- i0.ɵɵelementStart(0, "p", 30);
18434
- i0.ɵɵelementStart(1, "span", 28);
18372
+ i0.ɵɵelementStart(0, "p", 31);
18373
+ i0.ɵɵelementStart(1, "span", 29);
18435
18374
  i0.ɵɵtext(2);
18436
18375
  i0.ɵɵpipe(3, "rpxTranslate");
18437
18376
  i0.ɵɵelementEnd();
@@ -18444,10 +18383,28 @@ function QueryWriteRaiseQueryComponent_p_42_Template(rf, ctx) { if (rf & 1) {
18444
18383
  i0.ɵɵadvance(2);
18445
18384
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, "Enter a query body"), " ");
18446
18385
  } }
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
+ } }
18447
18404
  class QueryWriteRaiseQueryComponent {
18448
18405
  }
18449
18406
  QueryWriteRaiseQueryComponent.ɵfac = function QueryWriteRaiseQueryComponent_Factory(t) { return new (t || QueryWriteRaiseQueryComponent)(); };
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) {
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", "isHearingRelated", "type", "radio", "formControlName", "isHearingRelated", 1, "govuk-radios__input", 3, "checked", "value"], ["for", "query-raise-isHearingRelated-yes", 1, "govuk-label", "govuk-radios__label"], ["id", "query-raise-isHearingRelated-no", "name", "isHearingRelated", "type", "radio", "formControlName", "isHearingRelated", 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) {
18451
18408
  i0.ɵɵelementStart(0, "div");
18452
18409
  i0.ɵɵelementStart(1, "div", 0);
18453
18410
  i0.ɵɵelementStart(2, "div", 1);
@@ -18535,6 +18492,7 @@ QueryWriteRaiseQueryComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryWriteR
18535
18492
  i0.ɵɵelementEnd();
18536
18493
  i0.ɵɵelementEnd();
18537
18494
  i0.ɵɵelementEnd();
18495
+ i0.ɵɵtemplate(62, QueryWriteRaiseQueryComponent_ng_container_62_Template, 8, 3, "ng-container", 27);
18538
18496
  i0.ɵɵelementEnd();
18539
18497
  i0.ɵɵelementEnd();
18540
18498
  i0.ɵɵelementEnd();
@@ -18551,17 +18509,17 @@ QueryWriteRaiseQueryComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryWriteR
18551
18509
  let tmp_18_0 = null;
18552
18510
  let tmp_19_0 = null;
18553
18511
  i0.ɵɵadvance(3);
18554
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 34, "Raise a query"));
18512
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 35, "Raise a query"));
18555
18513
  i0.ɵɵadvance(3);
18556
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 36, "Enter query details"));
18514
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 37, "Enter query details"));
18557
18515
  i0.ɵɵadvance(6);
18558
18516
  i0.ɵɵproperty("formGroup", ctx.formGroup);
18559
18517
  i0.ɵɵadvance(2);
18560
18518
  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);
18561
18519
  i0.ɵɵadvance(3);
18562
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(18, 38, "Full name"), " ");
18520
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(18, 39, "Full name"), " ");
18563
18521
  i0.ɵɵadvance(3);
18564
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(21, 40, "Your full name must be included here"), " ");
18522
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(21, 41, "Your full name must be included here"), " ");
18565
18523
  i0.ɵɵadvance(2);
18566
18524
  i0.ɵɵproperty("ngIf", (tmp_6_0 = ctx.formGroup.get("body")) == null ? null : tmp_6_0.errors == null ? null : tmp_6_0.errors.length);
18567
18525
  i0.ɵɵadvance(1);
@@ -18570,9 +18528,9 @@ QueryWriteRaiseQueryComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryWriteR
18570
18528
  i0.ɵɵadvance(1);
18571
18529
  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);
18572
18530
  i0.ɵɵadvance(3);
18573
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(28, 42, "Query subject"), " ");
18531
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(28, 43, "Query subject"), " ");
18574
18532
  i0.ɵɵadvance(3);
18575
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(31, 44, "The subject should be a summary of your query"), " ");
18533
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(31, 45, "The subject should be a summary of your query"), " ");
18576
18534
  i0.ɵɵadvance(2);
18577
18535
  i0.ɵɵproperty("ngIf", (tmp_12_0 = ctx.formGroup.get("body")) == null ? null : tmp_12_0.errors == null ? null : tmp_12_0.errors.length);
18578
18536
  i0.ɵɵadvance(1);
@@ -18581,24 +18539,26 @@ QueryWriteRaiseQueryComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryWriteR
18581
18539
  i0.ɵɵadvance(1);
18582
18540
  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);
18583
18541
  i0.ɵɵadvance(3);
18584
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(38, 46, "Query body"), " ");
18542
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(38, 47, "Query body"), " ");
18585
18543
  i0.ɵɵadvance(3);
18586
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(41, 48, "Include as many details as possible so case workers can respond to your query"), " ");
18544
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(41, 49, "Include as many details as possible so case workers can respond to your query"), " ");
18587
18545
  i0.ɵɵadvance(2);
18588
18546
  i0.ɵɵproperty("ngIf", (tmp_18_0 = ctx.formGroup.get("body")) == null ? null : tmp_18_0.errors == null ? null : tmp_18_0.errors.length);
18589
18547
  i0.ɵɵadvance(1);
18590
18548
  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);
18591
18549
  i0.ɵɵproperty("formControlName", "body");
18592
18550
  i0.ɵɵadvance(6);
18593
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(50, 50, "Is the query hearing related?"), " ");
18551
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(50, 51, "Is the query hearing related?"), " ");
18594
18552
  i0.ɵɵadvance(4);
18595
18553
  i0.ɵɵproperty("checked", ctx.formGroup.get("isHearingRelated").value === true)("value", true);
18596
18554
  i0.ɵɵadvance(2);
18597
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(56, 52, "Is the query hearing related?", null, "Yes"), " ");
18555
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(56, 53, "Is the query hearing related?", null, "Yes"), " ");
18598
18556
  i0.ɵɵadvance(3);
18599
18557
  i0.ɵɵproperty("checked", ctx.formGroup.get("isHearingRelated").value === false)("value", false);
18600
18558
  i0.ɵɵadvance(2);
18601
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(61, 56, "Is the query hearing related?", null, "No"), " ");
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);
18602
18562
  } }, encapsulation: 2 });
18603
18563
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryWriteRaiseQueryComponent, [{
18604
18564
  type: Component,
@@ -18610,7 +18570,7 @@ QueryWriteRaiseQueryComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryWriteR
18610
18570
  type: Input
18611
18571
  }] }); })();
18612
18572
 
18613
- function QueryWriteRespondToQueryComponent_p_27_Template(rf, ctx) { if (rf & 1) {
18573
+ function QueryWriteRespondToQueryComponent_p_26_Template(rf, ctx) { if (rf & 1) {
18614
18574
  i0.ɵɵelementStart(0, "p", 15);
18615
18575
  i0.ɵɵelementStart(1, "span", 16);
18616
18576
  i0.ɵɵtext(2);
@@ -18628,7 +18588,7 @@ function QueryWriteRespondToQueryComponent_p_27_Template(rf, ctx) { if (rf & 1)
18628
18588
  class QueryWriteRespondToQueryComponent {
18629
18589
  }
18630
18590
  QueryWriteRespondToQueryComponent.ɵfac = function QueryWriteRespondToQueryComponent_Factory(t) { return new (t || QueryWriteRespondToQueryComponent)(); };
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) {
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) {
18632
18592
  i0.ɵɵelementStart(0, "div", 0);
18633
18593
  i0.ɵɵelementStart(1, "a", 1);
18634
18594
  i0.ɵɵtext(2);
@@ -18654,23 +18614,21 @@ QueryWriteRespondToQueryComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryWr
18654
18614
  i0.ɵɵelementEnd();
18655
18615
  i0.ɵɵelementEnd();
18656
18616
  i0.ɵɵelementStart(16, "div", 7);
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");
18617
+ i0.ɵɵelementStart(17, "h1", 8);
18618
+ i0.ɵɵtext(18);
18619
+ i0.ɵɵpipe(19, "rpxTranslate");
18668
18620
  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");
18669
18627
  i0.ɵɵelementEnd();
18670
- i0.ɵɵtemplate(27, QueryWriteRespondToQueryComponent_p_27_Template, 6, 6, "p", 13);
18671
- i0.ɵɵelementStart(28, "textarea", 14);
18672
- i0.ɵɵtext(29, " ");
18673
18628
  i0.ɵɵelementEnd();
18629
+ i0.ɵɵtemplate(26, QueryWriteRespondToQueryComponent_p_26_Template, 6, 6, "p", 13);
18630
+ i0.ɵɵelementStart(27, "textarea", 14);
18631
+ i0.ɵɵtext(28, " ");
18674
18632
  i0.ɵɵelementEnd();
18675
18633
  i0.ɵɵelementEnd();
18676
18634
  i0.ɵɵelementEnd();
@@ -18687,14 +18645,14 @@ QueryWriteRespondToQueryComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryWr
18687
18645
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(11, 17, "Query details"));
18688
18646
  i0.ɵɵadvance(5);
18689
18647
  i0.ɵɵproperty("queryItem", ctx.queryItem);
18690
- i0.ɵɵadvance(4);
18691
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(20, 19, "Respond to a query"));
18648
+ i0.ɵɵadvance(3);
18649
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(19, 19, "Respond to a query"));
18692
18650
  i0.ɵɵadvance(2);
18693
18651
  i0.ɵɵproperty("formGroup", ctx.formGroup);
18694
18652
  i0.ɵɵadvance(1);
18695
18653
  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);
18696
18654
  i0.ɵɵadvance(3);
18697
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(26, 21, "Response message"), " ");
18655
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(25, 21, "Response message"), " ");
18698
18656
  i0.ɵɵadvance(2);
18699
18657
  i0.ɵɵproperty("ngIf", (tmp_8_0 = ctx.formGroup.get("body")) == null ? null : tmp_8_0.errors == null ? null : tmp_8_0.errors.length);
18700
18658
  i0.ɵɵadvance(1);
@@ -18714,6 +18672,16 @@ QueryWriteRespondToQueryComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryWr
18714
18672
  type: Input
18715
18673
  }] }); })();
18716
18674
 
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
+
18717
18685
  function ReadQueryManagementFieldComponent_ng_container_1_div_1_Template(rf, ctx) { if (rf & 1) {
18718
18686
  const _r5 = i0.ɵɵgetCurrentView();
18719
18687
  i0.ɵɵelementStart(0, "div", 3);
@@ -18807,22 +18775,7 @@ function WriteQueryManagementFieldComponent_ng_template_2_Template(rf, ctx) { if
18807
18775
  class WriteQueryManagementFieldComponent extends AbstractFieldReadComponent {
18808
18776
  constructor() {
18809
18777
  super();
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
- }
18778
+ this.formGroup = new FormGroup({});
18826
18779
  }
18827
18780
  }
18828
18781
  WriteQueryManagementFieldComponent.ɵfac = function WriteQueryManagementFieldComponent_Factory(t) { return new (t || WriteQueryManagementFieldComponent)(); };
@@ -25678,8 +25631,8 @@ const PALETTE_COMPONENTS = [
25678
25631
  QueryWriteRespondToQueryComponent,
25679
25632
  QueryWriteRaiseQueryComponent,
25680
25633
  QueryCaseDetailsHeaderComponent,
25681
- QueryCheckYourAnswersComponent,
25682
25634
  QueryWriteAddDocumentsComponent,
25635
+ QueryWriteDateInputComponent
25683
25636
  ];
25684
25637
  class PaletteModule {
25685
25638
  }
@@ -25861,8 +25814,8 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
25861
25814
  QueryWriteRespondToQueryComponent,
25862
25815
  QueryWriteRaiseQueryComponent,
25863
25816
  QueryCaseDetailsHeaderComponent,
25864
- QueryCheckYourAnswersComponent,
25865
- QueryWriteAddDocumentsComponent], imports: [CommonModule,
25817
+ QueryWriteAddDocumentsComponent,
25818
+ QueryWriteDateInputComponent], imports: [CommonModule,
25866
25819
  RouterModule,
25867
25820
  FormsModule,
25868
25821
  ReactiveFormsModule,
@@ -26009,8 +25962,8 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
26009
25962
  QueryWriteRespondToQueryComponent,
26010
25963
  QueryWriteRaiseQueryComponent,
26011
25964
  QueryCaseDetailsHeaderComponent,
26012
- QueryCheckYourAnswersComponent,
26013
- QueryWriteAddDocumentsComponent] }); })();
25965
+ QueryWriteAddDocumentsComponent,
25966
+ QueryWriteDateInputComponent] }); })();
26014
25967
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaletteModule, [{
26015
25968
  type: NgModule,
26016
25969
  args: [{
@@ -26154,8 +26107,7 @@ i0.ɵɵsetComponentScope(WriteQueryManagementFieldComponent, [i5.NgIf, QueryWrit
26154
26107
  i0.ɵɵsetComponentScope(QueryDetailsComponent, [i5.NgIf, QueryDetailsTableComponent], [i1.RpxTranslatePipe]);
26155
26108
  i0.ɵɵsetComponentScope(QueryWriteRespondToQueryComponent, [QueryCaseDetailsHeaderComponent,
26156
26109
  QueryDetailsTableComponent, i3.NgControlStatusGroup, i3.FormGroupDirective, i5.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.FormControlName], [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]);
26110
+ i0.ɵɵsetComponentScope(QueryWriteRaiseQueryComponent, [QueryCaseDetailsHeaderComponent, i3.NgControlStatusGroup, i3.FormGroupDirective, i5.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.FormControlName, i3.RadioControlValueAccessor, QueryWriteDateInputComponent], [i1.RpxTranslatePipe]);
26159
26111
  i0.ɵɵsetComponentScope(QueryWriteAddDocumentsComponent, [WriteCollectionFieldComponent, i3.NgControlStatusGroup, i3.FormGroupDirective], []);
26160
26112
 
26161
26113
  class Confirmation {
@@ -35510,5 +35462,5 @@ class TestRouteSnapshotBuilder {
35510
35462
  * Generated bundle index. Do not edit.
35511
35463
  */
35512
35464
 
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 };
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 };
35514
35466
  //# sourceMappingURL=hmcts-ccd-case-ui-toolkit.js.map