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

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 +703 -326
  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 +143 -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 +178 -5
  24. package/esm2015/lib/shared/domain/definition/display-context-enum.model.js +2 -1
  25. package/fesm2015/hmcts-ccd-case-ui-toolkit.js +676 -328
  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,286 +17116,222 @@ 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_28_Template(rf, ctx) { if (rf & 1) {
17120
+ i0.ɵɵelementStart(0, "p", 24);
17121
+ i0.ɵɵelementStart(1, "span", 25);
17122
+ i0.ɵɵtext(2);
17123
+ i0.ɵɵpipe(3, "rpxTranslate");
17098
17124
  i0.ɵɵelementEnd();
17125
+ i0.ɵɵtext(4);
17126
+ i0.ɵɵpipe(5, "rpxTranslate");
17099
17127
  i0.ɵɵelementEnd();
17100
17128
  } 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
17129
  i0.ɵɵadvance(2);
17106
- i0.ɵɵproperty("innerHTML", ctx_r1.sortWidget(col_r3), i0.ɵɵsanitizeHtml);
17130
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Error:"));
17131
+ i0.ɵɵadvance(2);
17132
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, "Enter a response message"), " ");
17107
17133
  } }
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");
17125
- i0.ɵɵelementEnd();
17126
- i0.ɵɵelementStart(12, "td", 12);
17127
- i0.ɵɵtext(13);
17134
+ function WriteQueryManagementFieldComponent_p_41_Template(rf, ctx) { if (rf & 1) {
17135
+ i0.ɵɵelementStart(0, "p", 26);
17136
+ i0.ɵɵelementStart(1, "span", 25);
17137
+ i0.ɵɵtext(2);
17138
+ i0.ɵɵpipe(3, "rpxTranslate");
17128
17139
  i0.ɵɵelementEnd();
17140
+ i0.ɵɵtext(4);
17141
+ i0.ɵɵpipe(5, "rpxTranslate");
17129
17142
  i0.ɵɵelementEnd();
17130
17143
  } if (rf & 2) {
17131
- const message_r6 = ctx.$implicit;
17132
- i0.ɵɵadvance(3);
17133
- i0.ɵɵtextInterpolate(message_r6.subject);
17134
17144
  i0.ɵɵadvance(2);
17135
- i0.ɵɵtextInterpolate(message_r6.lastSubmittedBy);
17145
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Error:"));
17136
17146
  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);
17147
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, "File error message"), " ");
17142
17148
  } }
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);
17158
- i0.ɵɵelementEnd();
17149
+ class WriteQueryManagementFieldComponent extends AbstractFieldWriteComponent {
17150
+ constructor() {
17151
+ super();
17152
+ this.responseFormGroup = new FormGroup({
17153
+ response: new FormControl('', Validators.required),
17154
+ documents: new FormControl([], Validators.required)
17155
+ });
17156
+ this.queryItem = new QueryListItem();
17157
+ Object.assign(this.queryItem, partyMessagesMockData[0].partyMessages[0]);
17158
+ }
17159
+ }
17160
+ WriteQueryManagementFieldComponent.ɵfac = function WriteQueryManagementFieldComponent_Factory(t) { return new (t || WriteQueryManagementFieldComponent)(); };
17161
+ WriteQueryManagementFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteQueryManagementFieldComponent, selectors: [["ccd-write-query-management-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 58, vars: 48, 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", "query-response", 1, "govuk-label", "govuk-!-font-weight-bold"], ["id", "query-response-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "query-response", "name", "query-response", "rows", "5", "aria-describedby", "query-response-hint query-response-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", "query-response-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) {
17162
+ i0.ɵɵelementStart(0, "div", 0);
17163
+ i0.ɵɵelementStart(1, "div", 1);
17164
+ i0.ɵɵelementStart(2, "a", 2);
17165
+ i0.ɵɵtext(3);
17166
+ i0.ɵɵpipe(4, "rpxTranslate");
17167
+ i0.ɵɵelementEnd();
17168
+ i0.ɵɵelementEnd();
17169
+ i0.ɵɵelementStart(5, "div", 3);
17170
+ i0.ɵɵelementStart(6, "div", 4);
17171
+ i0.ɵɵtext(7);
17172
+ i0.ɵɵpipe(8, "rpxTranslate");
17173
+ i0.ɵɵelementEnd();
17174
+ i0.ɵɵelementStart(9, "h1", 5);
17175
+ i0.ɵɵtext(10);
17176
+ i0.ɵɵpipe(11, "rpxTranslate");
17177
+ i0.ɵɵelementEnd();
17178
+ i0.ɵɵelementStart(12, "div", 6);
17179
+ i0.ɵɵelementStart(13, "div", 7);
17180
+ i0.ɵɵtext(14);
17181
+ i0.ɵɵpipe(15, "ccdCaseReference");
17182
+ i0.ɵɵelementEnd();
17183
+ i0.ɵɵelementEnd();
17184
+ i0.ɵɵelementStart(16, "div");
17185
+ i0.ɵɵelement(17, "ccd-query-details-table", 8);
17186
+ i0.ɵɵelementEnd();
17187
+ i0.ɵɵelementEnd();
17188
+ i0.ɵɵelementStart(18, "div", 6);
17189
+ i0.ɵɵelementStart(19, "h1", 9);
17190
+ i0.ɵɵtext(20);
17191
+ i0.ɵɵpipe(21, "rpxTranslate");
17192
+ i0.ɵɵelementEnd();
17193
+ i0.ɵɵelementStart(22, "div", 10);
17194
+ i0.ɵɵelementStart(23, "div", 11);
17195
+ i0.ɵɵelementStart(24, "div", 12);
17196
+ i0.ɵɵelementStart(25, "label", 13);
17197
+ i0.ɵɵtext(26);
17198
+ i0.ɵɵpipe(27, "rpxTranslate");
17199
+ i0.ɵɵelementEnd();
17200
+ i0.ɵɵelementEnd();
17201
+ i0.ɵɵtemplate(28, WriteQueryManagementFieldComponent_p_28_Template, 6, 6, "p", 14);
17202
+ i0.ɵɵelementStart(29, "textarea", 15);
17203
+ i0.ɵɵtext(30, " ");
17204
+ i0.ɵɵelementEnd();
17205
+ i0.ɵɵelementEnd();
17206
+ i0.ɵɵelementStart(31, "div");
17207
+ i0.ɵɵelementStart(32, "div", 16);
17208
+ i0.ɵɵelementStart(33, "div", 12);
17209
+ i0.ɵɵelementStart(34, "label", 17);
17210
+ i0.ɵɵelementStart(35, "div", 18);
17211
+ i0.ɵɵtext(36);
17212
+ i0.ɵɵpipe(37, "rpxTranslate");
17213
+ i0.ɵɵelementEnd();
17214
+ i0.ɵɵelementStart(38, "div");
17215
+ i0.ɵɵtext(39);
17216
+ i0.ɵɵpipe(40, "rpxTranslate");
17217
+ i0.ɵɵelementEnd();
17218
+ i0.ɵɵelementEnd();
17219
+ i0.ɵɵelementEnd();
17220
+ i0.ɵɵtemplate(41, WriteQueryManagementFieldComponent_p_41_Template, 6, 6, "p", 19);
17221
+ i0.ɵɵelement(42, "input", 20);
17222
+ i0.ɵɵelementEnd();
17223
+ i0.ɵɵelementEnd();
17224
+ i0.ɵɵelementStart(43, "button", 21);
17225
+ i0.ɵɵtext(44);
17226
+ i0.ɵɵpipe(45, "rpxTranslate");
17227
+ i0.ɵɵelementEnd();
17228
+ i0.ɵɵelementEnd();
17229
+ i0.ɵɵelementEnd();
17230
+ i0.ɵɵelementStart(46, "div");
17231
+ i0.ɵɵelementStart(47, "div", 22);
17232
+ i0.ɵɵelementStart(48, "button", 23);
17233
+ i0.ɵɵtext(49);
17234
+ i0.ɵɵpipe(50, "rpxTranslate");
17235
+ i0.ɵɵelementEnd();
17236
+ i0.ɵɵelementStart(51, "button", 21);
17237
+ i0.ɵɵtext(52);
17238
+ i0.ɵɵpipe(53, "rpxTranslate");
17239
+ i0.ɵɵelementEnd();
17240
+ i0.ɵɵelementEnd();
17241
+ i0.ɵɵelementEnd();
17242
+ i0.ɵɵelementStart(54, "div", 1);
17243
+ i0.ɵɵelementStart(55, "a", 2);
17244
+ i0.ɵɵtext(56);
17245
+ i0.ɵɵpipe(57, "rpxTranslate");
17246
+ i0.ɵɵelementEnd();
17247
+ i0.ɵɵelementEnd();
17248
+ i0.ɵɵelementEnd();
17249
+ } if (rf & 2) {
17250
+ let tmp_7_0 = null;
17251
+ let tmp_9_0 = null;
17252
+ let tmp_10_0 = null;
17253
+ let tmp_12_0 = null;
17254
+ let tmp_15_0 = null;
17255
+ i0.ɵɵadvance(3);
17256
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 24, "Back to tasks"));
17257
+ i0.ɵɵadvance(4);
17258
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(8, 26, "Respond to query"));
17259
+ i0.ɵɵadvance(3);
17260
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(11, 28, "Query details"));
17261
+ i0.ɵɵadvance(4);
17262
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(15, 30, ctx.caseReference));
17263
+ i0.ɵɵadvance(3);
17264
+ i0.ɵɵproperty("queryItem", ctx.queryItem);
17265
+ i0.ɵɵadvance(3);
17266
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(21, 32, "Respond to a query"));
17267
+ i0.ɵɵadvance(2);
17268
+ i0.ɵɵproperty("formGroup", ctx.responseFormGroup);
17269
+ i0.ɵɵadvance(1);
17270
+ i0.ɵɵclassProp("govuk-form-group--error", (tmp_7_0 = ctx.responseFormGroup.get("response")) == null ? null : tmp_7_0.errors == null ? null : tmp_7_0.errors.length);
17271
+ i0.ɵɵadvance(3);
17272
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(27, 34, "Response message"), " ");
17273
+ i0.ɵɵadvance(2);
17274
+ i0.ɵɵproperty("ngIf", (tmp_9_0 = ctx.responseFormGroup.get("response")) == null ? null : tmp_9_0.errors == null ? null : tmp_9_0.errors.length);
17275
+ i0.ɵɵadvance(1);
17276
+ i0.ɵɵclassProp("govuk-textarea--error", (tmp_10_0 = ctx.responseFormGroup.get("response")) == null ? null : tmp_10_0.errors == null ? null : tmp_10_0.errors.length);
17277
+ i0.ɵɵproperty("formControlName", "response");
17278
+ i0.ɵɵadvance(3);
17279
+ i0.ɵɵclassProp("govuk-form-group--error", (tmp_12_0 = ctx.responseFormGroup.get("documents")) == null ? null : tmp_12_0.errors == null ? null : tmp_12_0.errors.length);
17280
+ i0.ɵɵadvance(4);
17281
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(37, 36, "Add document(optional)"));
17282
+ i0.ɵɵadvance(3);
17283
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(40, 38, "Attach a document to this message"));
17284
+ i0.ɵɵadvance(2);
17285
+ i0.ɵɵproperty("ngIf", (tmp_15_0 = ctx.responseFormGroup.get("response")) == null ? null : tmp_15_0.errors == null ? null : tmp_15_0.errors.length);
17286
+ i0.ɵɵadvance(3);
17287
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(45, 40, "Next"), " ");
17288
+ i0.ɵɵadvance(4);
17289
+ i0.ɵɵproperty("disabled", true);
17290
+ i0.ɵɵadvance(1);
17291
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(50, 42, "Previous"), " ");
17292
+ i0.ɵɵadvance(3);
17293
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(53, 44, "Continue"), " ");
17294
+ i0.ɵɵadvance(4);
17295
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(57, 46, "Cancel and return to query list"));
17296
+ } }, styles: [".response-textarea[_ngcontent-%COMP%]{max-width:576px}"] });
17297
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteQueryManagementFieldComponent, [{
17298
+ type: Component,
17299
+ args: [{
17300
+ selector: 'ccd-write-query-management-field',
17301
+ templateUrl: './write-query-management-field.component.html',
17302
+ styleUrls: ['./write-query-management-field.component.scss']
17303
+ }]
17304
+ }], function () { return []; }, null); })();
17305
+
17306
+ class ReadTextAreaFieldComponent extends AbstractFieldReadComponent {
17307
+ }
17308
+ ReadTextAreaFieldComponent.ɵfac = function ReadTextAreaFieldComponent_Factory(t) { return ɵReadTextAreaFieldComponent_BaseFactory(t || ReadTextAreaFieldComponent); };
17309
+ 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) {
17310
+ i0.ɵɵelementStart(0, "span", 0);
17311
+ i0.ɵɵtext(1);
17312
+ i0.ɵɵelementEnd();
17313
+ } if (rf & 2) {
17314
+ i0.ɵɵadvance(1);
17315
+ i0.ɵɵtextInterpolate(ctx.caseField.value);
17316
+ } }, encapsulation: 2 });
17317
+ const ɵReadTextAreaFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(ReadTextAreaFieldComponent);
17318
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadTextAreaFieldComponent, [{
17319
+ type: Component,
17320
+ args: [{
17321
+ selector: 'ccd-read-text-area-field',
17322
+ template: `<span style="white-space: pre-wrap">{{caseField.value}}</span>`
17323
+ }]
17324
+ }], null, null); })();
17325
+
17326
+ function WriteTextAreaFieldComponent_span_2_Template(rf, ctx) { if (rf & 1) {
17327
+ i0.ɵɵelementStart(0, "span", 6);
17328
+ i0.ɵɵtext(1);
17329
+ i0.ɵɵpipe(2, "ccdFieldLabel");
17159
17330
  i0.ɵɵelementEnd();
17160
- i0.ɵɵelementContainerEnd();
17161
17331
  } if (rf & 2) {
17162
17332
  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));
17333
+ i0.ɵɵadvance(1);
17334
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
17371
17335
  } }
17372
17336
  function WriteTextAreaFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
17373
17337
  i0.ɵɵelementStart(0, "span", 7);
@@ -17751,7 +17715,8 @@ class PaletteService {
17751
17715
  this.componentLauncherRegistry = {
17752
17716
  [DisplayContextCustomParameter.CaseFileView]: [CaseFileViewFieldComponent, CaseFileViewFieldComponent],
17753
17717
  [DisplayContextCustomParameter.LinkedCases]: [WriteLinkedCasesFieldComponent, ReadLinkedCasesFieldComponent],
17754
- [DisplayContextCustomParameter.QueryManagement]: [WriteQueryManagementFieldComponent, ReadQueryManagementFieldComponent]
17718
+ [DisplayContextCustomParameter.QueryManagement]: [WriteQueryManagementFieldComponent, ReadQueryManagementFieldComponent],
17719
+ [DisplayContextCustomParameter.QueryManagementWriteTest]: [WriteQueryManagementFieldComponent, WriteQueryManagementFieldComponent]
17755
17720
  };
17756
17721
  }
17757
17722
  getFieldComponentClass(caseField, write) {
@@ -20517,6 +20482,13 @@ const ɵReadComplexFieldTableComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInh
20517
20482
  type: Input
20518
20483
  }] }); })();
20519
20484
 
20485
+ var SortOrder;
20486
+ (function (SortOrder) {
20487
+ SortOrder[SortOrder["ASCENDING"] = 0] = "ASCENDING";
20488
+ SortOrder[SortOrder["DESCENDING"] = 1] = "DESCENDING";
20489
+ SortOrder[SortOrder["UNSORTED"] = 2] = "UNSORTED";
20490
+ })(SortOrder || (SortOrder = {}));
20491
+
20520
20492
  function ReadComplexFieldCollectionTableComponent_th_9_Template(rf, ctx) { if (rf & 1) {
20521
20493
  const _r4 = i0.ɵɵgetCurrentView();
20522
20494
  i0.ɵɵelementStart(0, "th", 6);
@@ -22603,6 +22575,399 @@ FileUploadProgressGuard.ɵprov = i0.ɵɵdefineInjectable({ token: FileUploadProg
22603
22575
  type: Injectable
22604
22576
  }], function () { return [{ type: FileUploadStateService }, { type: WindowService }]; }, null); })();
22605
22577
 
22578
+ class QueryCreateComponent {
22579
+ constructor() {
22580
+ }
22581
+ ngOnInit() {
22582
+ }
22583
+ }
22584
+ QueryCreateComponent.ɵfac = function QueryCreateComponent_Factory(t) { return new (t || QueryCreateComponent)(); };
22585
+ QueryCreateComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryCreateComponent, selectors: [["ccd-query-create"]], decls: 0, vars: 0, template: function QueryCreateComponent_Template(rf, ctx) { }, encapsulation: 2 });
22586
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryCreateComponent, [{
22587
+ type: Component,
22588
+ args: [{
22589
+ selector: 'ccd-query-create',
22590
+ templateUrl: './query-create.component.html',
22591
+ }]
22592
+ }], function () { return []; }, null); })();
22593
+
22594
+ function QueryDetailsTableComponent_ng_container_0_div_47_Template(rf, ctx) { if (rf & 1) {
22595
+ i0.ɵɵelementStart(0, "div");
22596
+ i0.ɵɵelementStart(1, "a", 7);
22597
+ i0.ɵɵtext(2);
22598
+ i0.ɵɵelementEnd();
22599
+ i0.ɵɵelementEnd();
22600
+ } if (rf & 2) {
22601
+ const attachment_r2 = ctx.$implicit;
22602
+ i0.ɵɵadvance(1);
22603
+ i0.ɵɵproperty("href", attachment_r2._links.self.href, i0.ɵɵsanitizeUrl);
22604
+ i0.ɵɵadvance(1);
22605
+ i0.ɵɵtextInterpolate(attachment_r2.originalDocumentName);
22606
+ } }
22607
+ function QueryDetailsTableComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
22608
+ i0.ɵɵelementContainerStart(0);
22609
+ i0.ɵɵelementStart(1, "table", 1);
22610
+ i0.ɵɵpipe(2, "rpxTranslate");
22611
+ i0.ɵɵelementStart(3, "tbody", 2);
22612
+ i0.ɵɵelementStart(4, "tr", 3);
22613
+ i0.ɵɵelementStart(5, "th", 4);
22614
+ i0.ɵɵtext(6);
22615
+ i0.ɵɵpipe(7, "rpxTranslate");
22616
+ i0.ɵɵelementEnd();
22617
+ i0.ɵɵelementStart(8, "td", 5);
22618
+ i0.ɵɵtext(9);
22619
+ i0.ɵɵelementEnd();
22620
+ i0.ɵɵelementEnd();
22621
+ i0.ɵɵelementStart(10, "tr", 3);
22622
+ i0.ɵɵelementStart(11, "th", 4);
22623
+ i0.ɵɵtext(12);
22624
+ i0.ɵɵpipe(13, "rpxTranslate");
22625
+ i0.ɵɵelementEnd();
22626
+ i0.ɵɵelementStart(14, "td", 5);
22627
+ i0.ɵɵtext(15);
22628
+ i0.ɵɵpipe(16, "date");
22629
+ i0.ɵɵelementEnd();
22630
+ i0.ɵɵelementEnd();
22631
+ i0.ɵɵelementStart(17, "tr", 3);
22632
+ i0.ɵɵelementStart(18, "th", 4);
22633
+ i0.ɵɵtext(19);
22634
+ i0.ɵɵpipe(20, "rpxTranslate");
22635
+ i0.ɵɵelementEnd();
22636
+ i0.ɵɵelementStart(21, "td", 5);
22637
+ i0.ɵɵtext(22);
22638
+ i0.ɵɵelementEnd();
22639
+ i0.ɵɵelementEnd();
22640
+ i0.ɵɵelementStart(23, "tr", 3);
22641
+ i0.ɵɵelementStart(24, "th", 4);
22642
+ i0.ɵɵtext(25);
22643
+ i0.ɵɵpipe(26, "rpxTranslate");
22644
+ i0.ɵɵelementEnd();
22645
+ i0.ɵɵelementStart(27, "td", 5);
22646
+ i0.ɵɵtext(28);
22647
+ i0.ɵɵelementEnd();
22648
+ i0.ɵɵelementEnd();
22649
+ i0.ɵɵelementStart(29, "tr", 3);
22650
+ i0.ɵɵelementStart(30, "th", 4);
22651
+ i0.ɵɵtext(31);
22652
+ i0.ɵɵpipe(32, "rpxTranslate");
22653
+ i0.ɵɵelementEnd();
22654
+ i0.ɵɵelementStart(33, "td", 5);
22655
+ i0.ɵɵtext(34);
22656
+ i0.ɵɵelementEnd();
22657
+ i0.ɵɵelementEnd();
22658
+ i0.ɵɵelementStart(35, "tr", 3);
22659
+ i0.ɵɵelementStart(36, "th", 4);
22660
+ i0.ɵɵtext(37);
22661
+ i0.ɵɵpipe(38, "rpxTranslate");
22662
+ i0.ɵɵelementEnd();
22663
+ i0.ɵɵelementStart(39, "td", 5);
22664
+ i0.ɵɵtext(40);
22665
+ i0.ɵɵpipe(41, "date");
22666
+ i0.ɵɵelementEnd();
22667
+ i0.ɵɵelementEnd();
22668
+ i0.ɵɵelementStart(42, "tr", 3);
22669
+ i0.ɵɵelementStart(43, "th", 4);
22670
+ i0.ɵɵtext(44);
22671
+ i0.ɵɵpipe(45, "rpxTranslate");
22672
+ i0.ɵɵelementEnd();
22673
+ i0.ɵɵelementStart(46, "td", 5);
22674
+ i0.ɵɵtemplate(47, QueryDetailsTableComponent_ng_container_0_div_47_Template, 3, 2, "div", 6);
22675
+ i0.ɵɵelementEnd();
22676
+ i0.ɵɵelementEnd();
22677
+ i0.ɵɵelementEnd();
22678
+ i0.ɵɵelementEnd();
22679
+ i0.ɵɵelementContainerEnd();
22680
+ } if (rf & 2) {
22681
+ const ctx_r0 = i0.ɵɵnextContext();
22682
+ i0.ɵɵadvance(1);
22683
+ i0.ɵɵattribute("aria-describedby", i0.ɵɵpipeBind1(2, 15, "Details of the query"));
22684
+ i0.ɵɵadvance(5);
22685
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 17, "Last submitted by"));
22686
+ i0.ɵɵadvance(3);
22687
+ i0.ɵɵtextInterpolate(ctx_r0.queryItem.lastSubmittedBy);
22688
+ i0.ɵɵadvance(3);
22689
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(13, 19, "Submission date"));
22690
+ i0.ɵɵadvance(3);
22691
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(16, 21, ctx_r0.queryItem.createdOn, "d MMM yyyy"));
22692
+ i0.ɵɵadvance(4);
22693
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(20, 24, "Query subject"));
22694
+ i0.ɵɵadvance(3);
22695
+ i0.ɵɵtextInterpolate(ctx_r0.queryItem.subject);
22696
+ i0.ɵɵadvance(3);
22697
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(26, 26, "Query body"));
22698
+ i0.ɵɵadvance(3);
22699
+ i0.ɵɵtextInterpolate(ctx_r0.queryItem.body);
22700
+ i0.ɵɵadvance(3);
22701
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(32, 28, "Is the query hearing related ?"));
22702
+ i0.ɵɵadvance(3);
22703
+ i0.ɵɵtextInterpolate(ctx_r0.queryItem.isHearingRelated ? "Yes" : "No");
22704
+ i0.ɵɵadvance(3);
22705
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(38, 30, "What is the date of the hearing your query related to ?"));
22706
+ i0.ɵɵadvance(3);
22707
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(41, 32, ctx_r0.queryItem.hearingDate, "d MMM yyyy"));
22708
+ i0.ɵɵadvance(4);
22709
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(45, 35, "Attachments"));
22710
+ i0.ɵɵadvance(3);
22711
+ i0.ɵɵproperty("ngForOf", ctx_r0.queryItem.attachments);
22712
+ } }
22713
+ class QueryDetailsTableComponent {
22714
+ }
22715
+ QueryDetailsTableComponent.ɵfac = function QueryDetailsTableComponent_Factory(t) { return new (t || QueryDetailsTableComponent)(); };
22716
+ QueryDetailsTableComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryDetailsTableComponent, selectors: [["ccd-query-details-table"]], inputs: { queryItem: "queryItem" }, decls: 1, vars: 1, consts: [[4, "ngIf"], [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) {
22717
+ i0.ɵɵtemplate(0, QueryDetailsTableComponent_ng_container_0_Template, 48, 37, "ng-container", 0);
22718
+ } if (rf & 2) {
22719
+ i0.ɵɵproperty("ngIf", ctx.queryItem);
22720
+ } }, directives: [i1.NgIf, i1.NgForOf], pipes: [i2$1.RpxTranslatePipe, i1.DatePipe], styles: [".query-details-table[_ngcontent-%COMP%] .govuk-table__header[_ngcontent-%COMP%]{width:330px}"] });
22721
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryDetailsTableComponent, [{
22722
+ type: Component,
22723
+ args: [{
22724
+ selector: 'ccd-query-details-table',
22725
+ templateUrl: './query-details-table.component.html',
22726
+ styleUrls: ['./query-details-table.component.scss']
22727
+ }]
22728
+ }], null, { queryItem: [{
22729
+ type: Input
22730
+ }] }); })();
22731
+
22732
+ class QueryDetailsComponent {
22733
+ }
22734
+ QueryDetailsComponent.ɵfac = function QueryDetailsComponent_Factory(t) { return new (t || QueryDetailsComponent)(); };
22735
+ QueryDetailsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: QueryDetailsComponent, selectors: [["ccd-query-details"]], decls: 2, vars: 0, template: function QueryDetailsComponent_Template(rf, ctx) { if (rf & 1) {
22736
+ i0.ɵɵelementStart(0, "p");
22737
+ i0.ɵɵtext(1, "query-details works!");
22738
+ i0.ɵɵelementEnd();
22739
+ } }, encapsulation: 2 });
22740
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryDetailsComponent, [{
22741
+ type: Component,
22742
+ args: [{
22743
+ selector: 'ccd-query-details',
22744
+ templateUrl: './query-details.component.html'
22745
+ }]
22746
+ }], null, null); })();
22747
+
22748
+ function QueryListComponent_ng_container_0_th_7_Template(rf, ctx) { if (rf & 1) {
22749
+ const _r5 = i0.ɵɵgetCurrentView();
22750
+ i0.ɵɵelementStart(0, "th", 8);
22751
+ i0.ɵɵtext(1);
22752
+ i0.ɵɵpipe(2, "rpxTranslate");
22753
+ i0.ɵɵelementStart(3, "a", 9);
22754
+ 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); });
22755
+ i0.ɵɵelementEnd();
22756
+ i0.ɵɵelementEnd();
22757
+ } if (rf & 2) {
22758
+ const col_r3 = ctx.$implicit;
22759
+ const ctx_r1 = i0.ɵɵnextContext(2);
22760
+ i0.ɵɵadvance(1);
22761
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, col_r3.displayName), " ");
22762
+ i0.ɵɵadvance(2);
22763
+ i0.ɵɵproperty("innerHTML", ctx_r1.sortWidget(col_r3), i0.ɵɵsanitizeHtml);
22764
+ } }
22765
+ function QueryListComponent_ng_container_0_tr_9_Template(rf, ctx) { if (rf & 1) {
22766
+ i0.ɵɵelementStart(0, "tr", 4);
22767
+ i0.ɵɵelementStart(1, "td", 10);
22768
+ i0.ɵɵelementStart(2, "a", 11);
22769
+ i0.ɵɵtext(3);
22770
+ i0.ɵɵelementEnd();
22771
+ i0.ɵɵelementEnd();
22772
+ i0.ɵɵelementStart(4, "td", 12);
22773
+ i0.ɵɵtext(5);
22774
+ i0.ɵɵelementEnd();
22775
+ i0.ɵɵelementStart(6, "td", 12);
22776
+ i0.ɵɵtext(7);
22777
+ i0.ɵɵpipe(8, "date");
22778
+ i0.ɵɵelementEnd();
22779
+ i0.ɵɵelementStart(9, "td", 12);
22780
+ i0.ɵɵtext(10);
22781
+ i0.ɵɵpipe(11, "date");
22782
+ i0.ɵɵelementEnd();
22783
+ i0.ɵɵelementStart(12, "td", 12);
22784
+ i0.ɵɵtext(13);
22785
+ i0.ɵɵelementEnd();
22786
+ i0.ɵɵelementEnd();
22787
+ } if (rf & 2) {
22788
+ const message_r6 = ctx.$implicit;
22789
+ i0.ɵɵadvance(3);
22790
+ i0.ɵɵtextInterpolate(message_r6.subject);
22791
+ i0.ɵɵadvance(2);
22792
+ i0.ɵɵtextInterpolate(message_r6.lastSubmittedBy);
22793
+ i0.ɵɵadvance(2);
22794
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(8, 5, message_r6.lastSubmittedDate, "dd MMM YYYY"));
22795
+ i0.ɵɵadvance(3);
22796
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(11, 8, message_r6.lastResponseDate, "dd MMM YYYY"));
22797
+ i0.ɵɵadvance(3);
22798
+ i0.ɵɵtextInterpolate(message_r6.lastResponseBy);
22799
+ } }
22800
+ function QueryListComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
22801
+ i0.ɵɵelementContainerStart(0);
22802
+ i0.ɵɵelementStart(1, "table", 1);
22803
+ i0.ɵɵelementStart(2, "caption", 2);
22804
+ i0.ɵɵelementStart(3, "div");
22805
+ i0.ɵɵtext(4);
22806
+ i0.ɵɵelementEnd();
22807
+ i0.ɵɵelementEnd();
22808
+ i0.ɵɵelementStart(5, "thead", 3);
22809
+ i0.ɵɵelementStart(6, "tr", 4);
22810
+ i0.ɵɵtemplate(7, QueryListComponent_ng_container_0_th_7_Template, 4, 4, "th", 5);
22811
+ i0.ɵɵelementEnd();
22812
+ i0.ɵɵelementEnd();
22813
+ i0.ɵɵelementStart(8, "tbody", 6);
22814
+ i0.ɵɵtemplate(9, QueryListComponent_ng_container_0_tr_9_Template, 14, 11, "tr", 7);
22815
+ i0.ɵɵelementEnd();
22816
+ i0.ɵɵelementEnd();
22817
+ i0.ɵɵelementContainerEnd();
22818
+ } if (rf & 2) {
22819
+ const ctx_r0 = i0.ɵɵnextContext();
22820
+ i0.ɵɵadvance(4);
22821
+ i0.ɵɵtextInterpolate(ctx_r0.queryListData.partyName);
22822
+ i0.ɵɵadvance(3);
22823
+ i0.ɵɵproperty("ngForOf", ctx_r0.displayedColumns);
22824
+ i0.ɵɵadvance(2);
22825
+ i0.ɵɵproperty("ngForOf", ctx_r0.queryListData.partyMessages);
22826
+ } }
22827
+ class QueryListComponent {
22828
+ constructor() {
22829
+ this.displayedColumns = [
22830
+ { name: 'subject', displayName: 'Queries', sortOrder: SortOrder.UNSORTED },
22831
+ { name: 'lastSubmittedBy', displayName: 'Last submitted by', sortOrder: SortOrder.UNSORTED },
22832
+ { name: 'lastSubmittedDate', displayName: 'Last submission date', sortOrder: SortOrder.UNSORTED },
22833
+ { name: 'lastResponseDate', displayName: 'Last response date', sortOrder: SortOrder.UNSORTED },
22834
+ { name: 'lastResponseBy', displayName: 'Response by', sortOrder: SortOrder.UNSORTED }
22835
+ ];
22836
+ }
22837
+ ngOnChanges(simpleChanges) {
22838
+ var _a;
22839
+ const currentPartyMessageGroup = (_a = simpleChanges.partyMessageGroup) === null || _a === void 0 ? void 0 : _a.currentValue;
22840
+ if (currentPartyMessageGroup) {
22841
+ this.queryListData = new QueryListData(currentPartyMessageGroup);
22842
+ }
22843
+ }
22844
+ sortTable(col) {
22845
+ switch (col.displayName) {
22846
+ case 'Queries': {
22847
+ this.sort(col);
22848
+ break;
22849
+ }
22850
+ case 'Last submitted by': {
22851
+ this.sort(col);
22852
+ break;
22853
+ }
22854
+ case 'Last submission date': {
22855
+ this.sortDate(col);
22856
+ break;
22857
+ }
22858
+ case 'Last response date': {
22859
+ this.sortDate(col);
22860
+ break;
22861
+ }
22862
+ case 'Response by': {
22863
+ this.sort(col);
22864
+ break;
22865
+ }
22866
+ default: {
22867
+ this.sort(col);
22868
+ break;
22869
+ }
22870
+ }
22871
+ }
22872
+ sortWidget(col) {
22873
+ switch (col.sortOrder) {
22874
+ case SortOrder.DESCENDING: {
22875
+ return '&#9660;';
22876
+ }
22877
+ case SortOrder.ASCENDING: {
22878
+ return '&#9650;';
22879
+ }
22880
+ default: {
22881
+ return '&#11047;';
22882
+ }
22883
+ }
22884
+ }
22885
+ sort(col) {
22886
+ if (col.sortOrder === SortOrder.ASCENDING) {
22887
+ this.queryListData.partyMessages.sort((a, b) => (a[col.name] < b[col.name]) ? 1 : -1);
22888
+ this.displayedColumns.forEach((c) => c.sortOrder = SortOrder.UNSORTED);
22889
+ col.sortOrder = SortOrder.DESCENDING;
22890
+ }
22891
+ else {
22892
+ this.queryListData.partyMessages.sort((a, b) => (a[col.name] > b[col.name]) ? 1 : -1);
22893
+ this.displayedColumns.forEach((c) => c.sortOrder = SortOrder.UNSORTED);
22894
+ col.sortOrder = SortOrder.ASCENDING;
22895
+ }
22896
+ }
22897
+ sortDate(col) {
22898
+ if (col.sortOrder === SortOrder.ASCENDING) {
22899
+ this.queryListData.partyMessages.sort((a, b) => b[col.name] - a[col.name]);
22900
+ this.displayedColumns.forEach((c) => c.sortOrder = SortOrder.UNSORTED);
22901
+ col.sortOrder = SortOrder.DESCENDING;
22902
+ }
22903
+ else {
22904
+ this.queryListData.partyMessages.sort((a, b) => a[col.name] - b[col.name]);
22905
+ this.displayedColumns.forEach((c) => c.sortOrder = SortOrder.UNSORTED);
22906
+ col.sortOrder = SortOrder.ASCENDING;
22907
+ }
22908
+ }
22909
+ }
22910
+ QueryListComponent.ɵfac = function QueryListComponent_Factory(t) { return new (t || QueryListComponent)(); };
22911
+ 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) {
22912
+ i0.ɵɵtemplate(0, QueryListComponent_ng_container_0_Template, 10, 3, "ng-container", 0);
22913
+ } if (rf & 2) {
22914
+ i0.ɵɵproperty("ngIf", ctx.queryListData);
22915
+ } }, 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}"] });
22916
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryListComponent, [{
22917
+ type: Component,
22918
+ args: [{
22919
+ selector: 'ccd-query-list',
22920
+ templateUrl: './query-list.component.html',
22921
+ styleUrls: ['./query-list.component.scss']
22922
+ }]
22923
+ }], null, { partyMessageGroup: [{
22924
+ type: Input
22925
+ }] }); })();
22926
+
22927
+ class QueryManagementModule {
22928
+ }
22929
+ QueryManagementModule.ɵfac = function QueryManagementModule_Factory(t) { return new (t || QueryManagementModule)(); };
22930
+ QueryManagementModule.ɵmod = i0.ɵɵdefineNgModule({ type: QueryManagementModule });
22931
+ QueryManagementModule.ɵinj = i0.ɵɵdefineInjector({ imports: [[
22932
+ CommonModule,
22933
+ ReactiveFormsModule,
22934
+ RpxTranslationModule.forChild(),
22935
+ PipesModule
22936
+ ]] });
22937
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(QueryManagementModule, { declarations: [ReadQueryManagementFieldComponent,
22938
+ WriteQueryManagementFieldComponent,
22939
+ QueryDetailsComponent,
22940
+ QueryCreateComponent,
22941
+ QueryListComponent,
22942
+ QueryDetailsTableComponent], imports: [CommonModule,
22943
+ ReactiveFormsModule, i2$1.RpxTranslationModule, PipesModule], exports: [ReadQueryManagementFieldComponent,
22944
+ WriteQueryManagementFieldComponent] }); })();
22945
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryManagementModule, [{
22946
+ type: NgModule,
22947
+ args: [{
22948
+ declarations: [
22949
+ ReadQueryManagementFieldComponent,
22950
+ WriteQueryManagementFieldComponent,
22951
+ QueryDetailsComponent,
22952
+ QueryCreateComponent,
22953
+ QueryListComponent,
22954
+ QueryDetailsTableComponent,
22955
+ ],
22956
+ imports: [
22957
+ CommonModule,
22958
+ ReactiveFormsModule,
22959
+ RpxTranslationModule.forChild(),
22960
+ PipesModule
22961
+ ],
22962
+ exports: [
22963
+ ReadQueryManagementFieldComponent,
22964
+ WriteQueryManagementFieldComponent
22965
+ ],
22966
+ }]
22967
+ }], null, null); })();
22968
+ i0.ɵɵsetComponentScope(ReadQueryManagementFieldComponent, [i1.NgForOf, QueryListComponent], []);
22969
+ i0.ɵɵsetComponentScope(WriteQueryManagementFieldComponent, [QueryDetailsTableComponent, i3.NgControlStatusGroup, i3.FormGroupDirective, i1.NgIf, i3.DefaultValueAccessor, i3.NgControlStatus, i3.FormControlName], [i2$1.RpxTranslatePipe, CaseReferencePipe]);
22970
+
22606
22971
  const PALETTE_COMPONENTS = [
22607
22972
  UnsupportedFieldComponent,
22608
22973
  DatetimePickerComponent,
@@ -22648,7 +23013,6 @@ const PALETTE_COMPONENTS = [
22648
23013
  ReadComplexFieldCollectionTableComponent,
22649
23014
  ReadCaseFlagFieldComponent,
22650
23015
  ReadLinkedCasesFieldComponent,
22651
- ReadQueryManagementFieldComponent,
22652
23016
  // Write
22653
23017
  WriteJudicialUserFieldComponent,
22654
23018
  WriteAddressFieldComponent,
@@ -22668,7 +23032,6 @@ const PALETTE_COMPONENTS = [
22668
23032
  WriteDateFieldComponent,
22669
23033
  WriteCaseFlagFieldComponent,
22670
23034
  WriteLinkedCasesFieldComponent,
22671
- WriteQueryManagementFieldComponent,
22672
23035
  // new
22673
23036
  WriteYesNoFieldComponent,
22674
23037
  WriteOrganisationFieldComponent,
@@ -22712,10 +23075,6 @@ const PALETTE_COMPONENTS = [
22712
23075
  CheckYourAnswersComponent,
22713
23076
  UnLinkCasesComponent,
22714
23077
  NoLinkedCasesComponent,
22715
- // Components for query management
22716
- QueryCreateComponent,
22717
- QueryDetailComponent,
22718
- QueryListComponent
22719
23078
  ];
22720
23079
  class PaletteModule {
22721
23080
  }
@@ -22765,7 +23124,8 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
22765
23124
  MatDialogModule,
22766
23125
  MediaViewerModule,
22767
23126
  LoadingModule,
22768
- RpxTranslationModule.forChild()
23127
+ RpxTranslationModule.forChild(),
23128
+ QueryManagementModule
22769
23129
  ], NgxMatDatetimePickerModule,
22770
23130
  NgxMatNativeDateModule,
22771
23131
  NgxMatTimepickerModule,
@@ -22820,7 +23180,6 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
22820
23180
  ReadComplexFieldCollectionTableComponent,
22821
23181
  ReadCaseFlagFieldComponent,
22822
23182
  ReadLinkedCasesFieldComponent,
22823
- ReadQueryManagementFieldComponent,
22824
23183
  // Write
22825
23184
  WriteJudicialUserFieldComponent,
22826
23185
  WriteAddressFieldComponent,
@@ -22840,7 +23199,6 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
22840
23199
  WriteDateFieldComponent,
22841
23200
  WriteCaseFlagFieldComponent,
22842
23201
  WriteLinkedCasesFieldComponent,
22843
- WriteQueryManagementFieldComponent,
22844
23202
  // new
22845
23203
  WriteYesNoFieldComponent,
22846
23204
  WriteOrganisationFieldComponent,
@@ -22883,11 +23241,7 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
22883
23241
  LinkCasesComponent,
22884
23242
  CheckYourAnswersComponent,
22885
23243
  UnLinkCasesComponent,
22886
- NoLinkedCasesComponent,
22887
- // Components for query management
22888
- QueryCreateComponent,
22889
- QueryDetailComponent,
22890
- QueryListComponent], imports: [CommonModule,
23244
+ NoLinkedCasesComponent], imports: [CommonModule,
22891
23245
  RouterModule,
22892
23246
  FormsModule,
22893
23247
  ReactiveFormsModule,
@@ -22913,7 +23267,7 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
22913
23267
  OverlayModule,
22914
23268
  PaymentLibModule, i2.ScrollToModule, MatDialogModule,
22915
23269
  MediaViewerModule,
22916
- LoadingModule, i2$1.RpxTranslationModule], exports: [NgxMatDatetimePickerModule,
23270
+ LoadingModule, i2$1.RpxTranslationModule, QueryManagementModule], exports: [NgxMatDatetimePickerModule,
22917
23271
  NgxMatNativeDateModule,
22918
23272
  NgxMatTimepickerModule,
22919
23273
  TabsModule,
@@ -22962,7 +23316,6 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
22962
23316
  ReadComplexFieldCollectionTableComponent,
22963
23317
  ReadCaseFlagFieldComponent,
22964
23318
  ReadLinkedCasesFieldComponent,
22965
- ReadQueryManagementFieldComponent,
22966
23319
  // Write
22967
23320
  WriteJudicialUserFieldComponent,
22968
23321
  WriteAddressFieldComponent,
@@ -22982,7 +23335,6 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
22982
23335
  WriteDateFieldComponent,
22983
23336
  WriteCaseFlagFieldComponent,
22984
23337
  WriteLinkedCasesFieldComponent,
22985
- WriteQueryManagementFieldComponent,
22986
23338
  // new
22987
23339
  WriteYesNoFieldComponent,
22988
23340
  WriteOrganisationFieldComponent,
@@ -23025,11 +23377,7 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
23025
23377
  LinkCasesComponent,
23026
23378
  CheckYourAnswersComponent,
23027
23379
  UnLinkCasesComponent,
23028
- NoLinkedCasesComponent,
23029
- // Components for query management
23030
- QueryCreateComponent,
23031
- QueryDetailComponent,
23032
- QueryListComponent] }); })();
23380
+ NoLinkedCasesComponent] }); })();
23033
23381
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaletteModule, [{
23034
23382
  type: NgModule,
23035
23383
  args: [{
@@ -23063,7 +23411,8 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
23063
23411
  MatDialogModule,
23064
23412
  MediaViewerModule,
23065
23413
  LoadingModule,
23066
- RpxTranslationModule.forChild()
23414
+ RpxTranslationModule.forChild(),
23415
+ QueryManagementModule
23067
23416
  ],
23068
23417
  declarations: [
23069
23418
  FixedListPipe,
@@ -23122,7 +23471,6 @@ i0.ɵɵsetComponentScope(ReadCaseFlagFieldComponent, [i1.NgSwitch, i1.NgSwitchCa
23122
23471
  i0.ɵɵsetComponentScope(ReadLinkedCasesFieldComponent, [
23123
23472
  // Components for linked cases
23124
23473
  LinkedCasesToTableComponent, i1.NgIf, LinkedCasesFromTableComponent], []);
23125
- i0.ɵɵsetComponentScope(ReadQueryManagementFieldComponent, [i1.NgForOf, QueryListComponent], []);
23126
23474
  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
23475
  i0.ɵɵsetComponentScope(WriteComplexFieldComponent, [i1.NgIf, i1.NgForOf, i1.NgSwitch, i1.NgSwitchCase, FieldReadComponent, LabelSubstitutorDirective, i3.NgControlStatusGroup, i3.FormGroupDirective, FieldWriteComponent], [FieldLabelPipe, IsReadOnlyPipe]);
23128
23476
  i0.ɵɵsetComponentScope(WriteDocumentFieldComponent, [i1.NgClass, i1.NgIf, ReadDocumentFieldComponent], [FieldLabelPipe]);
@@ -31842,5 +32190,5 @@ class TestRouteSnapshotBuilder {
31842
32190
  * Generated bundle index. Do not edit.
31843
32191
  */
31844
32192
 
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 };
32193
+ 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
32194
  //# sourceMappingURL=hmcts-ccd-case-ui-toolkit.js.map