@hmcts/ccd-case-ui-toolkit 6.16.0-query-management-sorting-v1 → 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 (73) hide show
  1. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +638 -334
  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 +2 -2
  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 -350
  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/domain/definition/display-context-enum.model.d.ts +2 -1
  58. package/lib/shared/domain/definition/display-context-enum.model.d.ts.map +1 -1
  59. package/package.json +1 -1
  60. package/esm2015/lib/shared/components/palette/query-management/components/index.js +0 -4
  61. package/esm2015/lib/shared/components/palette/query-management/components/query-detail/query-detail.component.js +0 -18
  62. package/esm2015/lib/shared/components/palette/query-management/domain/query-list-column/query-list-column.model.js +0 -2
  63. package/lib/shared/components/palette/query-management/components/index.d.ts +0 -4
  64. package/lib/shared/components/palette/query-management/components/index.d.ts.map +0 -1
  65. package/lib/shared/components/palette/query-management/components/query-detail/query-detail.component.d.ts +0 -9
  66. package/lib/shared/components/palette/query-management/components/query-detail/query-detail.component.d.ts.map +0 -1
  67. package/lib/shared/components/palette/query-management/domain/query-list-column/query-list-column.model.d.ts +0 -7
  68. package/lib/shared/components/palette/query-management/domain/query-list-column/query-list-column.model.d.ts.map +0 -1
  69. /package/lib/shared/components/palette/query-management/{domain → models}/party-messages/party-message.model.d.ts +0 -0
  70. /package/lib/shared/components/palette/query-management/{domain → models}/party-messages/party-messages-group.model.d.ts +0 -0
  71. /package/lib/shared/components/palette/query-management/{domain → models}/query-list/query-list-data/query-list-data.model.d.ts +0 -0
  72. /package/lib/shared/components/palette/query-management/{domain → models}/query-list/query-list-item/query-list-item.model.d.ts +0 -0
  73. /package/lib/shared/components/palette/query-management/{domain → models}/query-list/query-list-response-status.enum.d.ts +0 -0
@@ -5,7 +5,7 @@ import { CommonModule, DOCUMENT, CurrencyPipe, formatDate } from '@angular/commo
5
5
  import * as i1$1 from '@angular/router';
6
6
  import { RouterModule, NavigationStart, NavigationEnd } from '@angular/router';
7
7
  import * as i3 from '@angular/forms';
8
- import { NG_VALUE_ACCESSOR, NG_VALIDATORS, FormArray, FormGroup, FormControl, Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
8
+ import { NG_VALUE_ACCESSOR, NG_VALIDATORS, FormArray, FormGroup, FormControl, Validators, ReactiveFormsModule, FormsModule } from '@angular/forms';
9
9
  import polling from 'rx-polling';
10
10
  import { throwError, Subject, EMPTY, Observable, of, BehaviorSubject, timer, fromEvent, forkJoin } from 'rxjs';
11
11
  import * as i1$2 from '@angular/common/http';
@@ -28,8 +28,6 @@ import * as i6 from '@angular/material/core';
28
28
  import { MAT_DATE_LOCALE } from '@angular/material/core';
29
29
  import * as i3$1 from '@hmcts/ccpay-web-component';
30
30
  import { PaymentLibModule } from '@hmcts/ccpay-web-component';
31
- import * as i2$1 from 'rpx-xui-translation';
32
- import { RpxTranslationModule } from 'rpx-xui-translation';
33
31
  import * as i1$4 from '@angular/cdk/overlay';
34
32
  import { OverlayModule } from '@angular/cdk/overlay';
35
33
  import * as i7 from '@angular/cdk/tree';
@@ -47,6 +45,8 @@ import * as i1$5 from 'ngx-md';
47
45
  import { NgxMdModule } from 'ngx-md';
48
46
  import * as i12 from '@hmcts/media-viewer';
49
47
  import { MediaViewerModule } from '@hmcts/media-viewer';
48
+ import * as i2$1 from 'rpx-xui-translation';
49
+ import { RpxTranslationModule } from 'rpx-xui-translation';
50
50
  import * as i6$2 from '@angular/cdk/portal';
51
51
  import { ComponentPortal, PortalModule } from '@angular/cdk/portal';
52
52
  import * as i1$6 from 'ngx-pagination';
@@ -4367,6 +4367,7 @@ FormValidatorsService.ɵprov = i0.ɵɵdefineInjectable({ token: FormValidatorsSe
4367
4367
  class AbstractFormFieldComponent {
4368
4368
  constructor() {
4369
4369
  this.idPrefix = '';
4370
+ this.caseReference = '';
4370
4371
  }
4371
4372
  id() {
4372
4373
  return this.idPrefix + this.caseField.id;
@@ -4425,7 +4426,7 @@ class AbstractFormFieldComponent {
4425
4426
  }
4426
4427
  }
4427
4428
  AbstractFormFieldComponent.ɵfac = function AbstractFormFieldComponent_Factory(t) { return new (t || AbstractFormFieldComponent)(); };
4428
- AbstractFormFieldComponent.ɵdir = i0.ɵɵdefineDirective({ type: AbstractFormFieldComponent, inputs: { caseField: "caseField", formGroup: "formGroup", parent: "parent", idPrefix: "idPrefix" } });
4429
+ AbstractFormFieldComponent.ɵdir = i0.ɵɵdefineDirective({ type: AbstractFormFieldComponent, inputs: { caseField: "caseField", formGroup: "formGroup", parent: "parent", idPrefix: "idPrefix", caseReference: "caseReference" } });
4429
4430
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AbstractFormFieldComponent, [{
4430
4431
  type: Directive
4431
4432
  }], null, { caseField: [{
@@ -4436,6 +4437,8 @@ AbstractFormFieldComponent.ɵdir = i0.ɵɵdefineDirective({ type: AbstractFormFi
4436
4437
  type: Input
4437
4438
  }], idPrefix: [{
4438
4439
  type: Input
4440
+ }], caseReference: [{
4441
+ type: Input
4439
4442
  }] }); })();
4440
4443
 
4441
4444
  class AbstractFieldWriteComponent extends AbstractFormFieldComponent {
@@ -10104,6 +10107,7 @@ var DisplayContextCustomParameter;
10104
10107
  DisplayContextCustomParameter["CaseFileView"] = "CaseFileView";
10105
10108
  DisplayContextCustomParameter["LinkedCases"] = "LinkedCases";
10106
10109
  DisplayContextCustomParameter["QueryManagement"] = "QueryManagement";
10110
+ DisplayContextCustomParameter["QueryManagementWriteTest"] = "QueryManagementWriteTest";
10107
10111
  })(DisplayContextCustomParameter || (DisplayContextCustomParameter = {}));
10108
10112
 
10109
10113
  function CaseFileViewFieldComponent_div_0_Template(rf, ctx) { if (rf & 1) {
@@ -16879,6 +16883,16 @@ const ɵWritePhoneUKFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInherit
16879
16883
  }]
16880
16884
  }], null, null); })();
16881
16885
 
16886
+ class QueryManagementUtils {
16887
+ static extractCaseQueriesFromCaseField() {
16888
+ }
16889
+ }
16890
+ QueryManagementUtils.ɵfac = function QueryManagementUtils_Factory(t) { return new (t || QueryManagementUtils)(); };
16891
+ QueryManagementUtils.ɵprov = i0.ɵɵdefineInjectable({ token: QueryManagementUtils, factory: QueryManagementUtils.ɵfac });
16892
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryManagementUtils, [{
16893
+ type: Injectable
16894
+ }], null, null); })();
16895
+
16882
16896
  const partyMessagesMockData = [
16883
16897
  {
16884
16898
  partyName: 'John Smith - Appellant',
@@ -16889,7 +16903,15 @@ const partyMessagesMockData = [
16889
16903
  subject: 'Review attached document',
16890
16904
  name: 'Maggie Conroy',
16891
16905
  body: 'Please review attached document and advise if hearing should proceed?',
16892
- attachments: [],
16906
+ attachments: [
16907
+ {
16908
+ _links: {
16909
+ self: { href: '/' },
16910
+ binary: { href: '/' },
16911
+ },
16912
+ originalDocumentName: 'documentName.pdf',
16913
+ }
16914
+ ],
16893
16915
  isHearingRelated: true,
16894
16916
  hearingDate: '10 Jan 2023',
16895
16917
  createdOn: new Date(2023, 0, 3),
@@ -16991,44 +17013,50 @@ const partyMessagesMockData = [
16991
17013
  }
16992
17014
  ];
16993
17015
 
16994
- class QueryCreateComponent {
16995
- constructor() {
16996
- }
16997
- ngOnInit() {
16998
- }
16999
- }
17000
- QueryCreateComponent.ɵfac = function QueryCreateComponent_Factory(t) { return new (t || QueryCreateComponent)(); };
17001
- QueryCreateComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryCreateComponent, selectors: [["ccd-query-create"]], decls: 0, vars: 0, template: function QueryCreateComponent_Template(rf, ctx) { }, encapsulation: 2 });
17002
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryCreateComponent, [{
17003
- type: Component,
17004
- args: [{
17005
- selector: 'ccd-query-create',
17006
- templateUrl: './query-create.component.html',
17007
- }]
17008
- }], function () { return []; }, null); })();
17009
-
17010
- class QueryDetailComponent {
17011
- constructor() {
17016
+ function ReadQueryManagementFieldComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
17017
+ i0.ɵɵelementContainerStart(0);
17018
+ i0.ɵɵelementStart(1, "div", 1);
17019
+ i0.ɵɵelement(2, "ccd-query-list", 2);
17020
+ i0.ɵɵelementEnd();
17021
+ i0.ɵɵelementContainerEnd();
17022
+ } if (rf & 2) {
17023
+ const singlePartyMessageGroup_r1 = ctx.$implicit;
17024
+ i0.ɵɵadvance(2);
17025
+ i0.ɵɵproperty("partyMessageGroup", singlePartyMessageGroup_r1);
17026
+ } }
17027
+ class ReadQueryManagementFieldComponent extends AbstractFieldReadComponent {
17028
+ constructor(route) {
17029
+ super();
17030
+ this.route = route;
17012
17031
  }
17013
17032
  ngOnInit() {
17033
+ if (this.context === PaletteContext.DEFAULT) {
17034
+ // EUI-8303 Using mock data until CCD is ready with the API and data contract
17035
+ this.partyMessagesGroups = partyMessagesMockData;
17036
+ // TODO: Actual implementation once the CCD API and data contract is available
17037
+ // Each parties will have a separate collection of party messages
17038
+ // Find whether queries tab is available in the case data
17039
+ const queriesTab = this.route.snapshot.data.case.tabs
17040
+ .filter(tab => tab.fields && tab.fields
17041
+ .some(caseField => caseField.id === 'QueryManagement'));
17042
+ // Loop through the list of parties and their case queries collections
17043
+ QueryManagementUtils.extractCaseQueriesFromCaseField();
17044
+ }
17014
17045
  }
17015
17046
  }
17016
- QueryDetailComponent.ɵfac = function QueryDetailComponent_Factory(t) { return new (t || QueryDetailComponent)(); };
17017
- QueryDetailComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryDetailComponent, selectors: [["ccd-query-detail"]], decls: 0, vars: 0, template: function QueryDetailComponent_Template(rf, ctx) { }, encapsulation: 2 });
17018
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryDetailComponent, [{
17047
+ ReadQueryManagementFieldComponent.ɵfac = function ReadQueryManagementFieldComponent_Factory(t) { return new (t || ReadQueryManagementFieldComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute)); };
17048
+ ReadQueryManagementFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ReadQueryManagementFieldComponent, selectors: [["ccd-read-query-management-field"]], features: [i0.ɵɵ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) { if (rf & 1) {
17049
+ i0.ɵɵtemplate(0, ReadQueryManagementFieldComponent_ng_container_0_Template, 3, 1, "ng-container", 0);
17050
+ } if (rf & 2) {
17051
+ i0.ɵɵproperty("ngForOf", ctx.partyMessagesGroups);
17052
+ } }, encapsulation: 2 });
17053
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadQueryManagementFieldComponent, [{
17019
17054
  type: Component,
17020
17055
  args: [{
17021
- selector: 'ccd-query-detail',
17022
- templateUrl: './query-detail.component.html',
17056
+ selector: 'ccd-read-query-management-field',
17057
+ templateUrl: './read-query-management-field.component.html',
17023
17058
  }]
17024
- }], function () { return []; }, null); })();
17025
-
17026
- var SortOrder;
17027
- (function (SortOrder) {
17028
- SortOrder[SortOrder["ASCENDING"] = 0] = "ASCENDING";
17029
- SortOrder[SortOrder["DESCENDING"] = 1] = "DESCENDING";
17030
- SortOrder[SortOrder["UNSORTED"] = 2] = "UNSORTED";
17031
- })(SortOrder || (SortOrder = {}));
17059
+ }], function () { return [{ type: i1$1.ActivatedRoute }]; }, null); })();
17032
17060
 
17033
17061
  class QueryListItem {
17034
17062
  constructor() {
@@ -17088,305 +17116,194 @@ var QueryListResponseStatus;
17088
17116
  QueryListResponseStatus["RESPONDED"] = "Responded";
17089
17117
  })(QueryListResponseStatus || (QueryListResponseStatus = {}));
17090
17118
 
17091
- function QueryListComponent_ng_container_0_th_7_Template(rf, ctx) { if (rf & 1) {
17092
- const _r5 = i0.ɵɵgetCurrentView();
17093
- i0.ɵɵelementStart(0, "th", 8);
17094
- i0.ɵɵtext(1);
17095
- i0.ɵɵpipe(2, "rpxTranslate");
17096
- i0.ɵɵelementStart(3, "a", 9);
17097
- i0.ɵɵlistener("click", function QueryListComponent_ng_container_0_th_7_Template_a_click_3_listener() { i0.ɵɵrestoreView(_r5); const col_r3 = ctx.$implicit; const ctx_r4 = i0.ɵɵnextContext(2); return ctx_r4.sortTable(col_r3); });
17119
+ function WriteQueryManagementFieldComponent_p_23_Template(rf, ctx) { if (rf & 1) {
17120
+ i0.ɵɵelementStart(0, "p", 24);
17121
+ i0.ɵɵelementStart(1, "span", 25);
17122
+ i0.ɵɵtext(2, "Error:");
17098
17123
  i0.ɵɵelementEnd();
17124
+ i0.ɵɵtext(3, " Enter a response message ");
17099
17125
  i0.ɵɵelementEnd();
17100
- } if (rf & 2) {
17101
- const col_r3 = ctx.$implicit;
17102
- const ctx_r1 = i0.ɵɵnextContext(2);
17103
- i0.ɵɵadvance(1);
17104
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, col_r3.displayName), " ");
17105
- i0.ɵɵadvance(2);
17106
- i0.ɵɵproperty("innerHTML", ctx_r1.sortWidget(col_r3), i0.ɵɵsanitizeHtml);
17107
17126
  } }
17108
- function QueryListComponent_ng_container_0_tr_9_Template(rf, ctx) { if (rf & 1) {
17109
- i0.ɵɵelementStart(0, "tr", 4);
17110
- i0.ɵɵelementStart(1, "td", 10);
17111
- i0.ɵɵelementStart(2, "a", 11);
17112
- i0.ɵɵtext(3);
17113
- i0.ɵɵelementEnd();
17114
- i0.ɵɵelementEnd();
17115
- i0.ɵɵelementStart(4, "td", 12);
17116
- i0.ɵɵtext(5);
17117
- i0.ɵɵelementEnd();
17118
- i0.ɵɵelementStart(6, "td", 12);
17119
- i0.ɵɵtext(7);
17120
- i0.ɵɵpipe(8, "date");
17121
- i0.ɵɵelementEnd();
17122
- i0.ɵɵelementStart(9, "td", 12);
17123
- i0.ɵɵtext(10);
17124
- i0.ɵɵpipe(11, "date");
17127
+ function WriteQueryManagementFieldComponent_p_34_Template(rf, ctx) { if (rf & 1) {
17128
+ i0.ɵɵelementStart(0, "p", 26);
17129
+ i0.ɵɵelementStart(1, "span", 25);
17130
+ i0.ɵɵtext(2, "Error:");
17125
17131
  i0.ɵɵelementEnd();
17126
- i0.ɵɵelementStart(12, "td", 12);
17127
- i0.ɵɵtext(13);
17132
+ i0.ɵɵtext(3, " File error message ");
17128
17133
  i0.ɵɵelementEnd();
17134
+ } }
17135
+ class WriteQueryManagementFieldComponent extends AbstractFieldWriteComponent {
17136
+ constructor() {
17137
+ super();
17138
+ this.responseFormGroup = new FormGroup({
17139
+ response: new FormControl('', Validators.required),
17140
+ documents: new FormControl([], Validators.required)
17141
+ });
17142
+ this.queryItem = new QueryListItem();
17143
+ Object.assign(this.queryItem, partyMessagesMockData[0].partyMessages[0]);
17144
+ }
17145
+ }
17146
+ WriteQueryManagementFieldComponent.ɵfac = function WriteQueryManagementFieldComponent_Factory(t) { return new (t || WriteQueryManagementFieldComponent)(); };
17147
+ WriteQueryManagementFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteQueryManagementFieldComponent, selectors: [["ccd-write-query-management-field"]], features: [i0.ɵɵ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) { if (rf & 1) {
17148
+ i0.ɵɵelementStart(0, "div", 0);
17149
+ i0.ɵɵelementStart(1, "div", 1);
17150
+ i0.ɵɵelementStart(2, "a", 2);
17151
+ i0.ɵɵtext(3, "Back to tasks");
17152
+ i0.ɵɵelementEnd();
17153
+ i0.ɵɵelementEnd();
17154
+ i0.ɵɵelementStart(4, "div", 3);
17155
+ i0.ɵɵelementStart(5, "div", 4);
17156
+ i0.ɵɵtext(6, "Respond to query");
17157
+ i0.ɵɵelementEnd();
17158
+ i0.ɵɵelementStart(7, "h1", 5);
17159
+ i0.ɵɵtext(8, "Query details");
17160
+ i0.ɵɵelementEnd();
17161
+ i0.ɵɵelementStart(9, "div", 6);
17162
+ i0.ɵɵelementStart(10, "div", 7);
17163
+ i0.ɵɵtext(11);
17164
+ i0.ɵɵpipe(12, "ccdCaseReference");
17165
+ i0.ɵɵelementEnd();
17166
+ i0.ɵɵelementEnd();
17167
+ i0.ɵɵelementStart(13, "div");
17168
+ i0.ɵɵelement(14, "ccd-query-details-table", 8);
17169
+ i0.ɵɵelementEnd();
17170
+ i0.ɵɵelementEnd();
17171
+ i0.ɵɵelementStart(15, "div", 6);
17172
+ i0.ɵɵelementStart(16, "h1", 9);
17173
+ i0.ɵɵtext(17, "Respond to a query");
17174
+ i0.ɵɵelementEnd();
17175
+ i0.ɵɵelementStart(18, "div", 10);
17176
+ i0.ɵɵelementStart(19, "div", 11);
17177
+ i0.ɵɵelementStart(20, "div", 12);
17178
+ i0.ɵɵelementStart(21, "label", 13);
17179
+ i0.ɵɵtext(22, " Response message ");
17180
+ i0.ɵɵelementEnd();
17181
+ i0.ɵɵelementEnd();
17182
+ i0.ɵɵtemplate(23, WriteQueryManagementFieldComponent_p_23_Template, 4, 0, "p", 14);
17183
+ i0.ɵɵelementStart(24, "textarea", 15);
17184
+ i0.ɵɵtext(25, " ");
17185
+ i0.ɵɵelementEnd();
17186
+ i0.ɵɵelementEnd();
17187
+ i0.ɵɵelementStart(26, "div");
17188
+ i0.ɵɵelementStart(27, "div", 16);
17189
+ i0.ɵɵelementStart(28, "div", 12);
17190
+ i0.ɵɵelementStart(29, "label", 17);
17191
+ i0.ɵɵelementStart(30, "div", 18);
17192
+ i0.ɵɵtext(31, "Add document (optional)");
17193
+ i0.ɵɵelementEnd();
17194
+ i0.ɵɵelementStart(32, "div");
17195
+ i0.ɵɵtext(33, "Attach a document to this message");
17196
+ i0.ɵɵelementEnd();
17197
+ i0.ɵɵelementEnd();
17198
+ i0.ɵɵelementEnd();
17199
+ i0.ɵɵtemplate(34, WriteQueryManagementFieldComponent_p_34_Template, 4, 0, "p", 19);
17200
+ i0.ɵɵelement(35, "input", 20);
17201
+ i0.ɵɵelementEnd();
17202
+ i0.ɵɵelementEnd();
17203
+ i0.ɵɵelementStart(36, "button", 21);
17204
+ i0.ɵɵtext(37, " Next ");
17205
+ i0.ɵɵelementEnd();
17206
+ i0.ɵɵelementEnd();
17207
+ i0.ɵɵelementEnd();
17208
+ i0.ɵɵelementStart(38, "div");
17209
+ i0.ɵɵelementStart(39, "div", 22);
17210
+ i0.ɵɵelementStart(40, "button", 23);
17211
+ i0.ɵɵtext(41, " Previous ");
17212
+ i0.ɵɵelementEnd();
17213
+ i0.ɵɵelementStart(42, "button", 21);
17214
+ i0.ɵɵtext(43, " Continue ");
17215
+ i0.ɵɵelementEnd();
17216
+ i0.ɵɵelementEnd();
17217
+ i0.ɵɵelementEnd();
17218
+ i0.ɵɵelementStart(44, "div", 1);
17219
+ i0.ɵɵelementStart(45, "a", 2);
17220
+ i0.ɵɵtext(46, "Cancel and return to query list");
17221
+ i0.ɵɵelementEnd();
17222
+ i0.ɵɵelementEnd();
17223
+ i0.ɵɵelementEnd();
17224
+ } if (rf & 2) {
17225
+ let tmp_3_0 = null;
17226
+ let tmp_4_0 = null;
17227
+ let tmp_5_0 = null;
17228
+ let tmp_7_0 = null;
17229
+ let tmp_8_0 = null;
17230
+ i0.ɵɵadvance(11);
17231
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(12, 13, ctx.caseReference));
17232
+ i0.ɵɵadvance(3);
17233
+ i0.ɵɵproperty("queryItem", ctx.queryItem);
17234
+ i0.ɵɵadvance(4);
17235
+ i0.ɵɵproperty("formGroup", ctx.responseFormGroup);
17236
+ i0.ɵɵadvance(1);
17237
+ i0.ɵɵ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);
17238
+ i0.ɵɵadvance(4);
17239
+ i0.ɵɵproperty("ngIf", (tmp_4_0 = ctx.responseFormGroup.get("response")) == null ? null : tmp_4_0.errors == null ? null : tmp_4_0.errors.length);
17240
+ i0.ɵɵadvance(1);
17241
+ i0.ɵɵclassProp("govuk-textarea--error", (tmp_5_0 = ctx.responseFormGroup.get("response")) == null ? null : tmp_5_0.errors == null ? null : tmp_5_0.errors.length);
17242
+ i0.ɵɵproperty("formControlName", "response");
17243
+ i0.ɵɵadvance(3);
17244
+ i0.ɵɵ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);
17245
+ i0.ɵɵadvance(7);
17246
+ i0.ɵɵproperty("ngIf", (tmp_8_0 = ctx.responseFormGroup.get("response")) == null ? null : tmp_8_0.errors == null ? null : tmp_8_0.errors.length);
17247
+ i0.ɵɵadvance(6);
17248
+ i0.ɵɵproperty("disabled", true);
17249
+ } }, styles: [".response-textarea[_ngcontent-%COMP%]{max-width:576px}"] });
17250
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteQueryManagementFieldComponent, [{
17251
+ type: Component,
17252
+ args: [{
17253
+ selector: 'ccd-write-query-management-field',
17254
+ templateUrl: './write-query-management-field.component.html',
17255
+ styleUrls: ['./write-query-management-field.component.scss']
17256
+ }]
17257
+ }], function () { return []; }, null); })();
17258
+
17259
+ class ReadTextAreaFieldComponent extends AbstractFieldReadComponent {
17260
+ }
17261
+ ReadTextAreaFieldComponent.ɵfac = function ReadTextAreaFieldComponent_Factory(t) { return ɵReadTextAreaFieldComponent_BaseFactory(t || ReadTextAreaFieldComponent); };
17262
+ ReadTextAreaFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ReadTextAreaFieldComponent, selectors: [["ccd-read-text-area-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 2, vars: 1, consts: [[2, "white-space", "pre-wrap"]], template: function ReadTextAreaFieldComponent_Template(rf, ctx) { if (rf & 1) {
17263
+ i0.ɵɵelementStart(0, "span", 0);
17264
+ i0.ɵɵtext(1);
17265
+ i0.ɵɵelementEnd();
17266
+ } if (rf & 2) {
17267
+ i0.ɵɵadvance(1);
17268
+ i0.ɵɵtextInterpolate(ctx.caseField.value);
17269
+ } }, encapsulation: 2 });
17270
+ const ɵReadTextAreaFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(ReadTextAreaFieldComponent);
17271
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadTextAreaFieldComponent, [{
17272
+ type: Component,
17273
+ args: [{
17274
+ selector: 'ccd-read-text-area-field',
17275
+ template: `<span style="white-space: pre-wrap">{{caseField.value}}</span>`
17276
+ }]
17277
+ }], null, null); })();
17278
+
17279
+ function WriteTextAreaFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
17280
+ i0.ɵɵelementStart(0, "span", 6);
17281
+ i0.ɵɵtext(1);
17282
+ i0.ɵɵpipe(2, "ccdFieldLabel");
17129
17283
  i0.ɵɵelementEnd();
17130
17284
  } if (rf & 2) {
17131
- const message_r6 = ctx.$implicit;
17132
- i0.ɵɵadvance(3);
17133
- i0.ɵɵtextInterpolate(message_r6.subject);
17134
- i0.ɵɵadvance(2);
17135
- i0.ɵɵtextInterpolate(message_r6.lastSubmittedBy);
17136
- i0.ɵɵadvance(2);
17137
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(8, 5, message_r6.lastSubmittedDate, "dd MMM YYYY"));
17138
- i0.ɵɵadvance(3);
17139
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(11, 8, message_r6.lastResponseDate, "dd MMM YYYY"));
17140
- i0.ɵɵadvance(3);
17141
- i0.ɵɵtextInterpolate(message_r6.lastResponseBy);
17285
+ const ctx_r0 = i0.ɵɵnextContext();
17286
+ i0.ɵɵadvance(1);
17287
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
17142
17288
  } }
17143
- function QueryListComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
17144
- i0.ɵɵelementContainerStart(0);
17145
- i0.ɵɵelementStart(1, "table", 1);
17146
- i0.ɵɵelementStart(2, "caption", 2);
17147
- i0.ɵɵelementStart(3, "div");
17148
- i0.ɵɵtext(4);
17149
- i0.ɵɵelementEnd();
17150
- i0.ɵɵelementEnd();
17151
- i0.ɵɵelementStart(5, "thead", 3);
17152
- i0.ɵɵelementStart(6, "tr", 4);
17153
- i0.ɵɵtemplate(7, QueryListComponent_ng_container_0_th_7_Template, 4, 4, "th", 5);
17154
- i0.ɵɵelementEnd();
17155
- i0.ɵɵelementEnd();
17156
- i0.ɵɵelementStart(8, "tbody", 6);
17157
- i0.ɵɵtemplate(9, QueryListComponent_ng_container_0_tr_9_Template, 14, 11, "tr", 7);
17289
+ function WriteTextAreaFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
17290
+ i0.ɵɵelementStart(0, "span", 7);
17291
+ i0.ɵɵtext(1);
17158
17292
  i0.ɵɵelementEnd();
17293
+ } if (rf & 2) {
17294
+ const ctx_r1 = i0.ɵɵnextContext();
17295
+ i0.ɵɵadvance(1);
17296
+ i0.ɵɵtextInterpolate(ctx_r1.caseField.hint_text);
17297
+ } }
17298
+ function WriteTextAreaFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
17299
+ i0.ɵɵelementStart(0, "span", 8);
17300
+ i0.ɵɵtext(1);
17301
+ i0.ɵɵpipe(2, "ccdFirstError");
17159
17302
  i0.ɵɵelementEnd();
17160
- i0.ɵɵelementContainerEnd();
17161
17303
  } if (rf & 2) {
17162
- const ctx_r0 = i0.ɵɵnextContext();
17163
- i0.ɵɵadvance(4);
17164
- i0.ɵɵtextInterpolate(ctx_r0.queryListData.partyName);
17165
- i0.ɵɵadvance(3);
17166
- i0.ɵɵproperty("ngForOf", ctx_r0.displayedColumns);
17167
- i0.ɵɵadvance(2);
17168
- i0.ɵɵproperty("ngForOf", ctx_r0.queryListData.partyMessages);
17169
- } }
17170
- class QueryListComponent {
17171
- constructor() {
17172
- this.displayedColumns = [
17173
- { name: 'subject', displayName: 'Queries', sortOrder: SortOrder.UNSORTED },
17174
- { name: 'lastSubmittedBy', displayName: 'Last submitted by', sortOrder: SortOrder.UNSORTED },
17175
- { name: 'lastSubmittedDate', displayName: 'Last submission date', sortOrder: SortOrder.UNSORTED },
17176
- { name: 'lastResponseDate', displayName: 'Last response date', sortOrder: SortOrder.UNSORTED },
17177
- { name: 'lastResponseBy', displayName: 'Response by', sortOrder: SortOrder.UNSORTED }
17178
- ];
17179
- }
17180
- ngOnChanges(simpleChanges) {
17181
- var _a;
17182
- const currentPartyMessageGroup = (_a = simpleChanges.partyMessageGroup) === null || _a === void 0 ? void 0 : _a.currentValue;
17183
- if (currentPartyMessageGroup) {
17184
- this.queryListData = new QueryListData(currentPartyMessageGroup);
17185
- }
17186
- }
17187
- sortTable(col) {
17188
- switch (col.displayName) {
17189
- case 'Queries': {
17190
- this.sort(col);
17191
- break;
17192
- }
17193
- case 'Last submitted by': {
17194
- this.sort(col);
17195
- break;
17196
- }
17197
- case 'Last submission date': {
17198
- this.sortDate(col);
17199
- break;
17200
- }
17201
- case 'Last response date': {
17202
- this.sortDate(col);
17203
- break;
17204
- }
17205
- case 'Response by': {
17206
- this.sort(col);
17207
- break;
17208
- }
17209
- default: {
17210
- this.sort(col);
17211
- break;
17212
- }
17213
- }
17214
- }
17215
- sortWidget(col) {
17216
- switch (col.sortOrder) {
17217
- case SortOrder.DESCENDING: {
17218
- return '&#9660;';
17219
- }
17220
- case SortOrder.ASCENDING: {
17221
- return '&#9650;';
17222
- }
17223
- default: {
17224
- return '&#11047;';
17225
- }
17226
- }
17227
- }
17228
- sort(col) {
17229
- if (col.sortOrder === SortOrder.ASCENDING) {
17230
- this.queryListData.partyMessages.sort((a, b) => (a[col.name] < b[col.name]) ? 1 : -1);
17231
- this.displayedColumns.forEach((c) => c.sortOrder = SortOrder.UNSORTED);
17232
- col.sortOrder = SortOrder.DESCENDING;
17233
- }
17234
- else {
17235
- this.queryListData.partyMessages.sort((a, b) => (a[col.name] > b[col.name]) ? 1 : -1);
17236
- this.displayedColumns.forEach((c) => c.sortOrder = SortOrder.UNSORTED);
17237
- col.sortOrder = SortOrder.ASCENDING;
17238
- }
17239
- }
17240
- sortDate(col) {
17241
- if (col.sortOrder === SortOrder.ASCENDING) {
17242
- this.queryListData.partyMessages.sort((a, b) => b[col.name] - a[col.name]);
17243
- this.displayedColumns.forEach((c) => c.sortOrder = SortOrder.UNSORTED);
17244
- col.sortOrder = SortOrder.DESCENDING;
17245
- }
17246
- else {
17247
- this.queryListData.partyMessages.sort((a, b) => a[col.name] - b[col.name]);
17248
- this.displayedColumns.forEach((c) => c.sortOrder = SortOrder.UNSORTED);
17249
- col.sortOrder = SortOrder.ASCENDING;
17250
- }
17251
- }
17252
- }
17253
- QueryListComponent.ɵfac = function QueryListComponent_Factory(t) { return new (t || QueryListComponent)(); };
17254
- QueryListComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryListComponent, selectors: [["ccd-query-list"]], inputs: { partyMessageGroup: "partyMessageGroup" }, features: [i0.ɵɵ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) { if (rf & 1) {
17255
- i0.ɵɵtemplate(0, QueryListComponent_ng_container_0_Template, 10, 3, "ng-container", 0);
17256
- } if (rf & 2) {
17257
- i0.ɵɵproperty("ngIf", ctx.queryListData);
17258
- } }, directives: [i1.NgIf, i1.NgForOf], pipes: [i2$1.RpxTranslatePipe, i1.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}"] });
17259
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryListComponent, [{
17260
- type: Component,
17261
- args: [{
17262
- selector: 'ccd-query-list',
17263
- templateUrl: './query-list.component.html',
17264
- styleUrls: ['./query-list.component.scss']
17265
- }]
17266
- }], null, { partyMessageGroup: [{
17267
- type: Input
17268
- }] }); })();
17269
-
17270
- class QueryManagementUtils {
17271
- static extractCaseQueriesFromCaseField() {
17272
- }
17273
- }
17274
- QueryManagementUtils.ɵfac = function QueryManagementUtils_Factory(t) { return new (t || QueryManagementUtils)(); };
17275
- QueryManagementUtils.ɵprov = i0.ɵɵdefineInjectable({ token: QueryManagementUtils, factory: QueryManagementUtils.ɵfac });
17276
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryManagementUtils, [{
17277
- type: Injectable
17278
- }], null, null); })();
17279
-
17280
- function ReadQueryManagementFieldComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
17281
- i0.ɵɵelementContainerStart(0);
17282
- i0.ɵɵelementStart(1, "div", 1);
17283
- i0.ɵɵelement(2, "ccd-query-list", 2);
17284
- i0.ɵɵelementEnd();
17285
- i0.ɵɵelementContainerEnd();
17286
- } if (rf & 2) {
17287
- const singlePartyMessageGroup_r1 = ctx.$implicit;
17288
- i0.ɵɵadvance(2);
17289
- i0.ɵɵproperty("partyMessageGroup", singlePartyMessageGroup_r1);
17290
- } }
17291
- class ReadQueryManagementFieldComponent extends AbstractFieldReadComponent {
17292
- constructor(route) {
17293
- super();
17294
- this.route = route;
17295
- }
17296
- ngOnInit() {
17297
- if (this.context === PaletteContext.DEFAULT) {
17298
- // EUI-8303 Using mock data until CCD is ready with the API and data contract
17299
- this.partyMessagesGroups = partyMessagesMockData;
17300
- // TODO: Actual implementation once the CCD API and data contract is available
17301
- // Each parties will have a separate collection of party messages
17302
- // Find whether queries tab is available in the case data
17303
- const queriesTab = this.route.snapshot.data.case.tabs
17304
- .filter(tab => tab.fields && tab.fields
17305
- .some(caseField => caseField.id === 'QueryManagement'));
17306
- // Loop through the list of parties and their case queries collections
17307
- QueryManagementUtils.extractCaseQueriesFromCaseField();
17308
- }
17309
- }
17310
- }
17311
- ReadQueryManagementFieldComponent.ɵfac = function ReadQueryManagementFieldComponent_Factory(t) { return new (t || ReadQueryManagementFieldComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute)); };
17312
- ReadQueryManagementFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ReadQueryManagementFieldComponent, selectors: [["ccd-read-query-management-field"]], features: [i0.ɵɵ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) { if (rf & 1) {
17313
- i0.ɵɵtemplate(0, ReadQueryManagementFieldComponent_ng_container_0_Template, 3, 1, "ng-container", 0);
17314
- } if (rf & 2) {
17315
- i0.ɵɵproperty("ngForOf", ctx.partyMessagesGroups);
17316
- } }, encapsulation: 2 });
17317
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadQueryManagementFieldComponent, [{
17318
- type: Component,
17319
- args: [{
17320
- selector: 'ccd-read-query-management-field',
17321
- templateUrl: './read-query-management-field.component.html',
17322
- }]
17323
- }], function () { return [{ type: i1$1.ActivatedRoute }]; }, null); })();
17324
-
17325
- class WriteQueryManagementFieldComponent extends AbstractFieldWriteComponent {
17326
- constructor() {
17327
- super();
17328
- }
17329
- ngOnInit() {
17330
- }
17331
- }
17332
- WriteQueryManagementFieldComponent.ɵfac = function WriteQueryManagementFieldComponent_Factory(t) { return new (t || WriteQueryManagementFieldComponent)(); };
17333
- WriteQueryManagementFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteQueryManagementFieldComponent, selectors: [["ccd-write-query-management-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 0, vars: 0, template: function WriteQueryManagementFieldComponent_Template(rf, ctx) { }, encapsulation: 2 });
17334
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteQueryManagementFieldComponent, [{
17335
- type: Component,
17336
- args: [{
17337
- selector: 'ccd-write-query-management-field',
17338
- templateUrl: './write-query-management-field.component.html',
17339
- }]
17340
- }], function () { return []; }, null); })();
17341
-
17342
- class ReadTextAreaFieldComponent extends AbstractFieldReadComponent {
17343
- }
17344
- ReadTextAreaFieldComponent.ɵfac = function ReadTextAreaFieldComponent_Factory(t) { return ɵReadTextAreaFieldComponent_BaseFactory(t || ReadTextAreaFieldComponent); };
17345
- ReadTextAreaFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ReadTextAreaFieldComponent, selectors: [["ccd-read-text-area-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 2, vars: 1, consts: [[2, "white-space", "pre-wrap"]], template: function ReadTextAreaFieldComponent_Template(rf, ctx) { if (rf & 1) {
17346
- i0.ɵɵelementStart(0, "span", 0);
17347
- i0.ɵɵtext(1);
17348
- i0.ɵɵelementEnd();
17349
- } if (rf & 2) {
17350
- i0.ɵɵadvance(1);
17351
- i0.ɵɵtextInterpolate(ctx.caseField.value);
17352
- } }, encapsulation: 2 });
17353
- const ɵReadTextAreaFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(ReadTextAreaFieldComponent);
17354
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadTextAreaFieldComponent, [{
17355
- type: Component,
17356
- args: [{
17357
- selector: 'ccd-read-text-area-field',
17358
- template: `<span style="white-space: pre-wrap">{{caseField.value}}</span>`
17359
- }]
17360
- }], null, null); })();
17361
-
17362
- function WriteTextAreaFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
17363
- i0.ɵɵelementStart(0, "span", 6);
17364
- i0.ɵɵtext(1);
17365
- i0.ɵɵpipe(2, "ccdFieldLabel");
17366
- i0.ɵɵelementEnd();
17367
- } if (rf & 2) {
17368
- const ctx_r0 = i0.ɵɵnextContext();
17369
- i0.ɵɵadvance(1);
17370
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
17371
- } }
17372
- function WriteTextAreaFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
17373
- i0.ɵɵelementStart(0, "span", 7);
17374
- i0.ɵɵtext(1);
17375
- i0.ɵɵelementEnd();
17376
- } if (rf & 2) {
17377
- const ctx_r1 = i0.ɵɵnextContext();
17378
- i0.ɵɵadvance(1);
17379
- i0.ɵɵtextInterpolate(ctx_r1.caseField.hint_text);
17380
- } }
17381
- function WriteTextAreaFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
17382
- i0.ɵɵelementStart(0, "span", 8);
17383
- i0.ɵɵtext(1);
17384
- i0.ɵɵpipe(2, "ccdFirstError");
17385
- i0.ɵɵelementEnd();
17386
- } if (rf & 2) {
17387
- const ctx_r2 = i0.ɵɵnextContext();
17388
- i0.ɵɵadvance(1);
17389
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.textareaControl.errors, ctx_r2.caseField.label));
17304
+ const ctx_r2 = i0.ɵɵnextContext();
17305
+ i0.ɵɵadvance(1);
17306
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.textareaControl.errors, ctx_r2.caseField.label));
17390
17307
  } }
17391
17308
  const _c0$y = function (a0) { return { "form-group-error": a0 }; };
17392
17309
  const _c1$c = function (a0) { return { "govuk-textarea--error": a0 }; };
@@ -17751,7 +17668,8 @@ class PaletteService {
17751
17668
  this.componentLauncherRegistry = {
17752
17669
  [DisplayContextCustomParameter.CaseFileView]: [CaseFileViewFieldComponent, CaseFileViewFieldComponent],
17753
17670
  [DisplayContextCustomParameter.LinkedCases]: [WriteLinkedCasesFieldComponent, ReadLinkedCasesFieldComponent],
17754
- [DisplayContextCustomParameter.QueryManagement]: [WriteQueryManagementFieldComponent, ReadQueryManagementFieldComponent]
17671
+ [DisplayContextCustomParameter.QueryManagement]: [WriteQueryManagementFieldComponent, ReadQueryManagementFieldComponent],
17672
+ [DisplayContextCustomParameter.QueryManagementWriteTest]: [WriteQueryManagementFieldComponent, WriteQueryManagementFieldComponent]
17755
17673
  };
17756
17674
  }
17757
17675
  getFieldComponentClass(caseField, write) {
@@ -20517,6 +20435,13 @@ const ɵReadComplexFieldTableComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInh
20517
20435
  type: Input
20518
20436
  }] }); })();
20519
20437
 
20438
+ var SortOrder;
20439
+ (function (SortOrder) {
20440
+ SortOrder[SortOrder["ASCENDING"] = 0] = "ASCENDING";
20441
+ SortOrder[SortOrder["DESCENDING"] = 1] = "DESCENDING";
20442
+ SortOrder[SortOrder["UNSORTED"] = 2] = "UNSORTED";
20443
+ })(SortOrder || (SortOrder = {}));
20444
+
20520
20445
  function ReadComplexFieldCollectionTableComponent_th_9_Template(rf, ctx) { if (rf & 1) {
20521
20446
  const _r4 = i0.ɵɵgetCurrentView();
20522
20447
  i0.ɵɵelementStart(0, "th", 6);
@@ -22603,6 +22528,375 @@ FileUploadProgressGuard.ɵprov = i0.ɵɵdefineInjectable({ token: FileUploadProg
22603
22528
  type: Injectable
22604
22529
  }], function () { return [{ type: FileUploadStateService }, { type: WindowService }]; }, null); })();
22605
22530
 
22531
+ class QueryCreateComponent {
22532
+ constructor() {
22533
+ }
22534
+ ngOnInit() {
22535
+ }
22536
+ }
22537
+ QueryCreateComponent.ɵfac = function QueryCreateComponent_Factory(t) { return new (t || QueryCreateComponent)(); };
22538
+ QueryCreateComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryCreateComponent, selectors: [["ccd-query-create"]], decls: 0, vars: 0, template: function QueryCreateComponent_Template(rf, ctx) { }, encapsulation: 2 });
22539
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryCreateComponent, [{
22540
+ type: Component,
22541
+ args: [{
22542
+ selector: 'ccd-query-create',
22543
+ templateUrl: './query-create.component.html',
22544
+ }]
22545
+ }], function () { return []; }, null); })();
22546
+
22547
+ function QueryDetailsTableComponent_ng_container_0_div_39_Template(rf, ctx) { if (rf & 1) {
22548
+ i0.ɵɵelementStart(0, "div");
22549
+ i0.ɵɵelementStart(1, "a", 7);
22550
+ i0.ɵɵtext(2);
22551
+ i0.ɵɵelementEnd();
22552
+ i0.ɵɵelementEnd();
22553
+ } if (rf & 2) {
22554
+ const attachment_r2 = ctx.$implicit;
22555
+ i0.ɵɵadvance(1);
22556
+ i0.ɵɵproperty("href", attachment_r2._links.self.href, i0.ɵɵsanitizeUrl);
22557
+ i0.ɵɵadvance(1);
22558
+ i0.ɵɵtextInterpolate(attachment_r2.originalDocumentName);
22559
+ } }
22560
+ function QueryDetailsTableComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
22561
+ i0.ɵɵelementContainerStart(0);
22562
+ i0.ɵɵelementStart(1, "table", 1);
22563
+ i0.ɵɵelementStart(2, "tbody", 2);
22564
+ i0.ɵɵelementStart(3, "tr", 3);
22565
+ i0.ɵɵelementStart(4, "th", 4);
22566
+ i0.ɵɵtext(5, "Last submitted by");
22567
+ i0.ɵɵelementEnd();
22568
+ i0.ɵɵelementStart(6, "td", 5);
22569
+ i0.ɵɵtext(7);
22570
+ i0.ɵɵelementEnd();
22571
+ i0.ɵɵelementEnd();
22572
+ i0.ɵɵelementStart(8, "tr", 3);
22573
+ i0.ɵɵelementStart(9, "th", 4);
22574
+ i0.ɵɵtext(10, "Submission date");
22575
+ i0.ɵɵelementEnd();
22576
+ i0.ɵɵelementStart(11, "td", 5);
22577
+ i0.ɵɵtext(12);
22578
+ i0.ɵɵpipe(13, "date");
22579
+ i0.ɵɵelementEnd();
22580
+ i0.ɵɵelementEnd();
22581
+ i0.ɵɵelementStart(14, "tr", 3);
22582
+ i0.ɵɵelementStart(15, "th", 4);
22583
+ i0.ɵɵtext(16, "Query subject");
22584
+ i0.ɵɵelementEnd();
22585
+ i0.ɵɵelementStart(17, "td", 5);
22586
+ i0.ɵɵtext(18);
22587
+ i0.ɵɵelementEnd();
22588
+ i0.ɵɵelementEnd();
22589
+ i0.ɵɵelementStart(19, "tr", 3);
22590
+ i0.ɵɵelementStart(20, "th", 4);
22591
+ i0.ɵɵtext(21, "Query body");
22592
+ i0.ɵɵelementEnd();
22593
+ i0.ɵɵelementStart(22, "td", 5);
22594
+ i0.ɵɵtext(23);
22595
+ i0.ɵɵelementEnd();
22596
+ i0.ɵɵelementEnd();
22597
+ i0.ɵɵelementStart(24, "tr", 3);
22598
+ i0.ɵɵelementStart(25, "th", 4);
22599
+ i0.ɵɵtext(26, "Is the query hearing related?");
22600
+ i0.ɵɵelementEnd();
22601
+ i0.ɵɵelementStart(27, "td", 5);
22602
+ i0.ɵɵtext(28);
22603
+ i0.ɵɵelementEnd();
22604
+ i0.ɵɵelementEnd();
22605
+ i0.ɵɵelementStart(29, "tr", 3);
22606
+ i0.ɵɵelementStart(30, "th", 4);
22607
+ i0.ɵɵtext(31, "What is the date of the hearing your query related to?");
22608
+ i0.ɵɵelementEnd();
22609
+ i0.ɵɵelementStart(32, "td", 5);
22610
+ i0.ɵɵtext(33);
22611
+ i0.ɵɵpipe(34, "date");
22612
+ i0.ɵɵelementEnd();
22613
+ i0.ɵɵelementEnd();
22614
+ i0.ɵɵelementStart(35, "tr", 3);
22615
+ i0.ɵɵelementStart(36, "th", 4);
22616
+ i0.ɵɵtext(37, "Attachments");
22617
+ i0.ɵɵelementEnd();
22618
+ i0.ɵɵelementStart(38, "td", 5);
22619
+ i0.ɵɵtemplate(39, QueryDetailsTableComponent_ng_container_0_div_39_Template, 3, 2, "div", 6);
22620
+ i0.ɵɵelementEnd();
22621
+ i0.ɵɵelementEnd();
22622
+ i0.ɵɵelementEnd();
22623
+ i0.ɵɵelementEnd();
22624
+ i0.ɵɵelementContainerEnd();
22625
+ } if (rf & 2) {
22626
+ const ctx_r0 = i0.ɵɵnextContext();
22627
+ i0.ɵɵadvance(7);
22628
+ i0.ɵɵtextInterpolate(ctx_r0.queryItem.lastSubmittedBy);
22629
+ i0.ɵɵadvance(5);
22630
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(13, 7, ctx_r0.queryItem.createdOn, "d MMM yyyy"));
22631
+ i0.ɵɵadvance(6);
22632
+ i0.ɵɵtextInterpolate(ctx_r0.queryItem.subject);
22633
+ i0.ɵɵadvance(5);
22634
+ i0.ɵɵtextInterpolate(ctx_r0.queryItem.body);
22635
+ i0.ɵɵadvance(5);
22636
+ i0.ɵɵtextInterpolate(ctx_r0.queryItem.isHearingRelated ? "Yes" : "No");
22637
+ i0.ɵɵadvance(5);
22638
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(34, 10, ctx_r0.queryItem.hearingDate, "d MMM yyyy"));
22639
+ i0.ɵɵadvance(6);
22640
+ i0.ɵɵproperty("ngForOf", ctx_r0.queryItem.attachments);
22641
+ } }
22642
+ class QueryDetailsTableComponent {
22643
+ }
22644
+ QueryDetailsTableComponent.ɵfac = function QueryDetailsTableComponent_Factory(t) { return new (t || QueryDetailsTableComponent)(); };
22645
+ QueryDetailsTableComponent.ɵcmp = i0.ɵɵ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) { if (rf & 1) {
22646
+ i0.ɵɵtemplate(0, QueryDetailsTableComponent_ng_container_0_Template, 40, 13, "ng-container", 0);
22647
+ } if (rf & 2) {
22648
+ i0.ɵɵproperty("ngIf", ctx.queryItem);
22649
+ } }, directives: [i1.NgIf, i1.NgForOf], pipes: [i1.DatePipe], styles: [".query-details-table[_ngcontent-%COMP%] .govuk-table__header[_ngcontent-%COMP%]{width:330px}"] });
22650
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryDetailsTableComponent, [{
22651
+ type: Component,
22652
+ args: [{
22653
+ selector: 'ccd-query-details-table',
22654
+ templateUrl: './query-details-table.component.html',
22655
+ styleUrls: ['./query-details-table.component.scss']
22656
+ }]
22657
+ }], null, { queryItem: [{
22658
+ type: Input
22659
+ }] }); })();
22660
+
22661
+ class QueryDetailsComponent {
22662
+ }
22663
+ QueryDetailsComponent.ɵfac = function QueryDetailsComponent_Factory(t) { return new (t || QueryDetailsComponent)(); };
22664
+ QueryDetailsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryDetailsComponent, selectors: [["ccd-query-details"]], decls: 2, vars: 0, template: function QueryDetailsComponent_Template(rf, ctx) { if (rf & 1) {
22665
+ i0.ɵɵelementStart(0, "p");
22666
+ i0.ɵɵtext(1, "query-details works!");
22667
+ i0.ɵɵelementEnd();
22668
+ } }, encapsulation: 2 });
22669
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryDetailsComponent, [{
22670
+ type: Component,
22671
+ args: [{
22672
+ selector: 'ccd-query-details',
22673
+ templateUrl: './query-details.component.html'
22674
+ }]
22675
+ }], null, null); })();
22676
+
22677
+ function QueryListComponent_ng_container_0_th_7_Template(rf, ctx) { if (rf & 1) {
22678
+ const _r5 = i0.ɵɵgetCurrentView();
22679
+ i0.ɵɵelementStart(0, "th", 8);
22680
+ i0.ɵɵtext(1);
22681
+ i0.ɵɵpipe(2, "rpxTranslate");
22682
+ i0.ɵɵelementStart(3, "a", 9);
22683
+ i0.ɵɵlistener("click", function QueryListComponent_ng_container_0_th_7_Template_a_click_3_listener() { i0.ɵɵrestoreView(_r5); const col_r3 = ctx.$implicit; const ctx_r4 = i0.ɵɵnextContext(2); return ctx_r4.sortTable(col_r3); });
22684
+ i0.ɵɵelementEnd();
22685
+ i0.ɵɵelementEnd();
22686
+ } if (rf & 2) {
22687
+ const col_r3 = ctx.$implicit;
22688
+ const ctx_r1 = i0.ɵɵnextContext(2);
22689
+ i0.ɵɵadvance(1);
22690
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, col_r3.displayName), " ");
22691
+ i0.ɵɵadvance(2);
22692
+ i0.ɵɵproperty("innerHTML", ctx_r1.sortWidget(col_r3), i0.ɵɵsanitizeHtml);
22693
+ } }
22694
+ function QueryListComponent_ng_container_0_tr_9_Template(rf, ctx) { if (rf & 1) {
22695
+ i0.ɵɵelementStart(0, "tr", 4);
22696
+ i0.ɵɵelementStart(1, "td", 10);
22697
+ i0.ɵɵelementStart(2, "a", 11);
22698
+ i0.ɵɵtext(3);
22699
+ i0.ɵɵelementEnd();
22700
+ i0.ɵɵelementEnd();
22701
+ i0.ɵɵelementStart(4, "td", 12);
22702
+ i0.ɵɵtext(5);
22703
+ i0.ɵɵelementEnd();
22704
+ i0.ɵɵelementStart(6, "td", 12);
22705
+ i0.ɵɵtext(7);
22706
+ i0.ɵɵpipe(8, "date");
22707
+ i0.ɵɵelementEnd();
22708
+ i0.ɵɵelementStart(9, "td", 12);
22709
+ i0.ɵɵtext(10);
22710
+ i0.ɵɵpipe(11, "date");
22711
+ i0.ɵɵelementEnd();
22712
+ i0.ɵɵelementStart(12, "td", 12);
22713
+ i0.ɵɵtext(13);
22714
+ i0.ɵɵelementEnd();
22715
+ i0.ɵɵelementEnd();
22716
+ } if (rf & 2) {
22717
+ const message_r6 = ctx.$implicit;
22718
+ i0.ɵɵadvance(3);
22719
+ i0.ɵɵtextInterpolate(message_r6.subject);
22720
+ i0.ɵɵadvance(2);
22721
+ i0.ɵɵtextInterpolate(message_r6.lastSubmittedBy);
22722
+ i0.ɵɵadvance(2);
22723
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(8, 5, message_r6.lastSubmittedDate, "dd MMM YYYY"));
22724
+ i0.ɵɵadvance(3);
22725
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(11, 8, message_r6.lastResponseDate, "dd MMM YYYY"));
22726
+ i0.ɵɵadvance(3);
22727
+ i0.ɵɵtextInterpolate(message_r6.lastResponseBy);
22728
+ } }
22729
+ function QueryListComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
22730
+ i0.ɵɵelementContainerStart(0);
22731
+ i0.ɵɵelementStart(1, "table", 1);
22732
+ i0.ɵɵelementStart(2, "caption", 2);
22733
+ i0.ɵɵelementStart(3, "div");
22734
+ i0.ɵɵtext(4);
22735
+ i0.ɵɵelementEnd();
22736
+ i0.ɵɵelementEnd();
22737
+ i0.ɵɵelementStart(5, "thead", 3);
22738
+ i0.ɵɵelementStart(6, "tr", 4);
22739
+ i0.ɵɵtemplate(7, QueryListComponent_ng_container_0_th_7_Template, 4, 4, "th", 5);
22740
+ i0.ɵɵelementEnd();
22741
+ i0.ɵɵelementEnd();
22742
+ i0.ɵɵelementStart(8, "tbody", 6);
22743
+ i0.ɵɵtemplate(9, QueryListComponent_ng_container_0_tr_9_Template, 14, 11, "tr", 7);
22744
+ i0.ɵɵelementEnd();
22745
+ i0.ɵɵelementEnd();
22746
+ i0.ɵɵelementContainerEnd();
22747
+ } if (rf & 2) {
22748
+ const ctx_r0 = i0.ɵɵnextContext();
22749
+ i0.ɵɵadvance(4);
22750
+ i0.ɵɵtextInterpolate(ctx_r0.queryListData.partyName);
22751
+ i0.ɵɵadvance(3);
22752
+ i0.ɵɵproperty("ngForOf", ctx_r0.displayedColumns);
22753
+ i0.ɵɵadvance(2);
22754
+ i0.ɵɵproperty("ngForOf", ctx_r0.queryListData.partyMessages);
22755
+ } }
22756
+ class QueryListComponent {
22757
+ constructor() {
22758
+ this.displayedColumns = [
22759
+ { name: 'subject', displayName: 'Queries', sortOrder: SortOrder.UNSORTED },
22760
+ { name: 'lastSubmittedBy', displayName: 'Last submitted by', sortOrder: SortOrder.UNSORTED },
22761
+ { name: 'lastSubmittedDate', displayName: 'Last submission date', sortOrder: SortOrder.UNSORTED },
22762
+ { name: 'lastResponseDate', displayName: 'Last response date', sortOrder: SortOrder.UNSORTED },
22763
+ { name: 'lastResponseBy', displayName: 'Response by', sortOrder: SortOrder.UNSORTED }
22764
+ ];
22765
+ }
22766
+ ngOnChanges(simpleChanges) {
22767
+ var _a;
22768
+ const currentPartyMessageGroup = (_a = simpleChanges.partyMessageGroup) === null || _a === void 0 ? void 0 : _a.currentValue;
22769
+ if (currentPartyMessageGroup) {
22770
+ this.queryListData = new QueryListData(currentPartyMessageGroup);
22771
+ }
22772
+ }
22773
+ sortTable(col) {
22774
+ switch (col.displayName) {
22775
+ case 'Queries': {
22776
+ this.sort(col);
22777
+ break;
22778
+ }
22779
+ case 'Last submitted by': {
22780
+ this.sort(col);
22781
+ break;
22782
+ }
22783
+ case 'Last submission date': {
22784
+ this.sortDate(col);
22785
+ break;
22786
+ }
22787
+ case 'Last response date': {
22788
+ this.sortDate(col);
22789
+ break;
22790
+ }
22791
+ case 'Response by': {
22792
+ this.sort(col);
22793
+ break;
22794
+ }
22795
+ default: {
22796
+ this.sort(col);
22797
+ break;
22798
+ }
22799
+ }
22800
+ }
22801
+ sortWidget(col) {
22802
+ switch (col.sortOrder) {
22803
+ case SortOrder.DESCENDING: {
22804
+ return '&#9660;';
22805
+ }
22806
+ case SortOrder.ASCENDING: {
22807
+ return '&#9650;';
22808
+ }
22809
+ default: {
22810
+ return '&#11047;';
22811
+ }
22812
+ }
22813
+ }
22814
+ sort(col) {
22815
+ if (col.sortOrder === SortOrder.ASCENDING) {
22816
+ this.queryListData.partyMessages.sort((a, b) => (a[col.name] < b[col.name]) ? 1 : -1);
22817
+ this.displayedColumns.forEach((c) => c.sortOrder = SortOrder.UNSORTED);
22818
+ col.sortOrder = SortOrder.DESCENDING;
22819
+ }
22820
+ else {
22821
+ this.queryListData.partyMessages.sort((a, b) => (a[col.name] > b[col.name]) ? 1 : -1);
22822
+ this.displayedColumns.forEach((c) => c.sortOrder = SortOrder.UNSORTED);
22823
+ col.sortOrder = SortOrder.ASCENDING;
22824
+ }
22825
+ }
22826
+ sortDate(col) {
22827
+ if (col.sortOrder === SortOrder.ASCENDING) {
22828
+ this.queryListData.partyMessages.sort((a, b) => b[col.name] - a[col.name]);
22829
+ this.displayedColumns.forEach((c) => c.sortOrder = SortOrder.UNSORTED);
22830
+ col.sortOrder = SortOrder.DESCENDING;
22831
+ }
22832
+ else {
22833
+ this.queryListData.partyMessages.sort((a, b) => a[col.name] - b[col.name]);
22834
+ this.displayedColumns.forEach((c) => c.sortOrder = SortOrder.UNSORTED);
22835
+ col.sortOrder = SortOrder.ASCENDING;
22836
+ }
22837
+ }
22838
+ }
22839
+ QueryListComponent.ɵfac = function QueryListComponent_Factory(t) { return new (t || QueryListComponent)(); };
22840
+ QueryListComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryListComponent, selectors: [["ccd-query-list"]], inputs: { partyMessageGroup: "partyMessageGroup" }, features: [i0.ɵɵ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) { if (rf & 1) {
22841
+ i0.ɵɵtemplate(0, QueryListComponent_ng_container_0_Template, 10, 3, "ng-container", 0);
22842
+ } if (rf & 2) {
22843
+ i0.ɵɵproperty("ngIf", ctx.queryListData);
22844
+ } }, directives: [i1.NgIf, i1.NgForOf], pipes: [i2$1.RpxTranslatePipe, i1.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}"] });
22845
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryListComponent, [{
22846
+ type: Component,
22847
+ args: [{
22848
+ selector: 'ccd-query-list',
22849
+ templateUrl: './query-list.component.html',
22850
+ styleUrls: ['./query-list.component.scss']
22851
+ }]
22852
+ }], null, { partyMessageGroup: [{
22853
+ type: Input
22854
+ }] }); })();
22855
+
22856
+ class QueryManagementModule {
22857
+ }
22858
+ QueryManagementModule.ɵfac = function QueryManagementModule_Factory(t) { return new (t || QueryManagementModule)(); };
22859
+ QueryManagementModule.ɵmod = i0.ɵɵdefineNgModule({ type: QueryManagementModule });
22860
+ QueryManagementModule.ɵinj = i0.ɵɵdefineInjector({ imports: [[
22861
+ CommonModule,
22862
+ ReactiveFormsModule,
22863
+ RpxTranslationModule.forChild(),
22864
+ PipesModule
22865
+ ]] });
22866
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(QueryManagementModule, { declarations: [ReadQueryManagementFieldComponent,
22867
+ WriteQueryManagementFieldComponent,
22868
+ QueryDetailsComponent,
22869
+ QueryCreateComponent,
22870
+ QueryListComponent,
22871
+ QueryDetailsTableComponent], imports: [CommonModule,
22872
+ ReactiveFormsModule, i2$1.RpxTranslationModule, PipesModule], exports: [ReadQueryManagementFieldComponent,
22873
+ WriteQueryManagementFieldComponent] }); })();
22874
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryManagementModule, [{
22875
+ type: NgModule,
22876
+ args: [{
22877
+ declarations: [
22878
+ ReadQueryManagementFieldComponent,
22879
+ WriteQueryManagementFieldComponent,
22880
+ QueryDetailsComponent,
22881
+ QueryCreateComponent,
22882
+ QueryListComponent,
22883
+ QueryDetailsTableComponent,
22884
+ ],
22885
+ imports: [
22886
+ CommonModule,
22887
+ ReactiveFormsModule,
22888
+ RpxTranslationModule.forChild(),
22889
+ PipesModule
22890
+ ],
22891
+ exports: [
22892
+ ReadQueryManagementFieldComponent,
22893
+ WriteQueryManagementFieldComponent
22894
+ ],
22895
+ }]
22896
+ }], null, null); })();
22897
+ i0.ɵɵsetComponentScope(ReadQueryManagementFieldComponent, [i1.NgForOf, QueryListComponent], []);
22898
+ i0.ɵɵsetComponentScope(WriteQueryManagementFieldComponent, [QueryDetailsTableComponent, i3.NgControlStatusGroup, i3.FormGroupDirective, i1.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.FormControlName], [CaseReferencePipe]);
22899
+
22606
22900
  const PALETTE_COMPONENTS = [
22607
22901
  UnsupportedFieldComponent,
22608
22902
  DatetimePickerComponent,
@@ -22648,7 +22942,6 @@ const PALETTE_COMPONENTS = [
22648
22942
  ReadComplexFieldCollectionTableComponent,
22649
22943
  ReadCaseFlagFieldComponent,
22650
22944
  ReadLinkedCasesFieldComponent,
22651
- ReadQueryManagementFieldComponent,
22652
22945
  // Write
22653
22946
  WriteJudicialUserFieldComponent,
22654
22947
  WriteAddressFieldComponent,
@@ -22668,7 +22961,6 @@ const PALETTE_COMPONENTS = [
22668
22961
  WriteDateFieldComponent,
22669
22962
  WriteCaseFlagFieldComponent,
22670
22963
  WriteLinkedCasesFieldComponent,
22671
- WriteQueryManagementFieldComponent,
22672
22964
  // new
22673
22965
  WriteYesNoFieldComponent,
22674
22966
  WriteOrganisationFieldComponent,
@@ -22712,10 +23004,6 @@ const PALETTE_COMPONENTS = [
22712
23004
  CheckYourAnswersComponent,
22713
23005
  UnLinkCasesComponent,
22714
23006
  NoLinkedCasesComponent,
22715
- // Components for query management
22716
- QueryCreateComponent,
22717
- QueryDetailComponent,
22718
- QueryListComponent
22719
23007
  ];
22720
23008
  class PaletteModule {
22721
23009
  }
@@ -22765,7 +23053,8 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
22765
23053
  MatDialogModule,
22766
23054
  MediaViewerModule,
22767
23055
  LoadingModule,
22768
- RpxTranslationModule.forChild()
23056
+ RpxTranslationModule.forChild(),
23057
+ QueryManagementModule
22769
23058
  ], NgxMatDatetimePickerModule,
22770
23059
  NgxMatNativeDateModule,
22771
23060
  NgxMatTimepickerModule,
@@ -22820,7 +23109,6 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
22820
23109
  ReadComplexFieldCollectionTableComponent,
22821
23110
  ReadCaseFlagFieldComponent,
22822
23111
  ReadLinkedCasesFieldComponent,
22823
- ReadQueryManagementFieldComponent,
22824
23112
  // Write
22825
23113
  WriteJudicialUserFieldComponent,
22826
23114
  WriteAddressFieldComponent,
@@ -22840,7 +23128,6 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
22840
23128
  WriteDateFieldComponent,
22841
23129
  WriteCaseFlagFieldComponent,
22842
23130
  WriteLinkedCasesFieldComponent,
22843
- WriteQueryManagementFieldComponent,
22844
23131
  // new
22845
23132
  WriteYesNoFieldComponent,
22846
23133
  WriteOrganisationFieldComponent,
@@ -22883,11 +23170,7 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
22883
23170
  LinkCasesComponent,
22884
23171
  CheckYourAnswersComponent,
22885
23172
  UnLinkCasesComponent,
22886
- NoLinkedCasesComponent,
22887
- // Components for query management
22888
- QueryCreateComponent,
22889
- QueryDetailComponent,
22890
- QueryListComponent], imports: [CommonModule,
23173
+ NoLinkedCasesComponent], imports: [CommonModule,
22891
23174
  RouterModule,
22892
23175
  FormsModule,
22893
23176
  ReactiveFormsModule,
@@ -22913,7 +23196,7 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
22913
23196
  OverlayModule,
22914
23197
  PaymentLibModule, i2.ScrollToModule, MatDialogModule,
22915
23198
  MediaViewerModule,
22916
- LoadingModule, i2$1.RpxTranslationModule], exports: [NgxMatDatetimePickerModule,
23199
+ LoadingModule, i2$1.RpxTranslationModule, QueryManagementModule], exports: [NgxMatDatetimePickerModule,
22917
23200
  NgxMatNativeDateModule,
22918
23201
  NgxMatTimepickerModule,
22919
23202
  TabsModule,
@@ -22962,7 +23245,6 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
22962
23245
  ReadComplexFieldCollectionTableComponent,
22963
23246
  ReadCaseFlagFieldComponent,
22964
23247
  ReadLinkedCasesFieldComponent,
22965
- ReadQueryManagementFieldComponent,
22966
23248
  // Write
22967
23249
  WriteJudicialUserFieldComponent,
22968
23250
  WriteAddressFieldComponent,
@@ -22982,7 +23264,6 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
22982
23264
  WriteDateFieldComponent,
22983
23265
  WriteCaseFlagFieldComponent,
22984
23266
  WriteLinkedCasesFieldComponent,
22985
- WriteQueryManagementFieldComponent,
22986
23267
  // new
22987
23268
  WriteYesNoFieldComponent,
22988
23269
  WriteOrganisationFieldComponent,
@@ -23025,11 +23306,7 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
23025
23306
  LinkCasesComponent,
23026
23307
  CheckYourAnswersComponent,
23027
23308
  UnLinkCasesComponent,
23028
- NoLinkedCasesComponent,
23029
- // Components for query management
23030
- QueryCreateComponent,
23031
- QueryDetailComponent,
23032
- QueryListComponent] }); })();
23309
+ NoLinkedCasesComponent] }); })();
23033
23310
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaletteModule, [{
23034
23311
  type: NgModule,
23035
23312
  args: [{
@@ -23063,7 +23340,8 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
23063
23340
  MatDialogModule,
23064
23341
  MediaViewerModule,
23065
23342
  LoadingModule,
23066
- RpxTranslationModule.forChild()
23343
+ RpxTranslationModule.forChild(),
23344
+ QueryManagementModule
23067
23345
  ],
23068
23346
  declarations: [
23069
23347
  FixedListPipe,
@@ -23122,7 +23400,6 @@ i0.ɵɵsetComponentScope(ReadCaseFlagFieldComponent, [i1.NgSwitch, i1.NgSwitchCa
23122
23400
  i0.ɵɵsetComponentScope(ReadLinkedCasesFieldComponent, [
23123
23401
  // Components for linked cases
23124
23402
  LinkedCasesToTableComponent, i1.NgIf, LinkedCasesFromTableComponent], []);
23125
- i0.ɵɵsetComponentScope(ReadQueryManagementFieldComponent, [i1.NgForOf, QueryListComponent], []);
23126
23403
  i0.ɵɵsetComponentScope(WriteAddressFieldComponent, [i1.NgIf, i1.NgClass, i3.DefaultValueAccessor, i3.NgControlStatus, i3.FormControlDirective, i3.SelectControlValueAccessor, i1.NgForOf, i3.NgSelectOption, i3.ɵangular_packages_forms_forms_z, WriteComplexFieldComponent, i3.NgControlStatusGroup, i3.FormGroupDirective], [FieldLabelPipe]);
23127
23404
  i0.ɵɵsetComponentScope(WriteComplexFieldComponent, [i1.NgIf, i1.NgForOf, i1.NgSwitch, i1.NgSwitchCase, FieldReadComponent, LabelSubstitutorDirective, i3.NgControlStatusGroup, i3.FormGroupDirective, FieldWriteComponent], [FieldLabelPipe, IsReadOnlyPipe]);
23128
23405
  i0.ɵɵsetComponentScope(WriteDocumentFieldComponent, [i1.NgClass, i1.NgIf, ReadDocumentFieldComponent], [FieldLabelPipe]);
@@ -31842,5 +32119,5 @@ class TestRouteSnapshotBuilder {
31842
32119
  * Generated bundle index. Do not edit.
31843
32120
  */
31844
32121
 
31845
- 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, CaseFlagFieldState, 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, 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, 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, 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, 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, MarkdownComponent, 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, QueryCreateComponent, QueryDetailComponent, QueryListComponent, QueryListData, QueryListItem, QueryListResponseStatus, 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, UpdateFlagComponent, UpdateFlagErrorMessage, UpdateFlagStep, 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 };
32122
+ 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, CaseFlagFieldState, 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, 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, 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, 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, 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, MarkdownComponent, 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, 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, UpdateFlagComponent, UpdateFlagErrorMessage, UpdateFlagStep, 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, textFieldType, viewerRouting };
31846
32123
  //# sourceMappingURL=hmcts-ccd-case-ui-toolkit.js.map