@hmcts/ccd-case-ui-toolkit 6.16.0-query-management-sorting → 6.16.0-query-management-write-view-v4

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 (74) hide show
  1. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +638 -330
  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/base-field/abstract-form-field.component.js +5 -2
  6. package/esm2015/lib/shared/components/palette/palette.module.js +9 -27
  7. package/esm2015/lib/shared/components/palette/palette.service.js +3 -2
  8. package/esm2015/lib/shared/components/palette/query-management/__mocks__/index.js +10 -2
  9. package/esm2015/lib/shared/components/palette/query-management/components/query-create/query-create.component.js +1 -1
  10. package/esm2015/lib/shared/components/palette/query-management/components/query-details/query-details.component.js +18 -0
  11. package/esm2015/lib/shared/components/palette/query-management/components/query-details-table/query-details-table.component.js +118 -0
  12. package/esm2015/lib/shared/components/palette/query-management/components/query-list/query-list.component.js +14 -10
  13. package/esm2015/lib/shared/components/palette/query-management/index.js +1 -4
  14. package/esm2015/lib/shared/components/palette/query-management/{domain → models}/index.js +2 -2
  15. package/esm2015/lib/shared/components/palette/query-management/{domain → models}/party-messages/party-message.model.js +1 -1
  16. package/esm2015/lib/shared/components/palette/query-management/{domain → models}/party-messages/party-messages-group.model.js +1 -1
  17. package/esm2015/lib/shared/components/palette/query-management/models/query-list/query-list-column/query-list-column.model.js +2 -0
  18. package/esm2015/lib/shared/components/palette/query-management/{domain → models}/query-list/query-list-data/query-list-data.model.js +1 -1
  19. package/esm2015/lib/shared/components/palette/query-management/{domain → models}/query-list/query-list-item/query-list-item.model.js +1 -1
  20. package/esm2015/lib/shared/components/palette/query-management/{domain → models}/query-list/query-list-response-status.enum.js +1 -1
  21. package/esm2015/lib/shared/components/palette/query-management/query-management.module.js +60 -0
  22. package/esm2015/lib/shared/components/palette/query-management/read-query-management-field.component.js +2 -2
  23. package/esm2015/lib/shared/components/palette/query-management/write-query-management-field.component.js +131 -5
  24. package/esm2015/lib/shared/domain/definition/display-context-enum.model.js +2 -1
  25. package/fesm2015/hmcts-ccd-case-ui-toolkit.js +627 -346
  26. package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
  27. package/lib/shared/components/palette/base-field/abstract-form-field.component.d.ts +2 -1
  28. package/lib/shared/components/palette/base-field/abstract-form-field.component.d.ts.map +1 -1
  29. package/lib/shared/components/palette/palette.module.d.ts +77 -81
  30. package/lib/shared/components/palette/palette.module.d.ts.map +1 -1
  31. package/lib/shared/components/palette/palette.service.d.ts.map +1 -1
  32. package/lib/shared/components/palette/query-management/__mocks__/index.d.ts +1 -1
  33. package/lib/shared/components/palette/query-management/__mocks__/index.d.ts.map +1 -1
  34. package/lib/shared/components/palette/query-management/components/query-create/query-create.component.d.ts.map +1 -1
  35. package/lib/shared/components/palette/query-management/components/query-details/query-details.component.d.ts +6 -0
  36. package/lib/shared/components/palette/query-management/components/query-details/query-details.component.d.ts.map +1 -0
  37. package/lib/shared/components/palette/query-management/components/query-details-table/query-details-table.component.d.ts +8 -0
  38. package/lib/shared/components/palette/query-management/components/query-details-table/query-details-table.component.d.ts.map +1 -0
  39. package/lib/shared/components/palette/query-management/components/query-list/query-list.component.d.ts +4 -4
  40. package/lib/shared/components/palette/query-management/components/query-list/query-list.component.d.ts.map +1 -1
  41. package/lib/shared/components/palette/query-management/index.d.ts +0 -3
  42. package/lib/shared/components/palette/query-management/index.d.ts.map +1 -1
  43. package/lib/shared/components/palette/query-management/{domain → models}/index.d.ts +1 -1
  44. package/lib/shared/components/palette/query-management/{domain → models}/index.d.ts.map +1 -1
  45. package/lib/shared/components/palette/query-management/{domain → models}/party-messages/party-message.model.d.ts.map +1 -1
  46. package/lib/shared/components/palette/query-management/{domain → models}/party-messages/party-messages-group.model.d.ts.map +1 -1
  47. package/lib/shared/components/palette/query-management/models/query-list/query-list-column/query-list-column.model.d.ts +7 -0
  48. package/lib/shared/components/palette/query-management/models/query-list/query-list-column/query-list-column.model.d.ts.map +1 -0
  49. package/lib/shared/components/palette/query-management/{domain → models}/query-list/query-list-data/query-list-data.model.d.ts.map +1 -1
  50. package/lib/shared/components/palette/query-management/{domain → models}/query-list/query-list-item/query-list-item.model.d.ts.map +1 -1
  51. package/lib/shared/components/palette/query-management/{domain → models}/query-list/query-list-response-status.enum.d.ts.map +1 -1
  52. package/lib/shared/components/palette/query-management/query-management.module.d.ts +17 -0
  53. package/lib/shared/components/palette/query-management/query-management.module.d.ts.map +1 -0
  54. package/lib/shared/components/palette/query-management/read-query-management-field.component.d.ts +1 -1
  55. package/lib/shared/components/palette/query-management/write-query-management-field.component.d.ts +6 -4
  56. package/lib/shared/components/palette/query-management/write-query-management-field.component.d.ts.map +1 -1
  57. package/lib/shared/components/search-result/search-result.component.d.ts +1 -1
  58. package/lib/shared/domain/definition/display-context-enum.model.d.ts +2 -1
  59. package/lib/shared/domain/definition/display-context-enum.model.d.ts.map +1 -1
  60. package/package.json +1 -1
  61. package/esm2015/lib/shared/components/palette/query-management/components/index.js +0 -4
  62. package/esm2015/lib/shared/components/palette/query-management/components/query-detail/query-detail.component.js +0 -18
  63. package/esm2015/lib/shared/components/palette/query-management/domain/column/column.model.js +0 -2
  64. package/lib/shared/components/palette/query-management/components/index.d.ts +0 -4
  65. package/lib/shared/components/palette/query-management/components/index.d.ts.map +0 -1
  66. package/lib/shared/components/palette/query-management/components/query-detail/query-detail.component.d.ts +0 -9
  67. package/lib/shared/components/palette/query-management/components/query-detail/query-detail.component.d.ts.map +0 -1
  68. package/lib/shared/components/palette/query-management/domain/column/column.model.d.ts +0 -7
  69. package/lib/shared/components/palette/query-management/domain/column/column.model.d.ts.map +0 -1
  70. /package/lib/shared/components/palette/query-management/{domain → models}/party-messages/party-message.model.d.ts +0 -0
  71. /package/lib/shared/components/palette/query-management/{domain → models}/party-messages/party-messages-group.model.d.ts +0 -0
  72. /package/lib/shared/components/palette/query-management/{domain → models}/query-list/query-list-data/query-list-data.model.d.ts +0 -0
  73. /package/lib/shared/components/palette/query-management/{domain → models}/query-list/query-list-item/query-list-item.model.d.ts +0 -0
  74. /package/lib/shared/components/palette/query-management/{domain → models}/query-list/query-list-response-status.enum.d.ts +0 -0
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/router'), require('@angular/forms'), require('rx-polling'), require('rxjs'), require('@angular/common/http'), require('rxjs/operators'), require('class-transformer'), require('moment'), require('underscore'), require('pegjs'), require('util'), require('@edium/fsm'), require('@angular/material/dialog'), require('@nicky-lenaers/ngx-scroll-to'), require('@angular/material/autocomplete'), require('@angular/material/core'), require('@hmcts/ccpay-web-component'), require('rpx-xui-translation'), require('@angular/cdk/overlay'), require('@angular/cdk/tree'), require('@angular/material/input'), require('@angular-material-components/datetime-picker'), require('@angular-material-components/moment-adapter'), require('@angular/material/datepicker'), require('@angular/material/form-field'), require('ngx-md'), require('@hmcts/media-viewer'), require('@angular/cdk/portal'), require('ngx-pagination'), require('@angular/material/tabs')) :
3
- typeof define === 'function' && define.amd ? define('@hmcts/ccd-case-ui-toolkit', ['exports', '@angular/core', '@angular/common', '@angular/router', '@angular/forms', 'rx-polling', 'rxjs', '@angular/common/http', 'rxjs/operators', 'class-transformer', 'moment', 'underscore', 'pegjs', 'util', '@edium/fsm', '@angular/material/dialog', '@nicky-lenaers/ngx-scroll-to', '@angular/material/autocomplete', '@angular/material/core', '@hmcts/ccpay-web-component', 'rpx-xui-translation', '@angular/cdk/overlay', '@angular/cdk/tree', '@angular/material/input', '@angular-material-components/datetime-picker', '@angular-material-components/moment-adapter', '@angular/material/datepicker', '@angular/material/form-field', 'ngx-md', '@hmcts/media-viewer', '@angular/cdk/portal', 'ngx-pagination', '@angular/material/tabs'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.hmcts = global.hmcts || {}, global.hmcts["ccd-case-ui-toolkit"] = {}), global.ng.core, global.ng.common, global.ng.router, global.ng.forms, global["rx-polling"], global.rxjs, global.ng.common.http, global.rxjs.operators, global["class-transformer"], global.moment, global.underscore, global.pegjs, global.util, global["@edium/fsm"], global.ng.material.dialog, global["@nicky-lenaers/ngx-scroll-to"], global.ng.material.autocomplete, global.ng.material.core, global["@hmcts/ccpay-web-component"], global.i2$1, global.ng.cdk.overlay, global.ng.cdk.tree, global.ng.material.input, global["@angular-material-components/datetime-picker"], global["@angular-material-components/moment-adapter"], global.ng.material.datepicker, global.ng.material.formField, global["ngx-md"], global.i12, global.ng.cdk.portal, global["ngx-pagination"], global.ng.material.tabs));
5
- })(this, (function (exports, i0, i1, i1$1, i3, polling, rxjs, i1$2, operators, classTransformer, moment, _, pegjs, util, fsm, i1$3, i2, i5, i6, i3$1, i2$1, i1$4, i7, i3$2, i4, momentAdapter, i5$1, i6$1, i1$5, i12, i6$2, i1$6, i9) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/router'), require('@angular/forms'), require('rx-polling'), require('rxjs'), require('@angular/common/http'), require('rxjs/operators'), require('class-transformer'), require('moment'), require('underscore'), require('pegjs'), require('util'), require('@edium/fsm'), require('@angular/material/dialog'), require('@nicky-lenaers/ngx-scroll-to'), require('@angular/material/autocomplete'), require('@angular/material/core'), require('@hmcts/ccpay-web-component'), require('@angular/cdk/overlay'), require('@angular/cdk/tree'), require('@angular/material/input'), require('@angular-material-components/datetime-picker'), require('@angular-material-components/moment-adapter'), require('@angular/material/datepicker'), require('@angular/material/form-field'), require('ngx-md'), require('@hmcts/media-viewer'), require('rpx-xui-translation'), require('@angular/cdk/portal'), require('ngx-pagination'), require('@angular/material/tabs')) :
3
+ typeof define === 'function' && define.amd ? define('@hmcts/ccd-case-ui-toolkit', ['exports', '@angular/core', '@angular/common', '@angular/router', '@angular/forms', 'rx-polling', 'rxjs', '@angular/common/http', 'rxjs/operators', 'class-transformer', 'moment', 'underscore', 'pegjs', 'util', '@edium/fsm', '@angular/material/dialog', '@nicky-lenaers/ngx-scroll-to', '@angular/material/autocomplete', '@angular/material/core', '@hmcts/ccpay-web-component', '@angular/cdk/overlay', '@angular/cdk/tree', '@angular/material/input', '@angular-material-components/datetime-picker', '@angular-material-components/moment-adapter', '@angular/material/datepicker', '@angular/material/form-field', 'ngx-md', '@hmcts/media-viewer', 'rpx-xui-translation', '@angular/cdk/portal', 'ngx-pagination', '@angular/material/tabs'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.hmcts = global.hmcts || {}, global.hmcts["ccd-case-ui-toolkit"] = {}), global.ng.core, global.ng.common, global.ng.router, global.ng.forms, global["rx-polling"], global.rxjs, global.ng.common.http, global.rxjs.operators, global["class-transformer"], global.moment, global.underscore, global.pegjs, global.util, global["@edium/fsm"], global.ng.material.dialog, global["@nicky-lenaers/ngx-scroll-to"], global.ng.material.autocomplete, global.ng.material.core, global["@hmcts/ccpay-web-component"], global.ng.cdk.overlay, global.ng.cdk.tree, global.ng.material.input, global["@angular-material-components/datetime-picker"], global["@angular-material-components/moment-adapter"], global.ng.material.datepicker, global.ng.material.formField, global["ngx-md"], global.i12, global.i2$1, global.ng.cdk.portal, global["ngx-pagination"], global.ng.material.tabs));
5
+ })(this, (function (exports, i0, i1, i1$1, i3, polling, rxjs, i1$2, operators, classTransformer, moment, _, pegjs, util, fsm, i1$3, i2, i5, i6, i3$1, i1$4, i7, i3$2, i4, momentAdapter, i5$1, i6$1, i1$5, i12, i2$1, i6$2, i1$6, i9) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -37,7 +37,6 @@
37
37
  var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
38
38
  var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
39
39
  var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
40
- var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
41
40
  var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$4);
42
41
  var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
43
42
  var i3__namespace$2 = /*#__PURE__*/_interopNamespace(i3$2);
@@ -46,6 +45,7 @@
46
45
  var i6__namespace$1 = /*#__PURE__*/_interopNamespace(i6$1);
47
46
  var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$5);
48
47
  var i12__namespace = /*#__PURE__*/_interopNamespace(i12);
48
+ var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
49
49
  var i6__namespace$2 = /*#__PURE__*/_interopNamespace(i6$2);
50
50
  var i1__namespace$6 = /*#__PURE__*/_interopNamespace(i1$6);
51
51
  var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
@@ -4977,6 +4977,7 @@
4977
4977
  var AbstractFormFieldComponent = /** @class */ (function () {
4978
4978
  function AbstractFormFieldComponent() {
4979
4979
  this.idPrefix = '';
4980
+ this.caseReference = '';
4980
4981
  }
4981
4982
  AbstractFormFieldComponent.prototype.id = function () {
4982
4983
  return this.idPrefix + this.caseField.id;
@@ -5037,7 +5038,7 @@
5037
5038
  return AbstractFormFieldComponent;
5038
5039
  }());
5039
5040
  AbstractFormFieldComponent.ɵfac = function AbstractFormFieldComponent_Factory(t) { return new (t || AbstractFormFieldComponent)(); };
5040
- AbstractFormFieldComponent.ɵdir = i0__namespace.ɵɵdefineDirective({ type: AbstractFormFieldComponent, inputs: { caseField: "caseField", formGroup: "formGroup", parent: "parent", idPrefix: "idPrefix" } });
5041
+ AbstractFormFieldComponent.ɵdir = i0__namespace.ɵɵdefineDirective({ type: AbstractFormFieldComponent, inputs: { caseField: "caseField", formGroup: "formGroup", parent: "parent", idPrefix: "idPrefix", caseReference: "caseReference" } });
5041
5042
  (function () {
5042
5043
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(AbstractFormFieldComponent, [{
5043
5044
  type: i0.Directive
@@ -5049,6 +5050,8 @@
5049
5050
  type: i0.Input
5050
5051
  }], idPrefix: [{
5051
5052
  type: i0.Input
5053
+ }], caseReference: [{
5054
+ type: i0.Input
5052
5055
  }] });
5053
5056
  })();
5054
5057
 
@@ -11313,6 +11316,7 @@
11313
11316
  DisplayContextCustomParameter["CaseFileView"] = "CaseFileView";
11314
11317
  DisplayContextCustomParameter["LinkedCases"] = "LinkedCases";
11315
11318
  DisplayContextCustomParameter["QueryManagement"] = "QueryManagement";
11319
+ DisplayContextCustomParameter["QueryManagementWriteTest"] = "QueryManagementWriteTest";
11316
11320
  })(DisplayContextCustomParameter || (DisplayContextCustomParameter = {}));
11317
11321
 
11318
11322
  function CaseFileViewFieldComponent_div_0_Template(rf, ctx) {
@@ -19469,6 +19473,21 @@
19469
19473
  }], null, null);
19470
19474
  })();
19471
19475
 
19476
+ var QueryManagementUtils = /** @class */ (function () {
19477
+ function QueryManagementUtils() {
19478
+ }
19479
+ QueryManagementUtils.extractCaseQueriesFromCaseField = function () {
19480
+ };
19481
+ return QueryManagementUtils;
19482
+ }());
19483
+ QueryManagementUtils.ɵfac = function QueryManagementUtils_Factory(t) { return new (t || QueryManagementUtils)(); };
19484
+ QueryManagementUtils.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: QueryManagementUtils, factory: QueryManagementUtils.ɵfac });
19485
+ (function () {
19486
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryManagementUtils, [{
19487
+ type: i0.Injectable
19488
+ }], null, null);
19489
+ })();
19490
+
19472
19491
  var partyMessagesMockData = [
19473
19492
  {
19474
19493
  partyName: 'John Smith - Appellant',
@@ -19479,7 +19498,15 @@
19479
19498
  subject: 'Review attached document',
19480
19499
  name: 'Maggie Conroy',
19481
19500
  body: 'Please review attached document and advise if hearing should proceed?',
19482
- attachments: [],
19501
+ attachments: [
19502
+ {
19503
+ _links: {
19504
+ self: { href: '/' },
19505
+ binary: { href: '/' },
19506
+ },
19507
+ originalDocumentName: 'documentName.pdf',
19508
+ }
19509
+ ],
19483
19510
  isHearingRelated: true,
19484
19511
  hearingDate: '10 Jan 2023',
19485
19512
  createdOn: new Date(2023, 0, 3),
@@ -19581,51 +19608,62 @@
19581
19608
  }
19582
19609
  ];
19583
19610
 
19584
- var QueryCreateComponent = /** @class */ (function () {
19585
- function QueryCreateComponent() {
19611
+ function ReadQueryManagementFieldComponent_ng_container_0_Template(rf, ctx) {
19612
+ if (rf & 1) {
19613
+ i0__namespace.ɵɵelementContainerStart(0);
19614
+ i0__namespace.ɵɵelementStart(1, "div", 1);
19615
+ i0__namespace.ɵɵelement(2, "ccd-query-list", 2);
19616
+ i0__namespace.ɵɵelementEnd();
19617
+ i0__namespace.ɵɵelementContainerEnd();
19586
19618
  }
19587
- QueryCreateComponent.prototype.ngOnInit = function () {
19588
- };
19589
- return QueryCreateComponent;
19590
- }());
19591
- QueryCreateComponent.ɵfac = function QueryCreateComponent_Factory(t) { return new (t || QueryCreateComponent)(); };
19592
- QueryCreateComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryCreateComponent, selectors: [["ccd-query-create"]], decls: 0, vars: 0, template: function QueryCreateComponent_Template(rf, ctx) { }, encapsulation: 2 });
19593
- (function () {
19594
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryCreateComponent, [{
19595
- type: i0.Component,
19596
- args: [{
19597
- selector: 'ccd-query-create',
19598
- templateUrl: './query-create.component.html',
19599
- }]
19600
- }], function () { return []; }, null);
19601
- })();
19602
-
19603
- var QueryDetailComponent = /** @class */ (function () {
19604
- function QueryDetailComponent() {
19619
+ if (rf & 2) {
19620
+ var singlePartyMessageGroup_r1 = ctx.$implicit;
19621
+ i0__namespace.ɵɵadvance(2);
19622
+ i0__namespace.ɵɵproperty("partyMessageGroup", singlePartyMessageGroup_r1);
19605
19623
  }
19606
- QueryDetailComponent.prototype.ngOnInit = function () {
19624
+ }
19625
+ var ReadQueryManagementFieldComponent = /** @class */ (function (_super) {
19626
+ __extends(ReadQueryManagementFieldComponent, _super);
19627
+ function ReadQueryManagementFieldComponent(route) {
19628
+ var _this = _super.call(this) || this;
19629
+ _this.route = route;
19630
+ return _this;
19631
+ }
19632
+ ReadQueryManagementFieldComponent.prototype.ngOnInit = function () {
19633
+ if (this.context === exports.PaletteContext.DEFAULT) {
19634
+ // EUI-8303 Using mock data until CCD is ready with the API and data contract
19635
+ this.partyMessagesGroups = partyMessagesMockData;
19636
+ // TODO: Actual implementation once the CCD API and data contract is available
19637
+ // Each parties will have a separate collection of party messages
19638
+ // Find whether queries tab is available in the case data
19639
+ var queriesTab = this.route.snapshot.data.case.tabs
19640
+ .filter(function (tab) { return tab.fields && tab.fields
19641
+ .some(function (caseField) { return caseField.id === 'QueryManagement'; }); });
19642
+ // Loop through the list of parties and their case queries collections
19643
+ QueryManagementUtils.extractCaseQueriesFromCaseField();
19644
+ }
19607
19645
  };
19608
- return QueryDetailComponent;
19609
- }());
19610
- QueryDetailComponent.ɵfac = function QueryDetailComponent_Factory(t) { return new (t || QueryDetailComponent)(); };
19611
- QueryDetailComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryDetailComponent, selectors: [["ccd-query-detail"]], decls: 0, vars: 0, template: function QueryDetailComponent_Template(rf, ctx) { }, encapsulation: 2 });
19646
+ return ReadQueryManagementFieldComponent;
19647
+ }(AbstractFieldReadComponent));
19648
+ ReadQueryManagementFieldComponent.ɵfac = function ReadQueryManagementFieldComponent_Factory(t) { return new (t || ReadQueryManagementFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute)); };
19649
+ ReadQueryManagementFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReadQueryManagementFieldComponent, selectors: [["ccd-read-query-management-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[4, "ngFor", "ngForOf"], [1, "govuk-!-margin-top-6", "govuk-!-margin-bottom-6"], [3, "partyMessageGroup"]], template: function ReadQueryManagementFieldComponent_Template(rf, ctx) {
19650
+ if (rf & 1) {
19651
+ i0__namespace.ɵɵtemplate(0, ReadQueryManagementFieldComponent_ng_container_0_Template, 3, 1, "ng-container", 0);
19652
+ }
19653
+ if (rf & 2) {
19654
+ i0__namespace.ɵɵproperty("ngForOf", ctx.partyMessagesGroups);
19655
+ }
19656
+ }, encapsulation: 2 });
19612
19657
  (function () {
19613
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryDetailComponent, [{
19658
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ReadQueryManagementFieldComponent, [{
19614
19659
  type: i0.Component,
19615
19660
  args: [{
19616
- selector: 'ccd-query-detail',
19617
- templateUrl: './query-detail.component.html',
19661
+ selector: 'ccd-read-query-management-field',
19662
+ templateUrl: './read-query-management-field.component.html',
19618
19663
  }]
19619
- }], function () { return []; }, null);
19664
+ }], function () { return [{ type: i1__namespace$1.ActivatedRoute }]; }, null);
19620
19665
  })();
19621
19666
 
19622
- var SortOrder;
19623
- (function (SortOrder) {
19624
- SortOrder[SortOrder["ASCENDING"] = 0] = "ASCENDING";
19625
- SortOrder[SortOrder["DESCENDING"] = 1] = "DESCENDING";
19626
- SortOrder[SortOrder["UNSORTED"] = 2] = "UNSORTED";
19627
- })(SortOrder || (SortOrder = {}));
19628
-
19629
19667
  var QueryListItem = /** @class */ (function () {
19630
19668
  function QueryListItem() {
19631
19669
  this.children = [];
@@ -19713,290 +19751,160 @@
19713
19751
  return QueryListData;
19714
19752
  }());
19715
19753
 
19716
- exports.QueryListResponseStatus = void 0;
19754
+ var QueryListResponseStatus;
19717
19755
  (function (QueryListResponseStatus) {
19718
19756
  QueryListResponseStatus["NEW"] = "New";
19719
19757
  QueryListResponseStatus["RESPONDED"] = "Responded";
19720
- })(exports.QueryListResponseStatus || (exports.QueryListResponseStatus = {}));
19758
+ })(QueryListResponseStatus || (QueryListResponseStatus = {}));
19721
19759
 
19722
- function QueryListComponent_ng_container_0_th_7_Template(rf, ctx) {
19723
- if (rf & 1) {
19724
- var _r5_1 = i0__namespace.ɵɵgetCurrentView();
19725
- i0__namespace.ɵɵelementStart(0, "th", 8);
19726
- i0__namespace.ɵɵtext(1);
19727
- i0__namespace.ɵɵpipe(2, "rpxTranslate");
19728
- i0__namespace.ɵɵelementStart(3, "a", 9);
19729
- i0__namespace.ɵɵlistener("click", function QueryListComponent_ng_container_0_th_7_Template_a_click_3_listener() { i0__namespace.ɵɵrestoreView(_r5_1); var col_r3 = ctx.$implicit; var ctx_r4 = i0__namespace.ɵɵnextContext(2); return ctx_r4.sortTable(col_r3); });
19730
- i0__namespace.ɵɵelementEnd();
19731
- i0__namespace.ɵɵelementEnd();
19732
- }
19733
- if (rf & 2) {
19734
- var col_r3 = ctx.$implicit;
19735
- var ctx_r1 = i0__namespace.ɵɵnextContext(2);
19736
- i0__namespace.ɵɵadvance(1);
19737
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 2, col_r3.displayName), " ");
19738
- i0__namespace.ɵɵadvance(2);
19739
- i0__namespace.ɵɵproperty("innerHTML", ctx_r1.sortWidget(col_r3), i0__namespace.ɵɵsanitizeHtml);
19740
- }
19741
- }
19742
- function QueryListComponent_ng_container_0_tr_9_Template(rf, ctx) {
19760
+ function WriteQueryManagementFieldComponent_p_23_Template(rf, ctx) {
19743
19761
  if (rf & 1) {
19744
- i0__namespace.ɵɵelementStart(0, "tr", 4);
19745
- i0__namespace.ɵɵelementStart(1, "td", 10);
19746
- i0__namespace.ɵɵelementStart(2, "a", 11);
19747
- i0__namespace.ɵɵtext(3);
19748
- i0__namespace.ɵɵelementEnd();
19749
- i0__namespace.ɵɵelementEnd();
19750
- i0__namespace.ɵɵelementStart(4, "td", 12);
19751
- i0__namespace.ɵɵtext(5);
19752
- i0__namespace.ɵɵelementEnd();
19753
- i0__namespace.ɵɵelementStart(6, "td", 12);
19754
- i0__namespace.ɵɵtext(7);
19755
- i0__namespace.ɵɵpipe(8, "date");
19756
- i0__namespace.ɵɵelementEnd();
19757
- i0__namespace.ɵɵelementStart(9, "td", 12);
19758
- i0__namespace.ɵɵtext(10);
19759
- i0__namespace.ɵɵpipe(11, "date");
19760
- i0__namespace.ɵɵelementEnd();
19761
- i0__namespace.ɵɵelementStart(12, "td", 12);
19762
- i0__namespace.ɵɵtext(13);
19762
+ i0__namespace.ɵɵelementStart(0, "p", 24);
19763
+ i0__namespace.ɵɵelementStart(1, "span", 25);
19764
+ i0__namespace.ɵɵtext(2, "Error:");
19763
19765
  i0__namespace.ɵɵelementEnd();
19766
+ i0__namespace.ɵɵtext(3, " Enter a response message ");
19764
19767
  i0__namespace.ɵɵelementEnd();
19765
19768
  }
19766
- if (rf & 2) {
19767
- var message_r6 = ctx.$implicit;
19768
- i0__namespace.ɵɵadvance(3);
19769
- i0__namespace.ɵɵtextInterpolate(message_r6.subject);
19770
- i0__namespace.ɵɵadvance(2);
19771
- i0__namespace.ɵɵtextInterpolate(message_r6.lastSubmittedBy);
19772
- i0__namespace.ɵɵadvance(2);
19773
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(8, 5, message_r6.lastSubmittedDate, "dd MMM YYYY"));
19774
- i0__namespace.ɵɵadvance(3);
19775
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(11, 8, message_r6.lastResponseDate, "dd MMM YYYY"));
19776
- i0__namespace.ɵɵadvance(3);
19777
- i0__namespace.ɵɵtextInterpolate(message_r6.lastResponseBy);
19778
- }
19779
19769
  }
19780
- function QueryListComponent_ng_container_0_Template(rf, ctx) {
19770
+ function WriteQueryManagementFieldComponent_p_34_Template(rf, ctx) {
19781
19771
  if (rf & 1) {
19782
- i0__namespace.ɵɵelementContainerStart(0);
19783
- i0__namespace.ɵɵelementStart(1, "table", 1);
19784
- i0__namespace.ɵɵelementStart(2, "caption", 2);
19785
- i0__namespace.ɵɵelementStart(3, "div");
19786
- i0__namespace.ɵɵtext(4);
19787
- i0__namespace.ɵɵelementEnd();
19788
- i0__namespace.ɵɵelementEnd();
19789
- i0__namespace.ɵɵelementStart(5, "thead", 3);
19790
- i0__namespace.ɵɵelementStart(6, "tr", 4);
19791
- i0__namespace.ɵɵtemplate(7, QueryListComponent_ng_container_0_th_7_Template, 4, 4, "th", 5);
19792
- i0__namespace.ɵɵelementEnd();
19793
- i0__namespace.ɵɵelementEnd();
19794
- i0__namespace.ɵɵelementStart(8, "tbody", 6);
19795
- i0__namespace.ɵɵtemplate(9, QueryListComponent_ng_container_0_tr_9_Template, 14, 11, "tr", 7);
19796
- i0__namespace.ɵɵelementEnd();
19772
+ i0__namespace.ɵɵelementStart(0, "p", 26);
19773
+ i0__namespace.ɵɵelementStart(1, "span", 25);
19774
+ i0__namespace.ɵɵtext(2, "Error:");
19797
19775
  i0__namespace.ɵɵelementEnd();
19798
- i0__namespace.ɵɵelementContainerEnd();
19799
- }
19800
- if (rf & 2) {
19801
- var ctx_r0 = i0__namespace.ɵɵnextContext();
19802
- i0__namespace.ɵɵadvance(4);
19803
- i0__namespace.ɵɵtextInterpolate(ctx_r0.queryListData.partyName);
19804
- i0__namespace.ɵɵadvance(3);
19805
- i0__namespace.ɵɵproperty("ngForOf", ctx_r0.displayedColumns);
19806
- i0__namespace.ɵɵadvance(2);
19807
- i0__namespace.ɵɵproperty("ngForOf", ctx_r0.queryListData.partyMessages);
19808
- }
19809
- }
19810
- var QueryListComponent = /** @class */ (function () {
19811
- function QueryListComponent() {
19812
- this.displayedColumns = [
19813
- { name: 'subject', displayName: 'Queries', sortOrder: SortOrder.UNSORTED },
19814
- { name: 'lastSubmittedBy', displayName: 'Last submitted by', sortOrder: SortOrder.UNSORTED },
19815
- { name: 'lastSubmittedDate', displayName: 'Last submission date', sortOrder: SortOrder.UNSORTED },
19816
- { name: 'lastResponseDate', displayName: 'Last response date', sortOrder: SortOrder.UNSORTED },
19817
- { name: 'lastResponseBy', displayName: 'Response by', sortOrder: SortOrder.UNSORTED }
19818
- ];
19819
- }
19820
- QueryListComponent.prototype.ngOnChanges = function (simpleChanges) {
19821
- var _a;
19822
- var currentPartyMessageGroup = (_a = simpleChanges.partyMessageGroup) === null || _a === void 0 ? void 0 : _a.currentValue;
19823
- if (currentPartyMessageGroup) {
19824
- this.queryListData = new QueryListData(currentPartyMessageGroup);
19825
- }
19826
- };
19827
- QueryListComponent.prototype.sortTable = function (col) {
19828
- switch (col.displayName) {
19829
- case 'Queries': {
19830
- this.sort(col);
19831
- break;
19832
- }
19833
- case 'Last submitted by': {
19834
- this.sort(col);
19835
- break;
19836
- }
19837
- case 'Last submission date': {
19838
- this.sortDate(col);
19839
- break;
19840
- }
19841
- case 'Last response date': {
19842
- this.sortDate(col);
19843
- break;
19844
- }
19845
- case 'Response by': {
19846
- this.sort(col);
19847
- break;
19848
- }
19849
- }
19850
- };
19851
- QueryListComponent.prototype.sortWidget = function (col) {
19852
- switch (col.sortOrder) {
19853
- case SortOrder.DESCENDING: {
19854
- return '▲';
19855
- }
19856
- case SortOrder.ASCENDING: {
19857
- return '▼';
19858
- }
19859
- default: {
19860
- return '⬧';
19861
- }
19862
- }
19863
- };
19864
- QueryListComponent.prototype.sort = function (col) {
19865
- if (col.sortOrder && col.sortOrder === SortOrder.DESCENDING) {
19866
- this.queryListData.partyMessages.sort(function (a, b) { return (a[col.name] < b[col.name]) ? 1 : -1; });
19867
- this.displayedColumns.forEach(function (c) { return c.sortOrder = SortOrder.UNSORTED; });
19868
- col.sortOrder = SortOrder.ASCENDING;
19869
- }
19870
- else {
19871
- this.queryListData.partyMessages.sort(function (a, b) { return (a[col.name] > b[col.name]) ? 1 : -1; });
19872
- this.displayedColumns.forEach(function (c) { return c.sortOrder = SortOrder.UNSORTED; });
19873
- col.sortOrder = SortOrder.DESCENDING;
19874
- }
19875
- };
19876
- QueryListComponent.prototype.sortDate = function (col) {
19877
- if (col.sortOrder && col.sortOrder === SortOrder.DESCENDING) {
19878
- this.queryListData.partyMessages.sort(function (a, b) { return b[col.name] - a[col.name]; });
19879
- this.displayedColumns.forEach(function (c) { return c.sortOrder = SortOrder.UNSORTED; });
19880
- col.sortOrder = SortOrder.ASCENDING;
19881
- }
19882
- else {
19883
- this.queryListData.partyMessages.sort(function (a, b) { return a[col.name] - b[col.name]; });
19884
- this.displayedColumns.forEach(function (c) { return c.sortOrder = SortOrder.UNSORTED; });
19885
- col.sortOrder = SortOrder.DESCENDING;
19886
- }
19887
- };
19888
- return QueryListComponent;
19889
- }());
19890
- QueryListComponent.ɵfac = function QueryListComponent_Factory(t) { return new (t || QueryListComponent)(); };
19891
- QueryListComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryListComponent, selectors: [["ccd-query-list"]], inputs: { partyMessageGroup: "partyMessageGroup" }, features: [i0__namespace.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [[4, "ngIf"], [1, "govuk-table", "query-list__table"], [1, "govuk-table__cell", "query-list__caption", "query-list__row"], [1, "govuk-table__head"], [1, "govuk-table__row", "query-list__row"], ["class", "govuk-table__header", 4, "ngFor", "ngForOf"], [1, "govuk-table__body"], ["class", "govuk-table__row query-list__row", 4, "ngFor", "ngForOf"], [1, "govuk-table__header"], ["href", "javascript:void(0)", 1, "sort-widget", 3, "innerHTML", "click"], [1, "govuk-table__cell", "query-list__cell", "query-list__cell--first"], ["href", "javascript:void(0)"], [1, "govuk-table__cell", "query-list__cell"]], template: function QueryListComponent_Template(rf, ctx) {
19892
- if (rf & 1) {
19893
- i0__namespace.ɵɵtemplate(0, QueryListComponent_ng_container_0_Template, 10, 3, "ng-container", 0);
19894
- }
19895
- if (rf & 2) {
19896
- i0__namespace.ɵɵproperty("ngIf", ctx.queryListData);
19897
- }
19898
- }, directives: [i1__namespace.NgIf, i1__namespace.NgForOf], pipes: [i2__namespace$1.RpxTranslatePipe, i1__namespace.DatePipe], styles: [".query-list__caption[_ngcontent-%COMP%], .query-list__table[_ngcontent-%COMP%]{border:1px solid #b1b4b6}.query-list__caption[_ngcontent-%COMP%]{background:#f3f2f1;border-bottom:0;font-weight:700}.query-list__row[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:first-child{padding-left:10px}.query-list__row[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:last-child{padding-right:10px}.query-list__cell--first[_ngcontent-%COMP%]{width:33%}.sort-widget[_ngcontent-%COMP%]{cursor:pointer;text-decoration:none;color:#000}"] });
19899
- (function () {
19900
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryListComponent, [{
19901
- type: i0.Component,
19902
- args: [{
19903
- selector: 'ccd-query-list',
19904
- templateUrl: './query-list.component.html',
19905
- styleUrls: ['./query-list.component.scss']
19906
- }]
19907
- }], null, { partyMessageGroup: [{
19908
- type: i0.Input
19909
- }] });
19910
- })();
19911
-
19912
- var QueryManagementUtils = /** @class */ (function () {
19913
- function QueryManagementUtils() {
19914
- }
19915
- QueryManagementUtils.extractCaseQueriesFromCaseField = function () {
19916
- };
19917
- return QueryManagementUtils;
19918
- }());
19919
- QueryManagementUtils.ɵfac = function QueryManagementUtils_Factory(t) { return new (t || QueryManagementUtils)(); };
19920
- QueryManagementUtils.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: QueryManagementUtils, factory: QueryManagementUtils.ɵfac });
19921
- (function () {
19922
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryManagementUtils, [{
19923
- type: i0.Injectable
19924
- }], null, null);
19925
- })();
19926
-
19927
- function ReadQueryManagementFieldComponent_ng_container_0_Template(rf, ctx) {
19928
- if (rf & 1) {
19929
- i0__namespace.ɵɵelementContainerStart(0);
19930
- i0__namespace.ɵɵelementStart(1, "div", 1);
19931
- i0__namespace.ɵɵelement(2, "ccd-query-list", 2);
19776
+ i0__namespace.ɵɵtext(3, " File error message ");
19932
19777
  i0__namespace.ɵɵelementEnd();
19933
- i0__namespace.ɵɵelementContainerEnd();
19934
- }
19935
- if (rf & 2) {
19936
- var singlePartyMessageGroup_r1 = ctx.$implicit;
19937
- i0__namespace.ɵɵadvance(2);
19938
- i0__namespace.ɵɵproperty("partyMessageGroup", singlePartyMessageGroup_r1);
19939
19778
  }
19940
19779
  }
19941
- var ReadQueryManagementFieldComponent = /** @class */ (function (_super) {
19942
- __extends(ReadQueryManagementFieldComponent, _super);
19943
- function ReadQueryManagementFieldComponent(route) {
19944
- var _this = _super.call(this) || this;
19945
- _this.route = route;
19946
- return _this;
19947
- }
19948
- ReadQueryManagementFieldComponent.prototype.ngOnInit = function () {
19949
- if (this.context === exports.PaletteContext.DEFAULT) {
19950
- // EUI-8303 Using mock data until CCD is ready with the API and data contract
19951
- this.partyMessagesGroups = partyMessagesMockData;
19952
- // TODO: Actual implementation once the CCD API and data contract is available
19953
- // Each parties will have a separate collection of party messages
19954
- // Find whether queries tab is available in the case data
19955
- var queriesTab = this.route.snapshot.data.case.tabs
19956
- .filter(function (tab) { return tab.fields && tab.fields
19957
- .some(function (caseField) { return caseField.id === 'QueryManagement'; }); });
19958
- // Loop through the list of parties and their case queries collections
19959
- QueryManagementUtils.extractCaseQueriesFromCaseField();
19960
- }
19961
- };
19962
- return ReadQueryManagementFieldComponent;
19963
- }(AbstractFieldReadComponent));
19964
- ReadQueryManagementFieldComponent.ɵfac = function ReadQueryManagementFieldComponent_Factory(t) { return new (t || ReadQueryManagementFieldComponent)(i0__namespace.ɵɵdirectiveInject(i1__namespace$1.ActivatedRoute)); };
19965
- ReadQueryManagementFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReadQueryManagementFieldComponent, selectors: [["ccd-read-query-management-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[4, "ngFor", "ngForOf"], [1, "govuk-!-margin-top-8", "govuk-!-margin-bottom-8"], [3, "partyMessageGroup"]], template: function ReadQueryManagementFieldComponent_Template(rf, ctx) {
19966
- if (rf & 1) {
19967
- i0__namespace.ɵɵtemplate(0, ReadQueryManagementFieldComponent_ng_container_0_Template, 3, 1, "ng-container", 0);
19968
- }
19969
- if (rf & 2) {
19970
- i0__namespace.ɵɵproperty("ngForOf", ctx.partyMessagesGroups);
19971
- }
19972
- }, encapsulation: 2 });
19973
- (function () {
19974
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ReadQueryManagementFieldComponent, [{
19975
- type: i0.Component,
19976
- args: [{
19977
- selector: 'ccd-read-query-management-field',
19978
- templateUrl: './read-query-management-field.component.html',
19979
- }]
19980
- }], function () { return [{ type: i1__namespace$1.ActivatedRoute }]; }, null);
19981
- })();
19982
-
19983
19780
  var WriteQueryManagementFieldComponent = /** @class */ (function (_super) {
19984
19781
  __extends(WriteQueryManagementFieldComponent, _super);
19985
19782
  function WriteQueryManagementFieldComponent() {
19986
- return _super.call(this) || this;
19783
+ var _this = _super.call(this) || this;
19784
+ _this.responseFormGroup = new i3.FormGroup({
19785
+ response: new i3.FormControl('', i3.Validators.required),
19786
+ documents: new i3.FormControl([], i3.Validators.required)
19787
+ });
19788
+ _this.queryItem = new QueryListItem();
19789
+ Object.assign(_this.queryItem, partyMessagesMockData[0].partyMessages[0]);
19790
+ return _this;
19987
19791
  }
19988
- WriteQueryManagementFieldComponent.prototype.ngOnInit = function () {
19989
- };
19990
19792
  return WriteQueryManagementFieldComponent;
19991
19793
  }(AbstractFieldWriteComponent));
19992
19794
  WriteQueryManagementFieldComponent.ɵfac = function WriteQueryManagementFieldComponent_Factory(t) { return new (t || WriteQueryManagementFieldComponent)(); };
19993
- WriteQueryManagementFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteQueryManagementFieldComponent, selectors: [["ccd-write-query-management-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 0, vars: 0, template: function WriteQueryManagementFieldComponent_Template(rf, ctx) { }, encapsulation: 2 });
19795
+ WriteQueryManagementFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteQueryManagementFieldComponent, selectors: [["ccd-write-query-management-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 47, vars: 15, consts: [[1, "govuk-!-margin-top-6", "govuk-!-margin-bottom-6"], [1, "govuk-!-margin-bottom-2"], ["href", "javascript:void(0)", 1, "govuk-back-link"], [1, "govuk-!-margin-bottom-6"], [1, "govuk-caption-l", "govuk-!-margin-bottom-6"], [1, "govuk-heading-l", "govuk-!-margin-bottom-4"], [1, "govuk-!-margin-bottom-4"], [1, "govuk-body-l", "govuk-!-margin-bottom-0"], [3, "queryItem"], [1, "govuk-heading-m"], [3, "formGroup"], [1, "govuk-form-group", "response-textarea"], [1, "govuk-label-wrapper"], ["for", "respond-to-query", 1, "govuk-label", "govuk-!-font-weight-bold"], ["id", "respond-to-query-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "respond-to-query", "name", "respond-to-query", "rows", "5", "aria-describedby", "respond-to-query-hint respond-to-query-error", 1, "govuk-textarea", 3, "formControlName"], [1, "govuk-form-group"], ["for", "add-documents", 1, "govuk-label"], [1, "govuk-!-font-weight-bold"], ["id", "add-documents-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "add-documents", "name", "add-documents", "type", "file", 1, "govuk-file-upload"], ["data-module", "govuk-button", 1, "govuk-button"], [1, "govuk-button-group"], ["data-module", "govuk-button", 1, "govuk-button", "govuk-button--secondary", 3, "disabled"], ["id", "respond-to-query-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "add-documents-error", 1, "govuk-error-message"]], template: function WriteQueryManagementFieldComponent_Template(rf, ctx) {
19796
+ if (rf & 1) {
19797
+ i0__namespace.ɵɵelementStart(0, "div", 0);
19798
+ i0__namespace.ɵɵelementStart(1, "div", 1);
19799
+ i0__namespace.ɵɵelementStart(2, "a", 2);
19800
+ i0__namespace.ɵɵtext(3, "Back to tasks");
19801
+ i0__namespace.ɵɵelementEnd();
19802
+ i0__namespace.ɵɵelementEnd();
19803
+ i0__namespace.ɵɵelementStart(4, "div", 3);
19804
+ i0__namespace.ɵɵelementStart(5, "div", 4);
19805
+ i0__namespace.ɵɵtext(6, "Respond to query");
19806
+ i0__namespace.ɵɵelementEnd();
19807
+ i0__namespace.ɵɵelementStart(7, "h1", 5);
19808
+ i0__namespace.ɵɵtext(8, "Query details");
19809
+ i0__namespace.ɵɵelementEnd();
19810
+ i0__namespace.ɵɵelementStart(9, "div", 6);
19811
+ i0__namespace.ɵɵelementStart(10, "div", 7);
19812
+ i0__namespace.ɵɵtext(11);
19813
+ i0__namespace.ɵɵpipe(12, "ccdCaseReference");
19814
+ i0__namespace.ɵɵelementEnd();
19815
+ i0__namespace.ɵɵelementEnd();
19816
+ i0__namespace.ɵɵelementStart(13, "div");
19817
+ i0__namespace.ɵɵelement(14, "ccd-query-details-table", 8);
19818
+ i0__namespace.ɵɵelementEnd();
19819
+ i0__namespace.ɵɵelementEnd();
19820
+ i0__namespace.ɵɵelementStart(15, "div", 6);
19821
+ i0__namespace.ɵɵelementStart(16, "h1", 9);
19822
+ i0__namespace.ɵɵtext(17, "Respond to a query");
19823
+ i0__namespace.ɵɵelementEnd();
19824
+ i0__namespace.ɵɵelementStart(18, "div", 10);
19825
+ i0__namespace.ɵɵelementStart(19, "div", 11);
19826
+ i0__namespace.ɵɵelementStart(20, "div", 12);
19827
+ i0__namespace.ɵɵelementStart(21, "label", 13);
19828
+ i0__namespace.ɵɵtext(22, " Response message ");
19829
+ i0__namespace.ɵɵelementEnd();
19830
+ i0__namespace.ɵɵelementEnd();
19831
+ i0__namespace.ɵɵtemplate(23, WriteQueryManagementFieldComponent_p_23_Template, 4, 0, "p", 14);
19832
+ i0__namespace.ɵɵelementStart(24, "textarea", 15);
19833
+ i0__namespace.ɵɵtext(25, " ");
19834
+ i0__namespace.ɵɵelementEnd();
19835
+ i0__namespace.ɵɵelementEnd();
19836
+ i0__namespace.ɵɵelementStart(26, "div");
19837
+ i0__namespace.ɵɵelementStart(27, "div", 16);
19838
+ i0__namespace.ɵɵelementStart(28, "div", 12);
19839
+ i0__namespace.ɵɵelementStart(29, "label", 17);
19840
+ i0__namespace.ɵɵelementStart(30, "div", 18);
19841
+ i0__namespace.ɵɵtext(31, "Add document (optional)");
19842
+ i0__namespace.ɵɵelementEnd();
19843
+ i0__namespace.ɵɵelementStart(32, "div");
19844
+ i0__namespace.ɵɵtext(33, "Attach a document to this message");
19845
+ i0__namespace.ɵɵelementEnd();
19846
+ i0__namespace.ɵɵelementEnd();
19847
+ i0__namespace.ɵɵelementEnd();
19848
+ i0__namespace.ɵɵtemplate(34, WriteQueryManagementFieldComponent_p_34_Template, 4, 0, "p", 19);
19849
+ i0__namespace.ɵɵelement(35, "input", 20);
19850
+ i0__namespace.ɵɵelementEnd();
19851
+ i0__namespace.ɵɵelementEnd();
19852
+ i0__namespace.ɵɵelementStart(36, "button", 21);
19853
+ i0__namespace.ɵɵtext(37, " Next ");
19854
+ i0__namespace.ɵɵelementEnd();
19855
+ i0__namespace.ɵɵelementEnd();
19856
+ i0__namespace.ɵɵelementEnd();
19857
+ i0__namespace.ɵɵelementStart(38, "div");
19858
+ i0__namespace.ɵɵelementStart(39, "div", 22);
19859
+ i0__namespace.ɵɵelementStart(40, "button", 23);
19860
+ i0__namespace.ɵɵtext(41, " Previous ");
19861
+ i0__namespace.ɵɵelementEnd();
19862
+ i0__namespace.ɵɵelementStart(42, "button", 21);
19863
+ i0__namespace.ɵɵtext(43, " Continue ");
19864
+ i0__namespace.ɵɵelementEnd();
19865
+ i0__namespace.ɵɵelementEnd();
19866
+ i0__namespace.ɵɵelementEnd();
19867
+ i0__namespace.ɵɵelementStart(44, "div", 1);
19868
+ i0__namespace.ɵɵelementStart(45, "a", 2);
19869
+ i0__namespace.ɵɵtext(46, "Cancel and return to query list");
19870
+ i0__namespace.ɵɵelementEnd();
19871
+ i0__namespace.ɵɵelementEnd();
19872
+ i0__namespace.ɵɵelementEnd();
19873
+ }
19874
+ if (rf & 2) {
19875
+ var tmp_3_0 = null;
19876
+ var tmp_4_0 = null;
19877
+ var tmp_5_0 = null;
19878
+ var tmp_7_0 = null;
19879
+ var tmp_8_0 = null;
19880
+ i0__namespace.ɵɵadvance(11);
19881
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(12, 13, ctx.caseReference));
19882
+ i0__namespace.ɵɵadvance(3);
19883
+ i0__namespace.ɵɵproperty("queryItem", ctx.queryItem);
19884
+ i0__namespace.ɵɵadvance(4);
19885
+ i0__namespace.ɵɵproperty("formGroup", ctx.responseFormGroup);
19886
+ i0__namespace.ɵɵadvance(1);
19887
+ i0__namespace.ɵɵclassProp("govuk-form-group--error", (tmp_3_0 = ctx.responseFormGroup.get("response")) == null ? null : tmp_3_0.errors == null ? null : tmp_3_0.errors.length);
19888
+ i0__namespace.ɵɵadvance(4);
19889
+ i0__namespace.ɵɵproperty("ngIf", (tmp_4_0 = ctx.responseFormGroup.get("response")) == null ? null : tmp_4_0.errors == null ? null : tmp_4_0.errors.length);
19890
+ i0__namespace.ɵɵadvance(1);
19891
+ i0__namespace.ɵɵclassProp("govuk-textarea--error", (tmp_5_0 = ctx.responseFormGroup.get("response")) == null ? null : tmp_5_0.errors == null ? null : tmp_5_0.errors.length);
19892
+ i0__namespace.ɵɵproperty("formControlName", "response");
19893
+ i0__namespace.ɵɵadvance(3);
19894
+ i0__namespace.ɵɵclassProp("govuk-form-group--error", (tmp_7_0 = ctx.responseFormGroup.get("documents")) == null ? null : tmp_7_0.errors == null ? null : tmp_7_0.errors.length);
19895
+ i0__namespace.ɵɵadvance(7);
19896
+ i0__namespace.ɵɵproperty("ngIf", (tmp_8_0 = ctx.responseFormGroup.get("response")) == null ? null : tmp_8_0.errors == null ? null : tmp_8_0.errors.length);
19897
+ i0__namespace.ɵɵadvance(6);
19898
+ i0__namespace.ɵɵproperty("disabled", true);
19899
+ }
19900
+ }, styles: [".response-textarea[_ngcontent-%COMP%]{max-width:576px}"] });
19994
19901
  (function () {
19995
19902
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteQueryManagementFieldComponent, [{
19996
19903
  type: i0.Component,
19997
19904
  args: [{
19998
19905
  selector: 'ccd-write-query-management-field',
19999
19906
  templateUrl: './write-query-management-field.component.html',
19907
+ styleUrls: ['./write-query-management-field.component.scss']
20000
19908
  }]
20001
19909
  }], function () { return []; }, null);
20002
19910
  })();
@@ -20521,6 +20429,7 @@
20521
20429
  _b[DisplayContextCustomParameter.CaseFileView] = [CaseFileViewFieldComponent, CaseFileViewFieldComponent],
20522
20430
  _b[DisplayContextCustomParameter.LinkedCases] = [WriteLinkedCasesFieldComponent, ReadLinkedCasesFieldComponent],
20523
20431
  _b[DisplayContextCustomParameter.QueryManagement] = [WriteQueryManagementFieldComponent, ReadQueryManagementFieldComponent],
20432
+ _b[DisplayContextCustomParameter.QueryManagementWriteTest] = [WriteQueryManagementFieldComponent, WriteQueryManagementFieldComponent],
20524
20433
  _b);
20525
20434
  }
20526
20435
  PaletteService.prototype.getFieldComponentClass = function (caseField, write) {
@@ -23635,6 +23544,13 @@
23635
23544
  }] });
23636
23545
  })();
23637
23546
 
23547
+ var SortOrder;
23548
+ (function (SortOrder) {
23549
+ SortOrder[SortOrder["ASCENDING"] = 0] = "ASCENDING";
23550
+ SortOrder[SortOrder["DESCENDING"] = 1] = "DESCENDING";
23551
+ SortOrder[SortOrder["UNSORTED"] = 2] = "UNSORTED";
23552
+ })(SortOrder || (SortOrder = {}));
23553
+
23638
23554
  function ReadComplexFieldCollectionTableComponent_th_9_Template(rf, ctx) {
23639
23555
  if (rf & 1) {
23640
23556
  var _r4_1 = i0__namespace.ɵɵgetCurrentView();
@@ -26041,6 +25957,421 @@
26041
25957
  }], function () { return [{ type: FileUploadStateService }, { type: WindowService }]; }, null);
26042
25958
  })();
26043
25959
 
25960
+ var QueryCreateComponent = /** @class */ (function () {
25961
+ function QueryCreateComponent() {
25962
+ }
25963
+ QueryCreateComponent.prototype.ngOnInit = function () {
25964
+ };
25965
+ return QueryCreateComponent;
25966
+ }());
25967
+ QueryCreateComponent.ɵfac = function QueryCreateComponent_Factory(t) { return new (t || QueryCreateComponent)(); };
25968
+ QueryCreateComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryCreateComponent, selectors: [["ccd-query-create"]], decls: 0, vars: 0, template: function QueryCreateComponent_Template(rf, ctx) { }, encapsulation: 2 });
25969
+ (function () {
25970
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryCreateComponent, [{
25971
+ type: i0.Component,
25972
+ args: [{
25973
+ selector: 'ccd-query-create',
25974
+ templateUrl: './query-create.component.html',
25975
+ }]
25976
+ }], function () { return []; }, null);
25977
+ })();
25978
+
25979
+ function QueryDetailsTableComponent_ng_container_0_div_39_Template(rf, ctx) {
25980
+ if (rf & 1) {
25981
+ i0__namespace.ɵɵelementStart(0, "div");
25982
+ i0__namespace.ɵɵelementStart(1, "a", 7);
25983
+ i0__namespace.ɵɵtext(2);
25984
+ i0__namespace.ɵɵelementEnd();
25985
+ i0__namespace.ɵɵelementEnd();
25986
+ }
25987
+ if (rf & 2) {
25988
+ var attachment_r2 = ctx.$implicit;
25989
+ i0__namespace.ɵɵadvance(1);
25990
+ i0__namespace.ɵɵproperty("href", attachment_r2._links.self.href, i0__namespace.ɵɵsanitizeUrl);
25991
+ i0__namespace.ɵɵadvance(1);
25992
+ i0__namespace.ɵɵtextInterpolate(attachment_r2.originalDocumentName);
25993
+ }
25994
+ }
25995
+ function QueryDetailsTableComponent_ng_container_0_Template(rf, ctx) {
25996
+ if (rf & 1) {
25997
+ i0__namespace.ɵɵelementContainerStart(0);
25998
+ i0__namespace.ɵɵelementStart(1, "table", 1);
25999
+ i0__namespace.ɵɵelementStart(2, "tbody", 2);
26000
+ i0__namespace.ɵɵelementStart(3, "tr", 3);
26001
+ i0__namespace.ɵɵelementStart(4, "th", 4);
26002
+ i0__namespace.ɵɵtext(5, "Last submitted by");
26003
+ i0__namespace.ɵɵelementEnd();
26004
+ i0__namespace.ɵɵelementStart(6, "td", 5);
26005
+ i0__namespace.ɵɵtext(7);
26006
+ i0__namespace.ɵɵelementEnd();
26007
+ i0__namespace.ɵɵelementEnd();
26008
+ i0__namespace.ɵɵelementStart(8, "tr", 3);
26009
+ i0__namespace.ɵɵelementStart(9, "th", 4);
26010
+ i0__namespace.ɵɵtext(10, "Submission date");
26011
+ i0__namespace.ɵɵelementEnd();
26012
+ i0__namespace.ɵɵelementStart(11, "td", 5);
26013
+ i0__namespace.ɵɵtext(12);
26014
+ i0__namespace.ɵɵpipe(13, "date");
26015
+ i0__namespace.ɵɵelementEnd();
26016
+ i0__namespace.ɵɵelementEnd();
26017
+ i0__namespace.ɵɵelementStart(14, "tr", 3);
26018
+ i0__namespace.ɵɵelementStart(15, "th", 4);
26019
+ i0__namespace.ɵɵtext(16, "Query subject");
26020
+ i0__namespace.ɵɵelementEnd();
26021
+ i0__namespace.ɵɵelementStart(17, "td", 5);
26022
+ i0__namespace.ɵɵtext(18);
26023
+ i0__namespace.ɵɵelementEnd();
26024
+ i0__namespace.ɵɵelementEnd();
26025
+ i0__namespace.ɵɵelementStart(19, "tr", 3);
26026
+ i0__namespace.ɵɵelementStart(20, "th", 4);
26027
+ i0__namespace.ɵɵtext(21, "Query body");
26028
+ i0__namespace.ɵɵelementEnd();
26029
+ i0__namespace.ɵɵelementStart(22, "td", 5);
26030
+ i0__namespace.ɵɵtext(23);
26031
+ i0__namespace.ɵɵelementEnd();
26032
+ i0__namespace.ɵɵelementEnd();
26033
+ i0__namespace.ɵɵelementStart(24, "tr", 3);
26034
+ i0__namespace.ɵɵelementStart(25, "th", 4);
26035
+ i0__namespace.ɵɵtext(26, "Is the query hearing related?");
26036
+ i0__namespace.ɵɵelementEnd();
26037
+ i0__namespace.ɵɵelementStart(27, "td", 5);
26038
+ i0__namespace.ɵɵtext(28);
26039
+ i0__namespace.ɵɵelementEnd();
26040
+ i0__namespace.ɵɵelementEnd();
26041
+ i0__namespace.ɵɵelementStart(29, "tr", 3);
26042
+ i0__namespace.ɵɵelementStart(30, "th", 4);
26043
+ i0__namespace.ɵɵtext(31, "What is the date of the hearing your query related to?");
26044
+ i0__namespace.ɵɵelementEnd();
26045
+ i0__namespace.ɵɵelementStart(32, "td", 5);
26046
+ i0__namespace.ɵɵtext(33);
26047
+ i0__namespace.ɵɵpipe(34, "date");
26048
+ i0__namespace.ɵɵelementEnd();
26049
+ i0__namespace.ɵɵelementEnd();
26050
+ i0__namespace.ɵɵelementStart(35, "tr", 3);
26051
+ i0__namespace.ɵɵelementStart(36, "th", 4);
26052
+ i0__namespace.ɵɵtext(37, "Attachments");
26053
+ i0__namespace.ɵɵelementEnd();
26054
+ i0__namespace.ɵɵelementStart(38, "td", 5);
26055
+ i0__namespace.ɵɵtemplate(39, QueryDetailsTableComponent_ng_container_0_div_39_Template, 3, 2, "div", 6);
26056
+ i0__namespace.ɵɵelementEnd();
26057
+ i0__namespace.ɵɵelementEnd();
26058
+ i0__namespace.ɵɵelementEnd();
26059
+ i0__namespace.ɵɵelementEnd();
26060
+ i0__namespace.ɵɵelementContainerEnd();
26061
+ }
26062
+ if (rf & 2) {
26063
+ var ctx_r0 = i0__namespace.ɵɵnextContext();
26064
+ i0__namespace.ɵɵadvance(7);
26065
+ i0__namespace.ɵɵtextInterpolate(ctx_r0.queryItem.lastSubmittedBy);
26066
+ i0__namespace.ɵɵadvance(5);
26067
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(13, 7, ctx_r0.queryItem.createdOn, "d MMM yyyy"));
26068
+ i0__namespace.ɵɵadvance(6);
26069
+ i0__namespace.ɵɵtextInterpolate(ctx_r0.queryItem.subject);
26070
+ i0__namespace.ɵɵadvance(5);
26071
+ i0__namespace.ɵɵtextInterpolate(ctx_r0.queryItem.body);
26072
+ i0__namespace.ɵɵadvance(5);
26073
+ i0__namespace.ɵɵtextInterpolate(ctx_r0.queryItem.isHearingRelated ? "Yes" : "No");
26074
+ i0__namespace.ɵɵadvance(5);
26075
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(34, 10, ctx_r0.queryItem.hearingDate, "d MMM yyyy"));
26076
+ i0__namespace.ɵɵadvance(6);
26077
+ i0__namespace.ɵɵproperty("ngForOf", ctx_r0.queryItem.attachments);
26078
+ }
26079
+ }
26080
+ var QueryDetailsTableComponent = /** @class */ (function () {
26081
+ function QueryDetailsTableComponent() {
26082
+ }
26083
+ return QueryDetailsTableComponent;
26084
+ }());
26085
+ QueryDetailsTableComponent.ɵfac = function QueryDetailsTableComponent_Factory(t) { return new (t || QueryDetailsTableComponent)(); };
26086
+ QueryDetailsTableComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryDetailsTableComponent, selectors: [["ccd-query-details-table"]], inputs: { queryItem: "queryItem" }, decls: 1, vars: 1, consts: [[4, "ngIf"], ["aria-describedby", "Details of the query", 1, "govuk-table", "query-details-table"], [1, "govuk-table__body"], [1, "govuk-table__row"], ["scope", "row", 1, "govuk-table__header"], [1, "govuk-table__cell"], [4, "ngFor", "ngForOf"], ["target", "_blank", 3, "href"]], template: function QueryDetailsTableComponent_Template(rf, ctx) {
26087
+ if (rf & 1) {
26088
+ i0__namespace.ɵɵtemplate(0, QueryDetailsTableComponent_ng_container_0_Template, 40, 13, "ng-container", 0);
26089
+ }
26090
+ if (rf & 2) {
26091
+ i0__namespace.ɵɵproperty("ngIf", ctx.queryItem);
26092
+ }
26093
+ }, directives: [i1__namespace.NgIf, i1__namespace.NgForOf], pipes: [i1__namespace.DatePipe], styles: [".query-details-table[_ngcontent-%COMP%] .govuk-table__header[_ngcontent-%COMP%]{width:330px}"] });
26094
+ (function () {
26095
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryDetailsTableComponent, [{
26096
+ type: i0.Component,
26097
+ args: [{
26098
+ selector: 'ccd-query-details-table',
26099
+ templateUrl: './query-details-table.component.html',
26100
+ styleUrls: ['./query-details-table.component.scss']
26101
+ }]
26102
+ }], null, { queryItem: [{
26103
+ type: i0.Input
26104
+ }] });
26105
+ })();
26106
+
26107
+ var QueryDetailsComponent = /** @class */ (function () {
26108
+ function QueryDetailsComponent() {
26109
+ }
26110
+ return QueryDetailsComponent;
26111
+ }());
26112
+ QueryDetailsComponent.ɵfac = function QueryDetailsComponent_Factory(t) { return new (t || QueryDetailsComponent)(); };
26113
+ QueryDetailsComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryDetailsComponent, selectors: [["ccd-query-details"]], decls: 2, vars: 0, template: function QueryDetailsComponent_Template(rf, ctx) {
26114
+ if (rf & 1) {
26115
+ i0__namespace.ɵɵelementStart(0, "p");
26116
+ i0__namespace.ɵɵtext(1, "query-details works!");
26117
+ i0__namespace.ɵɵelementEnd();
26118
+ }
26119
+ }, encapsulation: 2 });
26120
+ (function () {
26121
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryDetailsComponent, [{
26122
+ type: i0.Component,
26123
+ args: [{
26124
+ selector: 'ccd-query-details',
26125
+ templateUrl: './query-details.component.html'
26126
+ }]
26127
+ }], null, null);
26128
+ })();
26129
+
26130
+ function QueryListComponent_ng_container_0_th_7_Template(rf, ctx) {
26131
+ if (rf & 1) {
26132
+ var _r5_1 = i0__namespace.ɵɵgetCurrentView();
26133
+ i0__namespace.ɵɵelementStart(0, "th", 8);
26134
+ i0__namespace.ɵɵtext(1);
26135
+ i0__namespace.ɵɵpipe(2, "rpxTranslate");
26136
+ i0__namespace.ɵɵelementStart(3, "a", 9);
26137
+ i0__namespace.ɵɵlistener("click", function QueryListComponent_ng_container_0_th_7_Template_a_click_3_listener() { i0__namespace.ɵɵrestoreView(_r5_1); var col_r3 = ctx.$implicit; var ctx_r4 = i0__namespace.ɵɵnextContext(2); return ctx_r4.sortTable(col_r3); });
26138
+ i0__namespace.ɵɵelementEnd();
26139
+ i0__namespace.ɵɵelementEnd();
26140
+ }
26141
+ if (rf & 2) {
26142
+ var col_r3 = ctx.$implicit;
26143
+ var ctx_r1 = i0__namespace.ɵɵnextContext(2);
26144
+ i0__namespace.ɵɵadvance(1);
26145
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 2, col_r3.displayName), " ");
26146
+ i0__namespace.ɵɵadvance(2);
26147
+ i0__namespace.ɵɵproperty("innerHTML", ctx_r1.sortWidget(col_r3), i0__namespace.ɵɵsanitizeHtml);
26148
+ }
26149
+ }
26150
+ function QueryListComponent_ng_container_0_tr_9_Template(rf, ctx) {
26151
+ if (rf & 1) {
26152
+ i0__namespace.ɵɵelementStart(0, "tr", 4);
26153
+ i0__namespace.ɵɵelementStart(1, "td", 10);
26154
+ i0__namespace.ɵɵelementStart(2, "a", 11);
26155
+ i0__namespace.ɵɵtext(3);
26156
+ i0__namespace.ɵɵelementEnd();
26157
+ i0__namespace.ɵɵelementEnd();
26158
+ i0__namespace.ɵɵelementStart(4, "td", 12);
26159
+ i0__namespace.ɵɵtext(5);
26160
+ i0__namespace.ɵɵelementEnd();
26161
+ i0__namespace.ɵɵelementStart(6, "td", 12);
26162
+ i0__namespace.ɵɵtext(7);
26163
+ i0__namespace.ɵɵpipe(8, "date");
26164
+ i0__namespace.ɵɵelementEnd();
26165
+ i0__namespace.ɵɵelementStart(9, "td", 12);
26166
+ i0__namespace.ɵɵtext(10);
26167
+ i0__namespace.ɵɵpipe(11, "date");
26168
+ i0__namespace.ɵɵelementEnd();
26169
+ i0__namespace.ɵɵelementStart(12, "td", 12);
26170
+ i0__namespace.ɵɵtext(13);
26171
+ i0__namespace.ɵɵelementEnd();
26172
+ i0__namespace.ɵɵelementEnd();
26173
+ }
26174
+ if (rf & 2) {
26175
+ var message_r6 = ctx.$implicit;
26176
+ i0__namespace.ɵɵadvance(3);
26177
+ i0__namespace.ɵɵtextInterpolate(message_r6.subject);
26178
+ i0__namespace.ɵɵadvance(2);
26179
+ i0__namespace.ɵɵtextInterpolate(message_r6.lastSubmittedBy);
26180
+ i0__namespace.ɵɵadvance(2);
26181
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(8, 5, message_r6.lastSubmittedDate, "dd MMM YYYY"));
26182
+ i0__namespace.ɵɵadvance(3);
26183
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(11, 8, message_r6.lastResponseDate, "dd MMM YYYY"));
26184
+ i0__namespace.ɵɵadvance(3);
26185
+ i0__namespace.ɵɵtextInterpolate(message_r6.lastResponseBy);
26186
+ }
26187
+ }
26188
+ function QueryListComponent_ng_container_0_Template(rf, ctx) {
26189
+ if (rf & 1) {
26190
+ i0__namespace.ɵɵelementContainerStart(0);
26191
+ i0__namespace.ɵɵelementStart(1, "table", 1);
26192
+ i0__namespace.ɵɵelementStart(2, "caption", 2);
26193
+ i0__namespace.ɵɵelementStart(3, "div");
26194
+ i0__namespace.ɵɵtext(4);
26195
+ i0__namespace.ɵɵelementEnd();
26196
+ i0__namespace.ɵɵelementEnd();
26197
+ i0__namespace.ɵɵelementStart(5, "thead", 3);
26198
+ i0__namespace.ɵɵelementStart(6, "tr", 4);
26199
+ i0__namespace.ɵɵtemplate(7, QueryListComponent_ng_container_0_th_7_Template, 4, 4, "th", 5);
26200
+ i0__namespace.ɵɵelementEnd();
26201
+ i0__namespace.ɵɵelementEnd();
26202
+ i0__namespace.ɵɵelementStart(8, "tbody", 6);
26203
+ i0__namespace.ɵɵtemplate(9, QueryListComponent_ng_container_0_tr_9_Template, 14, 11, "tr", 7);
26204
+ i0__namespace.ɵɵelementEnd();
26205
+ i0__namespace.ɵɵelementEnd();
26206
+ i0__namespace.ɵɵelementContainerEnd();
26207
+ }
26208
+ if (rf & 2) {
26209
+ var ctx_r0 = i0__namespace.ɵɵnextContext();
26210
+ i0__namespace.ɵɵadvance(4);
26211
+ i0__namespace.ɵɵtextInterpolate(ctx_r0.queryListData.partyName);
26212
+ i0__namespace.ɵɵadvance(3);
26213
+ i0__namespace.ɵɵproperty("ngForOf", ctx_r0.displayedColumns);
26214
+ i0__namespace.ɵɵadvance(2);
26215
+ i0__namespace.ɵɵproperty("ngForOf", ctx_r0.queryListData.partyMessages);
26216
+ }
26217
+ }
26218
+ var QueryListComponent = /** @class */ (function () {
26219
+ function QueryListComponent() {
26220
+ this.displayedColumns = [
26221
+ { name: 'subject', displayName: 'Queries', sortOrder: SortOrder.UNSORTED },
26222
+ { name: 'lastSubmittedBy', displayName: 'Last submitted by', sortOrder: SortOrder.UNSORTED },
26223
+ { name: 'lastSubmittedDate', displayName: 'Last submission date', sortOrder: SortOrder.UNSORTED },
26224
+ { name: 'lastResponseDate', displayName: 'Last response date', sortOrder: SortOrder.UNSORTED },
26225
+ { name: 'lastResponseBy', displayName: 'Response by', sortOrder: SortOrder.UNSORTED }
26226
+ ];
26227
+ }
26228
+ QueryListComponent.prototype.ngOnChanges = function (simpleChanges) {
26229
+ var _a;
26230
+ var currentPartyMessageGroup = (_a = simpleChanges.partyMessageGroup) === null || _a === void 0 ? void 0 : _a.currentValue;
26231
+ if (currentPartyMessageGroup) {
26232
+ this.queryListData = new QueryListData(currentPartyMessageGroup);
26233
+ }
26234
+ };
26235
+ QueryListComponent.prototype.sortTable = function (col) {
26236
+ switch (col.displayName) {
26237
+ case 'Queries': {
26238
+ this.sort(col);
26239
+ break;
26240
+ }
26241
+ case 'Last submitted by': {
26242
+ this.sort(col);
26243
+ break;
26244
+ }
26245
+ case 'Last submission date': {
26246
+ this.sortDate(col);
26247
+ break;
26248
+ }
26249
+ case 'Last response date': {
26250
+ this.sortDate(col);
26251
+ break;
26252
+ }
26253
+ case 'Response by': {
26254
+ this.sort(col);
26255
+ break;
26256
+ }
26257
+ default: {
26258
+ this.sort(col);
26259
+ break;
26260
+ }
26261
+ }
26262
+ };
26263
+ QueryListComponent.prototype.sortWidget = function (col) {
26264
+ switch (col.sortOrder) {
26265
+ case SortOrder.DESCENDING: {
26266
+ return '&#9660;';
26267
+ }
26268
+ case SortOrder.ASCENDING: {
26269
+ return '&#9650;';
26270
+ }
26271
+ default: {
26272
+ return '&#11047;';
26273
+ }
26274
+ }
26275
+ };
26276
+ QueryListComponent.prototype.sort = function (col) {
26277
+ if (col.sortOrder === SortOrder.ASCENDING) {
26278
+ this.queryListData.partyMessages.sort(function (a, b) { return (a[col.name] < b[col.name]) ? 1 : -1; });
26279
+ this.displayedColumns.forEach(function (c) { return c.sortOrder = SortOrder.UNSORTED; });
26280
+ col.sortOrder = SortOrder.DESCENDING;
26281
+ }
26282
+ else {
26283
+ this.queryListData.partyMessages.sort(function (a, b) { return (a[col.name] > b[col.name]) ? 1 : -1; });
26284
+ this.displayedColumns.forEach(function (c) { return c.sortOrder = SortOrder.UNSORTED; });
26285
+ col.sortOrder = SortOrder.ASCENDING;
26286
+ }
26287
+ };
26288
+ QueryListComponent.prototype.sortDate = function (col) {
26289
+ if (col.sortOrder === SortOrder.ASCENDING) {
26290
+ this.queryListData.partyMessages.sort(function (a, b) { return b[col.name] - a[col.name]; });
26291
+ this.displayedColumns.forEach(function (c) { return c.sortOrder = SortOrder.UNSORTED; });
26292
+ col.sortOrder = SortOrder.DESCENDING;
26293
+ }
26294
+ else {
26295
+ this.queryListData.partyMessages.sort(function (a, b) { return a[col.name] - b[col.name]; });
26296
+ this.displayedColumns.forEach(function (c) { return c.sortOrder = SortOrder.UNSORTED; });
26297
+ col.sortOrder = SortOrder.ASCENDING;
26298
+ }
26299
+ };
26300
+ return QueryListComponent;
26301
+ }());
26302
+ QueryListComponent.ɵfac = function QueryListComponent_Factory(t) { return new (t || QueryListComponent)(); };
26303
+ QueryListComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryListComponent, selectors: [["ccd-query-list"]], inputs: { partyMessageGroup: "partyMessageGroup" }, features: [i0__namespace.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [[4, "ngIf"], [1, "govuk-table", "query-list__table"], [1, "govuk-table__cell", "query-list__caption", "query-list__row"], [1, "govuk-table__head"], [1, "govuk-table__row", "query-list__row"], ["class", "govuk-table__header", 4, "ngFor", "ngForOf"], [1, "govuk-table__body"], ["class", "govuk-table__row query-list__row", 4, "ngFor", "ngForOf"], [1, "govuk-table__header"], ["href", "javascript:void(0)", 1, "sort-widget", 3, "innerHTML", "click"], [1, "govuk-table__cell", "query-list__cell", "query-list__cell--first"], ["href", "javascript:void(0)"], [1, "govuk-table__cell", "query-list__cell"]], template: function QueryListComponent_Template(rf, ctx) {
26304
+ if (rf & 1) {
26305
+ i0__namespace.ɵɵtemplate(0, QueryListComponent_ng_container_0_Template, 10, 3, "ng-container", 0);
26306
+ }
26307
+ if (rf & 2) {
26308
+ i0__namespace.ɵɵproperty("ngIf", ctx.queryListData);
26309
+ }
26310
+ }, directives: [i1__namespace.NgIf, i1__namespace.NgForOf], pipes: [i2__namespace$1.RpxTranslatePipe, i1__namespace.DatePipe], styles: [".query-list__caption[_ngcontent-%COMP%], .query-list__table[_ngcontent-%COMP%]{border:1px solid #b1b4b6}.query-list__caption[_ngcontent-%COMP%]{background:#f3f2f1;border-bottom:0;font-weight:700}.query-list__row[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:first-child{padding-left:10px}.query-list__row[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:last-child{padding-right:10px}.query-list__cell--first[_ngcontent-%COMP%]{width:33%}.sort-widget[_ngcontent-%COMP%]{cursor:pointer;text-decoration:none;color:#000}"] });
26311
+ (function () {
26312
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryListComponent, [{
26313
+ type: i0.Component,
26314
+ args: [{
26315
+ selector: 'ccd-query-list',
26316
+ templateUrl: './query-list.component.html',
26317
+ styleUrls: ['./query-list.component.scss']
26318
+ }]
26319
+ }], null, { partyMessageGroup: [{
26320
+ type: i0.Input
26321
+ }] });
26322
+ })();
26323
+
26324
+ var QueryManagementModule = /** @class */ (function () {
26325
+ function QueryManagementModule() {
26326
+ }
26327
+ return QueryManagementModule;
26328
+ }());
26329
+ QueryManagementModule.ɵfac = function QueryManagementModule_Factory(t) { return new (t || QueryManagementModule)(); };
26330
+ QueryManagementModule.ɵmod = i0__namespace.ɵɵdefineNgModule({ type: QueryManagementModule });
26331
+ QueryManagementModule.ɵinj = i0__namespace.ɵɵdefineInjector({ imports: [[
26332
+ i1.CommonModule,
26333
+ i3.ReactiveFormsModule,
26334
+ i2$1.RpxTranslationModule.forChild(),
26335
+ PipesModule
26336
+ ]] });
26337
+ (function () {
26338
+ (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(QueryManagementModule, { declarations: [ReadQueryManagementFieldComponent,
26339
+ WriteQueryManagementFieldComponent,
26340
+ QueryDetailsComponent,
26341
+ QueryCreateComponent,
26342
+ QueryListComponent,
26343
+ QueryDetailsTableComponent], imports: [i1.CommonModule,
26344
+ i3.ReactiveFormsModule, i2__namespace$1.RpxTranslationModule, PipesModule], exports: [ReadQueryManagementFieldComponent,
26345
+ WriteQueryManagementFieldComponent] });
26346
+ })();
26347
+ (function () {
26348
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryManagementModule, [{
26349
+ type: i0.NgModule,
26350
+ args: [{
26351
+ declarations: [
26352
+ ReadQueryManagementFieldComponent,
26353
+ WriteQueryManagementFieldComponent,
26354
+ QueryDetailsComponent,
26355
+ QueryCreateComponent,
26356
+ QueryListComponent,
26357
+ QueryDetailsTableComponent,
26358
+ ],
26359
+ imports: [
26360
+ i1.CommonModule,
26361
+ i3.ReactiveFormsModule,
26362
+ i2$1.RpxTranslationModule.forChild(),
26363
+ PipesModule
26364
+ ],
26365
+ exports: [
26366
+ ReadQueryManagementFieldComponent,
26367
+ WriteQueryManagementFieldComponent
26368
+ ],
26369
+ }]
26370
+ }], null, null);
26371
+ })();
26372
+ i0__namespace.ɵɵsetComponentScope(ReadQueryManagementFieldComponent, [i1__namespace.NgForOf, QueryListComponent], []);
26373
+ i0__namespace.ɵɵsetComponentScope(WriteQueryManagementFieldComponent, [QueryDetailsTableComponent, i3__namespace.NgControlStatusGroup, i3__namespace.FormGroupDirective, i1__namespace.NgIf, i3__namespace.DefaultValueAccessor, i3__namespace.NgControlStatus, i3__namespace.FormControlName], [CaseReferencePipe]);
26374
+
26044
26375
  var PALETTE_COMPONENTS = [
26045
26376
  UnsupportedFieldComponent,
26046
26377
  DatetimePickerComponent,
@@ -26086,7 +26417,6 @@
26086
26417
  ReadComplexFieldCollectionTableComponent,
26087
26418
  ReadCaseFlagFieldComponent,
26088
26419
  ReadLinkedCasesFieldComponent,
26089
- ReadQueryManagementFieldComponent,
26090
26420
  // Write
26091
26421
  WriteJudicialUserFieldComponent,
26092
26422
  WriteAddressFieldComponent,
@@ -26106,7 +26436,6 @@
26106
26436
  WriteDateFieldComponent,
26107
26437
  WriteCaseFlagFieldComponent,
26108
26438
  WriteLinkedCasesFieldComponent,
26109
- WriteQueryManagementFieldComponent,
26110
26439
  // new
26111
26440
  WriteYesNoFieldComponent,
26112
26441
  WriteOrganisationFieldComponent,
@@ -26150,10 +26479,6 @@
26150
26479
  CheckYourAnswersComponent,
26151
26480
  UnLinkCasesComponent,
26152
26481
  NoLinkedCasesComponent,
26153
- // Components for query management
26154
- QueryCreateComponent,
26155
- QueryDetailComponent,
26156
- QueryListComponent
26157
26482
  ];
26158
26483
  var PaletteModule = /** @class */ (function () {
26159
26484
  function PaletteModule() {
@@ -26206,7 +26531,8 @@
26206
26531
  i1$3.MatDialogModule,
26207
26532
  i12.MediaViewerModule,
26208
26533
  LoadingModule,
26209
- i2$1.RpxTranslationModule.forChild()
26534
+ i2$1.RpxTranslationModule.forChild(),
26535
+ QueryManagementModule
26210
26536
  ], i4.NgxMatDatetimePickerModule,
26211
26537
  i4.NgxMatNativeDateModule,
26212
26538
  i4.NgxMatTimepickerModule,
@@ -26262,7 +26588,6 @@
26262
26588
  ReadComplexFieldCollectionTableComponent,
26263
26589
  ReadCaseFlagFieldComponent,
26264
26590
  ReadLinkedCasesFieldComponent,
26265
- ReadQueryManagementFieldComponent,
26266
26591
  // Write
26267
26592
  WriteJudicialUserFieldComponent,
26268
26593
  WriteAddressFieldComponent,
@@ -26282,7 +26607,6 @@
26282
26607
  WriteDateFieldComponent,
26283
26608
  WriteCaseFlagFieldComponent,
26284
26609
  WriteLinkedCasesFieldComponent,
26285
- WriteQueryManagementFieldComponent,
26286
26610
  // new
26287
26611
  WriteYesNoFieldComponent,
26288
26612
  WriteOrganisationFieldComponent,
@@ -26325,11 +26649,7 @@
26325
26649
  LinkCasesComponent,
26326
26650
  CheckYourAnswersComponent,
26327
26651
  UnLinkCasesComponent,
26328
- NoLinkedCasesComponent,
26329
- // Components for query management
26330
- QueryCreateComponent,
26331
- QueryDetailComponent,
26332
- QueryListComponent], imports: [i1.CommonModule,
26652
+ NoLinkedCasesComponent], imports: [i1.CommonModule,
26333
26653
  i1$1.RouterModule,
26334
26654
  i3.FormsModule,
26335
26655
  i3.ReactiveFormsModule,
@@ -26355,7 +26675,7 @@
26355
26675
  i1$4.OverlayModule,
26356
26676
  i3$1.PaymentLibModule, i2__namespace.ScrollToModule, i1$3.MatDialogModule,
26357
26677
  i12.MediaViewerModule,
26358
- LoadingModule, i2__namespace$1.RpxTranslationModule], exports: [i4.NgxMatDatetimePickerModule,
26678
+ LoadingModule, i2__namespace$1.RpxTranslationModule, QueryManagementModule], exports: [i4.NgxMatDatetimePickerModule,
26359
26679
  i4.NgxMatNativeDateModule,
26360
26680
  i4.NgxMatTimepickerModule,
26361
26681
  TabsModule,
@@ -26404,7 +26724,6 @@
26404
26724
  ReadComplexFieldCollectionTableComponent,
26405
26725
  ReadCaseFlagFieldComponent,
26406
26726
  ReadLinkedCasesFieldComponent,
26407
- ReadQueryManagementFieldComponent,
26408
26727
  // Write
26409
26728
  WriteJudicialUserFieldComponent,
26410
26729
  WriteAddressFieldComponent,
@@ -26424,7 +26743,6 @@
26424
26743
  WriteDateFieldComponent,
26425
26744
  WriteCaseFlagFieldComponent,
26426
26745
  WriteLinkedCasesFieldComponent,
26427
- WriteQueryManagementFieldComponent,
26428
26746
  // new
26429
26747
  WriteYesNoFieldComponent,
26430
26748
  WriteOrganisationFieldComponent,
@@ -26467,11 +26785,7 @@
26467
26785
  LinkCasesComponent,
26468
26786
  CheckYourAnswersComponent,
26469
26787
  UnLinkCasesComponent,
26470
- NoLinkedCasesComponent,
26471
- // Components for query management
26472
- QueryCreateComponent,
26473
- QueryDetailComponent,
26474
- QueryListComponent] });
26788
+ NoLinkedCasesComponent] });
26475
26789
  })();
26476
26790
  (function () {
26477
26791
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PaletteModule, [{
@@ -26507,7 +26821,8 @@
26507
26821
  i1$3.MatDialogModule,
26508
26822
  i12.MediaViewerModule,
26509
26823
  LoadingModule,
26510
- i2$1.RpxTranslationModule.forChild()
26824
+ i2$1.RpxTranslationModule.forChild(),
26825
+ QueryManagementModule
26511
26826
  ],
26512
26827
  declarations: __spread([
26513
26828
  FixedListPipe,
@@ -26566,7 +26881,6 @@
26566
26881
  // Components for linked cases
26567
26882
  LinkedCasesToTableComponent, i1__namespace.NgIf, LinkedCasesFromTableComponent
26568
26883
  ], []);
26569
- i0__namespace.ɵɵsetComponentScope(ReadQueryManagementFieldComponent, [i1__namespace.NgForOf, QueryListComponent], []);
26570
26884
  i0__namespace.ɵɵsetComponentScope(WriteAddressFieldComponent, [i1__namespace.NgIf, i1__namespace.NgClass, i3__namespace.DefaultValueAccessor, i3__namespace.NgControlStatus, i3__namespace.FormControlDirective, i3__namespace.SelectControlValueAccessor, i1__namespace.NgForOf, i3__namespace.NgSelectOption, i3__namespace.ɵangular_packages_forms_forms_z, WriteComplexFieldComponent, i3__namespace.NgControlStatusGroup, i3__namespace.FormGroupDirective], [FieldLabelPipe]);
26571
26885
  i0__namespace.ɵɵsetComponentScope(WriteComplexFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, i1__namespace.NgSwitch, i1__namespace.NgSwitchCase, FieldReadComponent, LabelSubstitutorDirective, i3__namespace.NgControlStatusGroup, i3__namespace.FormGroupDirective, FieldWriteComponent], [FieldLabelPipe, IsReadOnlyPipe]);
26572
26886
  i0__namespace.ɵɵsetComponentScope(WriteDocumentFieldComponent, [i1__namespace.NgClass, i1__namespace.NgIf, ReadDocumentFieldComponent], [FieldLabelPipe]);
@@ -36521,11 +36835,6 @@
36521
36835
  exports.Profile = Profile;
36522
36836
  exports.ProfileNotifier = ProfileNotifier;
36523
36837
  exports.ProfileService = ProfileService;
36524
- exports.QueryCreateComponent = QueryCreateComponent;
36525
- exports.QueryDetailComponent = QueryDetailComponent;
36526
- exports.QueryListComponent = QueryListComponent;
36527
- exports.QueryListData = QueryListData;
36528
- exports.QueryListItem = QueryListItem;
36529
36838
  exports.ReadCaseFlagFieldComponent = ReadCaseFlagFieldComponent;
36530
36839
  exports.ReadCaseLinkFieldComponent = ReadCaseLinkFieldComponent;
36531
36840
  exports.ReadCollectionFieldComponent = ReadCollectionFieldComponent;
@@ -36647,7 +36956,6 @@
36647
36956
  exports.editorRouting = editorRouting;
36648
36957
  exports.initDialog = initDialog;
36649
36958
  exports.newCaseField = newCaseField;
36650
- exports.partyMessagesMockData = partyMessagesMockData;
36651
36959
  exports.textFieldType = textFieldType;
36652
36960
  exports.viewerRouting = viewerRouting;
36653
36961