@hmcts/ccd-case-ui-toolkit 7.1.60-subject-message-length → 7.1.61-is-caseworker

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 (87) hide show
  1. package/esm2022/lib/app.config.mjs +2 -1
  2. package/esm2022/lib/components/header/header-bar/header-bar.component.mjs +4 -5
  3. package/esm2022/lib/shared/components/case-editor/services/work-allocation.service.mjs +6 -22
  4. package/esm2022/lib/shared/components/case-history/case-history.component.mjs +3 -3
  5. package/esm2022/lib/shared/components/case-list/case-list.component.mjs +56 -51
  6. package/esm2022/lib/shared/components/case-viewer/case-basic-access-view/case-basic-access-view.component.mjs +5 -6
  7. package/esm2022/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.mjs +6 -8
  8. package/esm2022/lib/shared/components/case-viewer/printer/case-printer.component.mjs +9 -10
  9. package/esm2022/lib/shared/components/case-viewer/services/case.resolver.mjs +11 -3
  10. package/esm2022/lib/shared/components/case-viewer/services/event-trigger.resolver.mjs +8 -4
  11. package/esm2022/lib/shared/components/create-case-filters/create-case-filters.component.mjs +3 -2
  12. package/esm2022/lib/shared/components/error/callback-errors.component.mjs +7 -9
  13. package/esm2022/lib/shared/components/pagination/pagination.component.mjs +14 -14
  14. package/esm2022/lib/shared/components/palette/base-field/abstract-form-field.component.mjs +4 -1
  15. package/esm2022/lib/shared/components/palette/base-field/field-read-label.component.mjs +2 -5
  16. package/esm2022/lib/shared/components/palette/base-field/field-read.component.mjs +4 -8
  17. package/esm2022/lib/shared/components/palette/case-file-view/components/case-file-view-folder-selector/case-file-view-folder-selector.component.mjs +6 -6
  18. package/esm2022/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu.component.mjs +17 -10
  19. package/esm2022/lib/shared/components/palette/case-flag/components/case-flag-summary-list/case-flag-summary-list.component.mjs +48 -49
  20. package/esm2022/lib/shared/components/palette/complex/read-complex-field-collection-table.component.mjs +9 -7
  21. package/esm2022/lib/shared/components/palette/complex/read-complex-field-raw.component.mjs +3 -3
  22. package/esm2022/lib/shared/components/palette/complex/write-complex-field.component.mjs +26 -16
  23. package/esm2022/lib/shared/components/palette/dynamic-list/write-dynamic-list-field.component.mjs +4 -4
  24. package/esm2022/lib/shared/components/palette/label/label-field.component.mjs +16 -11
  25. package/esm2022/lib/shared/components/palette/linked-cases/components/check-your-answers/check-your-answers.component.mjs +3 -3
  26. package/esm2022/lib/shared/components/palette/markdown/markdown.component.mjs +36 -26
  27. package/esm2022/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.mjs +74 -13
  28. package/esm2022/lib/shared/components/palette/query-management/components/query-details/query-details.component.mjs +6 -8
  29. package/esm2022/lib/shared/components/palette/query-management/read-query-management-field.component.mjs +5 -7
  30. package/esm2022/lib/shared/components/palette/query-management/utils/query-management.utils.mjs +4 -3
  31. package/esm2022/lib/shared/components/palette/text/read-text-field.component.mjs +5 -7
  32. package/esm2022/lib/shared/components/palette/text-area/read-text-area-field.component.mjs +5 -7
  33. package/esm2022/lib/shared/components/search-result/search-result.component.mjs +13 -8
  34. package/esm2022/lib/shared/directives/substitutor/label-substitutor.directive.mjs +25 -5
  35. package/esm2022/lib/shared/directives/substitutor/services/placeholder.service.mjs +2 -1
  36. package/esm2022/lib/shared/domain/definition/case-field.model.mjs +8 -1
  37. package/esm2022/lib/shared/services/activity/activity.service.mjs +4 -3
  38. package/esm2022/lib/shared/services/document-management/document-management.service.mjs +17 -5
  39. package/esm2022/lib/shared/services/fields/fields.utils.mjs +6 -1
  40. package/esm2022/lib/shared/utils.mjs +10 -0
  41. package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs +488 -357
  42. package/fesm2022/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
  43. package/lib/app.config.d.ts +2 -0
  44. package/lib/app.config.d.ts.map +1 -1
  45. package/lib/shared/components/case-editor/services/work-allocation.service.d.ts +1 -6
  46. package/lib/shared/components/case-editor/services/work-allocation.service.d.ts.map +1 -1
  47. package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts +0 -1
  48. package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts.map +1 -1
  49. package/lib/shared/components/case-viewer/services/case.resolver.d.ts +1 -0
  50. package/lib/shared/components/case-viewer/services/case.resolver.d.ts.map +1 -1
  51. package/lib/shared/components/case-viewer/services/event-trigger.resolver.d.ts.map +1 -1
  52. package/lib/shared/components/create-case-filters/create-case-filters.component.d.ts.map +1 -1
  53. package/lib/shared/components/palette/base-field/abstract-form-field.component.d.ts +1 -0
  54. package/lib/shared/components/palette/base-field/abstract-form-field.component.d.ts.map +1 -1
  55. package/lib/shared/components/palette/base-field/field-read-label.component.d.ts +1 -2
  56. package/lib/shared/components/palette/base-field/field-read-label.component.d.ts.map +1 -1
  57. package/lib/shared/components/palette/base-field/field-read.component.d.ts +1 -2
  58. package/lib/shared/components/palette/base-field/field-read.component.d.ts.map +1 -1
  59. package/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu.component.d.ts +1 -0
  60. package/lib/shared/components/palette/case-file-view/components/shared/case-file-view-overlay-menu/case-file-view-overlay-menu.component.d.ts.map +1 -1
  61. package/lib/shared/components/palette/complex/read-complex-field-raw.component.d.ts.map +1 -1
  62. package/lib/shared/components/palette/label/label-field.component.d.ts +1 -2
  63. package/lib/shared/components/palette/label/label-field.component.d.ts.map +1 -1
  64. package/lib/shared/components/palette/markdown/markdown.component.d.ts +5 -5
  65. package/lib/shared/components/palette/markdown/markdown.component.d.ts.map +1 -1
  66. package/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.d.ts +9 -0
  67. package/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.d.ts.map +1 -1
  68. package/lib/shared/components/palette/query-management/components/query-details/query-details.component.d.ts.map +1 -1
  69. package/lib/shared/components/palette/query-management/read-query-management-field.component.d.ts +1 -1
  70. package/lib/shared/components/palette/query-management/read-query-management-field.component.d.ts.map +1 -1
  71. package/lib/shared/components/palette/query-management/utils/query-management.utils.d.ts +1 -0
  72. package/lib/shared/components/palette/query-management/utils/query-management.utils.d.ts.map +1 -1
  73. package/lib/shared/components/search-result/search-result.component.d.ts +1 -0
  74. package/lib/shared/components/search-result/search-result.component.d.ts.map +1 -1
  75. package/lib/shared/directives/substitutor/label-substitutor.directive.d.ts +3 -1
  76. package/lib/shared/directives/substitutor/label-substitutor.directive.d.ts.map +1 -1
  77. package/lib/shared/directives/substitutor/services/placeholder.service.d.ts.map +1 -1
  78. package/lib/shared/domain/definition/case-field.model.d.ts +3 -0
  79. package/lib/shared/domain/definition/case-field.model.d.ts.map +1 -1
  80. package/lib/shared/services/activity/activity.service.d.ts.map +1 -1
  81. package/lib/shared/services/document-management/document-management.service.d.ts +3 -1
  82. package/lib/shared/services/document-management/document-management.service.d.ts.map +1 -1
  83. package/lib/shared/services/fields/fields.utils.d.ts +1 -0
  84. package/lib/shared/services/fields/fields.utils.d.ts.map +1 -1
  85. package/lib/shared/utils.d.ts +6 -0
  86. package/lib/shared/utils.d.ts.map +1 -0
  87. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, Input, EventEmitter, Output, NgModule, ViewEncapsulation, forwardRef, Pipe, ViewChildren, ContentChildren, Injectable, Inject, ChangeDetectorRef, Directive, InjectionToken, ViewChild, HostListener, Injector, ViewContainerRef, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
2
+ import { Component, Input, EventEmitter, Output, NgModule, ViewEncapsulation, forwardRef, Pipe, ViewChildren, ContentChildren, Injectable, Inject, ChangeDetectorRef, Directive, InjectionToken, ViewChild, ChangeDetectionStrategy, Injector, ViewContainerRef, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
3
3
  import * as i5 from '@angular/common';
4
4
  import { CommonModule, DOCUMENT, AsyncPipe, CurrencyPipe, formatDate } from '@angular/common';
5
5
  import * as i1 from 'rpx-xui-translation';
@@ -170,11 +170,10 @@ function HeaderBarComponent_div_3_Template(rf, ctx) { if (rf & 1) {
170
170
  i0.ɵɵelementStart(0, "div")(1, "a", 12);
171
171
  i0.ɵɵelement(2, "img", 13);
172
172
  i0.ɵɵtext(3);
173
- i0.ɵɵpipe(4, "rpxTranslate");
174
173
  i0.ɵɵelementEnd()();
175
174
  } if (rf & 2) {
176
175
  i0.ɵɵadvance(3);
177
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 1, "GOV.UK"), " ");
176
+ i0.ɵɵtextInterpolate1(" ", "GOV.UK", " ");
178
177
  } }
179
178
  function HeaderBarComponent_div_4_Template(rf, ctx) { if (rf & 1) {
180
179
  i0.ɵɵelementStart(0, "div", 14)(1, "div", 15)(2, "span");
@@ -210,7 +209,7 @@ class HeaderBarComponent {
210
209
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HeaderBarComponent, selectors: [["cut-header-bar"]], inputs: { title: "title", isSolicitor: "isSolicitor", username: "username" }, outputs: { signOutRequest: "signOutRequest" }, ngContentSelectors: _c1$t, decls: 17, vars: 14, consts: [["role", "banner", "id", "global-header", 1, "with-proposition"], [1, "header-wrapper"], [1, "header-global"], [4, "ngIf"], ["class", "global-header", 4, "ngIf"], [1, "header-proposition"], [1, "content"], ["href", "#proposition-links", 1, "js-header-toggle", "menu"], ["id", "proposition-menu", 4, "ngIf"], [1, "proposition-right"], ["id", "user-name"], ["id", "sign-out", "href", "javascript:void(0)", 3, "click"], ["href", "https://www.gov.uk", "title", "Go to the GOV.UK homepage", "id", "logo", 1, "content", 2, "margin-left", "0px"], ["src", "/img/gov.uk_logotype_crown_invert_trans.png?0.23.0", "width", "36", "height", "32", "alt", ""], [1, "global-header"], [1, "title"], ["id", "proposition-menu"], [1, "title-solicitor"], ["id", "proposition-name"]], template: function HeaderBarComponent_Template(rf, ctx) { if (rf & 1) {
211
210
  i0.ɵɵprojectionDef(_c0$15);
212
211
  i0.ɵɵelementStart(0, "header", 0)(1, "div", 1)(2, "div", 2);
213
- i0.ɵɵtemplate(3, HeaderBarComponent_div_3_Template, 5, 3, "div", 3)(4, HeaderBarComponent_div_4_Template, 5, 3, "div", 4);
212
+ i0.ɵɵtemplate(3, HeaderBarComponent_div_3_Template, 4, 1, "div", 3)(4, HeaderBarComponent_div_4_Template, 5, 3, "div", 4);
214
213
  i0.ɵɵelementEnd();
215
214
  i0.ɵɵelementStart(5, "div", 5)(6, "div", 6)(7, "a", 7);
216
215
  i0.ɵɵtext(8);
@@ -246,7 +245,7 @@ class HeaderBarComponent {
246
245
  }
247
246
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HeaderBarComponent, [{
248
247
  type: Component,
249
- args: [{ selector: 'cut-header-bar', template: "<header role=\"banner\" id=\"global-header\" class=\"with-proposition\">\n <div [class.full-screen]=\"!isSolicitor\" class=\"header-wrapper\">\n\n <div class=\"header-global\" [class.header-logo]=\"isSolicitor\">\n <div *ngIf=\"isSolicitor\">\n <a href=\"https://www.gov.uk\" title=\"Go to the GOV.UK homepage\" id=\"logo\" class=\"content\" style=\"margin-left: 0px;\">\n <img src=\"/img/gov.uk_logotype_crown_invert_trans.png?0.23.0\" width=\"36\" height=\"32\" alt=\"\"> {{'GOV.UK' | rpxTranslate}}\n </a>\n </div>\n <div class=\"global-header\" *ngIf=\"!isSolicitor\">\n <div class=\"title\">\n <span>{{title | rpxTranslate}}</span>\n </div>\n </div>\n </div>\n\n <div class=\"header-proposition\">\n <div class=\"content\">\n <a href=\"#proposition-links\" class=\"js-header-toggle menu\">{{'Menu' | rpxTranslate}}</a>\n <div *ngIf=\"isSolicitor\" id=\"proposition-menu\">\n <div class=\"title-solicitor\">\n <span id=\"proposition-name\">{{title | rpxTranslate}}</span>\n <ng-content select=\"[headerNavigation]\"></ng-content>\n </div>\n </div>\n\n <div class=\"proposition-right\">\n <span id=\"user-name\">{{username}}</span>\n <a (click)=\"signOut()\" id=\"sign-out\" href=\"javascript:void(0)\">{{'Sign Out' | rpxTranslate}}</a>\n </div>\n </div>\n </div>\n\n </div>\n</header>\n", styles: [".title:after,.global-header .header-username:after,.global-header .header-title:after,.global-header:after{content:\"\";display:block;clear:both}.global-header{background-color:#000;width:100%}.global-header .header-title{font-family:nta,Arial,sans-serif;text-transform:none;font-size:16pt;line-height:1.25;float:left;font-weight:700;color:#fff;position:relative;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}@media (min-width: 641px){.global-header .header-title{font-size:20pt;line-height:1.3}}@media (min-width: 769px){.global-header .header-title{width:50%}}@media screen and (max-width: 379px){.global-header .header-title{width:auto;float:none}}.global-header .header-title .header-title-span{padding-left:22px}.global-header .header-username{font-family:nta,Arial,sans-serif;font-weight:400;text-transform:none;font-size:12pt;line-height:1.25;float:right;text-align:right;color:#fff;position:relative;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}@media (min-width: 641px){.global-header .header-username{font-size:14pt;line-height:1.4285714286}}@media (min-width: 769px){.global-header .header-username{width:50%}}.global-header .header-username .header-username-span{padding-right:15px}#global-header .full-screen{max-width:100%}.title{font-weight:700;color:#fff;font-size:24px}.title-solicitor{float:left}.proposition-right{float:right;padding-top:5px}#global-header.with-proposition .header-wrapper .header-logo{width:27%}#global-header.with-proposition .header-wrapper .header-proposition{width:100%;float:none}#global-header.with-proposition .header-wrapper .header-proposition .content{margin:0}#user-name,#sign-out{font-size:16px;font-weight:700;border:none;color:#fff;margin:0 0 0 9px;text-decoration:none;background-color:#000}#user-name:focus,#sign-out:focus{color:#fff}#sign-out:hover{text-decoration:underline}\n"] }]
248
+ args: [{ selector: 'cut-header-bar', template: "<header role=\"banner\" id=\"global-header\" class=\"with-proposition\">\n <div [class.full-screen]=\"!isSolicitor\" class=\"header-wrapper\">\n\n <div class=\"header-global\" [class.header-logo]=\"isSolicitor\">\n <div *ngIf=\"isSolicitor\">\n <a href=\"https://www.gov.uk\" title=\"Go to the GOV.UK homepage\" id=\"logo\" class=\"content\" style=\"margin-left: 0px;\">\n <img src=\"/img/gov.uk_logotype_crown_invert_trans.png?0.23.0\" width=\"36\" height=\"32\" alt=\"\"> {{'GOV.UK'}}\n </a>\n </div>\n <div class=\"global-header\" *ngIf=\"!isSolicitor\">\n <div class=\"title\">\n <span>{{title | rpxTranslate}}</span>\n </div>\n </div>\n </div>\n\n <div class=\"header-proposition\">\n <div class=\"content\">\n <a href=\"#proposition-links\" class=\"js-header-toggle menu\">{{'Menu' | rpxTranslate}}</a>\n <div *ngIf=\"isSolicitor\" id=\"proposition-menu\">\n <div class=\"title-solicitor\">\n <span id=\"proposition-name\">{{title | rpxTranslate}}</span>\n <ng-content select=\"[headerNavigation]\"></ng-content>\n </div>\n </div>\n\n <div class=\"proposition-right\">\n <span id=\"user-name\">{{username}}</span>\n <a (click)=\"signOut()\" id=\"sign-out\" href=\"javascript:void(0)\">{{'Sign Out' | rpxTranslate}}</a>\n </div>\n </div>\n </div>\n\n </div>\n</header>\n", styles: [".title:after,.global-header .header-username:after,.global-header .header-title:after,.global-header:after{content:\"\";display:block;clear:both}.global-header{background-color:#000;width:100%}.global-header .header-title{font-family:nta,Arial,sans-serif;text-transform:none;font-size:16pt;line-height:1.25;float:left;font-weight:700;color:#fff;position:relative;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}@media (min-width: 641px){.global-header .header-title{font-size:20pt;line-height:1.3}}@media (min-width: 769px){.global-header .header-title{width:50%}}@media screen and (max-width: 379px){.global-header .header-title{width:auto;float:none}}.global-header .header-title .header-title-span{padding-left:22px}.global-header .header-username{font-family:nta,Arial,sans-serif;font-weight:400;text-transform:none;font-size:12pt;line-height:1.25;float:right;text-align:right;color:#fff;position:relative;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}@media (min-width: 641px){.global-header .header-username{font-size:14pt;line-height:1.4285714286}}@media (min-width: 769px){.global-header .header-username{width:50%}}.global-header .header-username .header-username-span{padding-right:15px}#global-header .full-screen{max-width:100%}.title{font-weight:700;color:#fff;font-size:24px}.title-solicitor{float:left}.proposition-right{float:right;padding-top:5px}#global-header.with-proposition .header-wrapper .header-logo{width:27%}#global-header.with-proposition .header-wrapper .header-proposition{width:100%;float:none}#global-header.with-proposition .header-wrapper .header-proposition .content{margin:0}#user-name,#sign-out{font-size:16px;font-weight:700;border:none;color:#fff;margin:0 0 0 9px;text-decoration:none;background-color:#000}#user-name:focus,#sign-out:focus{color:#fff}#sign-out:hover{text-decoration:underline}\n"] }]
250
249
  }], null, { title: [{
251
250
  type: Input
252
251
  }], isSolicitor: [{
@@ -1275,6 +1274,7 @@ class CaseEditorConfig {
1275
1274
  document_management_url_v2;
1276
1275
  hrs_url;
1277
1276
  document_management_secure_enabled;
1277
+ documentSecureModeCaseTypeExclusions;
1278
1278
  login_url;
1279
1279
  oauth2_client_id;
1280
1280
  postcode_lookup_url;
@@ -1644,6 +1644,16 @@ class SessionStorageService {
1644
1644
  type: Injectable
1645
1645
  }], null, null); })();
1646
1646
 
1647
+ const USER_DETAILS = 'userDetails';
1648
+ const PUI_CASE_MANAGER = 'pui-case-manager';
1649
+ const JUDGE = 'judge';
1650
+ function isCaseworker(sessionStorageService) {
1651
+ const userDetails = JSON.parse(sessionStorageService?.getItem(USER_DETAILS));
1652
+ return userDetails && userDetails.roles
1653
+ && !(userDetails.roles.includes(PUI_CASE_MANAGER)
1654
+ || userDetails.roles.some((role) => role.toLowerCase().includes(JUDGE)));
1655
+ }
1656
+
1647
1657
  // @dynamic
1648
1658
  class ActivityService {
1649
1659
  http;
@@ -1669,7 +1679,7 @@ class ActivityService {
1669
1679
  return error;
1670
1680
  }
1671
1681
  getOptions() {
1672
- const userDetails = JSON.parse(this.sessionStorageService.getItem('userDetails'));
1682
+ const userDetails = JSON.parse(this.sessionStorageService.getItem(USER_DETAILS));
1673
1683
  const headers = new HttpHeaders().set('Content-Type', 'application/json').set('Authorization', userDetails.token);
1674
1684
  return {
1675
1685
  headers,
@@ -1703,7 +1713,7 @@ class ActivityService {
1703
1713
  }
1704
1714
  }
1705
1715
  verifyUserIsAuthorized() {
1706
- if (this.sessionStorageService.getItem('userDetails') && this.activityUrl() && this.userAuthorised === undefined) {
1716
+ if (this.sessionStorageService.getItem(USER_DETAILS) && this.activityUrl() && this.userAuthorised === undefined) {
1707
1717
  this.getActivities(ActivityService.DUMMY_CASE_REFERENCE).subscribe(() => this.userAuthorised = true, error => {
1708
1718
  this.userAuthorised = [401, 403].indexOf(error.status) <= -1;
1709
1719
  });
@@ -3278,6 +3288,7 @@ class CaseField {
3278
3288
  wizardProps;
3279
3289
  _value;
3280
3290
  _list_items = [];
3291
+ isTranslatedFlag = false;
3281
3292
  get value() {
3282
3293
  if (this.field_type && (this.field_type.type === 'DynamicList' || this.field_type.type === 'DynamicRadioList')) {
3283
3294
  return this._value && this._value.value ? this._value.value.code : this._value;
@@ -3383,6 +3394,12 @@ class CaseField {
3383
3394
  }
3384
3395
  return null;
3385
3396
  }
3397
+ set isTranslated(val) {
3398
+ this.isTranslatedFlag = val;
3399
+ }
3400
+ get isTranslated() {
3401
+ return this.isTranslatedFlag;
3402
+ }
3386
3403
  }
3387
3404
  __decorate([
3388
3405
  Type(() => FieldType),
@@ -3860,6 +3877,11 @@ class FieldsUtils {
3860
3877
  || ctx === 'OPTIONAL' || ctx === 'HIDDEN'
3861
3878
  || ctx === 'COMPLEX');
3862
3879
  }
3880
+ static isTranslatable(fieldType) {
3881
+ if (fieldType.type === 'Label' || fieldType.type === 'FixedList') {
3882
+ return true;
3883
+ }
3884
+ }
3863
3885
  static convertToCaseField(obj) {
3864
3886
  if (!(obj instanceof CaseField)) {
3865
3887
  return plainToClassFromExist(new CaseField(), obj);
@@ -5053,6 +5075,9 @@ class AbstractFormFieldComponent {
5053
5075
  id() {
5054
5076
  return this.idPrefix + this.caseField.id;
5055
5077
  }
5078
+ isTranslatable(field) {
5079
+ return FieldsUtils.isTranslatable(field.field_type);
5080
+ }
5056
5081
  registerControl(control, replace = false) {
5057
5082
  const container = this.parent || this.formGroup;
5058
5083
  if (!container) {
@@ -6324,6 +6349,7 @@ class FormValueService {
6324
6349
  type: Injectable
6325
6350
  }], () => [{ type: FieldTypeSanitiser }], null); })();
6326
6351
 
6352
+ // This class implements ccd Field Interpolation
6327
6353
  // @dynamic
6328
6354
  class PlaceholderService {
6329
6355
  resolvePlaceholders(pageFormFields, stringToResolve) {
@@ -6535,15 +6561,17 @@ ___
6535
6561
  class LabelSubstitutorDirective {
6536
6562
  fieldsUtils;
6537
6563
  placeholderService;
6564
+ rpxTranslationPipe;
6538
6565
  caseField;
6539
6566
  contextFields = [];
6540
6567
  formGroup;
6541
6568
  elementsToSubstitute = ['label', 'hint_text'];
6542
6569
  initialLabel;
6543
6570
  initialHintText;
6544
- constructor(fieldsUtils, placeholderService) {
6571
+ constructor(fieldsUtils, placeholderService, rpxTranslationPipe) {
6545
6572
  this.fieldsUtils = fieldsUtils;
6546
6573
  this.placeholderService = placeholderService;
6574
+ this.rpxTranslationPipe = rpxTranslationPipe;
6547
6575
  }
6548
6576
  ngOnInit() {
6549
6577
  this.initialLabel = this.caseField.label;
@@ -6551,7 +6579,23 @@ class LabelSubstitutorDirective {
6551
6579
  this.formGroup = this.formGroup || new FormGroup({});
6552
6580
  const fields = this.getReadOnlyAndFormFields();
6553
6581
  if (this.shouldSubstitute('label')) {
6554
- this.caseField.label = this.resolvePlaceholders(fields, this.caseField.label);
6582
+ const oldLabel = this.caseField.label;
6583
+ const substitutedLabel = this.resolvePlaceholders(fields, this.caseField.label);
6584
+ if (oldLabel && oldLabel !== substitutedLabel) {
6585
+ console.log(`placeholders present: ${oldLabel} -> ${substitutedLabel}`);
6586
+ // we need to translate the uninterpolated data then substitute the values in translated string
6587
+ const translated = this.rpxTranslationPipe.transform(oldLabel);
6588
+ console.log(`translated: ${translated}`);
6589
+ const transSubstitutedLabel = this.resolvePlaceholders(fields, translated);
6590
+ console.log(`translated and substituted: ${transSubstitutedLabel}`);
6591
+ this.caseField.label = transSubstitutedLabel;
6592
+ this.caseField.isTranslated = true;
6593
+ }
6594
+ else {
6595
+ console.log(`no placeholders present: ${oldLabel}`);
6596
+ this.caseField.label = substitutedLabel;
6597
+ this.caseField.isTranslated = false;
6598
+ }
6555
6599
  }
6556
6600
  if (this.shouldSubstitute('hint_text')) {
6557
6601
  this.caseField.hint_text = this.resolvePlaceholders(fields, this.caseField.hint_text);
@@ -6593,13 +6637,13 @@ class LabelSubstitutorDirective {
6593
6637
  resolvePlaceholders(fields, stringToResolve) {
6594
6638
  return this.placeholderService.resolvePlaceholders(fields, stringToResolve);
6595
6639
  }
6596
- static ɵfac = function LabelSubstitutorDirective_Factory(t) { return new (t || LabelSubstitutorDirective)(i0.ɵɵdirectiveInject(FieldsUtils), i0.ɵɵdirectiveInject(PlaceholderService)); };
6640
+ static ɵfac = function LabelSubstitutorDirective_Factory(t) { return new (t || LabelSubstitutorDirective)(i0.ɵɵdirectiveInject(FieldsUtils), i0.ɵɵdirectiveInject(PlaceholderService), i0.ɵɵdirectiveInject(i1.RpxTranslatePipe)); };
6597
6641
  static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: LabelSubstitutorDirective, selectors: [["", "ccdLabelSubstitutor", ""]], inputs: { caseField: "caseField", contextFields: "contextFields", formGroup: "formGroup", elementsToSubstitute: "elementsToSubstitute" } });
6598
6642
  }
6599
6643
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LabelSubstitutorDirective, [{
6600
6644
  type: Directive,
6601
6645
  args: [{ selector: '[ccdLabelSubstitutor]' }]
6602
- }], () => [{ type: FieldsUtils }, { type: PlaceholderService }], { caseField: [{
6646
+ }], () => [{ type: FieldsUtils }, { type: PlaceholderService }, { type: i1.RpxTranslatePipe }], { caseField: [{
6603
6647
  type: Input
6604
6648
  }], contextFields: [{
6605
6649
  type: Input
@@ -6990,9 +7034,55 @@ class ReadCookieService {
6990
7034
  args: [DOCUMENT]
6991
7035
  }] }], null); })();
6992
7036
 
7037
+ class CaseNotifier {
7038
+ casesService;
7039
+ static CASE_NAME = 'caseNameHmctsInternal';
7040
+ static CASE_LOCATION = 'caseManagementLocation';
7041
+ caseViewSource = new BehaviorSubject(new CaseView());
7042
+ caseView = this.caseViewSource.asObservable();
7043
+ cachedCaseView;
7044
+ constructor(casesService) {
7045
+ this.casesService = casesService;
7046
+ }
7047
+ removeCachedCase() {
7048
+ this.cachedCaseView = null;
7049
+ }
7050
+ announceCase(c) {
7051
+ this.caseViewSource.next(c);
7052
+ }
7053
+ fetchAndRefresh(cid) {
7054
+ return this.casesService
7055
+ .getCaseViewV2(cid)
7056
+ .pipe(map(caseView => {
7057
+ this.cachedCaseView = plainToClassFromExist(new CaseView(), caseView);
7058
+ this.setBasicFields(this.cachedCaseView.tabs);
7059
+ this.announceCase(this.cachedCaseView);
7060
+ return this.cachedCaseView;
7061
+ }));
7062
+ }
7063
+ setBasicFields(tabs) {
7064
+ tabs.forEach((t) => {
7065
+ const caseName = t.fields.find(f => f.id === CaseNotifier.CASE_NAME);
7066
+ const caseLocation = t.fields.find(f => f.id === CaseNotifier.CASE_LOCATION);
7067
+ if (caseName || caseLocation) {
7068
+ this.cachedCaseView.basicFields = {
7069
+ caseNameHmctsInternal: caseName ? caseName.value : null,
7070
+ caseManagementLocation: caseLocation ? caseLocation.value : null
7071
+ };
7072
+ }
7073
+ });
7074
+ }
7075
+ static ɵfac = function CaseNotifier_Factory(t) { return new (t || CaseNotifier)(i0.ɵɵinject(CasesService)); };
7076
+ static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: CaseNotifier, factory: CaseNotifier.ɵfac });
7077
+ }
7078
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseNotifier, [{
7079
+ type: Injectable
7080
+ }], () => [{ type: CasesService }], null); })();
7081
+
6993
7082
  class DocumentManagementService {
6994
7083
  http;
6995
7084
  appConfig;
7085
+ caseNotifierService;
6996
7086
  static PDF = 'pdf';
6997
7087
  static IMAGE = 'image';
6998
7088
  static WORD = 'word';
@@ -7007,9 +7097,10 @@ class DocumentManagementService {
7007
7097
  static wordList = ['DOC', 'DOCX', 'doc', 'docx'];
7008
7098
  static excelList = ['XLS', 'XLSX', 'xls', 'xlsx'];
7009
7099
  static powerpointList = ['PPT', 'PPTX', 'ppt', 'pptx'];
7010
- constructor(http, appConfig) {
7100
+ constructor(http, appConfig, caseNotifierService) {
7011
7101
  this.http = http;
7012
7102
  this.appConfig = appConfig;
7103
+ this.caseNotifierService = caseNotifierService;
7013
7104
  }
7014
7105
  uploadFile(formData) {
7015
7106
  const url = this.getDocStoreUrl();
@@ -7087,14 +7178,22 @@ class DocumentManagementService {
7087
7178
  return documentBinaryUrl.replace(remoteDocumentManagementPattern, this.getDocStoreUrl());
7088
7179
  }
7089
7180
  getDocStoreUrl() {
7090
- return this.appConfig.getDocumentSecureMode() ? this.appConfig.getDocumentManagementUrlV2() : this.appConfig.getDocumentManagementUrl();
7091
- }
7092
- static ɵfac = function DocumentManagementService_Factory(t) { return new (t || DocumentManagementService)(i0.ɵɵinject(HttpService), i0.ɵɵinject(AbstractAppConfig)); };
7181
+ let docStoreUrl = '';
7182
+ this.caseNotifierService.caseView.subscribe((caseDetails) => {
7183
+ const caseType = caseDetails?.case_type?.id;
7184
+ const documentSecureModeCaseTypeExclusions = this.appConfig.getDocumentSecureModeCaseTypeExclusions()?.split(',');
7185
+ const isDocumentOnExclusionList = documentSecureModeCaseTypeExclusions?.includes(caseType);
7186
+ const documentSecureModeEnabled = this.appConfig.getDocumentSecureMode();
7187
+ docStoreUrl = (documentSecureModeEnabled && !isDocumentOnExclusionList) ? this.appConfig.getDocumentManagementUrlV2() : this.appConfig.getDocumentManagementUrl();
7188
+ }).unsubscribe();
7189
+ return docStoreUrl;
7190
+ }
7191
+ static ɵfac = function DocumentManagementService_Factory(t) { return new (t || DocumentManagementService)(i0.ɵɵinject(HttpService), i0.ɵɵinject(AbstractAppConfig), i0.ɵɵinject(CaseNotifier)); };
7093
7192
  static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: DocumentManagementService, factory: DocumentManagementService.ɵfac });
7094
7193
  }
7095
7194
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DocumentManagementService, [{
7096
7195
  type: Injectable
7097
- }], () => [{ type: HttpService }, { type: AbstractAppConfig }], null); })();
7196
+ }], () => [{ type: HttpService }, { type: AbstractAppConfig }, { type: CaseNotifier }], null); })();
7098
7197
 
7099
7198
  class ErrorNotifierService {
7100
7199
  errorSource = new BehaviorSubject(null);
@@ -8435,51 +8534,6 @@ class CaseworkerService {
8435
8534
  type: Injectable
8436
8535
  }], () => [{ type: HttpService }, { type: AbstractAppConfig }, { type: HttpErrorService }], null); })();
8437
8536
 
8438
- class CaseNotifier {
8439
- casesService;
8440
- static CASE_NAME = 'caseNameHmctsInternal';
8441
- static CASE_LOCATION = 'caseManagementLocation';
8442
- caseViewSource = new BehaviorSubject(new CaseView());
8443
- caseView = this.caseViewSource.asObservable();
8444
- cachedCaseView;
8445
- constructor(casesService) {
8446
- this.casesService = casesService;
8447
- }
8448
- removeCachedCase() {
8449
- this.cachedCaseView = null;
8450
- }
8451
- announceCase(c) {
8452
- this.caseViewSource.next(c);
8453
- }
8454
- fetchAndRefresh(cid) {
8455
- return this.casesService
8456
- .getCaseViewV2(cid)
8457
- .pipe(map(caseView => {
8458
- this.cachedCaseView = plainToClassFromExist(new CaseView(), caseView);
8459
- this.setBasicFields(this.cachedCaseView.tabs);
8460
- this.announceCase(this.cachedCaseView);
8461
- return this.cachedCaseView;
8462
- }));
8463
- }
8464
- setBasicFields(tabs) {
8465
- tabs.forEach((t) => {
8466
- const caseName = t.fields.find(f => f.id === CaseNotifier.CASE_NAME);
8467
- const caseLocation = t.fields.find(f => f.id === CaseNotifier.CASE_LOCATION);
8468
- if (caseName || caseLocation) {
8469
- this.cachedCaseView.basicFields = {
8470
- caseNameHmctsInternal: caseName ? caseName.value : null,
8471
- caseManagementLocation: caseLocation ? caseLocation.value : null
8472
- };
8473
- }
8474
- });
8475
- }
8476
- static ɵfac = function CaseNotifier_Factory(t) { return new (t || CaseNotifier)(i0.ɵɵinject(CasesService)); };
8477
- static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: CaseNotifier, factory: CaseNotifier.ɵfac });
8478
- }
8479
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseNotifier, [{
8480
- type: Injectable
8481
- }], () => [{ type: CasesService }], null); })();
8482
-
8483
8537
  var Permissions;
8484
8538
  (function (Permissions) {
8485
8539
  Permissions["Own"] = "OWN";
@@ -8852,10 +8906,7 @@ class WorkAllocationService {
8852
8906
  .post(url, { actionByEvent: true, eventName: eventName })
8853
8907
  .pipe(catchError(error => {
8854
8908
  this.errorService.setError(error);
8855
- // this will subscribe to get the user details and decide whether to display an error message
8856
- this.http.get(this.appConfig.getUserInfoApiUrl()).pipe(map(response => response)).subscribe((response) => {
8857
- this.handleTaskCompletionError(response);
8858
- });
8909
+ this.handleTaskCompletionError();
8859
8910
  return throwError(error);
8860
8911
  }));
8861
8912
  }
@@ -8881,10 +8932,7 @@ class WorkAllocationService {
8881
8932
  })
8882
8933
  .pipe(catchError(error => {
8883
8934
  this.errorService.setError(error);
8884
- // this will subscribe to get the user details and decide whether to display an error message
8885
- this.http.get(this.appConfig.getUserInfoApiUrl()).pipe(map(response => response)).subscribe((response) => {
8886
- this.handleTaskCompletionError(response);
8887
- });
8935
+ this.handleTaskCompletionError();
8888
8936
  return throwError(error);
8889
8937
  }));
8890
8938
  }
@@ -8892,24 +8940,13 @@ class WorkAllocationService {
8892
8940
  * Handles the response from the observable to get the user details when task is completed.
8893
8941
  * @param response is the response given from the observable which contains the user detaild.
8894
8942
  */
8895
- handleTaskCompletionError(response) {
8896
- const userDetails = response;
8897
- if (this.userIsCaseworker(userDetails.userInfo.roles)) {
8943
+ handleTaskCompletionError() {
8944
+ if (isCaseworker(this.sessionStorageService)) {
8898
8945
  // when submitting the completion of task if not yet rendered cases/case confirm then preserve the alert for re-rendering
8899
8946
  this.alertService.setPreserveAlerts(true, ['cases/case', 'submit']);
8900
8947
  this.alertService.warning({ phrase: 'A task could not be completed successfully. Please complete the task associated with the case manually.' });
8901
8948
  }
8902
8949
  }
8903
- /**
8904
- * Returns true if the user's role is equivalent to a caseworker.
8905
- * @param roles is the list of roles found from the current user.
8906
- */
8907
- userIsCaseworker(roles) {
8908
- const lowerCaseRoles = roles.map(role => role.toLowerCase());
8909
- // When/if lib & target permanently change to es2016, replace indexOf with includes
8910
- return (lowerCaseRoles.indexOf(WorkAllocationService.iACCaseOfficer) !== -1)
8911
- || (lowerCaseRoles.indexOf(WorkAllocationService.iACAdmOfficer) !== -1);
8912
- }
8913
8950
  /**
8914
8951
  * Look for open tasks for a case and event combination. There are 5 possible scenarios:
8915
8952
  * 1. No tasks found => Success.
@@ -11476,12 +11513,11 @@ class CallbackErrorsContext {
11476
11513
  function CallbackErrorsComponent_div_0_ng_container_2_li_5_Template(rf, ctx) { if (rf & 1) {
11477
11514
  i0.ɵɵelementStart(0, "li");
11478
11515
  i0.ɵɵtext(1);
11479
- i0.ɵɵpipe(2, "rpxTranslate");
11480
11516
  i0.ɵɵelementEnd();
11481
11517
  } if (rf & 2) {
11482
11518
  const errorMsg_r1 = ctx.$implicit;
11483
11519
  i0.ɵɵadvance();
11484
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, errorMsg_r1), " ");
11520
+ i0.ɵɵtextInterpolate1(" ", errorMsg_r1, " ");
11485
11521
  } }
11486
11522
  function CallbackErrorsComponent_div_0_ng_container_2_Template(rf, ctx) { if (rf & 1) {
11487
11523
  i0.ɵɵelementContainerStart(0);
@@ -11490,7 +11526,7 @@ function CallbackErrorsComponent_div_0_ng_container_2_Template(rf, ctx) { if (rf
11490
11526
  i0.ɵɵpipe(3, "rpxTranslate");
11491
11527
  i0.ɵɵelementEnd();
11492
11528
  i0.ɵɵelementStart(4, "ul", 4);
11493
- i0.ɵɵtemplate(5, CallbackErrorsComponent_div_0_ng_container_2_li_5_Template, 3, 3, "li", 5);
11529
+ i0.ɵɵtemplate(5, CallbackErrorsComponent_div_0_ng_container_2_li_5_Template, 2, 1, "li", 5);
11494
11530
  i0.ɵɵelementEnd();
11495
11531
  i0.ɵɵelementContainerEnd();
11496
11532
  } if (rf & 2) {
@@ -11506,12 +11542,11 @@ function CallbackErrorsComponent_div_0_br_3_Template(rf, ctx) { if (rf & 1) {
11506
11542
  function CallbackErrorsComponent_div_0_ng_container_4_li_5_Template(rf, ctx) { if (rf & 1) {
11507
11543
  i0.ɵɵelementStart(0, "li");
11508
11544
  i0.ɵɵtext(1);
11509
- i0.ɵɵpipe(2, "rpxTranslate");
11510
11545
  i0.ɵɵelementEnd();
11511
11546
  } if (rf & 2) {
11512
11547
  const warningMsg_r3 = ctx.$implicit;
11513
11548
  i0.ɵɵadvance();
11514
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, warningMsg_r3), " ");
11549
+ i0.ɵɵtextInterpolate1(" ", warningMsg_r3, " ");
11515
11550
  } }
11516
11551
  function CallbackErrorsComponent_div_0_ng_container_4_Template(rf, ctx) { if (rf & 1) {
11517
11552
  i0.ɵɵelementContainerStart(0);
@@ -11520,7 +11555,7 @@ function CallbackErrorsComponent_div_0_ng_container_4_Template(rf, ctx) { if (rf
11520
11555
  i0.ɵɵpipe(3, "rpxTranslate");
11521
11556
  i0.ɵɵelementEnd();
11522
11557
  i0.ɵɵelementStart(4, "ul", 6);
11523
- i0.ɵɵtemplate(5, CallbackErrorsComponent_div_0_ng_container_4_li_5_Template, 3, 3, "li", 5);
11558
+ i0.ɵɵtemplate(5, CallbackErrorsComponent_div_0_ng_container_4_li_5_Template, 2, 1, "li", 5);
11524
11559
  i0.ɵɵelementEnd();
11525
11560
  i0.ɵɵelementContainerEnd();
11526
11561
  } if (rf & 2) {
@@ -11594,7 +11629,7 @@ class CallbackErrorsComponent {
11594
11629
  && this.error.details.field_errors.length;
11595
11630
  }
11596
11631
  static ɵfac = function CallbackErrorsComponent_Factory(t) { return new (t || CallbackErrorsComponent)(); };
11597
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CallbackErrorsComponent, selectors: [["ccd-callback-errors"]], inputs: { triggerTextIgnore: "triggerTextIgnore", triggerTextContinue: "triggerTextContinue", callbackErrorsSubject: "callbackErrorsSubject" }, outputs: { callbackErrorsContext: "callbackErrorsContext" }, decls: 1, vars: 1, consts: [["class", "error-summary", "role", "group", "tabindex", "-1", 4, "ngIf"], ["role", "group", "tabindex", "-1", 1, "error-summary"], [4, "ngIf"], [1, "heading-h3", "error-summary-heading"], ["id", "errors", 1, "error-summary-list"], [4, "ngFor", "ngForOf"], ["id", "warnings", 1, "error-summary-list"]], template: function CallbackErrorsComponent_Template(rf, ctx) { if (rf & 1) {
11632
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CallbackErrorsComponent, selectors: [["ccd-callback-errors"]], inputs: { triggerTextIgnore: "triggerTextIgnore", triggerTextContinue: "triggerTextContinue", callbackErrorsSubject: "callbackErrorsSubject" }, outputs: { callbackErrorsContext: "callbackErrorsContext" }, decls: 1, vars: 1, consts: [["class", "error-summary", "tabindex", "-1", 4, "ngIf"], ["tabindex", "-1", 1, "error-summary"], [4, "ngIf"], [1, "heading-h3", "error-summary-heading"], ["id", "errors", 1, "error-summary-list"], [4, "ngFor", "ngForOf"], ["id", "warnings", 1, "error-summary-list"]], template: function CallbackErrorsComponent_Template(rf, ctx) { if (rf & 1) {
11598
11633
  i0.ɵɵtemplate(0, CallbackErrorsComponent_div_0_Template, 5, 6, "div", 0);
11599
11634
  } if (rf & 2) {
11600
11635
  i0.ɵɵproperty("ngIf", ctx.hasErrors() || ctx.hasWarnings());
@@ -11602,7 +11637,7 @@ class CallbackErrorsComponent {
11602
11637
  }
11603
11638
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CallbackErrorsComponent, [{
11604
11639
  type: Component,
11605
- args: [{ selector: 'ccd-callback-errors', template: "<div *ngIf=\"hasErrors() || hasWarnings()\" class=\"error-summary\" role=\"group\"\n [attr.aria-label]=\"'Cannot continue because the service reported one or more errors or warnings' | rpxTranslate\"\n tabindex=\"-1\">\n <ng-container *ngIf=\"hasErrors()\">\n <h3 class=\"heading-h3 error-summary-heading\">\n {{'Errors' | rpxTranslate}}\n </h3>\n <ul id=\"errors\" class=\"error-summary-list\">\n <li *ngFor=\"let errorMsg of error.callbackErrors\">\n {{errorMsg | rpxTranslate}}\n </li>\n </ul>\n </ng-container>\n <!-- Add a break for spacing if there are both errors and warnings -->\n <br *ngIf=\"hasErrors() && hasWarnings()\">\n <ng-container *ngIf=\"hasWarnings()\">\n <h3 class=\"heading-h3 error-summary-heading\">\n {{'Warnings' | rpxTranslate}}\n </h3>\n <ul id=\"warnings\" class=\"error-summary-list\">\n <li *ngFor=\"let warningMsg of error.callbackWarnings\">\n {{warningMsg | rpxTranslate}}\n </li>\n </ul>\n </ng-container>\n</div>\n" }]
11640
+ args: [{ selector: 'ccd-callback-errors', template: "<div *ngIf=\"hasErrors() || hasWarnings()\" class=\"error-summary\"\n [attr.aria-label]=\"'Cannot continue because the service reported one or more errors or warnings' | rpxTranslate\"\n tabindex=\"-1\">\n <ng-container *ngIf=\"hasErrors()\">\n <h3 class=\"heading-h3 error-summary-heading\">\n {{'Errors' | rpxTranslate}}\n </h3>\n <ul id=\"errors\" class=\"error-summary-list\">\n <li *ngFor=\"let errorMsg of error.callbackErrors\">\n {{errorMsg}}\n </li>\n </ul>\n </ng-container>\n <!-- Add a break for spacing if there are both errors and warnings -->\n <br *ngIf=\"hasErrors() && hasWarnings()\">\n <ng-container *ngIf=\"hasWarnings()\">\n <h3 class=\"heading-h3 error-summary-heading\">\n {{'Warnings' | rpxTranslate}}\n </h3>\n <ul id=\"warnings\" class=\"error-summary-list\">\n <li *ngFor=\"let warningMsg of error.callbackWarnings\">\n {{warningMsg}}\n </li>\n </ul>\n </ng-container>\n</div>\n" }]
11606
11641
  }], null, { triggerTextIgnore: [{
11607
11642
  type: Input
11608
11643
  }], triggerTextContinue: [{
@@ -12073,34 +12108,46 @@ class FieldsFilterPipe {
12073
12108
  }]
12074
12109
  }], null, null); })();
12075
12110
 
12076
- function WriteComplexFieldComponent_h2_3_Template(rf, ctx) { if (rf & 1) {
12077
- i0.ɵɵelementStart(0, "h2", 3);
12078
- i0.ɵɵtext(1);
12111
+ function WriteComplexFieldComponent_legend_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
12112
+ i0.ɵɵelementContainerStart(0);
12113
+ i0.ɵɵelementStart(1, "h2", 3);
12114
+ i0.ɵɵtext(2);
12115
+ i0.ɵɵpipe(3, "ccdFieldLabel");
12116
+ i0.ɵɵelementEnd();
12117
+ i0.ɵɵelementContainerEnd();
12118
+ } if (rf & 2) {
12119
+ const ctx_r0 = i0.ɵɵnextContext(2);
12120
+ i0.ɵɵadvance(2);
12121
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, ctx_r0.caseField));
12122
+ } }
12123
+ function WriteComplexFieldComponent_legend_2_Template(rf, ctx) { if (rf & 1) {
12124
+ i0.ɵɵelementStart(0, "legend");
12125
+ i0.ɵɵtemplate(1, WriteComplexFieldComponent_legend_2_ng_container_1_Template, 4, 3, "ng-container", 1);
12079
12126
  i0.ɵɵpipe(2, "ccdFieldLabel");
12080
12127
  i0.ɵɵelementEnd();
12081
12128
  } if (rf & 2) {
12082
12129
  const ctx_r0 = i0.ɵɵnextContext();
12083
12130
  i0.ɵɵadvance();
12084
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
12131
+ i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
12085
12132
  } }
12086
- function WriteComplexFieldComponent_ng_container_4_ccd_field_read_2_Template(rf, ctx) { if (rf & 1) {
12133
+ function WriteComplexFieldComponent_ng_container_3_ccd_field_read_2_Template(rf, ctx) { if (rf & 1) {
12087
12134
  i0.ɵɵelement(0, "ccd-field-read", 7);
12088
12135
  } if (rf & 2) {
12089
12136
  const field_r2 = i0.ɵɵnextContext().$implicit;
12090
12137
  const ctx_r0 = i0.ɵɵnextContext();
12091
12138
  i0.ɵɵproperty("caseField", ctx_r0.buildField(field_r2))("caseFields", ctx_r0.caseFields)("formGroup", ctx_r0.formGroup)("withLabel", true);
12092
12139
  } }
12093
- function WriteComplexFieldComponent_ng_container_4_ccd_field_write_3_Template(rf, ctx) { if (rf & 1) {
12140
+ function WriteComplexFieldComponent_ng_container_3_ccd_field_write_3_Template(rf, ctx) { if (rf & 1) {
12094
12141
  i0.ɵɵelement(0, "ccd-field-write", 8);
12095
12142
  } if (rf & 2) {
12096
12143
  const field_r2 = i0.ɵɵnextContext().$implicit;
12097
12144
  const ctx_r0 = i0.ɵɵnextContext();
12098
12145
  i0.ɵɵproperty("caseField", field_r2)("caseFields", ctx_r0.caseFields)("formGroup", ctx_r0.formGroup)("parent", ctx_r0.complexGroup)("idPrefix", ctx_r0.buildIdPrefix(field_r2))("hidden", field_r2.hidden)("isExpanded", ctx_r0.isExpanded)("isInSearchBlock", ctx_r0.isInSearchBlock);
12099
12146
  } }
12100
- function WriteComplexFieldComponent_ng_container_4_Template(rf, ctx) { if (rf & 1) {
12147
+ function WriteComplexFieldComponent_ng_container_3_Template(rf, ctx) { if (rf & 1) {
12101
12148
  i0.ɵɵelementContainerStart(0, 4);
12102
12149
  i0.ɵɵpipe(1, "ccdIsReadOnly");
12103
- i0.ɵɵtemplate(2, WriteComplexFieldComponent_ng_container_4_ccd_field_read_2_Template, 1, 4, "ccd-field-read", 5)(3, WriteComplexFieldComponent_ng_container_4_ccd_field_write_3_Template, 1, 8, "ccd-field-write", 6);
12150
+ i0.ɵɵtemplate(2, WriteComplexFieldComponent_ng_container_3_ccd_field_read_2_Template, 1, 4, "ccd-field-read", 5)(3, WriteComplexFieldComponent_ng_container_3_ccd_field_write_3_Template, 1, 8, "ccd-field-write", 6);
12104
12151
  i0.ɵɵelementContainerEnd();
12105
12152
  } if (rf & 2) {
12106
12153
  const field_r2 = ctx.$implicit;
@@ -12207,15 +12254,13 @@ class WriteComplexFieldComponent extends AbstractFieldWriteComponent {
12207
12254
  });
12208
12255
  }
12209
12256
  static ɵfac = function WriteComplexFieldComponent_Factory(t) { return new (t || WriteComplexFieldComponent)(i0.ɵɵdirectiveInject(IsCompoundPipe), i0.ɵɵdirectiveInject(FormValidatorsService)); };
12210
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteComplexFieldComponent, selectors: [["ccd-write-complex-type-field"]], inputs: { caseFields: "caseFields", renderLabel: "renderLabel", ignoreMandatory: "ignoreMandatory" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 3, consts: [[1, "form-group", 3, "id"], ["class", "heading-h2", 4, "ngIf"], [3, "ngSwitch", 4, "ngFor", "ngForOf"], [1, "heading-h2"], [3, "ngSwitch"], ["ccdLabelSubstitutor", "", 3, "caseField", "caseFields", "formGroup", "withLabel", 4, "ngSwitchCase"], ["ccdLabelSubstitutor", "", 3, "caseField", "caseFields", "formGroup", "parent", "idPrefix", "hidden", "isExpanded", "isInSearchBlock", 4, "ngSwitchCase"], ["ccdLabelSubstitutor", "", 3, "caseField", "caseFields", "formGroup", "withLabel"], ["ccdLabelSubstitutor", "", 3, "caseField", "caseFields", "formGroup", "parent", "idPrefix", "hidden", "isExpanded", "isInSearchBlock"]], template: function WriteComplexFieldComponent_Template(rf, ctx) { if (rf & 1) {
12211
- i0.ɵɵelementStart(0, "div", 0)(1, "fieldset")(2, "legend");
12212
- i0.ɵɵtemplate(3, WriteComplexFieldComponent_h2_3_Template, 3, 3, "h2", 1);
12213
- i0.ɵɵelementEnd();
12214
- i0.ɵɵtemplate(4, WriteComplexFieldComponent_ng_container_4_Template, 4, 5, "ng-container", 2);
12257
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteComplexFieldComponent, selectors: [["ccd-write-complex-type-field"]], inputs: { caseFields: "caseFields", renderLabel: "renderLabel", ignoreMandatory: "ignoreMandatory" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 4, vars: 3, consts: [[1, "form-group", 3, "id"], [4, "ngIf"], [3, "ngSwitch", 4, "ngFor", "ngForOf"], [1, "heading-h2"], [3, "ngSwitch"], ["ccdLabelSubstitutor", "", 3, "caseField", "caseFields", "formGroup", "withLabel", 4, "ngSwitchCase"], ["ccdLabelSubstitutor", "", 3, "caseField", "caseFields", "formGroup", "parent", "idPrefix", "hidden", "isExpanded", "isInSearchBlock", 4, "ngSwitchCase"], ["ccdLabelSubstitutor", "", 3, "caseField", "caseFields", "formGroup", "withLabel"], ["ccdLabelSubstitutor", "", 3, "caseField", "caseFields", "formGroup", "parent", "idPrefix", "hidden", "isExpanded", "isInSearchBlock"]], template: function WriteComplexFieldComponent_Template(rf, ctx) { if (rf & 1) {
12258
+ i0.ɵɵelementStart(0, "div", 0)(1, "fieldset");
12259
+ i0.ɵɵtemplate(2, WriteComplexFieldComponent_legend_2_Template, 3, 3, "legend", 1)(3, WriteComplexFieldComponent_ng_container_3_Template, 4, 5, "ng-container", 2);
12215
12260
  i0.ɵɵelementEnd()();
12216
12261
  } if (rf & 2) {
12217
12262
  i0.ɵɵproperty("id", ctx.id());
12218
- i0.ɵɵadvance(3);
12263
+ i0.ɵɵadvance(2);
12219
12264
  i0.ɵɵproperty("ngIf", ctx.renderLabel);
12220
12265
  i0.ɵɵadvance();
12221
12266
  i0.ɵɵproperty("ngForOf", ctx.complexFields);
@@ -12223,7 +12268,7 @@ class WriteComplexFieldComponent extends AbstractFieldWriteComponent {
12223
12268
  }
12224
12269
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteComplexFieldComponent, [{
12225
12270
  type: Component,
12226
- args: [{ selector: 'ccd-write-complex-type-field', template: "<div class=\"form-group\" [id]=\"id()\">\n <fieldset>\n <legend><h2 *ngIf=\"renderLabel\" class=\"heading-h2\">{{(caseField | ccdFieldLabel)}}</h2></legend>\n <ng-container [ngSwitch]=\"field | ccdIsReadOnly\" *ngFor=\"let field of complexFields\">\n <ccd-field-read *ngSwitchCase=\"true\"\n ccdLabelSubstitutor\n [caseField]=\"buildField(field)\"\n [caseFields]=\"caseFields\"\n [formGroup]=\"formGroup\"\n [withLabel]=\"true\">\n </ccd-field-read>\n <ccd-field-write *ngSwitchCase=\"false\"\n ccdLabelSubstitutor\n [caseField]=\"field\"\n [caseFields]=\"caseFields\"\n [formGroup]=\"formGroup\"\n [parent]=\"complexGroup\"\n [idPrefix]=\"buildIdPrefix(field)\"\n [hidden]=\"field.hidden\"\n [isExpanded]=\"isExpanded\"\n [isInSearchBlock]=\"isInSearchBlock\">\n </ccd-field-write>\n </ng-container>\n </fieldset>\n</div>\n", styles: [".complex-panel{margin:13px 0;border:1px solid #bfc1c3}.complex-panel .complex-panel-title{background-color:#dee0e2;padding:5px 5px 2px;border-bottom:1px solid #bfc1c3;display:block;color:#0b0c0c;font-family:nta,Arial,sans-serif;font-weight:700;text-transform:none;font-size:16px;line-height:1.25}@media (min-width: 641px){.complex-panel .complex-panel-title{font-size:19px;line-height:1.3157894737}}.complex-panel .complex-panel-table>tbody>tr>th{vertical-align:top}.complex-panel .complex-panel-table>tbody>tr:last-child>th,.complex-panel .complex-panel-table>tbody>tr:last-child>td{border-bottom:none}.complex-panel .complex-panel-simple-field th{padding-left:5px;width:295px}.complex-panel .complex-panel-compound-field td{padding:5px}\n"] }]
12271
+ args: [{ selector: 'ccd-write-complex-type-field', template: "<div class=\"form-group\" [id]=\"id()\">\n <fieldset>\n <legend *ngIf=\"renderLabel\">\n <ng-container *ngIf=\"caseField | ccdFieldLabel\">\n <h2 class=\"heading-h2\">{{(caseField | ccdFieldLabel)}}</h2>\n </ng-container>\n </legend>\n <ng-container [ngSwitch]=\"field | ccdIsReadOnly\" *ngFor=\"let field of complexFields\">\n <ccd-field-read *ngSwitchCase=\"true\"\n ccdLabelSubstitutor\n [caseField]=\"buildField(field)\"\n [caseFields]=\"caseFields\"\n [formGroup]=\"formGroup\"\n [withLabel]=\"true\">\n </ccd-field-read>\n <ccd-field-write *ngSwitchCase=\"false\"\n ccdLabelSubstitutor\n [caseField]=\"field\"\n [caseFields]=\"caseFields\"\n [formGroup]=\"formGroup\"\n [parent]=\"complexGroup\"\n [idPrefix]=\"buildIdPrefix(field)\"\n [hidden]=\"field.hidden\"\n [isExpanded]=\"isExpanded\"\n [isInSearchBlock]=\"isInSearchBlock\">\n </ccd-field-write>\n </ng-container>\n </fieldset>\n</div>\n", styles: [".complex-panel{margin:13px 0;border:1px solid #bfc1c3}.complex-panel .complex-panel-title{background-color:#dee0e2;padding:5px 5px 2px;border-bottom:1px solid #bfc1c3;display:block;color:#0b0c0c;font-family:nta,Arial,sans-serif;font-weight:700;text-transform:none;font-size:16px;line-height:1.25}@media (min-width: 641px){.complex-panel .complex-panel-title{font-size:19px;line-height:1.3157894737}}.complex-panel .complex-panel-table>tbody>tr>th{vertical-align:top}.complex-panel .complex-panel-table>tbody>tr:last-child>th,.complex-panel .complex-panel-table>tbody>tr:last-child>td{border-bottom:none}.complex-panel .complex-panel-simple-field th{padding-left:5px;width:295px}.complex-panel .complex-panel-compound-field td{padding:5px}\n"] }]
12227
12272
  }], () => [{ type: IsCompoundPipe }, { type: FormValidatorsService }], { caseFields: [{
12228
12273
  type: Input
12229
12274
  }], renderLabel: [{
@@ -15478,7 +15523,7 @@ function WriteDynamicListFieldComponent_span_5_Template(rf, ctx) { if (rf & 1) {
15478
15523
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r0.dynamicListFormControl.errors, ctx_r0.caseField.label));
15479
15524
  } }
15480
15525
  function WriteDynamicListFieldComponent_option_10_Template(rf, ctx) { if (rf & 1) {
15481
- i0.ɵɵelementStart(0, "option", 11);
15526
+ i0.ɵɵelementStart(0, "option", 6);
15482
15527
  i0.ɵɵtext(1);
15483
15528
  i0.ɵɵpipe(2, "rpxTranslate");
15484
15529
  i0.ɵɵelementEnd();
@@ -15513,7 +15558,7 @@ class WriteDynamicListFieldComponent extends AbstractFieldWriteComponent {
15513
15558
  this.dynamicListFormControl.setValue(this.caseField.value);
15514
15559
  }
15515
15560
  static ɵfac = /*@__PURE__*/ (() => { let ɵWriteDynamicListFieldComponent_BaseFactory; return function WriteDynamicListFieldComponent_Factory(t) { return (ɵWriteDynamicListFieldComponent_BaseFactory || (ɵWriteDynamicListFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(WriteDynamicListFieldComponent)))(t || WriteDynamicListFieldComponent); }; })();
15516
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteDynamicListFieldComponent, selectors: [["ccd-write-dynamic-list-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 11, vars: 15, consts: [[1, "form-group", 3, "ngClass"], [3, "for"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [1, "form-control", "ccd-dropdown", "bottom-30", 3, "id", "formControl"], [3, "ngValue"], ["role", "option", 3, "ngValue", 4, "ngFor", "ngForOf"], [1, "form-label"], [1, "form-hint"], [1, "error-message"], ["role", "option", 3, "ngValue"]], template: function WriteDynamicListFieldComponent_Template(rf, ctx) { if (rf & 1) {
15561
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteDynamicListFieldComponent, selectors: [["ccd-write-dynamic-list-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 11, vars: 15, consts: [[1, "form-group", 3, "ngClass"], [3, "for"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [1, "form-control", "ccd-dropdown", "bottom-30", 3, "id", "formControl"], [3, "ngValue"], [3, "ngValue", 4, "ngFor", "ngForOf"], [1, "form-label"], [1, "form-hint"], [1, "error-message"]], template: function WriteDynamicListFieldComponent_Template(rf, ctx) { if (rf & 1) {
15517
15562
  i0.ɵɵelementStart(0, "div", 0)(1, "label", 1);
15518
15563
  i0.ɵɵtemplate(2, WriteDynamicListFieldComponent_span_2_Template, 3, 3, "span", 2);
15519
15564
  i0.ɵɵelementEnd();
@@ -15548,19 +15593,20 @@ class WriteDynamicListFieldComponent extends AbstractFieldWriteComponent {
15548
15593
  }
15549
15594
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteDynamicListFieldComponent, [{
15550
15595
  type: Component,
15551
- args: [{ selector: 'ccd-write-dynamic-list-field', template: "<div class=\"form-group\"\n [ngClass]=\"{'form-group-error': !dynamicListFormControl.valid && (dynamicListFormControl.dirty || dynamicListFormControl.touched)}\">\n\n <label [for]=\"id()\">\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{(caseField | ccdFieldLabel)}}</span>\n </label>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text | rpxTranslate}}</span>\n <span class=\"form-label\" *ngIf=\"!caseField.label && !caseField.hint_text\">{{'Select an option from the dropdown' | rpxTranslate}}</span>\n <span class=\"error-message\"\n *ngIf=\"dynamicListFormControl.errors && dynamicListFormControl.dirty\">{{(dynamicListFormControl.errors |\n ccdFirstError:caseField.label)}}</span>\n\n <select class=\"form-control ccd-dropdown bottom-30\" [id]=\"id()\"\n [formControl]=\"dynamicListFormControl\">\n <option [ngValue]=null>{{'--Select a value--' | rpxTranslate}}</option>\n <option [ngValue]=\"type.code\" *ngFor=\"let type of caseField.list_items\" role=\"option\">{{type.label | rpxTranslate}}</option>\n </select>\n</div>\n" }]
15596
+ args: [{ selector: 'ccd-write-dynamic-list-field', template: "<div class=\"form-group\"\n [ngClass]=\"{'form-group-error': !dynamicListFormControl.valid && (dynamicListFormControl.dirty || dynamicListFormControl.touched)}\">\n\n <label [for]=\"id()\">\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{(caseField | ccdFieldLabel)}}</span>\n </label>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text | rpxTranslate}}</span>\n <span class=\"form-label\" *ngIf=\"!caseField.label && !caseField.hint_text\">{{'Select an option from the dropdown' | rpxTranslate}}</span>\n <span class=\"error-message\"\n *ngIf=\"dynamicListFormControl.errors && dynamicListFormControl.dirty\">{{(dynamicListFormControl.errors |\n ccdFirstError:caseField.label)}}</span>\n\n <select class=\"form-control ccd-dropdown bottom-30\" [id]=\"id()\"\n [formControl]=\"dynamicListFormControl\">\n <option [ngValue]=null>{{'--Select a value--' | rpxTranslate}}</option>\n <option [ngValue]=\"type.code\" *ngFor=\"let type of caseField.list_items\">{{type.label | rpxTranslate}}</option>\n </select>\n</div>\n" }]
15552
15597
  }], null, null); })();
15553
15598
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteDynamicListFieldComponent, { className: "WriteDynamicListFieldComponent", filePath: "lib/shared/components/palette/dynamic-list/write-dynamic-list-field.component.ts", lineNumber: 9 }); })();
15554
15599
 
15555
15600
  class MarkdownComponent {
15556
15601
  router;
15557
15602
  renderer;
15603
+ ngZone;
15558
15604
  content;
15559
- markdownUseHrefAsRouterLink;
15560
15605
  renderUrlToTextFeature = true;
15561
- constructor(router, renderer) {
15606
+ constructor(router, renderer, ngZone) {
15562
15607
  this.router = router;
15563
15608
  this.renderer = renderer;
15609
+ this.ngZone = ngZone;
15564
15610
  }
15565
15611
  ngOnInit() {
15566
15612
  this.content = this.content.replace(/ \n/g, '<br>');
@@ -15568,12 +15614,28 @@ class MarkdownComponent {
15568
15614
  this.renderUrlToText();
15569
15615
  }
15570
15616
  }
15571
- onMarkdownClick(event) {
15572
- // If we don't have an anchor tag, we don't need to do anything.
15573
- if (event.target instanceof HTMLAnchorElement === false) {
15574
- return;
15575
- }
15576
- return true;
15617
+ interceptClick(event) {
15618
+ this.ngZone.runOutsideAngular(() => {
15619
+ const target = event.target;
15620
+ if (target.tagName.toLowerCase() === 'a') {
15621
+ const href = target.getAttribute('href');
15622
+ if (href && href.startsWith('/') && !href.startsWith('//')) {
15623
+ const currentUrl = window.location.href;
15624
+ if (currentUrl.includes('trigger')) {
15625
+ // if we are already in an event and there is a markdown we should reload the page as without the components will not reinitialise
15626
+ this.ngZone.run(() => {
15627
+ this.router.navigateByUrl(href);
15628
+ });
15629
+ }
15630
+ else {
15631
+ event.preventDefault();
15632
+ this.ngZone.run(() => {
15633
+ this.router.navigateByUrl(href);
15634
+ });
15635
+ }
15636
+ }
15637
+ }
15638
+ });
15577
15639
  }
15578
15640
  renderUrlToText() {
15579
15641
  const renderer = new marked.Renderer();
@@ -15596,34 +15658,27 @@ class MarkdownComponent {
15596
15658
  const markdownLinkRegex = /\[([^\]]+)\]\(?([^ )]+)\)/g;
15597
15659
  return markdownLinkRegex.test(inputString);
15598
15660
  }
15599
- static ɵfac = function MarkdownComponent_Factory(t) { return new (t || MarkdownComponent)(i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(i0.Renderer2)); };
15600
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MarkdownComponent, selectors: [["ccd-markdown"]], hostBindings: function MarkdownComponent_HostBindings(rf, ctx) { if (rf & 1) {
15601
- i0.ɵɵlistener("click", function MarkdownComponent_click_HostBindingHandler($event) { return ctx.onMarkdownClick($event); });
15602
- } }, inputs: { content: "content", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink", renderUrlToTextFeature: "renderUrlToTextFeature" }, decls: 4, vars: 5, consts: [[1, "markdown", 3, "data"]], template: function MarkdownComponent_Template(rf, ctx) { if (rf & 1) {
15603
- i0.ɵɵelementStart(0, "div");
15604
- i0.ɵɵelement(1, "markdown", 0);
15661
+ static ɵfac = function MarkdownComponent_Factory(t) { return new (t || MarkdownComponent)(i0.ɵɵdirectiveInject(i1$1.Router), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.NgZone)); };
15662
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MarkdownComponent, selectors: [["ccd-markdown"]], inputs: { content: "content", renderUrlToTextFeature: "renderUrlToTextFeature" }, decls: 4, vars: 5, consts: [[1, "markdown", 3, "click", "data"]], template: function MarkdownComponent_Template(rf, ctx) { if (rf & 1) {
15663
+ i0.ɵɵelementStart(0, "div")(1, "markdown", 0);
15605
15664
  i0.ɵɵpipe(2, "ccdCaseReference");
15606
15665
  i0.ɵɵpipe(3, "rpxTranslate");
15607
- i0.ɵɵelementEnd();
15666
+ i0.ɵɵlistener("click", function MarkdownComponent_Template_markdown_click_1_listener($event) { return ctx.interceptClick($event); });
15667
+ i0.ɵɵelementEnd()();
15608
15668
  } if (rf & 2) {
15609
15669
  i0.ɵɵadvance();
15610
15670
  i0.ɵɵproperty("data", i0.ɵɵpipeBind1(3, 3, i0.ɵɵpipeBind1(2, 1, ctx.content)));
15611
- } }, dependencies: [i2$1.MarkdownComponent, i1.RpxTranslatePipe, CaseReferencePipe], encapsulation: 2 });
15671
+ } }, dependencies: [i2$1.MarkdownComponent, i1.RpxTranslatePipe, CaseReferencePipe], encapsulation: 2, changeDetection: 0 });
15612
15672
  }
15613
15673
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MarkdownComponent, [{
15614
15674
  type: Component,
15615
- args: [{ selector: 'ccd-markdown', template: "<div><markdown class=\"markdown\" [data]=\"content | ccdCaseReference | rpxTranslate\"></markdown></div>\n" }]
15616
- }], () => [{ type: i1$1.Router }, { type: i0.Renderer2 }], { content: [{
15617
- type: Input
15618
- }], markdownUseHrefAsRouterLink: [{
15675
+ args: [{ selector: 'ccd-markdown', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div><markdown class=\"markdown\" (click)=\"interceptClick($event)\" [data]=\"content | ccdCaseReference | rpxTranslate\"></markdown></div>\n" }]
15676
+ }], () => [{ type: i1$1.Router }, { type: i0.Renderer2 }, { type: i0.NgZone }], { content: [{
15619
15677
  type: Input
15620
15678
  }], renderUrlToTextFeature: [{
15621
15679
  type: Input
15622
- }], onMarkdownClick: [{
15623
- type: HostListener,
15624
- args: ['click', ['$event']]
15625
15680
  }] }); })();
15626
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MarkdownComponent, { className: "MarkdownComponent", filePath: "lib/shared/components/palette/markdown/markdown.component.ts", lineNumber: 9 }); })();
15681
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MarkdownComponent, { className: "MarkdownComponent", filePath: "lib/shared/components/palette/markdown/markdown.component.ts", lineNumber: 10 }); })();
15627
15682
 
15628
15683
  class FixedListPipe {
15629
15684
  static EMPTY = '';
@@ -16639,45 +16694,50 @@ function LabelFieldComponent_ccd_markdown_2_Template(rf, ctx) { if (rf & 1) {
16639
16694
  i0.ɵɵpipe(1, "rpxTranslate");
16640
16695
  } if (rf & 2) {
16641
16696
  const ctx_r0 = i0.ɵɵnextContext();
16642
- i0.ɵɵproperty("content", i0.ɵɵpipeBind1(1, 2, ctx_r0.caseField.label))("markdownUseHrefAsRouterLink", ctx_r0.markdownUseHrefAsRouterLink);
16697
+ i0.ɵɵproperty("content", i0.ɵɵpipeBind1(1, 1, ctx_r0.caseField.label));
16643
16698
  } }
16644
16699
  function LabelFieldComponent_ccd_markdown_3_Template(rf, ctx) { if (rf & 1) {
16645
16700
  i0.ɵɵelement(0, "ccd-markdown", 2);
16646
16701
  } if (rf & 2) {
16647
16702
  const ctx_r0 = i0.ɵɵnextContext();
16648
- i0.ɵɵproperty("content", ctx_r0.caseField.value || ctx_r0.caseField.label)("markdownUseHrefAsRouterLink", ctx_r0.markdownUseHrefAsRouterLink);
16703
+ i0.ɵɵproperty("content", ctx_r0.caseField.label);
16704
+ } }
16705
+ function LabelFieldComponent_ccd_markdown_4_Template(rf, ctx) { if (rf & 1) {
16706
+ i0.ɵɵelement(0, "ccd-markdown", 2);
16707
+ } if (rf & 2) {
16708
+ const ctx_r0 = i0.ɵɵnextContext();
16709
+ i0.ɵɵproperty("content", ctx_r0.caseField.value || ctx_r0.caseField.label);
16649
16710
  } }
16650
16711
  class LabelFieldComponent {
16651
16712
  caseField;
16652
16713
  caseFields = [];
16653
16714
  labelCanBeTranslated = false;
16654
- markdownUseHrefAsRouterLink;
16655
16715
  static ɵfac = function LabelFieldComponent_Factory(t) { return new (t || LabelFieldComponent)(); };
16656
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LabelFieldComponent, selectors: [["ccd-label-field"]], inputs: { caseField: "caseField", caseFields: "caseFields", labelCanBeTranslated: "labelCanBeTranslated", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink" }, decls: 5, vars: 6, consts: [["ccdLabelSubstitutor", "", 1, "case-field", 3, "hidden", "caseField", "contextFields", "id"], [3, "content", "markdownUseHrefAsRouterLink", 4, "ngIf"], [3, "content", "markdownUseHrefAsRouterLink"]], template: function LabelFieldComponent_Template(rf, ctx) { if (rf & 1) {
16716
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LabelFieldComponent, selectors: [["ccd-label-field"]], inputs: { caseField: "caseField", caseFields: "caseFields", labelCanBeTranslated: "labelCanBeTranslated" }, decls: 6, vars: 7, consts: [["ccdLabelSubstitutor", "", 1, "case-field", 3, "hidden", "caseField", "contextFields", "id"], [3, "content", 4, "ngIf"], [3, "content"]], template: function LabelFieldComponent_Template(rf, ctx) { if (rf & 1) {
16657
16717
  i0.ɵɵelementStart(0, "dl", 0)(1, "dt");
16658
- i0.ɵɵtemplate(2, LabelFieldComponent_ccd_markdown_2_Template, 2, 4, "ccd-markdown", 1)(3, LabelFieldComponent_ccd_markdown_3_Template, 1, 2, "ccd-markdown", 1);
16718
+ i0.ɵɵtemplate(2, LabelFieldComponent_ccd_markdown_2_Template, 2, 3, "ccd-markdown", 1)(3, LabelFieldComponent_ccd_markdown_3_Template, 1, 1, "ccd-markdown", 1)(4, LabelFieldComponent_ccd_markdown_4_Template, 1, 1, "ccd-markdown", 1);
16659
16719
  i0.ɵɵelementEnd();
16660
- i0.ɵɵelement(4, "dd");
16720
+ i0.ɵɵelement(5, "dd");
16661
16721
  i0.ɵɵelementEnd();
16662
16722
  } if (rf & 2) {
16663
16723
  i0.ɵɵproperty("hidden", ctx.caseField.hidden)("caseField", ctx.caseField)("contextFields", ctx.caseFields)("id", ctx.caseField.id);
16664
16724
  i0.ɵɵadvance(2);
16665
- i0.ɵɵproperty("ngIf", ctx.labelCanBeTranslated);
16725
+ i0.ɵɵproperty("ngIf", ctx.labelCanBeTranslated && !ctx.caseField.isTranslated);
16726
+ i0.ɵɵadvance();
16727
+ i0.ɵɵproperty("ngIf", ctx.labelCanBeTranslated && ctx.caseField.isTranslated);
16666
16728
  i0.ɵɵadvance();
16667
16729
  i0.ɵɵproperty("ngIf", !ctx.labelCanBeTranslated);
16668
16730
  } }, encapsulation: 2 });
16669
16731
  }
16670
16732
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LabelFieldComponent, [{
16671
16733
  type: Component,
16672
- args: [{ selector: 'ccd-label-field', template: "<dl [hidden]=\"caseField.hidden\" class=\"case-field\" ccdLabelSubstitutor [caseField]=\"caseField\" [contextFields]=\"caseFields\" [id]=\"caseField.id\">\n <dt>\n <ccd-markdown *ngIf=\"labelCanBeTranslated\" [content]=\"caseField.label | rpxTranslate\" [markdownUseHrefAsRouterLink]=\"markdownUseHrefAsRouterLink\">\n </ccd-markdown>\n\n <ccd-markdown *ngIf=\"!labelCanBeTranslated\" [content]=\"caseField.value || caseField.label\" [markdownUseHrefAsRouterLink]=\"markdownUseHrefAsRouterLink\">\n </ccd-markdown>\n </dt>\n <dd></dd>\n</dl>\n" }]
16734
+ args: [{ selector: 'ccd-label-field', template: "<dl [hidden]=\"caseField.hidden\" class=\"case-field\" ccdLabelSubstitutor [caseField]=\"caseField\" [contextFields]=\"caseFields\" [id]=\"caseField.id\">\n <dt>\n <ccd-markdown *ngIf=\"labelCanBeTranslated && !caseField.isTranslated\" [content]=\"caseField.label | rpxTranslate\">\n </ccd-markdown>\n\n <ccd-markdown *ngIf=\"labelCanBeTranslated && caseField.isTranslated\" [content]=\"caseField.label\">\n </ccd-markdown>\n\n <ccd-markdown *ngIf=\"!labelCanBeTranslated\" [content]=\"caseField.value || caseField.label\">\n </ccd-markdown>\n </dt>\n <dd></dd>\n</dl>\n" }]
16673
16735
  }], null, { caseField: [{
16674
16736
  type: Input
16675
16737
  }], caseFields: [{
16676
16738
  type: Input
16677
16739
  }], labelCanBeTranslated: [{
16678
16740
  type: Input
16679
- }], markdownUseHrefAsRouterLink: [{
16680
- type: Input
16681
16741
  }] }); })();
16682
16742
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LabelFieldComponent, { className: "LabelFieldComponent", filePath: "lib/shared/components/palette/label/label-field.component.ts", lineNumber: 8 }); })();
16683
16743
 
@@ -17015,7 +17075,7 @@ class CheckYourAnswersComponent extends AbstractJourneyComponent {
17015
17075
  i0.ɵɵelementStart(12, "th", 8);
17016
17076
  i0.ɵɵtext(13, "Reasons for case link");
17017
17077
  i0.ɵɵelementEnd();
17018
- i0.ɵɵelement(14, "th", 8);
17078
+ i0.ɵɵelement(14, "td", 8);
17019
17079
  i0.ɵɵtemplate(15, CheckYourAnswersComponent_th_15_Template, 1, 0, "th", 9);
17020
17080
  i0.ɵɵelementEnd()();
17021
17081
  i0.ɵɵelementStart(16, "tbody", 10);
@@ -17036,7 +17096,7 @@ class CheckYourAnswersComponent extends AbstractJourneyComponent {
17036
17096
  }
17037
17097
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CheckYourAnswersComponent, [{
17038
17098
  type: Component,
17039
- args: [{ selector: 'ccd-linked-cases-check-your-answers', template: "<div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <h1 class=\"govuk-heading-xl\">Check your answers</h1>\n <!-- Top table for manage link cases journey -->\n <table id=\"cases-to-unlink-table\" class=\"govuk-table\" *ngIf=\"!isLinkCasesJourney\">\n <caption class=\"govuk-table__caption govuk-table__caption--m\">Cases to unlink</caption>\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <th scope=\"col\" class=\"govuk-table__header\">Case name and number</th>\n <th scope=\"col\" class=\"govuk-table__header\"></th>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\" *ngFor=\"let case of casesToUnlink\">\n <td class=\"govuk-table__cell\">\n {{case.caseName}} <br> {{case.caseReference | ccdCaseReference}}\n </td>\n <td class=\"govuk-table__cell\">\n <a href=\"javascript:void(0)\" class=\"govuk-link govuk-link--no-visited-state float-right\" (click)=\"onChange()\">Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\" *ngIf=\"!casesToUnlink.length\">\n <td class=\"govuk-table__cell\" colspan=\"2\">\n None\n </td>\n </tr>\n </tbody>\n </table>\n <!-- Table for both link case and manage link case journeys -->\n <table id=\"linked-cases-table\" class=\"govuk-table\">\n <caption class=\"govuk-table__caption govuk-table__caption--m\">{{linkedCasesTableCaption}}</caption>\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <th scope=\"col\" class=\"govuk-table__header\">Case name and number</th>\n <th scope=\"col\" class=\"govuk-table__header\">Reasons for case link</th>\n <th scope=\"col\" class=\"govuk-table__header\"></th>\n <th scope=\"col\" class=\"govuk-table__header\" *ngIf=\"isLinkCasesJourney\"></th>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\" *ngFor=\"let case of linkedCases\">\n <td class=\"govuk-table__cell\">\n <span>{{case.caseName}} <br> {{case.caseReference | ccdCaseReference}} </span>\n </td>\n <td class=\"govuk-table__cell\">\n <span *ngFor=\"let reason of case.reasons; last as isLast\">\n <span *ngIf=\"isLinkCasesJourney\">\n {{reason | ccdLinkCasesReasonValue}}\n </span>\n <span *ngIf=\"!isLinkCasesJourney\">\n {{reason.Reason.value | ccdLinkCasesReasonValue}}\n </span>\n <br *ngIf=\"!isLast\">\n </span>\n </td>\n <td class=\"govuk-table__cell\"></td>\n <td class=\"govuk-table__cell\" *ngIf=\"isLinkCasesJourney\">\n <a href=\"javascript:void(0)\" class=\"govuk-link govuk-link--no-visited-state float-right\" (click)=\"onChange()\">Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\" *ngIf=\"!linkedCases.length\">\n <td class=\"govuk-table__cell\" colspan=\"4\">\n None\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n</div>\n", styles: [".float-right{float:right}\n"] }]
17099
+ args: [{ selector: 'ccd-linked-cases-check-your-answers', template: "<div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <h1 class=\"govuk-heading-xl\">Check your answers</h1>\n <!-- Top table for manage link cases journey -->\n <table id=\"cases-to-unlink-table\" class=\"govuk-table\" *ngIf=\"!isLinkCasesJourney\">\n <caption class=\"govuk-table__caption govuk-table__caption--m\">Cases to unlink</caption>\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <th scope=\"col\" class=\"govuk-table__header\">Case name and number</th>\n <th scope=\"col\" class=\"govuk-table__header\"></th>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\" *ngFor=\"let case of casesToUnlink\">\n <td class=\"govuk-table__cell\">\n {{case.caseName}} <br> {{case.caseReference | ccdCaseReference}}\n </td>\n <td class=\"govuk-table__cell\">\n <a href=\"javascript:void(0)\" class=\"govuk-link govuk-link--no-visited-state float-right\" (click)=\"onChange()\">Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\" *ngIf=\"!casesToUnlink.length\">\n <td class=\"govuk-table__cell\" colspan=\"2\">\n None\n </td>\n </tr>\n </tbody>\n </table>\n <!-- Table for both link case and manage link case journeys -->\n <table id=\"linked-cases-table\" class=\"govuk-table\">\n <caption class=\"govuk-table__caption govuk-table__caption--m\">{{linkedCasesTableCaption}}</caption>\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <th scope=\"col\" class=\"govuk-table__header\">Case name and number</th>\n <th scope=\"col\" class=\"govuk-table__header\">Reasons for case link</th>\n <td scope=\"col\" class=\"govuk-table__header\"></td>\n <th scope=\"col\" class=\"govuk-table__header\" *ngIf=\"isLinkCasesJourney\"></th>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <tr class=\"govuk-table__row\" *ngFor=\"let case of linkedCases\">\n <td class=\"govuk-table__cell\">\n <span>{{case.caseName}} <br> {{case.caseReference | ccdCaseReference}} </span>\n </td>\n <td class=\"govuk-table__cell\">\n <span *ngFor=\"let reason of case.reasons; last as isLast\">\n <span *ngIf=\"isLinkCasesJourney\">\n {{reason | ccdLinkCasesReasonValue}}\n </span>\n <span *ngIf=\"!isLinkCasesJourney\">\n {{reason.Reason.value | ccdLinkCasesReasonValue}}\n </span>\n <br *ngIf=\"!isLast\">\n </span>\n </td>\n <td class=\"govuk-table__cell\"></td>\n <td class=\"govuk-table__cell\" *ngIf=\"isLinkCasesJourney\">\n <a href=\"javascript:void(0)\" class=\"govuk-link govuk-link--no-visited-state float-right\" (click)=\"onChange()\">Change</a>\n </td>\n </tr>\n <tr class=\"govuk-table__row\" *ngIf=\"!linkedCases.length\">\n <td class=\"govuk-table__cell\" colspan=\"4\">\n None\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n</div>\n", styles: [".float-right{float:right}\n"] }]
17040
17100
  }], () => [{ type: LinkedCasesService }, { type: MultipageComponentStateService }], { linkedCasesStateEmitter: [{
17041
17101
  type: Output
17042
17102
  }] }); })();
@@ -20791,11 +20851,12 @@ class QueryManagementUtils {
20791
20851
  static caseLevelCaseFieldId = 'CaseQueriesCollection';
20792
20852
  static FIELD_TYPE_COLLECTION = 'Collection';
20793
20853
  static FIELD_TYPE_COMPLEX = 'Complex';
20854
+ static DISPLAY_CONTEXT_READONLY = 'READONLY';
20794
20855
  static extractCaseQueriesFromCaseField(caseField) {
20795
- const { field_type, value } = caseField;
20856
+ const { field_type, value, display_context } = caseField;
20796
20857
  // Handle Complex type fields
20797
20858
  if (field_type.type === QueryManagementUtils.FIELD_TYPE_COMPLEX) {
20798
- if (field_type.id === QueryManagementUtils.caseLevelCaseFieldId && QueryManagementUtils.isNonEmptyObject(value)) {
20859
+ if (field_type.id === QueryManagementUtils.caseLevelCaseFieldId && display_context !== QueryManagementUtils.DISPLAY_CONTEXT_READONLY && QueryManagementUtils.isNonEmptyObject(value)) {
20799
20860
  return value;
20800
20861
  }
20801
20862
  return null;
@@ -21067,6 +21128,9 @@ class QueryCheckYourAnswersComponent {
21067
21128
  CASE_QUERIES_COLLECTION_ID = 'CaseQueriesCollection';
21068
21129
  FIELD_TYPE_COMPLEX = 'Complex';
21069
21130
  DISPLAY_CONTEXT_READONLY = 'READONLY';
21131
+ QM_SELECT_FIRST_COLLECTION = 'selectFirstCollection';
21132
+ QM_COLLECTION_PROMPT = 'promptQmCollection';
21133
+ CIVIL_JURISDICTION = 'CIVIL';
21070
21134
  formGroup;
21071
21135
  queryItem;
21072
21136
  queryCreateContext;
@@ -21079,6 +21143,8 @@ class QueryCheckYourAnswersComponent {
21079
21143
  tid;
21080
21144
  createEventSubscription;
21081
21145
  searchTasksSubscription;
21146
+ firstCollectionPicked = false; // Track whether the first collection has been picked
21147
+ firstCollectionOrder;
21082
21148
  queryCreateContextEnum = QueryCreateContext;
21083
21149
  eventCompletionParams;
21084
21150
  caseQueriesCollections;
@@ -21115,11 +21181,13 @@ class QueryCheckYourAnswersComponent {
21115
21181
  .subscribe({
21116
21182
  next: (response) => {
21117
21183
  // Filter task by query id
21118
- if (this.tid && response.tasks?.length > 1) {
21119
- this.filteredTasks = response.tasks?.filter((task) => task.id === this.tid);
21120
- }
21121
- else {
21122
- this.filteredTasks = response.tasks;
21184
+ if (this.tid) {
21185
+ if (response.tasks?.length > 1) {
21186
+ this.filteredTasks = response.tasks?.filter((task) => task.id === this.tid);
21187
+ }
21188
+ else {
21189
+ this.filteredTasks = response.tasks;
21190
+ }
21123
21191
  }
21124
21192
  },
21125
21193
  error: (error) => {
@@ -21158,7 +21226,14 @@ class QueryCheckYourAnswersComponent {
21158
21226
  });
21159
21227
  }
21160
21228
  else {
21161
- console.error('Error: No task to complete found');
21229
+ console.error('Error: No task to complete was found');
21230
+ this.errorMessages = [
21231
+ {
21232
+ title: 'Error',
21233
+ description: 'No task to complete was found',
21234
+ fieldId: 'field-id'
21235
+ }
21236
+ ];
21162
21237
  }
21163
21238
  }
21164
21239
  else {
@@ -21189,7 +21264,7 @@ class QueryCheckYourAnswersComponent {
21189
21264
  this.router.navigate(['/', 'service-down']);
21190
21265
  }
21191
21266
  generateCaseQueriesCollectionData() {
21192
- const currentUserDetails = JSON.parse(this.sessionStorageService.getItem('userDetails'));
21267
+ const currentUserDetails = JSON.parse(this.sessionStorageService.getItem(USER_DETAILS));
21193
21268
  const caseMessage = this.queryCreateContext === QueryCreateContext.NEW_QUERY
21194
21269
  ? QueryManagementUtils.getNewQueryData(this.formGroup, currentUserDetails)
21195
21270
  : QueryManagementUtils.getRespondOrFollowupQueryData(this.formGroup, this.queryItem, currentUserDetails);
@@ -21273,10 +21348,17 @@ class QueryCheckYourAnswersComponent {
21273
21348
  const messageId = this.route.snapshot.params.dataid;
21274
21349
  // Check if the field_type matches CaseQueriesCollection and type is Complex
21275
21350
  if (data.field_type.id === this.CASE_QUERIES_COLLECTION_ID && data.field_type.type === this.FIELD_TYPE_COMPLEX) {
21276
- if (this.queryCreateContext === QueryCreateContext.NEW_QUERY && data.display_context !== this.DISPLAY_CONTEXT_READONLY) {
21277
- this.fieldId = id;
21278
- // TODO
21279
- //if number qmCaseQueriesCollection is more then filter out the right qmCaseQueriesCollection
21351
+ if (this.isNewQueryContext(data)) {
21352
+ // If there is more than one qmCaseQueriesCollection, pick the one with the lowest order
21353
+ if (count > 1) {
21354
+ if (!this.handleMultipleCollections()) {
21355
+ return;
21356
+ }
21357
+ }
21358
+ else {
21359
+ // Set the field ID dynamically based on the extracted data
21360
+ this.fieldId = id; // Store the ID for use in generating newQueryData
21361
+ }
21280
21362
  }
21281
21363
  // If messageId is present, find the corresponding case message
21282
21364
  this.setMessageFieldId(messageId, value, id);
@@ -21291,6 +21373,45 @@ class QueryCheckYourAnswersComponent {
21291
21373
  }
21292
21374
  }
21293
21375
  }
21376
+ isNewQueryContext(data) {
21377
+ return this.queryCreateContext === QueryCreateContext.NEW_QUERY && data.display_context !== this.DISPLAY_CONTEXT_READONLY;
21378
+ }
21379
+ handleMultipleCollections() {
21380
+ const jurisdictionId = this.caseDetails?.case_type?.jurisdiction?.id;
21381
+ if (!jurisdictionId) {
21382
+ console.error('Jurisdiction ID is missing.');
21383
+ return false;
21384
+ }
21385
+ if (this.getCollectionSelectionMethod(jurisdictionId) === this.QM_SELECT_FIRST_COLLECTION) {
21386
+ // Pick the collection with the lowest order
21387
+ this.fieldId = this.getCaseQueriesCollectionFieldOrderFromWizardPages()?.id;
21388
+ }
21389
+ else {
21390
+ // Display Error, for now, until EXUI-2644 is implemented
21391
+ console.error(`Error: Multiple CaseQueriesCollections are not supported yet for the ${jurisdictionId} jurisdiction`);
21392
+ return false;
21393
+ }
21394
+ return true;
21395
+ }
21396
+ getCaseQueriesCollectionFieldOrderFromWizardPages() {
21397
+ const candidateFields = this.eventData?.case_fields?.filter((field) => field.field_type.id === this.CASE_QUERIES_COLLECTION_ID &&
21398
+ field.field_type.type === this.FIELD_TYPE_COMPLEX &&
21399
+ field.display_context !== this.DISPLAY_CONTEXT_READONLY);
21400
+ if (!candidateFields?.length)
21401
+ return undefined;
21402
+ const firstPageFields = this.eventData?.wizard_pages?.[0]?.wizard_page_fields;
21403
+ if (!firstPageFields)
21404
+ return undefined;
21405
+ return candidateFields
21406
+ .map((field) => {
21407
+ const wizardField = firstPageFields.find(f => f.case_field_id === field.id);
21408
+ return { field, order: wizardField?.order ?? Number.MAX_SAFE_INTEGER };
21409
+ })
21410
+ .sort((a, b) => a.order - b.order)[0]?.field;
21411
+ }
21412
+ getCollectionSelectionMethod(jurisdiction) {
21413
+ return jurisdiction.toUpperCase() === this.CIVIL_JURISDICTION ? this.QM_SELECT_FIRST_COLLECTION : this.QM_COLLECTION_PROMPT;
21414
+ }
21294
21415
  getDocumentAttachments() {
21295
21416
  const attachmentsValue = this.formGroup.get('attachments').value;
21296
21417
  if (attachmentsValue && attachmentsValue.length > 0) {
@@ -21383,7 +21504,7 @@ class QueryCheckYourAnswersComponent {
21383
21504
  }], querySubmitted: [{
21384
21505
  type: Output
21385
21506
  }] }); })();
21386
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryCheckYourAnswersComponent, { className: "QueryCheckYourAnswersComponent", filePath: "lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.ts", lineNumber: 27 }); })();
21507
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryCheckYourAnswersComponent, { className: "QueryCheckYourAnswersComponent", filePath: "lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.ts", lineNumber: 28 }); })();
21387
21508
 
21388
21509
  function QueryDetailsComponent_ng_container_0_cut_alert_1_Template(rf, ctx) { if (rf & 1) {
21389
21510
  i0.ɵɵelementStart(0, "cut-alert", 11);
@@ -21733,10 +21854,7 @@ class QueryDetailsComponent {
21733
21854
  this.backClicked.emit(true);
21734
21855
  }
21735
21856
  isCaseworker() {
21736
- const userDetails = JSON.parse(this.sessionStorageService.getItem('userDetails'));
21737
- return userDetails && userDetails.roles
21738
- && !(userDetails.roles.includes('pui-case-manager')
21739
- || userDetails.roles.some((role) => role.toLowerCase().includes('judge')));
21857
+ return isCaseworker(this.sessionStorageService);
21740
21858
  }
21741
21859
  ngOnChanges() {
21742
21860
  this.toggleLinkVisibility();
@@ -21780,7 +21898,7 @@ class QueryDetailsComponent {
21780
21898
  }], hasResponded: [{
21781
21899
  type: Output
21782
21900
  }] }); })();
21783
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryDetailsComponent, { className: "QueryDetailsComponent", filePath: "lib/shared/components/palette/query-management/components/query-details/query-details.component.ts", lineNumber: 12 }); })();
21901
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryDetailsComponent, { className: "QueryDetailsComponent", filePath: "lib/shared/components/palette/query-management/components/query-details/query-details.component.ts", lineNumber: 15 }); })();
21784
21902
 
21785
21903
  class QueryEventCompletionComponent {
21786
21904
  eventCompletionParams;
@@ -22818,10 +22936,7 @@ class ReadQueryManagementFieldComponent extends AbstractFieldReadComponent {
22818
22936
  this.query = null;
22819
22937
  }
22820
22938
  isCaseworker() {
22821
- const userDetails = JSON.parse(this.sessionStorageService?.getItem('userDetails'));
22822
- return userDetails && userDetails.roles
22823
- && !(userDetails.roles.includes('pui-case-manager')
22824
- || userDetails.roles.some((role) => role.toLowerCase().includes('judge')));
22939
+ return isCaseworker(this.sessionStorageService);
22825
22940
  }
22826
22941
  static ɵfac = function ReadQueryManagementFieldComponent_Factory(t) { return new (t || ReadQueryManagementFieldComponent)(i0.ɵɵdirectiveInject(i1$1.ActivatedRoute), i0.ɵɵdirectiveInject(SessionStorageService), i0.ɵɵdirectiveInject(CaseNotifier)); };
22827
22942
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadQueryManagementFieldComponent, selectors: [["ccd-read-query-management-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 2, consts: [["singleQueryDetails", ""], ["queryIsInReview", ""], [4, "ngIf", "ngIfElse"], [4, "ngFor", "ngForOf"], ["class", "govuk-!-margin-top-8 govuk-!-margin-bottom-8", 4, "ngIf"], [1, "govuk-!-margin-top-8", "govuk-!-margin-bottom-8"], [3, "selectedQuery", "caseQueriesCollection"], [3, "backClicked", "query", "caseId"], [4, "ngIf"], ["id", "ask-follow-up-question", "data-module", "govuk-button", 1, "govuk-button", 3, "routerLink"], [1, "govuk-!-font-weight-bold"]], template: function ReadQueryManagementFieldComponent_Template(rf, ctx) { if (rf & 1) {
@@ -22835,25 +22950,24 @@ class ReadQueryManagementFieldComponent extends AbstractFieldReadComponent {
22835
22950
  type: Component,
22836
22951
  args: [{ selector: 'ccd-read-query-management-field', template: "<ng-container *ngIf=\"showQueryList; else singleQueryDetails\">\n <ng-container *ngFor=\"let caseQueriesCollection of caseQueriesCollections\">\n <div *ngIf=\"showQueryList\" class=\"govuk-!-margin-top-8 govuk-!-margin-bottom-8\">\n <ccd-query-list (selectedQuery)=\"setQuery($event)\" [caseQueriesCollection]=\"caseQueriesCollection\"></ccd-query-list>\n </div>\n </ng-container>\n</ng-container>\n\n<ng-template #singleQueryDetails>\n <ccd-query-details\n [query]=\"query\"\n (backClicked)=\"showQueryList = true\"\n [caseId]=\"caseId\"\n ></ccd-query-details>\n\n <ng-container *ngIf=\"!isCaseworker()\">\n <ng-container *ngIf=\"query?.children?.length > 0 && query?.children?.length % 2 === 1; else queryIsInReview\">\n <button id=\"ask-follow-up-question\" class=\"govuk-button\" data-module=\"govuk-button\"\n [routerLink]=\"['/query-management', 'query', caseId, '4', query.id]\">\n {{ 'Ask a follow-up question' | rpxTranslate }}\n </button>\n </ng-container>\n\n <ng-template #queryIsInReview>\n <div>\n <p class=\"govuk-!-font-weight-bold\">{{ 'Your query is under review' | rpxTranslate }}</p>\n <p>{{ 'Our team will read your query and will respond. Do not submit the same query more than once.' | rpxTranslate }}</p>\n </div>\n </ng-template>\n </ng-container>\n</ng-template>\n" }]
22837
22952
  }], () => [{ type: i1$1.ActivatedRoute }, { type: SessionStorageService }, { type: CaseNotifier }], null); })();
22838
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadQueryManagementFieldComponent, { className: "ReadQueryManagementFieldComponent", filePath: "lib/shared/components/palette/query-management/read-query-management-field.component.ts", lineNumber: 14 }); })();
22953
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadQueryManagementFieldComponent, { className: "ReadQueryManagementFieldComponent", filePath: "lib/shared/components/palette/query-management/read-query-management-field.component.ts", lineNumber: 15 }); })();
22839
22954
 
22840
22955
  class ReadTextAreaFieldComponent extends AbstractFieldReadComponent {
22841
22956
  static ɵfac = /*@__PURE__*/ (() => { let ɵReadTextAreaFieldComponent_BaseFactory; return function ReadTextAreaFieldComponent_Factory(t) { return (ɵReadTextAreaFieldComponent_BaseFactory || (ɵReadTextAreaFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadTextAreaFieldComponent)))(t || ReadTextAreaFieldComponent); }; })();
22842
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadTextAreaFieldComponent, selectors: [["ccd-read-text-area-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 3, consts: [[2, "white-space", "pre-wrap"]], template: function ReadTextAreaFieldComponent_Template(rf, ctx) { if (rf & 1) {
22957
+ static ɵcmp = /*@__PURE__*/ 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) {
22843
22958
  i0.ɵɵelementStart(0, "span", 0);
22844
22959
  i0.ɵɵtext(1);
22845
- i0.ɵɵpipe(2, "rpxTranslate");
22846
22960
  i0.ɵɵelementEnd();
22847
22961
  } if (rf & 2) {
22848
22962
  i0.ɵɵadvance();
22849
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx.caseField.value));
22850
- } }, dependencies: [i1.RpxTranslatePipe], encapsulation: 2 });
22963
+ i0.ɵɵtextInterpolate(ctx.caseField.value);
22964
+ } }, encapsulation: 2 });
22851
22965
  }
22852
22966
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadTextAreaFieldComponent, [{
22853
22967
  type: Component,
22854
22968
  args: [{
22855
22969
  selector: 'ccd-read-text-area-field',
22856
- template: `<span style="white-space: pre-wrap">{{caseField.value | rpxTranslate}}</span>`
22970
+ template: `<span style="white-space: pre-wrap">{{ caseField.value }}</span>`
22857
22971
  }]
22858
22972
  }], null, null); })();
22859
22973
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadTextAreaFieldComponent, { className: "ReadTextAreaFieldComponent", filePath: "lib/shared/components/palette/text-area/read-text-area-field.component.ts", lineNumber: 8 }); })();
@@ -22938,21 +23052,20 @@ class WriteTextAreaFieldComponent extends AbstractFieldWriteComponent {
22938
23052
 
22939
23053
  class ReadTextFieldComponent extends AbstractFieldReadComponent {
22940
23054
  static ɵfac = /*@__PURE__*/ (() => { let ɵReadTextFieldComponent_BaseFactory; return function ReadTextFieldComponent_Factory(t) { return (ɵReadTextFieldComponent_BaseFactory || (ɵReadTextFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadTextFieldComponent)))(t || ReadTextFieldComponent); }; })();
22941
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadTextFieldComponent, selectors: [["ccd-read-text-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 3, consts: [[1, "text-16"]], template: function ReadTextFieldComponent_Template(rf, ctx) { if (rf & 1) {
23055
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadTextFieldComponent, selectors: [["ccd-read-text-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 2, vars: 1, consts: [[1, "text-16"]], template: function ReadTextFieldComponent_Template(rf, ctx) { if (rf & 1) {
22942
23056
  i0.ɵɵelementStart(0, "span", 0);
22943
23057
  i0.ɵɵtext(1);
22944
- i0.ɵɵpipe(2, "rpxTranslate");
22945
23058
  i0.ɵɵelementEnd();
22946
23059
  } if (rf & 2) {
22947
23060
  i0.ɵɵadvance();
22948
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx.caseField.value));
22949
- } }, dependencies: [i1.RpxTranslatePipe], encapsulation: 2 });
23061
+ i0.ɵɵtextInterpolate(ctx.caseField.value);
23062
+ } }, encapsulation: 2 });
22950
23063
  }
22951
23064
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadTextFieldComponent, [{
22952
23065
  type: Component,
22953
23066
  args: [{
22954
23067
  selector: 'ccd-read-text-field',
22955
- template: `<span class="text-16">{{caseField.value | rpxTranslate}}</span>`
23068
+ template: `<span class="text-16">{{ caseField.value }}</span>`
22956
23069
  }]
22957
23070
  }], null, null); })();
22958
23071
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadTextFieldComponent, { className: "ReadTextFieldComponent", filePath: "lib/shared/components/palette/text/read-text-field.component.ts", lineNumber: 8 }); })();
@@ -23345,7 +23458,6 @@ class FieldReadComponent extends AbstractFieldReadComponent {
23345
23458
  withLabel = false;
23346
23459
  formGroup = new FormGroup({});
23347
23460
  caseFields = [];
23348
- markdownUseHrefAsRouterLink;
23349
23461
  fieldContainer;
23350
23462
  constructor(resolver, paletteService) {
23351
23463
  super();
@@ -23378,7 +23490,6 @@ class FieldReadComponent extends AbstractFieldReadComponent {
23378
23490
  component.instance['parent'] = this.parent;
23379
23491
  component.instance['caseReference'] = this.caseReference;
23380
23492
  component.instance['context'] = this.context;
23381
- component.instance['markdownUseHrefAsRouterLink'] = this.markdownUseHrefAsRouterLink;
23382
23493
  component.instance['labelCanBeTranslated'] = this.labelCanBeTranslated(this.caseField);
23383
23494
  this.fieldContainer.insert(component.hostView);
23384
23495
  });
@@ -23392,27 +23503,25 @@ class FieldReadComponent extends AbstractFieldReadComponent {
23392
23503
  } if (rf & 2) {
23393
23504
  let _t;
23394
23505
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fieldContainer = _t.first);
23395
- } }, inputs: { withLabel: "withLabel", formGroup: "formGroup", caseFields: "caseFields", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 4, vars: 6, consts: [["fieldContainer", ""], [3, "hidden"], [3, "formGroup", "topLevelFormGroup", "caseField", "withLabel", "markdownUseHrefAsRouterLink"]], template: function FieldReadComponent_Template(rf, ctx) { if (rf & 1) {
23506
+ } }, inputs: { withLabel: "withLabel", formGroup: "formGroup", caseFields: "caseFields" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 4, vars: 5, consts: [["fieldContainer", ""], [3, "hidden"], [3, "formGroup", "topLevelFormGroup", "caseField", "withLabel"]], template: function FieldReadComponent_Template(rf, ctx) { if (rf & 1) {
23396
23507
  i0.ɵɵelementStart(0, "div", 1)(1, "ccd-field-read-label", 2);
23397
23508
  i0.ɵɵelementContainer(2, null, 0);
23398
23509
  i0.ɵɵelementEnd()();
23399
23510
  } if (rf & 2) {
23400
23511
  i0.ɵɵproperty("hidden", ctx.caseField.hidden);
23401
23512
  i0.ɵɵadvance();
23402
- i0.ɵɵproperty("formGroup", ctx.formGroup)("topLevelFormGroup", ctx.topLevelFormGroup)("caseField", ctx.caseField)("withLabel", ctx.withLabel)("markdownUseHrefAsRouterLink", ctx.markdownUseHrefAsRouterLink);
23513
+ i0.ɵɵproperty("formGroup", ctx.formGroup)("topLevelFormGroup", ctx.topLevelFormGroup)("caseField", ctx.caseField)("withLabel", ctx.withLabel);
23403
23514
  } }, encapsulation: 2 });
23404
23515
  }
23405
23516
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FieldReadComponent, [{
23406
23517
  type: Component,
23407
- args: [{ selector: 'ccd-field-read', template: "<div [hidden]=\"caseField.hidden\">\n <ccd-field-read-label [formGroup]=\"formGroup\" [topLevelFormGroup]=\"topLevelFormGroup\" [caseField]=\"caseField\" [withLabel]=\"withLabel\" [markdownUseHrefAsRouterLink]=\"markdownUseHrefAsRouterLink\">\n <ng-container #fieldContainer></ng-container>\n </ccd-field-read-label>\n</div>\n" }]
23518
+ args: [{ selector: 'ccd-field-read', template: "<div [hidden]=\"caseField.hidden\">\n <ccd-field-read-label [formGroup]=\"formGroup\" [topLevelFormGroup]=\"topLevelFormGroup\" [caseField]=\"caseField\" [withLabel]=\"withLabel\">\n <ng-container #fieldContainer></ng-container>\n </ccd-field-read-label>\n</div>\n" }]
23408
23519
  }], () => [{ type: i0.ComponentFactoryResolver }, { type: PaletteService }], { withLabel: [{
23409
23520
  type: Input
23410
23521
  }], formGroup: [{
23411
23522
  type: Input
23412
23523
  }], caseFields: [{
23413
23524
  type: Input
23414
- }], markdownUseHrefAsRouterLink: [{
23415
- type: Input
23416
23525
  }], fieldContainer: [{
23417
23526
  type: ViewChild,
23418
23527
  args: ['fieldContainer', { static: false, read: ViewContainerRef }]
@@ -23516,7 +23625,6 @@ class FieldReadLabelComponent extends AbstractFieldReadComponent {
23516
23625
  // EUI-3267. Flag for whether or not this can have a grey bar.
23517
23626
  canHaveGreyBar = false;
23518
23627
  withLabel;
23519
- markdownUseHrefAsRouterLink;
23520
23628
  isLabel() {
23521
23629
  return this.caseField.field_type && this.caseField.field_type.type === 'Label';
23522
23630
  }
@@ -23544,7 +23652,7 @@ class FieldReadLabelComponent extends AbstractFieldReadComponent {
23544
23652
  }
23545
23653
  }
23546
23654
  static ɵfac = /*@__PURE__*/ (() => { let ɵFieldReadLabelComponent_BaseFactory; return function FieldReadLabelComponent_Factory(t) { return (ɵFieldReadLabelComponent_BaseFactory || (ɵFieldReadLabelComponent_BaseFactory = i0.ɵɵgetInheritedFactory(FieldReadLabelComponent)))(t || FieldReadLabelComponent); }; })();
23547
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FieldReadLabelComponent, selectors: [["ccd-field-read-label"]], inputs: { withLabel: "withLabel", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink" }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0$v, decls: 4, vars: 5, consts: [["caseFieldValue", ""], [3, "hidden"], ["class", "case-field", 4, "ngIf", "ngIfElse"], [1, "case-field"], [1, "case-field__label"], [1, "case-field__value"], [4, "ngTemplateOutlet"]], template: function FieldReadLabelComponent_Template(rf, ctx) { if (rf & 1) {
23655
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FieldReadLabelComponent, selectors: [["ccd-field-read-label"]], inputs: { withLabel: "withLabel" }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0$v, decls: 4, vars: 5, consts: [["caseFieldValue", ""], [3, "hidden"], ["class", "case-field", 4, "ngIf", "ngIfElse"], [1, "case-field"], [1, "case-field__label"], [1, "case-field__value"], [4, "ngTemplateOutlet"]], template: function FieldReadLabelComponent_Template(rf, ctx) { if (rf & 1) {
23548
23656
  i0.ɵɵprojectionDef();
23549
23657
  i0.ɵɵelementStart(0, "div", 1);
23550
23658
  i0.ɵɵtemplate(1, FieldReadLabelComponent_dl_1_Template, 6, 4, "dl", 2)(2, FieldReadLabelComponent_ng_template_2_Template, 1, 0, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
@@ -23562,8 +23670,6 @@ class FieldReadLabelComponent extends AbstractFieldReadComponent {
23562
23670
  args: [{ selector: 'ccd-field-read-label', template: "<div [hidden]=\"caseField.hidden\" [class.grey-bar]=\"canHaveGreyBar && !caseField.hiddenCannotChange\">\n <dl class=\"case-field\" *ngIf=\"withLabel && !isLabel() && (!isComplex() || isCaseLink()); else caseFieldValue\">\n <dt class=\"case-field__label\">{{caseField.label | rpxTranslate}}</dt>\n <dd class=\"case-field__value\">\n <ng-container *ngTemplateOutlet=\"caseFieldValue\"></ng-container>\n </dd>\n </dl>\n <ng-template #caseFieldValue>\n <ng-content></ng-content>\n </ng-template>\n</div>\n", styles: [".case-field:after{content:\"\";display:block;clear:both}.case-field{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin-bottom:15px}@media (min-width: 641px){.case-field{margin-bottom:30px}}.case-field .case-field__label{display:block;color:#0b0c0c;padding-bottom:2px;font-family:nta,Arial,sans-serif;font-weight:700;text-transform:none;font-size:16px;line-height:1.25}@media (min-width: 641px){.case-field .case-field__label{font-size:19px;line-height:1.3157894737}}.case-field .case-field__value{font-family:nta,Arial,sans-serif;font-weight:400;text-transform:none;font-size:16px;line-height:1.25}@media (min-width: 641px){.case-field .case-field__value{font-size:19px;line-height:1.3157894737}}.form :host::ng-deep .grey-bar>*>.form-group,.form :host::ng-deep .grey-bar>*>*>.form-group,.form :host::ng-deep .grey-bar>*>dl.case-field{margin-left:15px;padding-left:15px}.form :host::ng-deep .grey-bar>*>.form-group:not(.form-group-error),.form :host::ng-deep .grey-bar>*>*>.form-group:not(.form-group-error),.form :host::ng-deep .grey-bar>*>dl.case-field:not(.form-group-error){border-left:solid 5px #b1b4b6}.form :host::ng-deep .grey-bar>*>.form-group input:not(.inline-block),.form :host::ng-deep .grey-bar>*>.form-group select:not(.inline-block),.form :host::ng-deep .grey-bar>*>.form-group textarea:not(.inline-block),.form :host::ng-deep .grey-bar>*>*>.form-group input:not(.inline-block),.form :host::ng-deep .grey-bar>*>*>.form-group select:not(.inline-block),.form :host::ng-deep .grey-bar>*>*>.form-group textarea:not(.inline-block),.form :host::ng-deep .grey-bar>*>dl.case-field input:not(.inline-block),.form :host::ng-deep .grey-bar>*>dl.case-field select:not(.inline-block),.form :host::ng-deep .grey-bar>*>dl.case-field textarea:not(.inline-block){display:block}\n"] }]
23563
23671
  }], null, { withLabel: [{
23564
23672
  type: Input
23565
- }], markdownUseHrefAsRouterLink: [{
23566
- type: Input
23567
23673
  }] }); })();
23568
23674
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FieldReadLabelComponent, { className: "FieldReadLabelComponent", filePath: "lib/shared/components/palette/base-field/field-read-label.component.ts", lineNumber: 14 }); })();
23569
23675
 
@@ -23601,7 +23707,7 @@ function CaseFileViewFolderSelectorComponent_ng_template_12_ng_container_5_Templ
23601
23707
  function CaseFileViewFolderSelectorComponent_ng_template_12_Template(rf, ctx) { if (rf & 1) {
23602
23708
  const _r4 = i0.ɵɵgetCurrentView();
23603
23709
  i0.ɵɵelementStart(0, "div", 9)(1, "input", 10);
23604
- i0.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_ng_template_12_Template_input_click_1_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4.handleChange($event)); });
23710
+ i0.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_ng_template_12_Template_input_click_1_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4.handleChange($event)); })("keyup", function CaseFileViewFolderSelectorComponent_ng_template_12_Template_input_keyup_1_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView($event.key === "Enter" ? ctx_r4.handleChange($event) : null); });
23605
23711
  i0.ɵɵelementEnd();
23606
23712
  i0.ɵɵelementStart(2, "label", 11);
23607
23713
  i0.ɵɵelement(3, "img", 12);
@@ -23681,10 +23787,10 @@ class CaseFileViewFolderSelectorComponent {
23681
23787
  return null;
23682
23788
  }
23683
23789
  static ɵfac = function CaseFileViewFolderSelectorComponent_Factory(t) { return new (t || CaseFileViewFolderSelectorComponent)(i0.ɵɵdirectiveInject(i1$3.MatLegacyDialogRef), i0.ɵɵdirectiveInject(MAT_LEGACY_DIALOG_DATA)); };
23684
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseFileViewFolderSelectorComponent, selectors: [["xui-case-file-view-folder-selector"]], decls: 14, vars: 2, consts: [["folder", ""], [1, "close", 3, "click"], [1, "govuk-heading-l"], [1, "folders", "govuk-radios", "govuk-radios--conditional"], [4, "ngFor", "ngForOf"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"], [1, "cancel", 3, "click"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], [1, "folder", "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "click", "name", "id"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["src", "/assets/images/folder.png", "alt", "Folder icon", 1, "iconImg"]], template: function CaseFileViewFolderSelectorComponent_Template(rf, ctx) { if (rf & 1) {
23790
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseFileViewFolderSelectorComponent, selectors: [["xui-case-file-view-folder-selector"]], decls: 14, vars: 2, consts: [["folder", ""], ["tabindex", "0", "aria-label", "close", 1, "close", 3, "click", "keyup"], [1, "govuk-heading-l"], [1, "folders", "govuk-radios", "govuk-radios--conditional"], [4, "ngFor", "ngForOf"], [1, "govuk-button-group"], ["type", "button", 1, "button", "button-primary", 3, "click"], ["href", "javascript:void(0)", 1, "cancel", 3, "click"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], [1, "folder", "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "click", "keyup", "name", "id"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["src", "/assets/images/folder.png", "alt", "Folder icon", 1, "iconImg"]], template: function CaseFileViewFolderSelectorComponent_Template(rf, ctx) { if (rf & 1) {
23685
23791
  const _r1 = i0.ɵɵgetCurrentView();
23686
- i0.ɵɵelementStart(0, "div", 1);
23687
- i0.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.cancel()); });
23792
+ i0.ɵɵelementStart(0, "span", 1);
23793
+ i0.ɵɵlistener("click", function CaseFileViewFolderSelectorComponent_Template_span_click_0_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.cancel()); })("keyup", function CaseFileViewFolderSelectorComponent_Template_span_keyup_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView($event.key === "Enter" ? ctx.cancel() : null); });
23688
23794
  i0.ɵɵelementEnd();
23689
23795
  i0.ɵɵelementStart(1, "h2", 2);
23690
23796
  i0.ɵɵtext(2, "Move File");
@@ -23713,7 +23819,7 @@ class CaseFileViewFolderSelectorComponent {
23713
23819
  }
23714
23820
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFolderSelectorComponent, [{
23715
23821
  type: Component,
23716
- args: [{ selector: 'xui-case-file-view-folder-selector', encapsulation: ViewEncapsulation.None, template: "<div class=\"close\" (click)=\"cancel()\"></div>\n<h2 class=\"govuk-heading-l\">Move File</h2>\n<p>Where do you want to move \"{{ data.document.document_filename }}\" file?</p>\n<div class=\"folders govuk-radios govuk-radios--conditional\">\n <ng-container *ngFor=\"let cat of currentCategories\">\n <ng-container *ngTemplateOutlet=\"folder;context:{cat:cat,level:1}\"></ng-container>\n </ng-container>\n</div>\n<div class=\"govuk-button-group\">\n <button class=\"button button-primary\" type=\"button\" (click)=\"save()\">Save</button>\n <a (click)=\"cancel()\" class=\"cancel\">Cancel</a>\n</div>\n\n<ng-template #folder let-cat=\"cat\" let-level=\"level\">\n <div class=\"folder govuk-radios__item\">\n <input class=\"govuk-radios__input\" type=\"radio\" name=\"level-{{level}}\" [id]=\"cat.category_id\" (click)=\"handleChange($event)\" />\n <label class=\"govuk-label govuk-radios__label\" [for]=\"cat.category_id\">\n <img class=\"iconImg\" src=\"/assets/images/folder.png\" alt=\"Folder icon\" />\n {{ cat.category_name }}\n </label>\n <ng-container *ngFor=\"let subcat of cat.sub_categories\">\n <ng-container *ngTemplateOutlet=\"folder;context:{cat:subcat,level:level+1}\"></ng-container>\n </ng-container>\n </div>\n</ng-template>", styles: [":host{position:relative;display:block}.folders{margin-bottom:20px}.folder{display:none;border-top:1px solid #CCC;margin:0 0 -1px}.folder:last-child{border-bottom:1px solid #CCC}.folders>.folder{display:block}input:checked~.folder{display:block}.iconImg{position:relative;display:inline-block;height:28px}.folder>.folder{margin-left:20px}.folder label:before{top:3px}.folder label:after{top:13px}p{font-weight:700}button{margin-right:20px}.close{float:right;width:30px;height:30px;background:url(/assets/img/x.PNG) no-repeat center center;cursor:pointer}.cancel{cursor:pointer}.cdk-overlay-pane{overflow:auto;background:#fff}.cdk-overlay-pane::-webkit-scrollbar{width:7px}.cdk-overlay-pane::-webkit-scrollbar-thumb{border:4px solid rgba(0,0,0,0);background-clip:padding-box;border-radius:9999px;background-color:#aaa}.cdk-overlay-pane::-webkit-scrollbar-button{display:none}.cdk-overlay-pane::-webkit-scrollbar-track-piece{background:#eee}.cdk-overlay-pane::-webkit-scrollbar-thumb{background:#ccc}\n"] }]
23822
+ args: [{ selector: 'xui-case-file-view-folder-selector', encapsulation: ViewEncapsulation.None, template: "<span tabindex=\"0\" aria-label=\"close\" class=\"close\" (click)=\"cancel()\" (keyup)=\"$event.key === 'Enter' ? cancel() : null\"></span>\n<h2 class=\"govuk-heading-l\">Move File</h2>\n<p>Where do you want to move \"{{ data.document.document_filename }}\" file?</p>\n<div class=\"folders govuk-radios govuk-radios--conditional\">\n <ng-container *ngFor=\"let cat of currentCategories\">\n <ng-container *ngTemplateOutlet=\"folder;context:{cat:cat,level:1}\"></ng-container>\n </ng-container>\n</div>\n<div class=\"govuk-button-group\">\n <button class=\"button button-primary\" type=\"button\" (click)=\"save()\">Save</button>\n <a (click)=\"cancel()\" class=\"cancel\" href=\"javascript:void(0)\">Cancel</a>\n</div>\n\n<ng-template #folder let-cat=\"cat\" let-level=\"level\">\n <div class=\"folder govuk-radios__item\">\n <input class=\"govuk-radios__input\" type=\"radio\" name=\"level-{{level}}\" [id]=\"cat.category_id\" (click)=\"handleChange($event)\" (keyup)=\"$event.key === 'Enter' ? handleChange($event) : null\" />\n <label class=\"govuk-label govuk-radios__label\" [for]=\"cat.category_id\">\n <img class=\"iconImg\" src=\"/assets/images/folder.png\" alt=\"Folder icon\" />\n {{ cat.category_name }}\n </label>\n <ng-container *ngFor=\"let subcat of cat.sub_categories\">\n <ng-container *ngTemplateOutlet=\"folder;context:{cat:subcat,level:level+1}\"></ng-container>\n </ng-container>\n </div>\n</ng-template>", styles: [":host{position:relative;display:block}.folders{margin-bottom:20px}.folder{display:none;border-top:1px solid #CCC;margin:0 0 -1px}.folder:last-child{border-bottom:1px solid #CCC}.folders>.folder{display:block}input:checked~.folder{display:block}.iconImg{position:relative;display:inline-block;height:28px}.folder>.folder{margin-left:20px}.folder label:before{top:3px}.folder label:after{top:13px}p{font-weight:700}button{margin-right:20px}.close{float:right;width:30px;height:30px;background:url(/assets/img/x.PNG) no-repeat center center;cursor:pointer}.cancel{cursor:pointer}.cdk-overlay-pane{overflow:auto;background:#fff}.cdk-overlay-pane::-webkit-scrollbar{width:7px}.cdk-overlay-pane::-webkit-scrollbar-thumb{border:4px solid rgba(0,0,0,0);background-clip:padding-box;border-radius:9999px;background-color:#aaa}.cdk-overlay-pane::-webkit-scrollbar-button{display:none}.cdk-overlay-pane::-webkit-scrollbar-track-piece{background:#eee}.cdk-overlay-pane::-webkit-scrollbar-thumb{background:#ccc}\n"] }]
23717
23823
  }], () => [{ type: i1$3.MatLegacyDialogRef }, { type: undefined, decorators: [{
23718
23824
  type: Inject,
23719
23825
  args: [MAT_LEGACY_DIALOG_DATA]
@@ -23745,22 +23851,25 @@ function CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_Template(
23745
23851
  const _r3 = i0.ɵɵgetCurrentView();
23746
23852
  i0.ɵɵelementContainerStart(0);
23747
23853
  i0.ɵɵelementStart(1, "div", 7);
23748
- i0.ɵɵlistener("click", function CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_Template_div_click_1_listener() { const item_r4 = i0.ɵɵrestoreView(_r3).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); item_r4.actionFn(); return i0.ɵɵresetView(ctx_r1.closeOverlay()); });
23854
+ i0.ɵɵlistener("click", function CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_Template_div_click_1_listener() { const item_r4 = i0.ɵɵrestoreView(_r3).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); item_r4.actionFn(); return i0.ɵɵresetView(ctx_r1.closeOverlay()); })("keyup", function CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_Template_div_keyup_1_listener($event) { const item_r4 = i0.ɵɵrestoreView(_r3).$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView($event.key === "Enter" ? ctx_r1.actionAndClose(item_r4.actionFn()) : null); });
23749
23855
  i0.ɵɵtemplate(2, CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_img_2_Template, 1, 3, "img", 8);
23750
- i0.ɵɵelementStart(3, "div", 9);
23856
+ i0.ɵɵelementStart(3, "span", 9);
23751
23857
  i0.ɵɵtext(4);
23752
23858
  i0.ɵɵelementEnd()();
23753
23859
  i0.ɵɵelementContainerEnd();
23754
23860
  } if (rf & 2) {
23755
23861
  const item_r4 = ctx.$implicit;
23756
- i0.ɵɵadvance(2);
23862
+ const i_r5 = ctx.index;
23863
+ i0.ɵɵadvance();
23864
+ i0.ɵɵproperty("id", "overlay-menu__item" + i_r5);
23865
+ i0.ɵɵadvance();
23757
23866
  i0.ɵɵproperty("ngIf", item_r4.iconSrc);
23758
23867
  i0.ɵɵadvance(2);
23759
23868
  i0.ɵɵtextInterpolate(item_r4.actionText);
23760
23869
  } }
23761
23870
  function CaseFileViewOverlayMenuComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
23762
23871
  i0.ɵɵelementStart(0, "div", 3);
23763
- i0.ɵɵtemplate(1, CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_1_Template, 3, 1, "ng-container", 4)(2, CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_Template, 5, 2, "ng-container", 5);
23872
+ i0.ɵɵtemplate(1, CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_1_Template, 3, 1, "ng-container", 4)(2, CaseFileViewOverlayMenuComponent_ng_template_4_ng_container_2_Template, 5, 3, "ng-container", 5);
23764
23873
  i0.ɵɵelementEnd();
23765
23874
  } if (rf & 2) {
23766
23875
  const ctx_r1 = i0.ɵɵnextContext();
@@ -23779,8 +23888,12 @@ class CaseFileViewOverlayMenuComponent {
23779
23888
  this.isOpen = isOpen;
23780
23889
  this.isOpenChange.emit(isOpen);
23781
23890
  }
23891
+ actionAndClose(func) {
23892
+ func();
23893
+ this.closeOverlay();
23894
+ }
23782
23895
  static ɵfac = function CaseFileViewOverlayMenuComponent_Factory(t) { return new (t || CaseFileViewOverlayMenuComponent)(); };
23783
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseFileViewOverlayMenuComponent, selectors: [["ccd-case-file-view-overlay-menu"]], inputs: { title: "title", menuItems: "menuItems", isOpen: "isOpen" }, outputs: { isOpenChange: "isOpenChange" }, ngContentSelectors: _c1$9, decls: 5, vars: 4, consts: [["trigger", "cdkOverlayOrigin"], ["type", "button", "cdkOverlayOrigin", "", 1, "overlay-toggle", 3, "click"], ["cdkConnectedOverlay", "", 3, "backdropClick", "cdkConnectedOverlayOrigin", "cdkConnectedOverlayOpen", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayBackdropClass"], [1, "overlay-menu"], [4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "overlay-menu__title"], [1, "overlay-menu__item", 3, "click"], ["class", "overlay-menu__itemIcon", 3, "src", "alt", 4, "ngIf"], [1, "overlay-menu__actionText"], [1, "overlay-menu__itemIcon", 3, "src", "alt"]], template: function CaseFileViewOverlayMenuComponent_Template(rf, ctx) { if (rf & 1) {
23896
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseFileViewOverlayMenuComponent, selectors: [["ccd-case-file-view-overlay-menu"]], inputs: { title: "title", menuItems: "menuItems", isOpen: "isOpen" }, outputs: { isOpenChange: "isOpenChange" }, ngContentSelectors: _c1$9, decls: 5, vars: 4, consts: [["trigger", "cdkOverlayOrigin"], ["type", "button", "cdkOverlayOrigin", "", 1, "overlay-toggle", 3, "click"], ["cdkConnectedOverlay", "", 3, "backdropClick", "cdkConnectedOverlayOrigin", "cdkConnectedOverlayOpen", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayBackdropClass"], [1, "overlay-menu"], [4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "overlay-menu__title"], ["tabindex", "0", 1, "overlay-menu__item", 3, "click", "keyup", "id"], ["class", "overlay-menu__itemIcon", 3, "src", "alt", 4, "ngIf"], [1, "overlay-menu__actionText"], [1, "overlay-menu__itemIcon", 3, "src", "alt"]], template: function CaseFileViewOverlayMenuComponent_Template(rf, ctx) { if (rf & 1) {
23784
23897
  const _r1 = i0.ɵɵgetCurrentView();
23785
23898
  i0.ɵɵprojectionDef(_c0$t);
23786
23899
  i0.ɵɵelementStart(0, "div")(1, "button", 1, 0);
@@ -23791,14 +23904,14 @@ class CaseFileViewOverlayMenuComponent {
23791
23904
  i0.ɵɵlistener("backdropClick", function CaseFileViewOverlayMenuComponent_Template_ng_template_backdropClick_4_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.closeOverlay()); });
23792
23905
  i0.ɵɵelementEnd();
23793
23906
  } if (rf & 2) {
23794
- const trigger_r5 = i0.ɵɵreference(2);
23907
+ const trigger_r6 = i0.ɵɵreference(2);
23795
23908
  i0.ɵɵadvance(4);
23796
- i0.ɵɵproperty("cdkConnectedOverlayOrigin", trigger_r5)("cdkConnectedOverlayOpen", ctx.isOpen)("cdkConnectedOverlayHasBackdrop", true)("cdkConnectedOverlayBackdropClass", "cdk-overlay-transparent-backdrop");
23797
- } }, dependencies: [i5.NgForOf, i5.NgIf, i2$2.CdkConnectedOverlay, i2$2.CdkOverlayOrigin], styles: [".overlay-toggle[_ngcontent-%COMP%]{display:block;background:none;border:0;padding:0 6px;margin-right:-4px;cursor:pointer}.overlay-menu[_ngcontent-%COMP%]{background-color:#fafafa;border:1px solid grey;margin-top:8px;font-size:1rem}.overlay-menu__title[_ngcontent-%COMP%], .overlay-menu__item[_ngcontent-%COMP%]{padding:10px;border-bottom:1px solid grey}.overlay-menu__title[_ngcontent-%COMP%]:last-child, .overlay-menu__item[_ngcontent-%COMP%]:last-child{border:none}.overlay-menu__title[_ngcontent-%COMP%]{padding-left:6px;padding-right:6px}.overlay-menu__item[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer;font-size:.875em}.overlay-menu__item[_ngcontent-%COMP%]:hover{background-color:#fff2cc}.overlay-menu__itemIcon[_ngcontent-%COMP%]{height:1.25em;width:1.25em;margin-right:6px}"] });
23909
+ i0.ɵɵproperty("cdkConnectedOverlayOrigin", trigger_r6)("cdkConnectedOverlayOpen", ctx.isOpen)("cdkConnectedOverlayHasBackdrop", true)("cdkConnectedOverlayBackdropClass", "cdk-overlay-transparent-backdrop");
23910
+ } }, dependencies: [i5.NgForOf, i5.NgIf, i2$2.CdkConnectedOverlay, i2$2.CdkOverlayOrigin], styles: [".overlay-toggle[_ngcontent-%COMP%]{display:block;background:none;border:0;padding:0 6px;margin-right:-4px;cursor:pointer}.overlay-menu[_ngcontent-%COMP%]{background-color:#fafafa;border:1px solid grey;margin-top:8px;font-size:1rem}.overlay-menu__title[_ngcontent-%COMP%], .overlay-menu__item[_ngcontent-%COMP%]{padding:10px;border-bottom:1px solid grey}.overlay-menu__title[_ngcontent-%COMP%]:last-child, .overlay-menu__item[_ngcontent-%COMP%]:last-child{border:none}.overlay-menu__title[_ngcontent-%COMP%]{padding-left:6px;padding-right:6px}.overlay-menu__item[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer;font-size:.875em}.overlay-menu__item[_ngcontent-%COMP%]:hover{background-color:#fff2cc}.overlay-menu__item[_ngcontent-%COMP%]:focus{border:2px solid #ffbf47}.overlay-menu__itemIcon[_ngcontent-%COMP%]{height:1.25em;width:1.25em;margin-right:6px}"] });
23798
23911
  }
23799
23912
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewOverlayMenuComponent, [{
23800
23913
  type: Component,
23801
- args: [{ selector: 'ccd-case-file-view-overlay-menu', template: "<div>\n <button type=\"button\" class=\"overlay-toggle\"\n (click)=\"$event.stopPropagation(); isOpen = !isOpen\"\n cdkOverlayOrigin #trigger=\"cdkOverlayOrigin\">\n <ng-content select=\"[trigger]\"></ng-content>\n </button>\n\n <ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"trigger\"\n [cdkConnectedOverlayOpen]=\"isOpen\"\n [cdkConnectedOverlayHasBackdrop]=\"true\"\n [cdkConnectedOverlayBackdropClass]=\"'cdk-overlay-transparent-backdrop'\"\n (backdropClick)=\"closeOverlay()\"\n >\n <div class=\"overlay-menu\">\n <ng-container *ngIf=\"title\">\n <div class=\"overlay-menu__title\">{{title}}</div>\n </ng-container>\n\n <ng-container *ngFor=\"let item of menuItems\">\n <div class=\"overlay-menu__item\" (click)=\"item.actionFn(); closeOverlay();\">\n <img *ngIf=\"item.iconSrc\" [src]=\"item.iconSrc\" class=\"overlay-menu__itemIcon\" alt=\"{{title}} icon'\" />\n <div class=\"overlay-menu__actionText\">{{item.actionText}}</div>\n </div>\n </ng-container>\n </div>\n </ng-template>\n</div>\n", styles: [".overlay-toggle{display:block;background:none;border:0;padding:0 6px;margin-right:-4px;cursor:pointer}.overlay-menu{background-color:#fafafa;border:1px solid grey;margin-top:8px;font-size:1rem}.overlay-menu__title,.overlay-menu__item{padding:10px;border-bottom:1px solid grey}.overlay-menu__title:last-child,.overlay-menu__item:last-child{border:none}.overlay-menu__title{padding-left:6px;padding-right:6px}.overlay-menu__item{display:flex;align-items:center;cursor:pointer;font-size:.875em}.overlay-menu__item:hover{background-color:#fff2cc}.overlay-menu__itemIcon{height:1.25em;width:1.25em;margin-right:6px}\n"] }]
23914
+ args: [{ selector: 'ccd-case-file-view-overlay-menu', template: "<div>\n <button type=\"button\" class=\"overlay-toggle\"\n (click)=\"$event.stopPropagation(); isOpen = !isOpen\"\n cdkOverlayOrigin #trigger=\"cdkOverlayOrigin\">\n <ng-content select=\"[trigger]\"></ng-content>\n </button>\n\n <ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"trigger\"\n [cdkConnectedOverlayOpen]=\"isOpen\"\n [cdkConnectedOverlayHasBackdrop]=\"true\"\n [cdkConnectedOverlayBackdropClass]=\"'cdk-overlay-transparent-backdrop'\"\n (backdropClick)=\"closeOverlay()\"\n >\n <div class=\"overlay-menu\">\n <ng-container *ngIf=\"title\">\n <div class=\"overlay-menu__title\">{{title}}</div>\n </ng-container>\n\n <ng-container *ngFor=\"let item of menuItems; index as i\">\n <div class=\"overlay-menu__item\" tabindex=\"0\" [id]=\"'overlay-menu__item' + i\" (click)=\"item.actionFn(); closeOverlay();\" (keyup)=\"$event.key === 'Enter' ? actionAndClose(item.actionFn()) : null\">\n <img *ngIf=\"item.iconSrc\" [src]=\"item.iconSrc\" class=\"overlay-menu__itemIcon\" alt=\"{{title}} icon'\" />\n <span class=\"overlay-menu__actionText\">{{item.actionText}}</span>\n </div>\n </ng-container>\n </div>\n </ng-template>\n</div>\n", styles: [".overlay-toggle{display:block;background:none;border:0;padding:0 6px;margin-right:-4px;cursor:pointer}.overlay-menu{background-color:#fafafa;border:1px solid grey;margin-top:8px;font-size:1rem}.overlay-menu__title,.overlay-menu__item{padding:10px;border-bottom:1px solid grey}.overlay-menu__title:last-child,.overlay-menu__item:last-child{border:none}.overlay-menu__title{padding-left:6px;padding-right:6px}.overlay-menu__item{display:flex;align-items:center;cursor:pointer;font-size:.875em}.overlay-menu__item:hover{background-color:#fff2cc}.overlay-menu__item:focus{border:2px solid #ffbf47}.overlay-menu__itemIcon{height:1.25em;width:1.25em;margin-right:6px}\n"] }]
23802
23915
  }], null, { title: [{
23803
23916
  type: Input
23804
23917
  }], menuItems: [{
@@ -24588,7 +24701,7 @@ class AddCommentsComponent extends AbstractJourneyComponent {
24588
24701
  }] }); })();
24589
24702
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AddCommentsComponent, { className: "AddCommentsComponent", filePath: "lib/shared/components/palette/case-flag/components/add-comments/add-comments.component.ts", lineNumber: 12 }); })();
24590
24703
 
24591
- function CaseFlagSummaryListComponent_dl_0_div_28_Template(rf, ctx) { if (rf & 1) {
24704
+ function CaseFlagSummaryListComponent_dl_0_div_27_Template(rf, ctx) { if (rf & 1) {
24592
24705
  const _r3 = i0.ɵɵgetCurrentView();
24593
24706
  i0.ɵɵelementStart(0, "div", 2)(1, "dt", 3);
24594
24707
  i0.ɵɵtext(2);
@@ -24598,7 +24711,7 @@ function CaseFlagSummaryListComponent_dl_0_div_28_Template(rf, ctx) { if (rf & 1
24598
24711
  i0.ɵɵtext(5);
24599
24712
  i0.ɵɵelementEnd();
24600
24713
  i0.ɵɵelementStart(6, "dd", 5)(7, "a", 6);
24601
- i0.ɵɵlistener("click", function CaseFlagSummaryListComponent_dl_0_div_28_Template_a_click_7_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.changeButtonEmitter.emit(ctx_r1.summaryListDisplayMode === ctx_r1.displayMode.MANAGE ? ctx_r1.caseFlagFieldState.FLAG_UPDATE_WELSH_TRANSLATION : ctx_r1.caseFlagFieldState.FLAG_TYPE)); });
24714
+ i0.ɵɵlistener("click", function CaseFlagSummaryListComponent_dl_0_div_27_Template_a_click_7_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.changeButtonEmitter.emit(ctx_r1.summaryListDisplayMode === ctx_r1.displayMode.MANAGE ? ctx_r1.caseFlagFieldState.FLAG_UPDATE_WELSH_TRANSLATION : ctx_r1.caseFlagFieldState.FLAG_TYPE)); });
24602
24715
  i0.ɵɵtext(8);
24603
24716
  i0.ɵɵpipe(9, "rpxTranslate");
24604
24717
  i0.ɵɵelementStart(10, "span", 7);
@@ -24616,7 +24729,7 @@ function CaseFlagSummaryListComponent_dl_0_div_28_Template(rf, ctx) { if (rf & 1
24616
24729
  i0.ɵɵadvance(3);
24617
24730
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(12, 8, "other description (Welsh)"), "");
24618
24731
  } }
24619
- function CaseFlagSummaryListComponent_dl_0_div_29_Template(rf, ctx) { if (rf & 1) {
24732
+ function CaseFlagSummaryListComponent_dl_0_div_28_Template(rf, ctx) { if (rf & 1) {
24620
24733
  const _r4 = i0.ɵɵgetCurrentView();
24621
24734
  i0.ɵɵelementStart(0, "div", 2)(1, "dt", 3);
24622
24735
  i0.ɵɵtext(2);
@@ -24626,7 +24739,7 @@ function CaseFlagSummaryListComponent_dl_0_div_29_Template(rf, ctx) { if (rf & 1
24626
24739
  i0.ɵɵtext(5);
24627
24740
  i0.ɵɵelementEnd();
24628
24741
  i0.ɵɵelementStart(6, "dd", 5)(7, "a", 6);
24629
- i0.ɵɵlistener("click", function CaseFlagSummaryListComponent_dl_0_div_29_Template_a_click_7_listener() { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.changeButtonEmitter.emit(ctx_r1.summaryListDisplayMode === ctx_r1.displayMode.MANAGE ? ctx_r1.caseFlagFieldState.FLAG_UPDATE : ctx_r1.caseFlagFieldState.FLAG_COMMENTS)); });
24742
+ i0.ɵɵlistener("click", function CaseFlagSummaryListComponent_dl_0_div_28_Template_a_click_7_listener() { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.changeButtonEmitter.emit(ctx_r1.summaryListDisplayMode === ctx_r1.displayMode.MANAGE ? ctx_r1.caseFlagFieldState.FLAG_UPDATE : ctx_r1.caseFlagFieldState.FLAG_COMMENTS)); });
24630
24743
  i0.ɵɵtext(8);
24631
24744
  i0.ɵɵpipe(9, "rpxTranslate");
24632
24745
  i0.ɵɵelementStart(10, "span", 7);
@@ -24644,7 +24757,7 @@ function CaseFlagSummaryListComponent_dl_0_div_29_Template(rf, ctx) { if (rf & 1
24644
24757
  i0.ɵɵadvance(3);
24645
24758
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(12, 8, "comments"), "");
24646
24759
  } }
24647
- function CaseFlagSummaryListComponent_dl_0_div_30_Template(rf, ctx) { if (rf & 1) {
24760
+ function CaseFlagSummaryListComponent_dl_0_div_29_Template(rf, ctx) { if (rf & 1) {
24648
24761
  const _r5 = i0.ɵɵgetCurrentView();
24649
24762
  i0.ɵɵelementStart(0, "div", 2)(1, "dt", 3);
24650
24763
  i0.ɵɵtext(2);
@@ -24654,7 +24767,7 @@ function CaseFlagSummaryListComponent_dl_0_div_30_Template(rf, ctx) { if (rf & 1
24654
24767
  i0.ɵɵtext(5);
24655
24768
  i0.ɵɵelementEnd();
24656
24769
  i0.ɵɵelementStart(6, "dd", 5)(7, "a", 6);
24657
- i0.ɵɵlistener("click", function CaseFlagSummaryListComponent_dl_0_div_30_Template_a_click_7_listener() { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.changeButtonEmitter.emit(ctx_r1.summaryListDisplayMode === ctx_r1.displayMode.MANAGE ? ctx_r1.caseFlagFieldState.FLAG_UPDATE_WELSH_TRANSLATION : ctx_r1.caseFlagFieldState.FLAG_COMMENTS)); });
24770
+ i0.ɵɵlistener("click", function CaseFlagSummaryListComponent_dl_0_div_29_Template_a_click_7_listener() { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.changeButtonEmitter.emit(ctx_r1.summaryListDisplayMode === ctx_r1.displayMode.MANAGE ? ctx_r1.caseFlagFieldState.FLAG_UPDATE_WELSH_TRANSLATION : ctx_r1.caseFlagFieldState.FLAG_COMMENTS)); });
24658
24771
  i0.ɵɵtext(8);
24659
24772
  i0.ɵɵpipe(9, "rpxTranslate");
24660
24773
  i0.ɵɵelementStart(10, "span", 7);
@@ -24672,10 +24785,10 @@ function CaseFlagSummaryListComponent_dl_0_div_30_Template(rf, ctx) { if (rf & 1
24672
24785
  i0.ɵɵadvance(3);
24673
24786
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(12, 8, "comments (Welsh)"), "");
24674
24787
  } }
24675
- function CaseFlagSummaryListComponent_dl_0_a_39_Template(rf, ctx) { if (rf & 1) {
24788
+ function CaseFlagSummaryListComponent_dl_0_a_38_Template(rf, ctx) { if (rf & 1) {
24676
24789
  const _r6 = i0.ɵɵgetCurrentView();
24677
24790
  i0.ɵɵelementStart(0, "a", 6);
24678
- i0.ɵɵlistener("click", function CaseFlagSummaryListComponent_dl_0_a_39_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.changeButtonEmitter.emit(ctx_r1.summaryListDisplayMode === ctx_r1.displayMode.MANAGE ? ctx_r1.caseFlagFieldState.FLAG_UPDATE : ctx_r1.caseFlagFieldState.FLAG_STATUS)); });
24791
+ i0.ɵɵlistener("click", function CaseFlagSummaryListComponent_dl_0_a_38_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.changeButtonEmitter.emit(ctx_r1.summaryListDisplayMode === ctx_r1.displayMode.MANAGE ? ctx_r1.caseFlagFieldState.FLAG_UPDATE : ctx_r1.caseFlagFieldState.FLAG_STATUS)); });
24679
24792
  i0.ɵɵtext(1);
24680
24793
  i0.ɵɵpipe(2, "rpxTranslate");
24681
24794
  i0.ɵɵelementStart(3, "span", 7);
@@ -24696,61 +24809,60 @@ function CaseFlagSummaryListComponent_dl_0_Template(rf, ctx) { if (rf & 1) {
24696
24809
  i0.ɵɵelementEnd();
24697
24810
  i0.ɵɵelementStart(5, "dd", 4);
24698
24811
  i0.ɵɵtext(6);
24699
- i0.ɵɵpipe(7, "rpxTranslate");
24700
24812
  i0.ɵɵelementEnd();
24701
- i0.ɵɵelementStart(8, "dd", 5)(9, "a", 6);
24702
- i0.ɵɵlistener("click", function CaseFlagSummaryListComponent_dl_0_Template_a_click_9_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.changeButtonEmitter.emit(ctx_r1.summaryListDisplayMode === ctx_r1.displayMode.MANAGE ? ctx_r1.caseFlagFieldState.FLAG_MANAGE_CASE_FLAGS : ctx_r1.caseFlagFieldState.FLAG_LOCATION)); });
24703
- i0.ɵɵtext(10);
24704
- i0.ɵɵpipe(11, "rpxTranslate");
24705
- i0.ɵɵelementStart(12, "span", 7);
24706
- i0.ɵɵtext(13);
24707
- i0.ɵɵpipe(14, "rpxTranslate");
24813
+ i0.ɵɵelementStart(7, "dd", 5)(8, "a", 6);
24814
+ i0.ɵɵlistener("click", function CaseFlagSummaryListComponent_dl_0_Template_a_click_8_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.changeButtonEmitter.emit(ctx_r1.summaryListDisplayMode === ctx_r1.displayMode.MANAGE ? ctx_r1.caseFlagFieldState.FLAG_MANAGE_CASE_FLAGS : ctx_r1.caseFlagFieldState.FLAG_LOCATION)); });
24815
+ i0.ɵɵtext(9);
24816
+ i0.ɵɵpipe(10, "rpxTranslate");
24817
+ i0.ɵɵelementStart(11, "span", 7);
24818
+ i0.ɵɵtext(12);
24819
+ i0.ɵɵpipe(13, "rpxTranslate");
24708
24820
  i0.ɵɵelementEnd()()()();
24709
- i0.ɵɵelementStart(15, "div", 2)(16, "dt", 3);
24710
- i0.ɵɵtext(17);
24711
- i0.ɵɵpipe(18, "rpxTranslate");
24821
+ i0.ɵɵelementStart(14, "div", 2)(15, "dt", 3);
24822
+ i0.ɵɵtext(16);
24823
+ i0.ɵɵpipe(17, "rpxTranslate");
24712
24824
  i0.ɵɵelementEnd();
24713
- i0.ɵɵelementStart(19, "dd", 4);
24714
- i0.ɵɵtext(20);
24825
+ i0.ɵɵelementStart(18, "dd", 4);
24826
+ i0.ɵɵtext(19);
24715
24827
  i0.ɵɵelementEnd();
24716
- i0.ɵɵelementStart(21, "dd", 5)(22, "a", 6);
24717
- i0.ɵɵlistener("click", function CaseFlagSummaryListComponent_dl_0_Template_a_click_22_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.changeButtonEmitter.emit(ctx_r1.summaryListDisplayMode === ctx_r1.displayMode.MANAGE ? ctx_r1.caseFlagFieldState.FLAG_UPDATE : ctx_r1.caseFlagFieldState.FLAG_TYPE)); });
24718
- i0.ɵɵtext(23);
24719
- i0.ɵɵpipe(24, "rpxTranslate");
24720
- i0.ɵɵelementStart(25, "span", 7);
24721
- i0.ɵɵtext(26);
24722
- i0.ɵɵpipe(27, "rpxTranslate");
24828
+ i0.ɵɵelementStart(20, "dd", 5)(21, "a", 6);
24829
+ i0.ɵɵlistener("click", function CaseFlagSummaryListComponent_dl_0_Template_a_click_21_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.changeButtonEmitter.emit(ctx_r1.summaryListDisplayMode === ctx_r1.displayMode.MANAGE ? ctx_r1.caseFlagFieldState.FLAG_UPDATE : ctx_r1.caseFlagFieldState.FLAG_TYPE)); });
24830
+ i0.ɵɵtext(22);
24831
+ i0.ɵɵpipe(23, "rpxTranslate");
24832
+ i0.ɵɵelementStart(24, "span", 7);
24833
+ i0.ɵɵtext(25);
24834
+ i0.ɵɵpipe(26, "rpxTranslate");
24723
24835
  i0.ɵɵelementEnd()()()();
24724
- i0.ɵɵtemplate(28, CaseFlagSummaryListComponent_dl_0_div_28_Template, 13, 10, "div", 8)(29, CaseFlagSummaryListComponent_dl_0_div_29_Template, 13, 10, "div", 8)(30, CaseFlagSummaryListComponent_dl_0_div_30_Template, 13, 10, "div", 8);
24725
- i0.ɵɵelementStart(31, "div", 2)(32, "dt", 3);
24726
- i0.ɵɵtext(33);
24727
- i0.ɵɵpipe(34, "rpxTranslate");
24836
+ i0.ɵɵtemplate(27, CaseFlagSummaryListComponent_dl_0_div_27_Template, 13, 10, "div", 8)(28, CaseFlagSummaryListComponent_dl_0_div_28_Template, 13, 10, "div", 8)(29, CaseFlagSummaryListComponent_dl_0_div_29_Template, 13, 10, "div", 8);
24837
+ i0.ɵɵelementStart(30, "div", 2)(31, "dt", 3);
24838
+ i0.ɵɵtext(32);
24839
+ i0.ɵɵpipe(33, "rpxTranslate");
24728
24840
  i0.ɵɵelementEnd();
24729
- i0.ɵɵelementStart(35, "dd", 4);
24730
- i0.ɵɵtext(36);
24731
- i0.ɵɵpipe(37, "rpxTranslate");
24841
+ i0.ɵɵelementStart(34, "dd", 4);
24842
+ i0.ɵɵtext(35);
24843
+ i0.ɵɵpipe(36, "rpxTranslate");
24732
24844
  i0.ɵɵelementEnd();
24733
- i0.ɵɵelementStart(38, "dd", 5);
24734
- i0.ɵɵtemplate(39, CaseFlagSummaryListComponent_dl_0_a_39_Template, 6, 6, "a", 9);
24845
+ i0.ɵɵelementStart(37, "dd", 5);
24846
+ i0.ɵɵtemplate(38, CaseFlagSummaryListComponent_dl_0_a_38_Template, 6, 6, "a", 9);
24735
24847
  i0.ɵɵelementEnd()()();
24736
24848
  } if (rf & 2) {
24737
24849
  const ctx_r1 = i0.ɵɵnextContext();
24738
24850
  i0.ɵɵadvance(3);
24739
24851
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 14, ctx_r1.addUpdateFlagHeaderText), " ");
24740
24852
  i0.ɵɵadvance(3);
24741
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7, 16, ctx_r1.flagForSummaryDisplay.partyName || ctx_r1.caseFlagCheckYourAnswersPageStep.CASE_LEVEL_LOCATION), " ");
24742
- i0.ɵɵadvance(4);
24743
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(11, 18, "Change"), "");
24853
+ i0.ɵɵtextInterpolate1(" ", ctx_r1.flagForSummaryDisplay.partyName || ctx_r1.caseFlagCheckYourAnswersPageStep.CASE_LEVEL_LOCATION, " ");
24744
24854
  i0.ɵɵadvance(3);
24745
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(14, 20, "party name"), "");
24855
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10, 16, "Change"), "");
24856
+ i0.ɵɵadvance(3);
24857
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(13, 18, "party name"), "");
24746
24858
  i0.ɵɵadvance(4);
24747
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(18, 22, ctx_r1.flagTypeHeaderText), " ");
24859
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(17, 20, ctx_r1.flagTypeHeaderText), " ");
24748
24860
  i0.ɵɵadvance(3);
24749
24861
  i0.ɵɵtextInterpolate1(" ", ctx_r1.flagDescription, " ");
24750
24862
  i0.ɵɵadvance(3);
24751
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(24, 24, "Change"), "");
24863
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(23, 22, "Change"), "");
24752
24864
  i0.ɵɵadvance(3);
24753
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(27, 26, "flag type"), "");
24865
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(26, 24, "flag type"), "");
24754
24866
  i0.ɵɵadvance(2);
24755
24867
  i0.ɵɵproperty("ngIf", (ctx_r1.flagDescriptionWelsh == null ? null : ctx_r1.flagDescriptionWelsh.length) > 0 && !ctx_r1.externalUserUpdate);
24756
24868
  i0.ɵɵadvance();
@@ -24758,9 +24870,9 @@ function CaseFlagSummaryListComponent_dl_0_Template(rf, ctx) { if (rf & 1) {
24758
24870
  i0.ɵɵadvance();
24759
24871
  i0.ɵɵproperty("ngIf", (ctx_r1.flagCommentsWelsh == null ? null : ctx_r1.flagCommentsWelsh.length) > 0 && !ctx_r1.externalUserUpdate);
24760
24872
  i0.ɵɵadvance(3);
24761
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(34, 28, "Status"), " ");
24873
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(33, 26, "Status"), " ");
24762
24874
  i0.ɵɵadvance(3);
24763
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(37, 30, ctx_r1.flagStatus), " ");
24875
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(36, 28, ctx_r1.flagStatus), " ");
24764
24876
  i0.ɵɵadvance(3);
24765
24877
  i0.ɵɵproperty("ngIf", ctx_r1.is2Point1Enabled);
24766
24878
  } }
@@ -24866,14 +24978,14 @@ class CaseFlagSummaryListComponent {
24866
24978
  }
24867
24979
  static ɵfac = function CaseFlagSummaryListComponent_Factory(t) { return new (t || CaseFlagSummaryListComponent)(i0.ɵɵdirectiveInject(i1.RpxTranslationService)); };
24868
24980
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseFlagSummaryListComponent, selectors: [["ccd-case-flag-summary-list"]], inputs: { flagForSummaryDisplay: "flagForSummaryDisplay", displayContextParameter: "displayContextParameter" }, outputs: { changeButtonEmitter: "changeButtonEmitter" }, decls: 1, vars: 1, consts: [["class", "govuk-summary-list", 4, "ngIf"], [1, "govuk-summary-list"], [1, "govuk-summary-list__row"], [1, "govuk-summary-list__key"], [1, "govuk-summary-list__value"], [1, "govuk-summary-list__actions"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [1, "govuk-visually-hidden"], ["class", "govuk-summary-list__row", 4, "ngIf"], ["class", "govuk-link", "href", "javascript:void(0)", 3, "click", 4, "ngIf"]], template: function CaseFlagSummaryListComponent_Template(rf, ctx) { if (rf & 1) {
24869
- i0.ɵɵtemplate(0, CaseFlagSummaryListComponent_dl_0_Template, 40, 32, "dl", 0);
24981
+ i0.ɵɵtemplate(0, CaseFlagSummaryListComponent_dl_0_Template, 39, 30, "dl", 0);
24870
24982
  } if (rf & 2) {
24871
24983
  i0.ɵɵproperty("ngIf", ctx.flagForSummaryDisplay);
24872
24984
  } }, dependencies: [i5.NgIf, i1.RpxTranslatePipe], encapsulation: 2 });
24873
24985
  }
24874
24986
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFlagSummaryListComponent, [{
24875
24987
  type: Component,
24876
- args: [{ selector: 'ccd-case-flag-summary-list', template: "<dl class=\"govuk-summary-list\" *ngIf=\"flagForSummaryDisplay\">\n <div class=\"govuk-summary-list__row\">\n <dt class=\"govuk-summary-list__key\">\n {{addUpdateFlagHeaderText | rpxTranslate}}\n </dt>\n <dd class=\"govuk-summary-list__value\">\n {{flagForSummaryDisplay.partyName || caseFlagCheckYourAnswersPageStep.CASE_LEVEL_LOCATION | rpxTranslate}}\n </dd>\n <dd class=\"govuk-summary-list__actions\">\n <a class=\"govuk-link\" href=\"javascript:void(0)\"\n (click)=\"changeButtonEmitter.emit(this.summaryListDisplayMode === displayMode.MANAGE ? caseFlagFieldState.FLAG_MANAGE_CASE_FLAGS : caseFlagFieldState.FLAG_LOCATION)\">\n {{'Change' | rpxTranslate}}<span class=\"govuk-visually-hidden\"> {{'party name' | rpxTranslate}}</span>\n </a>\n </dd>\n </div>\n <div class=\"govuk-summary-list__row\">\n <dt class=\"govuk-summary-list__key\">\n {{flagTypeHeaderText | rpxTranslate}}\n </dt>\n <dd class=\"govuk-summary-list__value\">\n {{flagDescription}}\n </dd>\n <dd class=\"govuk-summary-list__actions\">\n <a class=\"govuk-link\" href=\"javascript:void(0)\"\n (click)=\"changeButtonEmitter.emit(this.summaryListDisplayMode === displayMode.MANAGE ? caseFlagFieldState.FLAG_UPDATE : caseFlagFieldState.FLAG_TYPE)\">\n {{'Change' | rpxTranslate}}<span class=\"govuk-visually-hidden\"> {{'flag type' | rpxTranslate}}</span>\n </a>\n </dd>\n </div>\n <div class=\"govuk-summary-list__row\" *ngIf=\"flagDescriptionWelsh?.length > 0 && !externalUserUpdate\">\n <dt class=\"govuk-summary-list__key\">\n {{'Other description (Welsh)' | rpxTranslate}}\n </dt>\n <dd class=\"govuk-summary-list__value\">\n {{flagDescriptionWelsh}}\n </dd>\n <dd class=\"govuk-summary-list__actions\">\n <a class=\"govuk-link\" href=\"javascript:void(0)\"\n (click)=\"changeButtonEmitter.emit(this.summaryListDisplayMode === displayMode.MANAGE ? caseFlagFieldState.FLAG_UPDATE_WELSH_TRANSLATION : caseFlagFieldState.FLAG_TYPE)\">\n {{'Change' | rpxTranslate}}<span class=\"govuk-visually-hidden\"> {{'other description (Welsh)' | rpxTranslate}}</span>\n </a>\n </dd>\n </div>\n <div class=\"govuk-summary-list__row\" *ngIf=\"flagComments?.length > 0\">\n <dt class=\"govuk-summary-list__key\">\n {{'Comments' | rpxTranslate}}\n </dt>\n <dd class=\"govuk-summary-list__value\">\n {{externalUserUpdate ? flagUpdateComments : flagComments}}\n </dd>\n <dd class=\"govuk-summary-list__actions\">\n <a class=\"govuk-link\" href=\"javascript:void(0)\"\n (click)=\"changeButtonEmitter.emit(this.summaryListDisplayMode === displayMode.MANAGE ? caseFlagFieldState.FLAG_UPDATE : caseFlagFieldState.FLAG_COMMENTS)\">\n {{'Change' | rpxTranslate}}<span class=\"govuk-visually-hidden\"> {{'comments' | rpxTranslate}}</span>\n </a>\n </dd>\n </div>\n <div class=\"govuk-summary-list__row\" *ngIf=\"flagCommentsWelsh?.length > 0 && !externalUserUpdate\">\n <dt class=\"govuk-summary-list__key\">\n {{'Comments (Welsh)' | rpxTranslate}}\n </dt>\n <dd class=\"govuk-summary-list__value\">\n {{flagCommentsWelsh}}\n </dd>\n <dd class=\"govuk-summary-list__actions\">\n <a class=\"govuk-link\" href=\"javascript:void(0)\"\n (click)=\"changeButtonEmitter.emit(this.summaryListDisplayMode === displayMode.MANAGE ? caseFlagFieldState.FLAG_UPDATE_WELSH_TRANSLATION : caseFlagFieldState.FLAG_COMMENTS)\">\n {{'Change' | rpxTranslate}}<span class=\"govuk-visually-hidden\"> {{'comments (Welsh)' | rpxTranslate}}</span>\n </a>\n </dd>\n </div>\n <div class=\"govuk-summary-list__row\">\n <dt class=\"govuk-summary-list__key\">\n {{'Status' | rpxTranslate}}\n </dt>\n <dd class=\"govuk-summary-list__value\">\n {{flagStatus | rpxTranslate}}\n </dd>\n <dd class=\"govuk-summary-list__actions\">\n <a *ngIf=\"is2Point1Enabled\" class=\"govuk-link\" href=\"javascript:void(0)\"\n (click)=\"changeButtonEmitter.emit(this.summaryListDisplayMode === displayMode.MANAGE ? caseFlagFieldState.FLAG_UPDATE : caseFlagFieldState.FLAG_STATUS)\">\n {{'Change' | rpxTranslate}}<span class=\"govuk-visually-hidden\"> {{'status' | rpxTranslate}}</span>\n </a>\n </dd>\n </div>\n</dl>\n" }]
24988
+ args: [{ selector: 'ccd-case-flag-summary-list', template: "<dl class=\"govuk-summary-list\" *ngIf=\"flagForSummaryDisplay\">\n <div class=\"govuk-summary-list__row\">\n <dt class=\"govuk-summary-list__key\">\n {{addUpdateFlagHeaderText | rpxTranslate}}\n </dt>\n <dd class=\"govuk-summary-list__value\">\n {{flagForSummaryDisplay.partyName || caseFlagCheckYourAnswersPageStep.CASE_LEVEL_LOCATION }}\n </dd>\n <dd class=\"govuk-summary-list__actions\">\n <a class=\"govuk-link\" href=\"javascript:void(0)\"\n (click)=\"changeButtonEmitter.emit(this.summaryListDisplayMode === displayMode.MANAGE ? caseFlagFieldState.FLAG_MANAGE_CASE_FLAGS : caseFlagFieldState.FLAG_LOCATION)\">\n {{'Change' | rpxTranslate}}<span class=\"govuk-visually-hidden\"> {{'party name' | rpxTranslate}}</span>\n </a>\n </dd>\n </div>\n <div class=\"govuk-summary-list__row\">\n <dt class=\"govuk-summary-list__key\">\n {{flagTypeHeaderText | rpxTranslate}}\n </dt>\n <dd class=\"govuk-summary-list__value\">\n {{flagDescription}}\n </dd>\n <dd class=\"govuk-summary-list__actions\">\n <a class=\"govuk-link\" href=\"javascript:void(0)\"\n (click)=\"changeButtonEmitter.emit(this.summaryListDisplayMode === displayMode.MANAGE ? caseFlagFieldState.FLAG_UPDATE : caseFlagFieldState.FLAG_TYPE)\">\n {{'Change' | rpxTranslate}}<span class=\"govuk-visually-hidden\"> {{'flag type' | rpxTranslate}}</span>\n </a>\n </dd>\n </div>\n <div class=\"govuk-summary-list__row\" *ngIf=\"flagDescriptionWelsh?.length > 0 && !externalUserUpdate\">\n <dt class=\"govuk-summary-list__key\">\n {{'Other description (Welsh)' | rpxTranslate}}\n </dt>\n <dd class=\"govuk-summary-list__value\">\n {{flagDescriptionWelsh}}\n </dd>\n <dd class=\"govuk-summary-list__actions\">\n <a class=\"govuk-link\" href=\"javascript:void(0)\"\n (click)=\"changeButtonEmitter.emit(this.summaryListDisplayMode === displayMode.MANAGE ? caseFlagFieldState.FLAG_UPDATE_WELSH_TRANSLATION : caseFlagFieldState.FLAG_TYPE)\">\n {{'Change' | rpxTranslate}}<span class=\"govuk-visually-hidden\"> {{'other description (Welsh)' | rpxTranslate}}</span>\n </a>\n </dd>\n </div>\n <div class=\"govuk-summary-list__row\" *ngIf=\"flagComments?.length > 0\">\n <dt class=\"govuk-summary-list__key\">\n {{'Comments' | rpxTranslate}}\n </dt>\n <dd class=\"govuk-summary-list__value\">\n {{externalUserUpdate ? flagUpdateComments : flagComments}}\n </dd>\n <dd class=\"govuk-summary-list__actions\">\n <a class=\"govuk-link\" href=\"javascript:void(0)\"\n (click)=\"changeButtonEmitter.emit(this.summaryListDisplayMode === displayMode.MANAGE ? caseFlagFieldState.FLAG_UPDATE : caseFlagFieldState.FLAG_COMMENTS)\">\n {{'Change' | rpxTranslate}}<span class=\"govuk-visually-hidden\"> {{'comments' | rpxTranslate}}</span>\n </a>\n </dd>\n </div>\n <div class=\"govuk-summary-list__row\" *ngIf=\"flagCommentsWelsh?.length > 0 && !externalUserUpdate\">\n <dt class=\"govuk-summary-list__key\">\n {{'Comments (Welsh)' | rpxTranslate}}\n </dt>\n <dd class=\"govuk-summary-list__value\">\n {{flagCommentsWelsh}}\n </dd>\n <dd class=\"govuk-summary-list__actions\">\n <a class=\"govuk-link\" href=\"javascript:void(0)\"\n (click)=\"changeButtonEmitter.emit(this.summaryListDisplayMode === displayMode.MANAGE ? caseFlagFieldState.FLAG_UPDATE_WELSH_TRANSLATION : caseFlagFieldState.FLAG_COMMENTS)\">\n {{'Change' | rpxTranslate}}<span class=\"govuk-visually-hidden\"> {{'comments (Welsh)' | rpxTranslate}}</span>\n </a>\n </dd>\n </div>\n <div class=\"govuk-summary-list__row\">\n <dt class=\"govuk-summary-list__key\">\n {{'Status' | rpxTranslate}}\n </dt>\n <dd class=\"govuk-summary-list__value\">\n {{flagStatus | rpxTranslate}}\n </dd>\n <dd class=\"govuk-summary-list__actions\">\n <a *ngIf=\"is2Point1Enabled\" class=\"govuk-link\" href=\"javascript:void(0)\"\n (click)=\"changeButtonEmitter.emit(this.summaryListDisplayMode === displayMode.MANAGE ? caseFlagFieldState.FLAG_UPDATE : caseFlagFieldState.FLAG_STATUS)\">\n {{'Change' | rpxTranslate}}<span class=\"govuk-visually-hidden\"> {{'status' | rpxTranslate}}</span>\n </a>\n </dd>\n </div>\n</dl>\n" }]
24877
24989
  }], () => [{ type: i1.RpxTranslationService }], { flagForSummaryDisplay: [{
24878
24990
  type: Input
24879
24991
  }], displayContextParameter: [{
@@ -27649,7 +27761,7 @@ function ReadComplexFieldRawComponent_ng_container_1_Template(rf, ctx) { if (rf
27649
27761
  i0.ɵɵadvance();
27650
27762
  i0.ɵɵproperty("hidden", field_r1.hidden || field_r1.field_type.type === "Label");
27651
27763
  i0.ɵɵadvance(2);
27652
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 8, field_r1.label));
27764
+ i0.ɵɵtextInterpolate(ctx_r1.isTranslatable(field_r1) ? i0.ɵɵpipeBind1(4, 8, field_r1.label) : field_r1.label);
27653
27765
  i0.ɵɵadvance(2);
27654
27766
  i0.ɵɵproperty("hidden", field_r1.hidden);
27655
27767
  i0.ɵɵadvance();
@@ -27674,7 +27786,7 @@ class ReadComplexFieldRawComponent extends AbstractFieldReadComponent {
27674
27786
  }
27675
27787
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadComplexFieldRawComponent, [{
27676
27788
  type: Component,
27677
- args: [{ selector: 'ccd-read-complex-field-raw', template: "<dl class=\"complex-raw\">\n <ng-container *ngFor=\"let field of caseField | ccdReadFieldsFilter:false :undefined :true :topLevelFormGroup :id()\">\n <dt [hidden]=\"field.hidden || field.field_type.type === 'Label'\"><span class=\"text-16\">{{field.label | rpxTranslate}}</span></dt>\n <dd [hidden]=\"field.hidden\">\n <ccd-field-read [caseField]=\"field\" [context]=\"context\" [caseFields]=\"caseFields\" [topLevelFormGroup]=\"topLevelFormGroup\" [idPrefix]=\"idPrefix\"></ccd-field-read>\n </dd>\n </ng-container>\n</dl>\n", styles: ["dl.complex-raw{list-style-type:none;margin:5px 0 10px}dl.complex-raw dl.complex-raw{padding-left:2ch}dl.complex-raw dt{font-weight:700}\n"] }]
27789
+ args: [{ selector: 'ccd-read-complex-field-raw', template: "<dl class=\"complex-raw\">\n <ng-container *ngFor=\"let field of caseField | ccdReadFieldsFilter:false :undefined :true :topLevelFormGroup :id()\">\n <dt [hidden]=\"field.hidden || field.field_type.type === 'Label'\"><span class=\"text-16\">{{isTranslatable(field) ? (field.label | rpxTranslate) : field.label}}</span></dt>\n <dd [hidden]=\"field.hidden\">\n <ccd-field-read [caseField]=\"field\" [context]=\"context\" [caseFields]=\"caseFields\" [topLevelFormGroup]=\"topLevelFormGroup\" [idPrefix]=\"idPrefix\"></ccd-field-read>\n </dd>\n </ng-container>\n</dl>\n", styles: ["dl.complex-raw{list-style-type:none;margin:5px 0 10px}dl.complex-raw dl.complex-raw{padding-left:2ch}dl.complex-raw dt{font-weight:700}\n"] }]
27678
27790
  }], null, { caseFields: [{
27679
27791
  type: Input
27680
27792
  }] }); })();
@@ -27776,15 +27888,17 @@ function ReadComplexFieldCollectionTableComponent_th_10_Template(rf, ctx) { if (
27776
27888
  i0.ɵɵpipe(3, "rpxTranslate");
27777
27889
  i0.ɵɵelementEnd();
27778
27890
  i0.ɵɵelementStart(4, "a", 9);
27779
- i0.ɵɵlistener("click", function ReadComplexFieldCollectionTableComponent_th_10_Template_a_click_4_listener() { const heading_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.sortRowsByColumns(heading_r2)); });
27891
+ i0.ɵɵpipe(5, "rpxTranslate");
27892
+ i0.ɵɵlistener("click", function ReadComplexFieldCollectionTableComponent_th_10_Template_a_click_4_listener() { const heading_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.sortRowsByColumns(heading_r2)); })("keyup.enter", function ReadComplexFieldCollectionTableComponent_th_10_Template_a_keyup_enter_4_listener() { const heading_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.sortRowsByColumns(heading_r2)); });
27780
27893
  i0.ɵɵelementEnd()();
27781
27894
  } if (rf & 2) {
27782
27895
  const heading_r2 = ctx.$implicit;
27783
27896
  const ctx_r2 = i0.ɵɵnextContext();
27784
27897
  i0.ɵɵadvance(2);
27785
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, ctx_r2.columnsAllLabels[heading_r2].label));
27898
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 3, ctx_r2.columnsAllLabels[heading_r2].label));
27786
27899
  i0.ɵɵadvance(2);
27787
27900
  i0.ɵɵproperty("innerHTML", ctx_r2.sortWidget(ctx_r2.columnsAllLabels[heading_r2]), i0.ɵɵsanitizeHtml);
27901
+ i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(5, 5, "Sort " + ctx_r2.columnsAllLabels[heading_r2].label));
27788
27902
  } }
27789
27903
  function ReadComplexFieldCollectionTableComponent_ng_container_12_ng_container_2_div_2_Template(rf, ctx) { if (rf & 1) {
27790
27904
  i0.ɵɵelementStart(0, "div");
@@ -27933,7 +28047,7 @@ function ReadComplexFieldCollectionTableComponent_ng_container_12_Template(rf, c
27933
28047
  const _r4 = i0.ɵɵgetCurrentView();
27934
28048
  i0.ɵɵelementContainerStart(0);
27935
28049
  i0.ɵɵelementStart(1, "tr", 10);
27936
- i0.ɵɵlistener("click", function ReadComplexFieldCollectionTableComponent_ng_container_12_Template_tr_click_1_listener() { const i_r5 = i0.ɵɵrestoreView(_r4).index; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView((ctx_r2.isHidden[i_r5] = !ctx_r2.isHidden[i_r5])); });
28050
+ i0.ɵɵlistener("keyup", function ReadComplexFieldCollectionTableComponent_ng_container_12_Template_tr_keyup_1_listener($event) { const i_r5 = i0.ɵɵrestoreView(_r4).index; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView($event.key === "Enter" ? (ctx_r2.isHidden[i_r5] = !ctx_r2.isHidden[i_r5]) : null); })("click", function ReadComplexFieldCollectionTableComponent_ng_container_12_Template_tr_click_1_listener() { const i_r5 = i0.ɵɵrestoreView(_r4).index; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView((ctx_r2.isHidden[i_r5] = !ctx_r2.isHidden[i_r5])); });
27937
28051
  i0.ɵɵtemplate(2, ReadComplexFieldCollectionTableComponent_ng_container_12_ng_container_2_Template, 5, 2, "ng-container", 7);
27938
28052
  i0.ɵɵelementStart(3, "td")(4, "div", 11)(5, "a", 12);
27939
28053
  i0.ɵɵelement(6, "img", 13);
@@ -28112,7 +28226,7 @@ class ReadComplexFieldCollectionTableComponent extends AbstractFieldReadComponen
28112
28226
  return result;
28113
28227
  }
28114
28228
  static ɵfac = /*@__PURE__*/ (() => { let ɵReadComplexFieldCollectionTableComponent_BaseFactory; return function ReadComplexFieldCollectionTableComponent_Factory(t) { return (ɵReadComplexFieldCollectionTableComponent_BaseFactory || (ɵReadComplexFieldCollectionTableComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadComplexFieldCollectionTableComponent)))(t || ReadComplexFieldCollectionTableComponent); }; })();
28115
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadComplexFieldCollectionTableComponent, selectors: [["ccd-read-complex-field-collection-table"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 13, vars: 6, consts: [["showEmptyTd", ""], ["SimpleRow", ""], [1, "complex-panel", 3, "hidden"], [1, "complex-panel-title"], [1, "text-16"], ["aria-describedby", "complex panel table", 1, "complex-panel-table"], ["scope", "col", 4, "ngFor", "ngForOf"], [4, "ngFor", "ngForOf"], ["scope", "col"], ["href", "javascript:void(0)", 1, "sort-widget", 3, "click", "innerHTML"], [1, "new-table-row", "accordion-heading", 3, "click"], [2, "float", "right"], ["href", "javascript:void(0)"], ["alt", "image", 1, "accordion-image", 3, "src"], [3, "hidden"], [3, "colSpan"], ["aria-describedby", "complex panel table expanded", 1, "complex-panel-table"], [4, "ngIf", "ngIfElse"], [3, "caseField", "context"], ["class", "complex-panel-simple-field accordion-body", 3, "hidden", 4, "ngIf"], [3, "hidden", 4, "ngIf"], [1, "complex-panel-simple-field", "accordion-body", 3, "hidden"], ["class", "text-16", 4, "ngIf"], ["colspan", "2"], ["class", "complex-panel-compound-field", 3, "hidden", 4, "ngIf", "ngIfElse"], [1, "complex-panel-compound-field", 3, "hidden"], [1, "complex-panel-nested-field", 3, "hidden"], [4, "ngIf"]], template: function ReadComplexFieldCollectionTableComponent_Template(rf, ctx) { if (rf & 1) {
28229
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadComplexFieldCollectionTableComponent, selectors: [["ccd-read-complex-field-collection-table"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 13, vars: 6, consts: [["showEmptyTd", ""], ["SimpleRow", ""], [1, "complex-panel", 3, "hidden"], [1, "complex-panel-title"], [1, "text-16"], ["aria-describedby", "complex panel table", 1, "complex-panel-table"], ["scope", "col", 4, "ngFor", "ngForOf"], [4, "ngFor", "ngForOf"], ["scope", "col"], ["href", "javascript:void(0)", 1, "sort-widget", 3, "click", "keyup.enter", "innerHTML"], [1, "new-table-row", "accordion-heading", 3, "keyup", "click"], [2, "float", "right"], ["href", "javascript:void(0)"], ["alt", "accordion-img", 1, "accordion-image", 3, "src"], [3, "hidden"], [3, "colSpan"], ["aria-describedby", "complex panel table expanded", 1, "complex-panel-table"], [4, "ngIf", "ngIfElse"], [3, "caseField", "context"], ["class", "complex-panel-simple-field accordion-body", 3, "hidden", 4, "ngIf"], [3, "hidden", 4, "ngIf"], [1, "complex-panel-simple-field", "accordion-body", 3, "hidden"], ["class", "text-16", 4, "ngIf"], ["colspan", "2"], ["class", "complex-panel-compound-field", 3, "hidden", 4, "ngIf", "ngIfElse"], [1, "complex-panel-compound-field", 3, "hidden"], [1, "complex-panel-nested-field", 3, "hidden"], [4, "ngIf"]], template: function ReadComplexFieldCollectionTableComponent_Template(rf, ctx) { if (rf & 1) {
28116
28230
  i0.ɵɵelementStart(0, "div", 2)(1, "dl", 3)(2, "dt")(3, "span", 4);
28117
28231
  i0.ɵɵtext(4);
28118
28232
  i0.ɵɵpipe(5, "rpxTranslate");
@@ -28120,7 +28234,7 @@ class ReadComplexFieldCollectionTableComponent extends AbstractFieldReadComponen
28120
28234
  i0.ɵɵelement(6, "dd");
28121
28235
  i0.ɵɵelementEnd();
28122
28236
  i0.ɵɵelementStart(7, "table", 5)(8, "tbody")(9, "tr");
28123
- i0.ɵɵtemplate(10, ReadComplexFieldCollectionTableComponent_th_10_Template, 5, 4, "th", 6);
28237
+ i0.ɵɵtemplate(10, ReadComplexFieldCollectionTableComponent_th_10_Template, 6, 7, "th", 6);
28124
28238
  i0.ɵɵelement(11, "th");
28125
28239
  i0.ɵɵelementEnd();
28126
28240
  i0.ɵɵtemplate(12, ReadComplexFieldCollectionTableComponent_ng_container_12_Template, 15, 19, "ng-container", 7);
@@ -28137,7 +28251,7 @@ class ReadComplexFieldCollectionTableComponent extends AbstractFieldReadComponen
28137
28251
  }
28138
28252
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadComplexFieldCollectionTableComponent, [{
28139
28253
  type: Component,
28140
- args: [{ selector: 'ccd-read-complex-field-collection-table', template: "<div class=\"complex-panel\" [hidden]=\"caseField.hidden\">\n <dl class=\"complex-panel-title\">\n <dt><span class=\"text-16\">{{caseField.label | rpxTranslate}}</span></dt>\n <dd></dd>\n </dl>\n <table class=\"complex-panel-table\" aria-describedby=\"complex panel table\">\n <tbody>\n <!-- <COMPLEX table field header>-->\n <tr>\n <th *ngFor=\"let heading of columns\" scope=\"col\">\n <span class=\"text-16\">{{columnsAllLabels[heading].label | rpxTranslate}}</span>\n <a href=\"javascript:void(0)\"\n (click)=\"sortRowsByColumns(heading)\"\n class=\"sort-widget\"\n [innerHTML]=\"sortWidget(columnsAllLabels[heading])\"></a>\n </th>\n <th></th>\n </tr>\n <!-- </COMPLEX table field header>-->\n <ng-container *ngFor=\"let item of rows; let i = index;\">\n <!-- <COMPLEX table collapsed view>-->\n <tr class=\"new-table-row accordion-heading\" (click)=\"isHidden[i] = !isHidden[i]\"\n [class.last-accordion]=\"isHidden[i]\">\n <ng-container *ngFor=\"let heading of columns\">\n <td class=\"text-16\">\n <div *ngIf=\"item[heading]; else showEmptyTd\">\n <ccd-field-read\n [caseField]=\"toCaseField(heading, item[heading].label, columnsHorizontalLabel[heading].type, item[heading])\"\n [context]=\"context\"></ccd-field-read>\n </div>\n <ng-template #showEmptyTd>\n <div>&nbsp;</div>\n </ng-template>\n </td>\n </ng-container>\n <td>\n <div style=\"float: right;\">\n <a href=\"javascript:void(0)\"> <img src=\"{{ getImage(i) }}\" alt=\"image\" class=\"accordion-image\"/></a>\n </div>\n </td>\n </tr>\n <!-- </COMPLEX table collapsed view>-->\n <!-- <COMPLEX table expanded view>-->\n <tr [hidden]=\"isHidden[i]\">\n <td [colSpan]=\"columns.length + 1\">\n <table class=\"complex-panel-table\" aria-describedby=\"complex panel table expanded\">\n <tbody>\n <ng-container\n *ngFor=\"let vLabel of columnsVerticalLabel | keyvalue: keepOriginalOrder | ccdCollectionTableCaseFieldsFilter: caseField: rows[i] | ccdReadFieldsFilter:true :undefined :true\">\n <!-- <COMPLEX table expandable body simple field>-->\n <tr class=\"complex-panel-simple-field accordion-body\" *ngIf=\"item[vLabel.id]\" [hidden]=\"vLabel.hidden\">\n <th scope=\"col\"><span class=\"text-16\">{{vLabel.label | rpxTranslate}}</span></th>\n <td *ngIf=\"vLabel['type'] !== 'Complex'\" class=\"text-16\">\n <ccd-field-read [caseField]=\"toCaseField('', vLabel.label, vLabel.field_type, item[vLabel.id])\"\n [context]=\"context\"></ccd-field-read>\n </td>\n </tr>\n <!-- </COMPLEX table expandable body simple field>-->\n\n <!-- <COMPLEX table expandable body complex field>-->\n <tr *ngIf=\"vLabel['type'] === 'Complex' && addCaseFieldValue(vLabel, item[vLabel.id])\" [hidden]=\"vLabel.hidden\">\n <td colspan=\"2\">\n <ng-container *ngFor=\"let caseField of vLabel | ccdReadFieldsFilter:true :undefined :true\">\n <tr class=\"complex-panel-compound-field\" *ngIf=\"(caseField | ccdIsCompound); else SimpleRow\" [hidden]=\"caseField\">\n <td colspan=\"2\">\n <span class=\"text-16\"><ccd-field-read [caseField]=\"caseField\" [context]=\"context\"></ccd-field-read></span>\n </td>\n </tr>\n <ng-template #SimpleRow>\n <tr class=\"complex-panel-nested-field\" [hidden]=\"caseField.hidden\">\n <th scope=\"col\"><span class=\"text-16\">{{caseField.label | rpxTranslate}}</span></th>\n <td *ngIf=\"!item[vLabel.id]?.hasOwnProperty('CaseReference')\">\n <span class=\"text-16\"><ccd-field-read [caseField]=\"caseField\" [context]=\"context\"></ccd-field-read></span>\n </td>\n <td *ngIf=\"item[vLabel.id]?.hasOwnProperty('CaseReference')\">\n <ccd-read-case-link-field [caseField]=\"addCaseReferenceValue(caseField, item[vLabel.id].CaseReference)\" [context]=\"context\"></ccd-read-case-link-field>\n </td>\n </tr>\n </ng-template>\n </ng-container>\n </td>\n </tr>\n <!-- <COMPLEX table expandable body complex field>-->\n </ng-container>\n </tbody>\n </table>\n </td>\n </tr>\n <!-- </COMPLEX table expanded view>-->\n </ng-container>\n </tbody>\n </table>\n</div>\n", styles: [".complex-panel{margin:13px 0;border:1px solid #bfc1c3}.complex-panel .complex-panel-title{background-color:#dee0e2;padding:5px 5px 2px;border-bottom:1px solid #bfc1c3;display:block;color:#0b0c0c;font-family:nta,Arial,sans-serif;font-weight:700;text-transform:none;font-size:16px;line-height:1.25}@media (min-width: 641px){.complex-panel .complex-panel-title{font-size:19px;line-height:1.3157894737}}.complex-panel .complex-panel-table>tbody>tr>th{vertical-align:top}.complex-panel .complex-panel-table>tbody>tr:last-child>th{border-bottom:none}.complex-panel .complex-panel-table th{padding-left:5px;font-weight:700;border-bottom:none}.complex-panel .complex-panel-table td{padding-left:5px;padding-top:0;padding-bottom:0;border-bottom:none}.complex-panel .new-table-row{border-top:1px solid #bfc1c3}.complex-panel .complex-panel-simple-field th{padding-left:5px;padding-top:0;padding-bottom:0;width:295px}.complex-panel .complex-panel-nested-field th{padding-left:33px;padding-top:0;padding-bottom:0;width:200px}.complex-panel .complex-panel-compound-field td{padding:5px;border-bottom:none}.sort-widget{cursor:pointer;text-decoration:none;color:#0b0c0c}.accordion-wrapper{margin-bottom:20px}.accordion-wrapper .heading-medium{margin:0}.accordion-wrapper .accordion-heading{border-top:1px solid #bfc1c3;padding-top:20px;padding-bottom:10px;height:20px;cursor:pointer}.accordion-wrapper .accordion-heading .accordion-image{width:25px;margin-right:20px}.accordion-wrapper .accordion-body{margin-top:20px;margin-right:20px}.accordion-wrapper .last-accordion{border-bottom:1px solid #bfc1c3;padding-bottom:30px}\n"] }]
28254
+ args: [{ selector: 'ccd-read-complex-field-collection-table', template: "<div class=\"complex-panel\" [hidden]=\"caseField.hidden\">\n <dl class=\"complex-panel-title\">\n <dt><span class=\"text-16\">{{caseField.label | rpxTranslate}}</span></dt>\n <dd></dd>\n </dl>\n <table class=\"complex-panel-table\" aria-describedby=\"complex panel table\">\n <tbody>\n <!-- <COMPLEX table field header>-->\n <tr>\n <th *ngFor=\"let heading of columns\" scope=\"col\">\n <span class=\"text-16\">{{columnsAllLabels[heading].label | rpxTranslate}}</span>\n <a href=\"javascript:void(0)\"\n (click)=\"sortRowsByColumns(heading)\"\n (keyup.enter)=\"sortRowsByColumns(heading)\"\n class=\"sort-widget\"\n [attr.aria-label]=\"'Sort ' + columnsAllLabels[heading].label | rpxTranslate\"\n [innerHTML]=\"sortWidget(columnsAllLabels[heading])\"></a>\n </th>\n <th></th>\n </tr>\n <!-- </COMPLEX table field header>-->\n <ng-container *ngFor=\"let item of rows; let i = index;\">\n <!-- <COMPLEX table collapsed view>-->\n <tr class=\"new-table-row accordion-heading\" (keyup)=\"$event.key === 'Enter' ? (isHidden[i] = !isHidden[i]) : null\" (click)=\"isHidden[i] = !isHidden[i]\"\n [class.last-accordion]=\"isHidden[i]\">\n <ng-container *ngFor=\"let heading of columns\">\n <td class=\"text-16\">\n <div *ngIf=\"item[heading]; else showEmptyTd\">\n <ccd-field-read\n [caseField]=\"toCaseField(heading, item[heading].label, columnsHorizontalLabel[heading].type, item[heading])\"\n [context]=\"context\"></ccd-field-read>\n </div>\n <ng-template #showEmptyTd>\n <div>&nbsp;</div>\n </ng-template>\n </td>\n </ng-container>\n <td>\n <div style=\"float: right;\">\n <a href=\"javascript:void(0)\"> <img src=\"{{ getImage(i) }}\" alt=\"accordion-img\" class=\"accordion-image\"/></a>\n </div>\n </td>\n </tr>\n <!-- </COMPLEX table collapsed view>-->\n <!-- <COMPLEX table expanded view>-->\n <tr [hidden]=\"isHidden[i]\">\n <td [colSpan]=\"columns.length + 1\">\n <table class=\"complex-panel-table\" aria-describedby=\"complex panel table expanded\">\n <tbody>\n <ng-container\n *ngFor=\"let vLabel of columnsVerticalLabel | keyvalue: keepOriginalOrder | ccdCollectionTableCaseFieldsFilter: caseField: rows[i] | ccdReadFieldsFilter:true :undefined :true\">\n <!-- <COMPLEX table expandable body simple field>-->\n <tr class=\"complex-panel-simple-field accordion-body\" *ngIf=\"item[vLabel.id]\" [hidden]=\"vLabel.hidden\">\n <th scope=\"col\"><span class=\"text-16\">{{ vLabel.label | rpxTranslate }}</span></th>\n <td *ngIf=\"vLabel['type'] !== 'Complex'\" class=\"text-16\">\n <ccd-field-read [caseField]=\"toCaseField('', vLabel.label, vLabel.field_type, item[vLabel.id])\"\n [context]=\"context\"></ccd-field-read>\n </td>\n </tr>\n <!-- </COMPLEX table expandable body simple field>-->\n\n <!-- <COMPLEX table expandable body complex field>-->\n <tr *ngIf=\"vLabel['type'] === 'Complex' && addCaseFieldValue(vLabel, item[vLabel.id])\" [hidden]=\"vLabel.hidden\">\n <td colspan=\"2\">\n <ng-container *ngFor=\"let caseField of vLabel | ccdReadFieldsFilter:true :undefined :true\">\n <tr class=\"complex-panel-compound-field\" *ngIf=\"(caseField | ccdIsCompound); else SimpleRow\" [hidden]=\"caseField\">\n <td colspan=\"2\">\n <span class=\"text-16\"><ccd-field-read [caseField]=\"caseField\" [context]=\"context\"></ccd-field-read></span>\n </td>\n </tr>\n <ng-template #SimpleRow>\n <tr class=\"complex-panel-nested-field\" [hidden]=\"caseField.hidden\">\n <th scope=\"col\"><span class=\"text-16\">{{caseField.label | rpxTranslate}}</span></th>\n <td *ngIf=\"!item[vLabel.id]?.hasOwnProperty('CaseReference')\">\n <span class=\"text-16\"><ccd-field-read [caseField]=\"caseField\" [context]=\"context\"></ccd-field-read></span>\n </td>\n <td *ngIf=\"item[vLabel.id]?.hasOwnProperty('CaseReference')\">\n <ccd-read-case-link-field [caseField]=\"addCaseReferenceValue(caseField, item[vLabel.id].CaseReference)\" [context]=\"context\"></ccd-read-case-link-field>\n </td>\n </tr>\n </ng-template>\n </ng-container>\n </td>\n </tr>\n <!-- <COMPLEX table expandable body complex field>-->\n </ng-container>\n </tbody>\n </table>\n </td>\n </tr>\n <!-- </COMPLEX table expanded view>-->\n </ng-container>\n </tbody>\n </table>\n</div>\n", styles: [".complex-panel{margin:13px 0;border:1px solid #bfc1c3}.complex-panel .complex-panel-title{background-color:#dee0e2;padding:5px 5px 2px;border-bottom:1px solid #bfc1c3;display:block;color:#0b0c0c;font-family:nta,Arial,sans-serif;font-weight:700;text-transform:none;font-size:16px;line-height:1.25}@media (min-width: 641px){.complex-panel .complex-panel-title{font-size:19px;line-height:1.3157894737}}.complex-panel .complex-panel-table>tbody>tr>th{vertical-align:top}.complex-panel .complex-panel-table>tbody>tr:last-child>th{border-bottom:none}.complex-panel .complex-panel-table th{padding-left:5px;font-weight:700;border-bottom:none}.complex-panel .complex-panel-table td{padding-left:5px;padding-top:0;padding-bottom:0;border-bottom:none}.complex-panel .new-table-row{border-top:1px solid #bfc1c3}.complex-panel .complex-panel-simple-field th{padding-left:5px;padding-top:0;padding-bottom:0;width:295px}.complex-panel .complex-panel-nested-field th{padding-left:33px;padding-top:0;padding-bottom:0;width:200px}.complex-panel .complex-panel-compound-field td{padding:5px;border-bottom:none}.sort-widget{cursor:pointer;text-decoration:none;color:#0b0c0c}.accordion-wrapper{margin-bottom:20px}.accordion-wrapper .heading-medium{margin:0}.accordion-wrapper .accordion-heading{border-top:1px solid #bfc1c3;padding-top:20px;padding-bottom:10px;height:20px;cursor:pointer}.accordion-wrapper .accordion-heading .accordion-image{width:25px;margin-right:20px}.accordion-wrapper .accordion-body{margin-top:20px;margin-right:20px}.accordion-wrapper .last-accordion{border-bottom:1px solid #bfc1c3;padding-bottom:30px}\n"] }]
28141
28255
  }], null, null); })();
28142
28256
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadComplexFieldCollectionTableComponent, { className: "ReadComplexFieldCollectionTableComponent", filePath: "lib/shared/components/palette/complex/read-complex-field-collection-table.component.ts", lineNumber: 12 }); })();
28143
28257
 
@@ -31714,28 +31828,28 @@ function PaginationComponent_ul_4_li_5_a_1_Template(rf, ctx) { if (rf & 1) {
31714
31828
  i0.ɵɵadvance(3);
31715
31829
  i0.ɵɵtextInterpolate(page_r6.label === "..." ? page_r6.label : i0.ɵɵpipeBind2(9, 12, page_r6.label, ""));
31716
31830
  } }
31717
- function PaginationComponent_ul_4_li_5_ng_container_2_Template(rf, ctx) { if (rf & 1) {
31718
- i0.ɵɵelementContainerStart(0);
31719
- i0.ɵɵelementStart(1, "span", 13);
31831
+ function PaginationComponent_ul_4_li_5_a_2_Template(rf, ctx) { if (rf & 1) {
31832
+ i0.ɵɵelementStart(0, "a", 15)(1, "span", 13);
31720
31833
  i0.ɵɵtext(2);
31721
31834
  i0.ɵɵpipe(3, "rpxTranslate");
31722
31835
  i0.ɵɵelementEnd();
31723
31836
  i0.ɵɵelementStart(4, "span");
31724
31837
  i0.ɵɵtext(5);
31725
31838
  i0.ɵɵpipe(6, "number");
31726
- i0.ɵɵelementEnd();
31727
- i0.ɵɵelementContainerEnd();
31839
+ i0.ɵɵelementEnd()();
31728
31840
  } if (rf & 2) {
31729
31841
  const page_r6 = i0.ɵɵnextContext().$implicit;
31730
31842
  const ctx_r3 = i0.ɵɵnextContext(2);
31731
- i0.ɵɵadvance(2);
31732
- i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 2, ctx_r3.screenReaderCurrentLabel), " ");
31843
+ i0.ɵɵadvance();
31844
+ i0.ɵɵattribute("current", page_r6)("aria-label", ctx_r3.screenReaderCurrentLabel);
31845
+ i0.ɵɵadvance();
31846
+ i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 4, ctx_r3.screenReaderCurrentLabel), " ");
31733
31847
  i0.ɵɵadvance(3);
31734
- i0.ɵɵtextInterpolate(page_r6.label === "..." ? page_r6.label : i0.ɵɵpipeBind2(6, 4, page_r6.label, ""));
31848
+ i0.ɵɵtextInterpolate(page_r6.label === "..." ? page_r6.label : i0.ɵɵpipeBind2(6, 6, page_r6.label, ""));
31735
31849
  } }
31736
31850
  function PaginationComponent_ul_4_li_5_Template(rf, ctx) { if (rf & 1) {
31737
31851
  i0.ɵɵelementStart(0, "li");
31738
- i0.ɵɵtemplate(1, PaginationComponent_ul_4_li_5_a_1_Template, 10, 15, "a", 10)(2, PaginationComponent_ul_4_li_5_ng_container_2_Template, 7, 7, "ng-container", 11);
31852
+ i0.ɵɵtemplate(1, PaginationComponent_ul_4_li_5_a_1_Template, 10, 15, "a", 10)(2, PaginationComponent_ul_4_li_5_a_2_Template, 7, 9, "a", 14);
31739
31853
  i0.ɵɵelementEnd();
31740
31854
  } if (rf & 2) {
31741
31855
  const page_r6 = ctx.$implicit;
@@ -31782,7 +31896,7 @@ function PaginationComponent_ul_4_li_6_span_2_Template(rf, ctx) { if (rf & 1) {
31782
31896
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 4, ctx_r3.screenReaderPageLabel));
31783
31897
  } }
31784
31898
  function PaginationComponent_ul_4_li_6_Template(rf, ctx) { if (rf & 1) {
31785
- i0.ɵɵelementStart(0, "li", 14);
31899
+ i0.ɵɵelementStart(0, "li", 16);
31786
31900
  i0.ɵɵtemplate(1, PaginationComponent_ul_4_li_6_a_1_Template, 7, 9, "a", 10)(2, PaginationComponent_ul_4_li_6_span_2_Template, 6, 6, "span", 11);
31787
31901
  i0.ɵɵelementEnd();
31788
31902
  } if (rf & 2) {
@@ -31853,7 +31967,7 @@ class PaginationComponent {
31853
31967
  this.pResponsive = coerceToBoolean(value);
31854
31968
  }
31855
31969
  static ɵfac = function PaginationComponent_Factory(t) { return new (t || PaginationComponent)(); };
31856
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PaginationComponent, selectors: [["ccd-pagination"]], inputs: { visibilityLabel: "visibilityLabel", id: "id", maxSize: "maxSize", previousLabel: "previousLabel", nextLabel: "nextLabel", screenReaderPaginationLabel: "screenReaderPaginationLabel", screenReaderPageLabel: "screenReaderPageLabel", screenReaderCurrentLabel: "screenReaderCurrentLabel", directionLinks: "directionLinks", autoHide: "autoHide", responsive: "responsive" }, outputs: { pageChange: "pageChange", pageBoundsCorrection: "pageBoundsCorrection" }, decls: 5, vars: 6, consts: [["p", "paginationApi"], [3, "pageChange", "pageBoundsCorrection", "id", "maxSize"], ["role", "navigation"], ["class", "ngx-pagination", 3, "responsive", 4, "ngIf"], [1, "ngx-pagination"], ["class", "pagination-previous", 3, "disabled", 4, "ngIf"], [1, "small-screen"], [3, "current", "ellipsis", 4, "ngFor", "ngForOf"], ["class", "pagination-next", 3, "disabled", 4, "ngIf"], [1, "pagination-previous"], ["tabindex", "0", 3, "keyup.enter", "click", 4, "ngIf"], [4, "ngIf"], ["tabindex", "0", 3, "keyup.enter", "click"], [1, "show-for-sr"], [1, "pagination-next"]], template: function PaginationComponent_Template(rf, ctx) { if (rf & 1) {
31970
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PaginationComponent, selectors: [["ccd-pagination"]], inputs: { visibilityLabel: "visibilityLabel", id: "id", maxSize: "maxSize", previousLabel: "previousLabel", nextLabel: "nextLabel", screenReaderPaginationLabel: "screenReaderPaginationLabel", screenReaderPageLabel: "screenReaderPageLabel", screenReaderCurrentLabel: "screenReaderCurrentLabel", directionLinks: "directionLinks", autoHide: "autoHide", responsive: "responsive" }, outputs: { pageChange: "pageChange", pageBoundsCorrection: "pageBoundsCorrection" }, decls: 5, vars: 6, consts: [["p", "paginationApi"], [3, "pageChange", "pageBoundsCorrection", "id", "maxSize"], ["role", "navigation"], ["class", "ngx-pagination", 3, "responsive", 4, "ngIf"], [1, "ngx-pagination"], ["class", "pagination-previous", 3, "disabled", 4, "ngIf"], [1, "small-screen"], [3, "current", "ellipsis", 4, "ngFor", "ngForOf"], ["class", "pagination-next", 3, "disabled", 4, "ngIf"], [1, "pagination-previous"], ["tabindex", "0", 3, "keyup.enter", "click", 4, "ngIf"], [4, "ngIf"], ["tabindex", "0", 3, "keyup.enter", "click"], [1, "show-for-sr"], ["tabindex", "0", 4, "ngIf"], ["tabindex", "0"], [1, "pagination-next"]], template: function PaginationComponent_Template(rf, ctx) { if (rf & 1) {
31857
31971
  const _r1 = i0.ɵɵgetCurrentView();
31858
31972
  i0.ɵɵelementStart(0, "pagination-template", 1, 0);
31859
31973
  i0.ɵɵlistener("pageChange", function PaginationComponent_Template_pagination_template_pageChange_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.pageChange.emit($event)); })("pageBoundsCorrection", function PaginationComponent_Template_pagination_template_pageBoundsCorrection_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.pageBoundsCorrection.emit($event)); });
@@ -31868,11 +31982,11 @@ class PaginationComponent {
31868
31982
  i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(3, 4, "Pagination"));
31869
31983
  i0.ɵɵadvance(2);
31870
31984
  i0.ɵɵproperty("ngIf", !(ctx.autoHide && p_r3.pages.length <= 1));
31871
- } }, dependencies: [i5.NgForOf, i5.NgIf, i2$3.PaginationControlsDirective, i5.DecimalPipe, i1.RpxTranslatePipe], styles: [".ngx-pagination[_ngcontent-%COMP%]{margin-left:0;margin-bottom:1rem;padding-top:25px;text-decoration:none;text-align:left;font-size:16px}.ngx-pagination[_ngcontent-%COMP%]:before, .ngx-pagination[_ngcontent-%COMP%]:after{content:\" \";display:table}.ngx-pagination[_ngcontent-%COMP%]:after{clear:both}.ngx-pagination[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;margin-right:.0625rem;border-radius:0}.ngx-pagination[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:inline-block}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:block;padding:.1875rem .625rem;border-radius:0;color:#005da6}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:#e6e6e6}.ngx-pagination[_ngcontent-%COMP%] .current[_ngcontent-%COMP%]{padding:.1875rem .625rem;background:#fff;color:#4c2c92;cursor:default;font-weight:900}.ngx-pagination[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]{display:none}.ngx-pagination[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]:hover{background:transparent}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{cursor:pointer}.ngx-pagination[_ngcontent-%COMP%] .pagination-previous[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:before, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous.disabled[_ngcontent-%COMP%]:before{margin-right:.5rem;display:inline-block;height:10px;width:10px;border-style:solid;color:#0a0a0a;background:transparent;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg);content:\"\";border-width:3px 0 0 3px}.ngx-pagination[_ngcontent-%COMP%] .pagination-next[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-next.disabled[_ngcontent-%COMP%]:after{margin-left:.5rem;display:inline-block;height:10px;width:10px;border-style:solid;color:#0a0a0a;background:transparent;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg);content:\"\";border-width:0 3px 3px 0}.ngx-pagination[_ngcontent-%COMP%] .show-for-sr[_ngcontent-%COMP%]{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.ngx-pagination[_ngcontent-%COMP%] .small-screen[_ngcontent-%COMP%]{display:none}@media screen and (max-width: 601px){.ngx-pagination.responsive[_ngcontent-%COMP%] .small-screen[_ngcontent-%COMP%]{display:inline-block}.ngx-pagination.responsive[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:not(.small-screen):not(.pagination-previous):not(.pagination-next){display:none}}"] });
31985
+ } }, dependencies: [i5.NgForOf, i5.NgIf, i2$3.PaginationControlsDirective, i5.DecimalPipe, i1.RpxTranslatePipe], styles: [".ngx-pagination[_ngcontent-%COMP%]{margin-left:0;margin-bottom:1rem;padding-top:25px;text-decoration:none;text-align:left;font-size:16px}.ngx-pagination[_ngcontent-%COMP%]:before, .ngx-pagination[_ngcontent-%COMP%]:after{content:\" \";display:table}.ngx-pagination[_ngcontent-%COMP%]:after{clear:both}.ngx-pagination[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;margin-right:.0625rem;border-radius:0}.ngx-pagination[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:inline-block}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:block;padding:.1875rem .625rem;border-radius:0;color:#005da6}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:#e6e6e6}.ngx-pagination[_ngcontent-%COMP%] .current[_ngcontent-%COMP%]{padding:.1875rem .625rem;background:#fff;color:#4c2c92;cursor:default;font-weight:900;text-decoration:none}.ngx-pagination[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]{display:none}.ngx-pagination[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]:hover{background:transparent}.ngx-pagination[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .ngx-pagination[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{cursor:pointer}.ngx-pagination[_ngcontent-%COMP%] .pagination-previous[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:before, .ngx-pagination[_ngcontent-%COMP%] .pagination-previous.disabled[_ngcontent-%COMP%]:before{margin-right:.5rem;display:inline-block;height:10px;width:10px;border-style:solid;color:#0a0a0a;background:transparent;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg);content:\"\";border-width:3px 0 0 3px}.ngx-pagination[_ngcontent-%COMP%] .pagination-next[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after, .ngx-pagination[_ngcontent-%COMP%] .pagination-next.disabled[_ngcontent-%COMP%]:after{margin-left:.5rem;display:inline-block;height:10px;width:10px;border-style:solid;color:#0a0a0a;background:transparent;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg);content:\"\";border-width:0 3px 3px 0}.ngx-pagination[_ngcontent-%COMP%] .show-for-sr[_ngcontent-%COMP%]{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.ngx-pagination[_ngcontent-%COMP%] .small-screen[_ngcontent-%COMP%]{display:none}@media screen and (max-width: 601px){.ngx-pagination.responsive[_ngcontent-%COMP%] .small-screen[_ngcontent-%COMP%]{display:inline-block}.ngx-pagination.responsive[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:not(.small-screen):not(.pagination-previous):not(.pagination-next){display:none}}"] });
31872
31986
  }
31873
31987
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginationComponent, [{
31874
31988
  type: Component,
31875
- args: [{ selector: 'ccd-pagination', template: "<pagination-template #p=\"paginationApi\" [id]=\"id\" [maxSize]=\"maxSize\" (pageChange)=\"pageChange.emit($event)\"\n (pageBoundsCorrection)=\"pageBoundsCorrection.emit($event)\">\n <nav role=\"navigation\" [attr.aria-label]=\"'Pagination' | rpxTranslate\">\n <ul class=\"ngx-pagination\" [attr.aria-label]=\"screenReaderPaginationLabel | rpxTranslate\"\n [class.responsive]=\"responsive\" *ngIf=\"!(autoHide && p.pages.length <= 1)\">\n <li class=\"pagination-previous\" [class.disabled]=\"p.isFirstPage()\" *ngIf=\"directionLinks\">\n <a tabindex=\"0\" *ngIf=\"1 < p.getCurrent()\" (keyup.enter)=\"p.previous()\" (click)=\"p.previous()\"\n [attr.aria-label]=\"'Previous page' | rpxTranslate\">\n {{ previousLabel | rpxTranslate }} <span class=\"show-for-sr\">{{ screenReaderPageLabel | rpxTranslate }}</span>\n </a>\n <span *ngIf=\"p.isFirstPage()\" [attr.aria-label]=\"'Previous page' | rpxTranslate\">\n {{ previousLabel | rpxTranslate }} <span class=\"show-for-sr\">{{ screenReaderPageLabel | rpxTranslate }}</span>\n </span>\n </li>\n <li class=\"small-screen\">\n {{ p.getCurrent() }} / {{ p.getLastPage() }}\n </li>\n <li [class.current]=\"p.getCurrent() === page.value\" [class.ellipsis]=\"page.label === '...'\"\n *ngFor=\"let page of p.pages\">\n <a tabindex=\"0\" (keyup.enter)=\"p.setCurrent(page.value)\" (click)=\"p.setCurrent(page.value)\"\n *ngIf=\"p.getCurrent() !== page.value\" [attr.aria-label]=\"(page.label === '...') ? ('Change pagination range' | rpxTranslate) : ('Page ' | rpxTranslate) + (page.label | number:'')\">\n <span class=\"show-for-sr\">{{ screenReaderPageLabel | rpxTranslate }} </span>\n <span>{{ (page.label === '...') ? page.label : (page.label | number:'') }}</span>\n </a>\n <ng-container *ngIf=\"p.getCurrent() === page.value\">\n <span class=\"show-for-sr\">{{ screenReaderCurrentLabel | rpxTranslate }} </span>\n <span>{{ (page.label === '...') ? page.label : (page.label | number:'') }}</span>\n </ng-container>\n </li>\n <li class=\"pagination-next\" [class.disabled]=\"p.isLastPage()\" *ngIf=\"directionLinks\">\n <a tabindex=\"0\" *ngIf=\"!p.isLastPage()\" (keyup.enter)=\"p.next()\" (click)=\"p.next()\"\n [attr.aria-label]=\"'Next page' | rpxTranslate\">\n {{ nextLabel | rpxTranslate }} <span class=\"show-for-sr\">{{ screenReaderPageLabel | rpxTranslate }}</span>\n </a>\n <span *ngIf=\"p.isLastPage()\">\n {{ nextLabel | rpxTranslate }} <span class=\"show-for-sr\">{{ screenReaderPageLabel | rpxTranslate }}</span>\n </span>\n </li>\n </ul>\n </nav>\n</pagination-template>\n", styles: [".ngx-pagination{margin-left:0;margin-bottom:1rem;padding-top:25px;text-decoration:none;text-align:left;font-size:16px}.ngx-pagination:before,.ngx-pagination:after{content:\" \";display:table}.ngx-pagination:after{clear:both}.ngx-pagination li{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;margin-right:.0625rem;border-radius:0}.ngx-pagination li{display:inline-block}.ngx-pagination a,.ngx-pagination button{display:block;padding:.1875rem .625rem;border-radius:0;color:#005da6}.ngx-pagination a:hover,.ngx-pagination button:hover{background:#e6e6e6}.ngx-pagination .current{padding:.1875rem .625rem;background:#fff;color:#4c2c92;cursor:default;font-weight:900}.ngx-pagination .disabled{display:none}.ngx-pagination .disabled:hover{background:transparent}.ngx-pagination a,.ngx-pagination button{cursor:pointer}.ngx-pagination .pagination-previous a:before,.ngx-pagination .pagination-previous.disabled:before{margin-right:.5rem;display:inline-block;height:10px;width:10px;border-style:solid;color:#0a0a0a;background:transparent;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg);content:\"\";border-width:3px 0 0 3px}.ngx-pagination .pagination-next a:after,.ngx-pagination .pagination-next.disabled:after{margin-left:.5rem;display:inline-block;height:10px;width:10px;border-style:solid;color:#0a0a0a;background:transparent;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg);content:\"\";border-width:0 3px 3px 0}.ngx-pagination .show-for-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.ngx-pagination .small-screen{display:none}@media screen and (max-width: 601px){.ngx-pagination.responsive .small-screen{display:inline-block}.ngx-pagination.responsive li:not(.small-screen):not(.pagination-previous):not(.pagination-next){display:none}}\n"] }]
31989
+ args: [{ selector: 'ccd-pagination', template: "<pagination-template #p=\"paginationApi\" [id]=\"id\" [maxSize]=\"maxSize\" (pageChange)=\"pageChange.emit($event)\"\n (pageBoundsCorrection)=\"pageBoundsCorrection.emit($event)\">\n <nav role=\"navigation\" [attr.aria-label]=\"'Pagination' | rpxTranslate\">\n <ul class=\"ngx-pagination\" [attr.aria-label]=\"screenReaderPaginationLabel | rpxTranslate\"\n [class.responsive]=\"responsive\" *ngIf=\"!(autoHide && p.pages.length <= 1)\">\n <li class=\"pagination-previous\" [class.disabled]=\"p.isFirstPage()\" *ngIf=\"directionLinks\">\n <a tabindex=\"0\" *ngIf=\"1 < p.getCurrent()\" (keyup.enter)=\"p.previous()\" (click)=\"p.previous()\"\n [attr.aria-label]=\"'Previous page' | rpxTranslate\">\n {{ previousLabel | rpxTranslate }} <span class=\"show-for-sr\">{{ screenReaderPageLabel | rpxTranslate }}</span>\n </a>\n <span *ngIf=\"p.isFirstPage()\" [attr.aria-label]=\"'Previous page' | rpxTranslate\">\n {{ previousLabel | rpxTranslate }} <span class=\"show-for-sr\">{{ screenReaderPageLabel | rpxTranslate }}</span>\n </span>\n </li>\n <li class=\"small-screen\">\n {{ p.getCurrent() }} / {{ p.getLastPage() }}\n </li>\n <li [class.current]=\"p.getCurrent() === page.value\" [class.ellipsis]=\"page.label === '...'\"\n *ngFor=\"let page of p.pages\">\n <a tabindex=\"0\" (keyup.enter)=\"p.setCurrent(page.value)\" (click)=\"p.setCurrent(page.value)\"\n *ngIf=\"p.getCurrent() !== page.value\" [attr.aria-label]=\"(page.label === '...') ? ('Change pagination range' | rpxTranslate) : ('Page ' | rpxTranslate) + (page.label | number:'')\">\n <span class=\"show-for-sr\">{{ screenReaderPageLabel | rpxTranslate }} </span>\n <span>{{ (page.label === '...') ? page.label : (page.label | number:'') }}</span>\n </a>\n <a tabindex=\"0\" *ngIf=\"p.getCurrent() === page.value\">\n <span class=\"show-for-sr\" [attr.current]=\"page\" [attr.aria-label]=\"screenReaderCurrentLabel\">{{ screenReaderCurrentLabel | rpxTranslate }} </span>\n <span>{{ (page.label === '...') ? page.label : (page.label | number:'') }}</span>\n </a>\n </li>\n <li class=\"pagination-next\" [class.disabled]=\"p.isLastPage()\" *ngIf=\"directionLinks\">\n <a tabindex=\"0\" *ngIf=\"!p.isLastPage()\" (keyup.enter)=\"p.next()\" (click)=\"p.next()\"\n [attr.aria-label]=\"'Next page' | rpxTranslate\">\n {{ nextLabel | rpxTranslate }} <span class=\"show-for-sr\">{{ screenReaderPageLabel | rpxTranslate }}</span>\n </a>\n <span *ngIf=\"p.isLastPage()\">\n {{ nextLabel | rpxTranslate }} <span class=\"show-for-sr\">{{ screenReaderPageLabel | rpxTranslate }}</span>\n </span>\n </li>\n </ul>\n </nav>\n</pagination-template>\n", styles: [".ngx-pagination{margin-left:0;margin-bottom:1rem;padding-top:25px;text-decoration:none;text-align:left;font-size:16px}.ngx-pagination:before,.ngx-pagination:after{content:\" \";display:table}.ngx-pagination:after{clear:both}.ngx-pagination li{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;margin-right:.0625rem;border-radius:0}.ngx-pagination li{display:inline-block}.ngx-pagination a,.ngx-pagination button{display:block;padding:.1875rem .625rem;border-radius:0;color:#005da6}.ngx-pagination a:hover,.ngx-pagination button:hover{background:#e6e6e6}.ngx-pagination .current{padding:.1875rem .625rem;background:#fff;color:#4c2c92;cursor:default;font-weight:900;text-decoration:none}.ngx-pagination .disabled{display:none}.ngx-pagination .disabled:hover{background:transparent}.ngx-pagination a,.ngx-pagination button{cursor:pointer}.ngx-pagination .pagination-previous a:before,.ngx-pagination .pagination-previous.disabled:before{margin-right:.5rem;display:inline-block;height:10px;width:10px;border-style:solid;color:#0a0a0a;background:transparent;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg);content:\"\";border-width:3px 0 0 3px}.ngx-pagination .pagination-next a:after,.ngx-pagination .pagination-next.disabled:after{margin-left:.5rem;display:inline-block;height:10px;width:10px;border-style:solid;color:#0a0a0a;background:transparent;-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg);content:\"\";border-width:0 3px 3px 0}.ngx-pagination .show-for-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.ngx-pagination .small-screen{display:none}@media screen and (max-width: 601px){.ngx-pagination.responsive .small-screen{display:inline-block}.ngx-pagination.responsive li:not(.small-screen):not(.pagination-previous):not(.pagination-next){display:none}}\n"] }]
31876
31990
  }], null, { visibilityLabel: [{
31877
31991
  type: Input
31878
31992
  }], id: [{
@@ -31903,10 +32017,10 @@ class PaginationComponent {
31903
32017
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PaginationComponent, { className: "PaginationComponent", filePath: "lib/shared/components/pagination/pagination.component.ts", lineNumber: 12 }); })();
31904
32018
 
31905
32019
  const _c0$c = (a0, a1, a2) => ({ itemsPerPage: a0, currentPage: a1, totalItems: a2 });
31906
- function CaseListComponent_th_6_Template(rf, ctx) { if (rf & 1) {
32020
+ function CaseListComponent_td_6_Template(rf, ctx) { if (rf & 1) {
31907
32021
  const _r1 = i0.ɵɵgetCurrentView();
31908
- i0.ɵɵelementStart(0, "th", 8)(1, "div", 9)(2, "input", 10);
31909
- i0.ɵɵlistener("change", function CaseListComponent_th_6_Template_input_change_2_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.selectAll()); });
32022
+ i0.ɵɵelementStart(0, "td", 8)(1, "div", 9)(2, "input", 10);
32023
+ i0.ɵɵlistener("change", function CaseListComponent_td_6_Template_input_change_2_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.selectAll()); });
31910
32024
  i0.ɵɵelementEnd();
31911
32025
  i0.ɵɵelement(3, "label", 11);
31912
32026
  i0.ɵɵelementEnd()();
@@ -31914,9 +32028,11 @@ function CaseListComponent_th_6_Template(rf, ctx) { if (rf & 1) {
31914
32028
  const ctx_r1 = i0.ɵɵnextContext();
31915
32029
  i0.ɵɵadvance(2);
31916
32030
  i0.ɵɵproperty("checked", ctx_r1.allOnPageSelected())("disabled", !ctx_r1.canAnyBeShared());
32031
+ i0.ɵɵadvance();
32032
+ i0.ɵɵattribute("aria-labelledby", "select-all");
31917
32033
  } }
31918
32034
  function CaseListComponent_th_7_Template(rf, ctx) { if (rf & 1) {
31919
- i0.ɵɵelementStart(0, "th", 8);
32035
+ i0.ɵɵelementStart(0, "th", 12);
31920
32036
  i0.ɵɵtext(1);
31921
32037
  i0.ɵɵpipe(2, "rpxTranslate");
31922
32038
  i0.ɵɵelementEnd();
@@ -31925,22 +32041,25 @@ function CaseListComponent_th_7_Template(rf, ctx) { if (rf & 1) {
31925
32041
  i0.ɵɵadvance();
31926
32042
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, h_r3.header));
31927
32043
  } }
31928
- function CaseListComponent_ng_container_9_th_2_Template(rf, ctx) { if (rf & 1) {
32044
+ function CaseListComponent_ng_container_9_td_2_Template(rf, ctx) { if (rf & 1) {
31929
32045
  const _r4 = i0.ɵɵgetCurrentView();
31930
- i0.ɵɵelementStart(0, "th", 14)(1, "div", 9)(2, "input", 15);
31931
- i0.ɵɵlistener("change", function CaseListComponent_ng_container_9_th_2_Template_input_change_2_listener() { i0.ɵɵrestoreView(_r4); const c_r5 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.changeSelection(c_r5)); })("keyup", function CaseListComponent_ng_container_9_th_2_Template_input_keyup_2_listener($event) { i0.ɵɵrestoreView(_r4); const c_r5 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onKeyUp($event, c_r5)); });
32046
+ i0.ɵɵelementStart(0, "td", 15)(1, "div", 9)(2, "input", 16);
32047
+ i0.ɵɵlistener("change", function CaseListComponent_ng_container_9_td_2_Template_input_change_2_listener() { i0.ɵɵrestoreView(_r4); const c_r5 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.changeSelection(c_r5)); })("keyup", function CaseListComponent_ng_container_9_td_2_Template_input_keyup_2_listener($event) { i0.ɵɵrestoreView(_r4); const c_r5 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onKeyUp($event, c_r5)); });
31932
32048
  i0.ɵɵelementEnd();
31933
- i0.ɵɵelement(3, "label", 16);
32049
+ i0.ɵɵelement(3, "label", 17);
31934
32050
  i0.ɵɵelementEnd()();
31935
32051
  } if (rf & 2) {
31936
- const c_r5 = i0.ɵɵnextContext().$implicit;
32052
+ const ctx_r5 = i0.ɵɵnextContext();
32053
+ const c_r5 = ctx_r5.$implicit;
32054
+ const i_r7 = ctx_r5.index;
31937
32055
  const ctx_r1 = i0.ɵɵnextContext();
31938
32056
  i0.ɵɵadvance(2);
31939
- i0.ɵɵpropertyInterpolate1("id", "select-", c_r5[ctx_r1.tableConfig.idField], "");
31940
- i0.ɵɵpropertyInterpolate1("name", "select-", c_r5[ctx_r1.tableConfig.idField], "");
32057
+ i0.ɵɵpropertyInterpolate1("id", "select-", c_r5[ctx_r1.tableConfig.idField] || i_r7, "");
32058
+ i0.ɵɵpropertyInterpolate1("name", "select-", c_r5[ctx_r1.tableConfig.idField] || i_r7, "");
31941
32059
  i0.ɵɵproperty("checked", ctx_r1.isSelected(c_r5))("disabled", !ctx_r1.canBeShared(c_r5));
31942
32060
  i0.ɵɵadvance();
31943
- i0.ɵɵpropertyInterpolate1("for", "select-", c_r5[ctx_r1.tableConfig.idField], "");
32061
+ i0.ɵɵpropertyInterpolate1("for", "select-", c_r5[ctx_r1.tableConfig.idField] || i_r7, "");
32062
+ i0.ɵɵattribute("aria-labelledby", "select-" + (c_r5[ctx_r1.tableConfig.idField] || i_r7));
31944
32063
  } }
31945
32064
  function CaseListComponent_ng_container_9_ng_container_3_th_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
31946
32065
  i0.ɵɵelementContainerStart(0);
@@ -31948,52 +32067,52 @@ function CaseListComponent_ng_container_9_ng_container_3_th_1_ng_container_1_Tem
31948
32067
  i0.ɵɵpipe(2, "rpxTranslate");
31949
32068
  i0.ɵɵelementContainerEnd();
31950
32069
  } if (rf & 2) {
31951
- const col_r6 = i0.ɵɵnextContext(2).$implicit;
32070
+ const col_r8 = i0.ɵɵnextContext(2).$implicit;
31952
32071
  const c_r5 = i0.ɵɵnextContext().$implicit;
31953
32072
  i0.ɵɵadvance();
31954
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, c_r5[col_r6.key]));
32073
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, c_r5[col_r8.key]));
31955
32074
  } }
31956
32075
  function CaseListComponent_ng_container_9_ng_container_3_th_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
31957
32076
  i0.ɵɵelementContainerStart(0);
31958
- i0.ɵɵelementStart(1, "a", 19);
32077
+ i0.ɵɵelementStart(1, "a", 20);
31959
32078
  i0.ɵɵtext(2);
31960
32079
  i0.ɵɵpipe(3, "rpxTranslate");
31961
32080
  i0.ɵɵelementEnd();
31962
32081
  i0.ɵɵelementContainerEnd();
31963
32082
  } if (rf & 2) {
31964
- const col_r6 = i0.ɵɵnextContext(2).$implicit;
32083
+ const col_r8 = i0.ɵɵnextContext(2).$implicit;
31965
32084
  const c_r5 = i0.ɵɵnextContext().$implicit;
31966
32085
  i0.ɵɵadvance();
31967
32086
  i0.ɵɵproperty("routerLink", c_r5.routerLink);
31968
32087
  i0.ɵɵadvance();
31969
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, c_r5[col_r6.key]));
32088
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, c_r5[col_r8.key]));
31970
32089
  } }
31971
32090
  function CaseListComponent_ng_container_9_ng_container_3_th_1_Template(rf, ctx) { if (rf & 1) {
31972
- i0.ɵɵelementStart(0, "th", 14);
31973
- i0.ɵɵtemplate(1, CaseListComponent_ng_container_9_ng_container_3_th_1_ng_container_1_Template, 3, 3, "ng-container", 18)(2, CaseListComponent_ng_container_9_ng_container_3_th_1_ng_container_2_Template, 4, 4, "ng-container", 18);
32091
+ i0.ɵɵelementStart(0, "th", 15);
32092
+ i0.ɵɵtemplate(1, CaseListComponent_ng_container_9_ng_container_3_th_1_ng_container_1_Template, 3, 3, "ng-container", 19)(2, CaseListComponent_ng_container_9_ng_container_3_th_1_ng_container_2_Template, 4, 4, "ng-container", 19);
31974
32093
  i0.ɵɵelementEnd();
31975
32094
  } if (rf & 2) {
31976
- const col_r6 = i0.ɵɵnextContext().$implicit;
32095
+ const col_r8 = i0.ɵɵnextContext().$implicit;
31977
32096
  const c_r5 = i0.ɵɵnextContext().$implicit;
31978
32097
  i0.ɵɵadvance();
31979
- i0.ɵɵproperty("ngIf", !col_r6.type || col_r6.type === "text");
32098
+ i0.ɵɵproperty("ngIf", !col_r8.type || col_r8.type === "text");
31980
32099
  i0.ɵɵadvance();
31981
- i0.ɵɵproperty("ngIf", col_r6.type === "link" && c_r5.routerLink);
32100
+ i0.ɵɵproperty("ngIf", col_r8.type === "link" && c_r5.routerLink);
31982
32101
  } }
31983
32102
  function CaseListComponent_ng_container_9_ng_container_3_td_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
31984
32103
  i0.ɵɵelementContainerStart(0);
31985
- i0.ɵɵelementStart(1, "a", 19);
32104
+ i0.ɵɵelementStart(1, "a", 20);
31986
32105
  i0.ɵɵtext(2);
31987
32106
  i0.ɵɵpipe(3, "rpxTranslate");
31988
32107
  i0.ɵɵelementEnd();
31989
32108
  i0.ɵɵelementContainerEnd();
31990
32109
  } if (rf & 2) {
31991
- const col_r6 = i0.ɵɵnextContext(2).$implicit;
32110
+ const col_r8 = i0.ɵɵnextContext(2).$implicit;
31992
32111
  const c_r5 = i0.ɵɵnextContext().$implicit;
31993
32112
  i0.ɵɵadvance();
31994
32113
  i0.ɵɵproperty("routerLink", c_r5.routerLink);
31995
32114
  i0.ɵɵadvance();
31996
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, c_r5[col_r6.key]));
32115
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, c_r5[col_r8.key]));
31997
32116
  } }
31998
32117
  function CaseListComponent_ng_container_9_ng_container_3_td_2_ng_container_2_Template(rf, ctx) { if (rf & 1) {
31999
32118
  i0.ɵɵelementContainerStart(0);
@@ -32001,32 +32120,32 @@ function CaseListComponent_ng_container_9_ng_container_3_td_2_ng_container_2_Tem
32001
32120
  i0.ɵɵpipe(2, "currency");
32002
32121
  i0.ɵɵelementContainerEnd();
32003
32122
  } if (rf & 2) {
32004
- const col_r6 = i0.ɵɵnextContext(2).$implicit;
32123
+ const col_r8 = i0.ɵɵnextContext(2).$implicit;
32005
32124
  const c_r5 = i0.ɵɵnextContext().$implicit;
32006
32125
  i0.ɵɵadvance();
32007
- i0.ɵɵtextInterpolate1("-", i0.ɵɵpipeBind2(2, 1, c_r5[col_r6.key], "GBP"), "");
32126
+ i0.ɵɵtextInterpolate1("-", i0.ɵɵpipeBind2(2, 1, c_r5[col_r8.key], "GBP"), "");
32008
32127
  } }
32009
32128
  function CaseListComponent_ng_container_9_ng_container_3_td_2_ng_container_3_Template(rf, ctx) { if (rf & 1) {
32010
32129
  i0.ɵɵelementContainerStart(0);
32011
32130
  i0.ɵɵtext(1);
32012
32131
  i0.ɵɵelementContainerEnd();
32013
32132
  } if (rf & 2) {
32014
- const col_r6 = i0.ɵɵnextContext(2).$implicit;
32133
+ const col_r8 = i0.ɵɵnextContext(2).$implicit;
32015
32134
  const c_r5 = i0.ɵɵnextContext().$implicit;
32016
32135
  const ctx_r1 = i0.ɵɵnextContext();
32017
32136
  i0.ɵɵadvance();
32018
- i0.ɵɵtextInterpolate(ctx_r1.formatDate(c_r5[col_r6.key]));
32137
+ i0.ɵɵtextInterpolate(ctx_r1.formatDate(c_r5[col_r8.key]));
32019
32138
  } }
32020
32139
  function CaseListComponent_ng_container_9_ng_container_3_td_2_ng_container_4_Template(rf, ctx) { if (rf & 1) {
32021
32140
  i0.ɵɵelementContainerStart(0);
32022
32141
  i0.ɵɵtext(1);
32023
32142
  i0.ɵɵelementContainerEnd();
32024
32143
  } if (rf & 2) {
32025
- const col_r6 = i0.ɵɵnextContext(2).$implicit;
32144
+ const col_r8 = i0.ɵɵnextContext(2).$implicit;
32026
32145
  const c_r5 = i0.ɵɵnextContext().$implicit;
32027
32146
  const ctx_r1 = i0.ɵɵnextContext();
32028
32147
  i0.ɵɵadvance();
32029
- i0.ɵɵtextInterpolate(ctx_r1.formatDateAtTime(c_r5[col_r6.key]));
32148
+ i0.ɵɵtextInterpolate(ctx_r1.formatDateAtTime(c_r5[col_r8.key]));
32030
32149
  } }
32031
32150
  function CaseListComponent_ng_container_9_ng_container_3_td_2_ng_container_5_Template(rf, ctx) { if (rf & 1) {
32032
32151
  i0.ɵɵelementContainerStart(0);
@@ -32034,21 +32153,21 @@ function CaseListComponent_ng_container_9_ng_container_3_td_2_ng_container_5_Tem
32034
32153
  i0.ɵɵpipe(2, "rpxTranslate");
32035
32154
  i0.ɵɵelementContainerEnd();
32036
32155
  } if (rf & 2) {
32037
- const col_r6 = i0.ɵɵnextContext(2).$implicit;
32156
+ const col_r8 = i0.ɵɵnextContext(2).$implicit;
32038
32157
  const c_r5 = i0.ɵɵnextContext().$implicit;
32039
32158
  i0.ɵɵadvance();
32040
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, c_r5[col_r6.key]));
32159
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, c_r5[col_r8.key]));
32041
32160
  } }
32042
32161
  function CaseListComponent_ng_container_9_ng_container_3_td_2_Template(rf, ctx) { if (rf & 1) {
32043
- i0.ɵɵelementStart(0, "td", 20);
32044
- i0.ɵɵtemplate(1, CaseListComponent_ng_container_9_ng_container_3_td_2_ng_container_1_Template, 4, 4, "ng-container", 18)(2, CaseListComponent_ng_container_9_ng_container_3_td_2_ng_container_2_Template, 3, 4, "ng-container", 21)(3, CaseListComponent_ng_container_9_ng_container_3_td_2_ng_container_3_Template, 2, 1, "ng-container", 21)(4, CaseListComponent_ng_container_9_ng_container_3_td_2_ng_container_4_Template, 2, 1, "ng-container", 21)(5, CaseListComponent_ng_container_9_ng_container_3_td_2_ng_container_5_Template, 3, 3, "ng-container", 22);
32162
+ i0.ɵɵelementStart(0, "td", 21);
32163
+ i0.ɵɵtemplate(1, CaseListComponent_ng_container_9_ng_container_3_td_2_ng_container_1_Template, 4, 4, "ng-container", 19)(2, CaseListComponent_ng_container_9_ng_container_3_td_2_ng_container_2_Template, 3, 4, "ng-container", 22)(3, CaseListComponent_ng_container_9_ng_container_3_td_2_ng_container_3_Template, 2, 1, "ng-container", 22)(4, CaseListComponent_ng_container_9_ng_container_3_td_2_ng_container_4_Template, 2, 1, "ng-container", 22)(5, CaseListComponent_ng_container_9_ng_container_3_td_2_ng_container_5_Template, 3, 3, "ng-container", 23);
32045
32164
  i0.ɵɵelementEnd();
32046
32165
  } if (rf & 2) {
32047
- const col_r6 = i0.ɵɵnextContext().$implicit;
32166
+ const col_r8 = i0.ɵɵnextContext().$implicit;
32048
32167
  const c_r5 = i0.ɵɵnextContext().$implicit;
32049
- i0.ɵɵproperty("ngSwitch", col_r6 == null ? null : col_r6.type);
32168
+ i0.ɵɵproperty("ngSwitch", col_r8 == null ? null : col_r8.type);
32050
32169
  i0.ɵɵadvance();
32051
- i0.ɵɵproperty("ngIf", col_r6.type === "link" && c_r5.routerLink);
32170
+ i0.ɵɵproperty("ngIf", col_r8.type === "link" && c_r5.routerLink);
32052
32171
  i0.ɵɵadvance();
32053
32172
  i0.ɵɵproperty("ngSwitchCase", "money");
32054
32173
  i0.ɵɵadvance();
@@ -32058,20 +32177,20 @@ function CaseListComponent_ng_container_9_ng_container_3_td_2_Template(rf, ctx)
32058
32177
  } }
32059
32178
  function CaseListComponent_ng_container_9_ng_container_3_Template(rf, ctx) { if (rf & 1) {
32060
32179
  i0.ɵɵelementContainerStart(0);
32061
- i0.ɵɵtemplate(1, CaseListComponent_ng_container_9_ng_container_3_th_1_Template, 3, 2, "th", 13)(2, CaseListComponent_ng_container_9_ng_container_3_td_2_Template, 6, 5, "td", 17);
32180
+ i0.ɵɵtemplate(1, CaseListComponent_ng_container_9_ng_container_3_th_1_Template, 3, 2, "th", 14)(2, CaseListComponent_ng_container_9_ng_container_3_td_2_Template, 6, 5, "td", 18);
32062
32181
  i0.ɵɵelementContainerEnd();
32063
32182
  } if (rf & 2) {
32064
- const isFirst_r7 = ctx.first;
32183
+ const isFirst_r9 = ctx.first;
32065
32184
  const ctx_r1 = i0.ɵɵnextContext(2);
32066
32185
  i0.ɵɵadvance();
32067
- i0.ɵɵproperty("ngIf", isFirst_r7 && ctx_r1.firstCellIsHeader);
32186
+ i0.ɵɵproperty("ngIf", isFirst_r9 && ctx_r1.firstCellIsHeader);
32068
32187
  i0.ɵɵadvance();
32069
- i0.ɵɵproperty("ngIf", !(isFirst_r7 && ctx_r1.firstCellIsHeader));
32188
+ i0.ɵɵproperty("ngIf", !(isFirst_r9 && ctx_r1.firstCellIsHeader));
32070
32189
  } }
32071
32190
  function CaseListComponent_ng_container_9_Template(rf, ctx) { if (rf & 1) {
32072
32191
  i0.ɵɵelementContainerStart(0);
32073
- i0.ɵɵelementStart(1, "tr", 12);
32074
- i0.ɵɵtemplate(2, CaseListComponent_ng_container_9_th_2_Template, 4, 8, "th", 13)(3, CaseListComponent_ng_container_9_ng_container_3_Template, 3, 2, "ng-container", 6);
32192
+ i0.ɵɵelementStart(1, "tr", 13);
32193
+ i0.ɵɵtemplate(2, CaseListComponent_ng_container_9_td_2_Template, 4, 9, "td", 14)(3, CaseListComponent_ng_container_9_ng_container_3_Template, 3, 2, "ng-container", 6);
32075
32194
  i0.ɵɵelementEnd();
32076
32195
  i0.ɵɵelementContainerEnd();
32077
32196
  } if (rf & 2) {
@@ -32082,9 +32201,9 @@ function CaseListComponent_ng_container_9_Template(rf, ctx) { if (rf & 1) {
32082
32201
  i0.ɵɵproperty("ngForOf", ctx_r1.tableConfig.columnConfigs);
32083
32202
  } }
32084
32203
  function CaseListComponent_ccd_pagination_11_Template(rf, ctx) { if (rf & 1) {
32085
- const _r8 = i0.ɵɵgetCurrentView();
32086
- i0.ɵɵelementStart(0, "ccd-pagination", 23);
32087
- i0.ɵɵlistener("pageChange", function CaseListComponent_ccd_pagination_11_Template_ccd_pagination_pageChange_0_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.goToPage($event)); });
32204
+ const _r10 = i0.ɵɵgetCurrentView();
32205
+ i0.ɵɵelementStart(0, "ccd-pagination", 24);
32206
+ i0.ɵɵlistener("pageChange", function CaseListComponent_ccd_pagination_11_Template_ccd_pagination_pageChange_0_listener($event) { i0.ɵɵrestoreView(_r10); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.goToPage($event)); });
32088
32207
  i0.ɵɵelementEnd();
32089
32208
  } }
32090
32209
  class DateTimeFormatUtils {
@@ -32184,13 +32303,13 @@ class CaseListComponent {
32184
32303
  this.pageChange.emit(pageNumber);
32185
32304
  }
32186
32305
  static ɵfac = function CaseListComponent_Factory(t) { return new (t || CaseListComponent)(i0.ɵɵdirectiveInject(BrowserService)); };
32187
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseListComponent, selectors: [["ccd-case-list"]], inputs: { classes: "classes", caption: "caption", firstCellIsHeader: "firstCellIsHeader", cases: "cases", tableConfig: "tableConfig", selectionEnabled: "selectionEnabled", selectedCases: "selectedCases", currentPageNo: "currentPageNo", totalResultsCount: "totalResultsCount", pageSize: "pageSize" }, outputs: { selection: "selection", pageChange: "pageChange" }, decls: 12, vars: 17, consts: [[1, "govuk-table__caption"], [1, "govuk-table__head"], [1, "govuk-table__row"], ["class", "govuk-table__header", "scope", "col", 4, "ngIf"], ["class", "govuk-table__header", "scope", "col", 4, "ngFor", "ngForOf"], [1, "govuk-table__body"], [4, "ngFor", "ngForOf"], [3, "pageChange", 4, "ngIf"], ["scope", "col", 1, "govuk-table__header"], [1, "govuk-checkboxes__item"], ["id", "select-all", "name", "select-all", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "change", "checked", "disabled"], ["for", "select-all", 1, "govuk-label", "govuk-checkboxes__label"], ["data-selector", "table-row", 1, "govuk-table__row"], ["data-selector", "table-header", "class", "govuk-table__header", "scope", "row", 4, "ngIf"], ["data-selector", "table-header", "scope", "row", 1, "govuk-table__header"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "change", "keyup", "id", "name", "checked", "disabled"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"], ["data-selector", "table-cell", "class", "govuk-table__cell", 3, "ngSwitch", 4, "ngIf"], [4, "ngIf"], [1, "govuk-link", 3, "routerLink"], ["data-selector", "table-cell", 1, "govuk-table__cell", 3, "ngSwitch"], [4, "ngSwitchCase"], [4, "ngSwitchDefault"], [3, "pageChange"]], template: function CaseListComponent_Template(rf, ctx) { if (rf & 1) {
32306
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseListComponent, selectors: [["ccd-case-list"]], inputs: { classes: "classes", caption: "caption", firstCellIsHeader: "firstCellIsHeader", cases: "cases", tableConfig: "tableConfig", selectionEnabled: "selectionEnabled", selectedCases: "selectedCases", currentPageNo: "currentPageNo", totalResultsCount: "totalResultsCount", pageSize: "pageSize" }, outputs: { selection: "selection", pageChange: "pageChange" }, decls: 12, vars: 17, consts: [[1, "govuk-table__caption"], [1, "govuk-table__head"], [1, "govuk-table__row"], ["class", "govuk-table__header", 4, "ngIf"], ["class", "govuk-table__header", "scope", "col", 4, "ngFor", "ngForOf"], [1, "govuk-table__body"], [4, "ngFor", "ngForOf"], [3, "pageChange", 4, "ngIf"], [1, "govuk-table__header"], [1, "govuk-checkboxes__item"], ["id", "select-all", "name", "select-all", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "change", "checked", "disabled"], ["for", "select-all", 1, "govuk-label", "govuk-checkboxes__label"], ["scope", "col", 1, "govuk-table__header"], ["data-selector", "table-row", 1, "govuk-table__row"], ["data-selector", "table-header", "class", "govuk-table__header", "scope", "row", 4, "ngIf"], ["data-selector", "table-header", "scope", "row", 1, "govuk-table__header"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "change", "keyup", "id", "name", "checked", "disabled"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"], ["data-selector", "table-cell", "class", "govuk-table__cell", 3, "ngSwitch", 4, "ngIf"], [4, "ngIf"], [1, "govuk-link", 3, "routerLink"], ["data-selector", "table-cell", 1, "govuk-table__cell", 3, "ngSwitch"], [4, "ngSwitchCase"], [4, "ngSwitchDefault"], [3, "pageChange"]], template: function CaseListComponent_Template(rf, ctx) { if (rf & 1) {
32188
32307
  i0.ɵɵelementStart(0, "table")(1, "caption", 0);
32189
32308
  i0.ɵɵtext(2);
32190
32309
  i0.ɵɵpipe(3, "rpxTranslate");
32191
32310
  i0.ɵɵelementEnd();
32192
32311
  i0.ɵɵelementStart(4, "thead", 1)(5, "tr", 2);
32193
- i0.ɵɵtemplate(6, CaseListComponent_th_6_Template, 4, 2, "th", 3)(7, CaseListComponent_th_7_Template, 3, 3, "th", 4);
32312
+ i0.ɵɵtemplate(6, CaseListComponent_td_6_Template, 4, 3, "td", 3)(7, CaseListComponent_th_7_Template, 3, 3, "th", 4);
32194
32313
  i0.ɵɵelementEnd()();
32195
32314
  i0.ɵɵelementStart(8, "tbody", 5);
32196
32315
  i0.ɵɵtemplate(9, CaseListComponent_ng_container_9_Template, 4, 2, "ng-container", 6);
@@ -32213,7 +32332,7 @@ class CaseListComponent {
32213
32332
  }
32214
32333
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseListComponent, [{
32215
32334
  type: Component,
32216
- args: [{ selector: 'ccd-case-list', template: "<table class=\"{{'govuk-table ' + classes}}\">\n <caption class=\"govuk-table__caption\">{{caption | rpxTranslate}}</caption>\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <th class=\"govuk-table__header\" scope=\"col\" *ngIf=\"selectionEnabled\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"select-all\" name=\"select-all\" type=\"checkbox\" (change)=\"selectAll()\"\n [checked]=\"allOnPageSelected()\" [disabled]=\"!canAnyBeShared()\" />\n <!-- This label element is used to hide the standard checkbox with a govuk-styled one -->\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"select-all\">\n </label>\n </div>\n </th>\n <th class=\"govuk-table__header\" scope=\"col\" *ngFor=\"let h of tableConfig.columnConfigs\">{{h.header | rpxTranslate}}</th>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <ng-container *ngFor=\"let c of cases | paginate: { itemsPerPage: pageSize, currentPage: currentPageNo, totalItems: totalResultsCount }\">\n <tr data-selector=\"table-row\" class=\"govuk-table__row\">\n <th data-selector=\"table-header\" class=\"govuk-table__header\" scope=\"row\" *ngIf=\"selectionEnabled\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"select-{{ c[tableConfig.idField] }}\" name=\"select-{{ c[tableConfig.idField] }}\"\n type=\"checkbox\" (change)=\"changeSelection(c)\" [checked]=\"isSelected(c)\" [disabled]=\"!canBeShared(c)\" (keyup)=\"onKeyUp($event, c)\" />\n <!-- This label element is used to hide the standard checkbox with a govuk-styled one -->\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"select-{{ c[tableConfig.idField] }}\">\n </label>\n </div>\n </th>\n <ng-container *ngFor=\"let col of tableConfig.columnConfigs; first as isFirst\">\n <th data-selector=\"table-header\" class=\"govuk-table__header\" scope=\"row\" *ngIf=\"isFirst && firstCellIsHeader\">\n <ng-container *ngIf=\"!col.type || col.type === 'text'\">{{c[col.key] | rpxTranslate}}</ng-container>\n <ng-container *ngIf=\"col.type === 'link' && c.routerLink\">\n <a class=\"govuk-link\" [routerLink]=\"c.routerLink\">{{c[col.key] | rpxTranslate}}</a>\n </ng-container>\n </th>\n <td data-selector=\"table-cell\" class=\"govuk-table__cell\" *ngIf=\"!(isFirst && firstCellIsHeader)\" [ngSwitch]=\"col?.type\">\n <ng-container *ngIf=\"col.type === 'link' && c.routerLink\">\n <a class=\"govuk-link\" [routerLink]=\"c.routerLink\">{{c[col.key] | rpxTranslate}}</a>\n </ng-container>\n <ng-container *ngSwitchCase=\"'money'\">-{{ c[col.key] | currency:'GBP' }}</ng-container>\n <ng-container *ngSwitchCase=\"'date'\">{{formatDate(c[col.key])}}</ng-container>\n <ng-container *ngSwitchCase=\"'dateAtTime'\">{{formatDateAtTime(c[col.key])}}</ng-container>\n <ng-container *ngSwitchDefault>{{c[col.key] | rpxTranslate}}</ng-container>\n </td>\n </ng-container>\n </tr>\n </ng-container>\n </tbody>\n</table>\n<ccd-pagination *ngIf=\"totalResultsCount > pageSize\"\n (pageChange)=\"goToPage($event)\"\n></ccd-pagination>\n" }]
32335
+ args: [{ selector: 'ccd-case-list', template: "<table class=\"{{'govuk-table ' + classes}}\">\n <caption class=\"govuk-table__caption\">{{caption | rpxTranslate}}</caption>\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__header\" *ngIf=\"selectionEnabled\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"select-all\" name=\"select-all\" type=\"checkbox\" (change)=\"selectAll()\"\n [checked]=\"allOnPageSelected()\" [disabled]=\"!canAnyBeShared()\" />\n <!-- This label element is used to hide the standard checkbox with a govuk-styled one -->\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"select-all\" [attr.aria-labelledby]=\"'select-all'\">\n </label>\n </div>\n </td>\n <th class=\"govuk-table__header\" scope=\"col\" *ngFor=\"let h of tableConfig.columnConfigs\">{{h.header | rpxTranslate}}</th>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n <ng-container *ngFor=\"let c of cases | paginate: { itemsPerPage: pageSize, currentPage: currentPageNo, totalItems: totalResultsCount }; index as i\">\n <tr data-selector=\"table-row\" class=\"govuk-table__row\">\n <td data-selector=\"table-header\" class=\"govuk-table__header\" scope=\"row\" *ngIf=\"selectionEnabled\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"select-{{ c[tableConfig.idField] || i }}\" name=\"select-{{ c[tableConfig.idField] || i }}\"\n type=\"checkbox\" (change)=\"changeSelection(c)\" [checked]=\"isSelected(c)\" [disabled]=\"!canBeShared(c)\" (keyup)=\"onKeyUp($event, c)\" />\n <!-- This label element is used to hide the standard checkbox with a govuk-styled one -->\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"select-{{ c[tableConfig.idField] || i }}\" [attr.aria-labelledby]=\"'select-' + (c[tableConfig.idField] || i)\">\n </label>\n </div>\n </td>\n <ng-container *ngFor=\"let col of tableConfig.columnConfigs; first as isFirst\">\n <th data-selector=\"table-header\" class=\"govuk-table__header\" scope=\"row\" *ngIf=\"isFirst && firstCellIsHeader\">\n <ng-container *ngIf=\"!col.type || col.type === 'text'\">{{c[col.key] | rpxTranslate}}</ng-container>\n <ng-container *ngIf=\"col.type === 'link' && c.routerLink\">\n <a class=\"govuk-link\" [routerLink]=\"c.routerLink\">{{c[col.key] | rpxTranslate}}</a>\n </ng-container>\n </th>\n <td data-selector=\"table-cell\" class=\"govuk-table__cell\" *ngIf=\"!(isFirst && firstCellIsHeader)\" [ngSwitch]=\"col?.type\">\n <ng-container *ngIf=\"col.type === 'link' && c.routerLink\">\n <a class=\"govuk-link\" [routerLink]=\"c.routerLink\">{{c[col.key] | rpxTranslate}}</a>\n </ng-container>\n <ng-container *ngSwitchCase=\"'money'\">-{{ c[col.key] | currency:'GBP' }}</ng-container>\n <ng-container *ngSwitchCase=\"'date'\">{{formatDate(c[col.key])}}</ng-container>\n <ng-container *ngSwitchCase=\"'dateAtTime'\">{{formatDateAtTime(c[col.key])}}</ng-container>\n <ng-container *ngSwitchDefault>{{c[col.key] | rpxTranslate}}</ng-container>\n </td>\n </ng-container>\n </tr>\n </ng-container>\n </tbody>\n</table>\n<ccd-pagination *ngIf=\"totalResultsCount > pageSize\"\n (pageChange)=\"goToPage($event)\"\n></ccd-pagination>\n" }]
32217
32336
  }], () => [{ type: BrowserService }], { classes: [{
32218
32337
  type: Input
32219
32338
  }], caption: [{
@@ -33038,7 +33157,7 @@ function CaseHistoryComponent_div_0_ng_container_57_ng_container_6_tr_4_Template
33038
33157
  i0.ɵɵproperty("caseField", field_r1)("caseReference", ctx_r1.caseHistory.case_id);
33039
33158
  } }
33040
33159
  function CaseHistoryComponent_div_0_ng_container_57_ng_container_6_tr_5_Template(rf, ctx) { if (rf & 1) {
33041
- i0.ɵɵelementStart(0, "tr", 17)(1, "td", 18);
33160
+ i0.ɵɵelementStart(0, "tr", 17)(1, "th", 18);
33042
33161
  i0.ɵɵelement(2, "ccd-field-read", 16);
33043
33162
  i0.ɵɵelementEnd()();
33044
33163
  } if (rf & 2) {
@@ -33252,7 +33371,7 @@ class CaseHistoryComponent {
33252
33371
  }
33253
33372
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseHistoryComponent, [{
33254
33373
  type: Component,
33255
- args: [{ selector: 'ccd-case-history', template: "<div *ngIf=\"isDataLoaded()\">\n <div class=\"grid-row\">\n <div class=\"column-full\">\n <ccd-case-header [caseDetails]=\"caseDetails\"></ccd-case-header>\n </div>\n </div>\n <div class=\"grid-row\">\n <div class=\"column-full\">\n <div>\n <h2 class=\"heading-h2\">{{'Event Details' | rpxTranslate}}</h2>\n <table class=\"EventDetails\" aria-describedby=\"event details table\">\n <tbody>\n <tr>\n <th>{{'Date' | rpxTranslate}}</th>\n <td>{{caseHistory.event.timestamp | ccdDate : 'local'}}</td>\n </tr>\n <tr>\n <th>{{'Author' | rpxTranslate}}</th>\n <td>{{caseHistory.event.user_first_name | titlecase}} {{caseHistory.event.user_last_name | uppercase}}</td>\n </tr>\n <tr>\n <th>{{'End state' | rpxTranslate}}</th>\n <td>{{caseHistory.event.state_name}}</td>\n </tr>\n <tr>\n <th>{{'Event' | rpxTranslate}}</th>\n <td>{{caseHistory.event.event_name}}</td>\n </tr>\n <tr>\n <th>{{'Summary' | rpxTranslate}}</th>\n <td>{{caseHistory.event.summary | ccdDash}}</td>\n </tr>\n <tr>\n <th>{{'Comment' | rpxTranslate}}</th>\n <td>{{caseHistory.event.comment | ccdDash}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n <div>\n <h2 class=\"heading-h2\">{{'Case Details' | rpxTranslate}}</h2>\n <ng-container *ngFor=\"let tab of tabs\">\n <div class=\"caseHistorySection\">\n <h3 class=\"heading-h3\">{{tab.label}}</h3>\n <table class=\"CaseHistory\" id=\"{{tab.id}}\" [attr.aria-describedby]=\"'case history table' | rpxTranslate\">\n <ng-container *ngFor=\"let field of tab | ccdTabFields | ccdReadFieldsFilter:false :undefined :true\">\n <div ccdLabelSubstitutor [caseField]=\"field\" [contextFields]=\"tab.fields\" [hidden]=\"field.hidden\">\n <ng-container [ngSwitch]=\"!(field | ccdIsCompound)\">\n <tr *ngSwitchCase=\"true\">\n <th id=\"case-viewer-label-header\">\n <div class=\"case-viewer-label\">{{field.label}}</div>\n </th>\n <td>\n <ccd-field-read [caseField]=\"field\" [caseReference]=\"caseHistory.case_id\"></ccd-field-read>\n </td>\n </tr>\n <tr *ngSwitchCase=\"false\" class=\"compound-field\">\n <td colspan=\"2\">\n <ccd-field-read [caseField]=\"field\" [caseReference]=\"caseHistory.case_id\"></ccd-field-read>\n </td>\n </tr>\n </ng-container>\n </div>\n </ng-container>\n </table>\n </div>\n </ng-container>\n </div>\n </div>\n </div>\n</div>\n", styles: [".CaseHistory th,.CaseHistory td{border-bottom:none}.caseHistorySection{margin-top:40px}.EventDetails th,.EventDetails td{border-bottom:none}th{width:1%;white-space:nowrap;vertical-align:top}.compound-field td{padding:0}.case-viewer-controls{margin-top:47px;margin-bottom:20px}ccd-case-header{float:left;margin-right:10px}ccd-event-trigger{float:right}.case-viewer-label{min-width:300px;white-space:normal}\n"] }]
33374
+ args: [{ selector: 'ccd-case-history', template: "<div *ngIf=\"isDataLoaded()\">\n <div class=\"grid-row\">\n <div class=\"column-full\">\n <ccd-case-header [caseDetails]=\"caseDetails\"></ccd-case-header>\n </div>\n </div>\n <div class=\"grid-row\">\n <div class=\"column-full\">\n <div>\n <h2 class=\"heading-h2\">{{'Event Details' | rpxTranslate}}</h2>\n <table class=\"EventDetails\" aria-describedby=\"event details table\">\n <tbody>\n <tr>\n <th>{{'Date' | rpxTranslate}}</th>\n <td>{{caseHistory.event.timestamp | ccdDate : 'local'}}</td>\n </tr>\n <tr>\n <th>{{'Author' | rpxTranslate}}</th>\n <td>{{caseHistory.event.user_first_name | titlecase}} {{caseHistory.event.user_last_name | uppercase}}</td>\n </tr>\n <tr>\n <th>{{'End state' | rpxTranslate}}</th>\n <td>{{caseHistory.event.state_name}}</td>\n </tr>\n <tr>\n <th>{{'Event' | rpxTranslate}}</th>\n <td>{{caseHistory.event.event_name}}</td>\n </tr>\n <tr>\n <th>{{'Summary' | rpxTranslate}}</th>\n <td>{{caseHistory.event.summary | ccdDash}}</td>\n </tr>\n <tr>\n <th>{{'Comment' | rpxTranslate}}</th>\n <td>{{caseHistory.event.comment | ccdDash}}</td>\n </tr>\n </tbody>\n </table>\n </div>\n <div>\n <h2 class=\"heading-h2\">{{'Case Details' | rpxTranslate}}</h2>\n <ng-container *ngFor=\"let tab of tabs\">\n <div class=\"caseHistorySection\">\n <h3 class=\"heading-h3\">{{tab.label}}</h3>\n <table class=\"CaseHistory\" id=\"{{tab.id}}\" [attr.aria-describedby]=\"'case history table' | rpxTranslate\">\n <ng-container *ngFor=\"let field of tab | ccdTabFields | ccdReadFieldsFilter:false :undefined :true\">\n <div ccdLabelSubstitutor [caseField]=\"field\" [contextFields]=\"tab.fields\" [hidden]=\"field.hidden\">\n <ng-container [ngSwitch]=\"!(field | ccdIsCompound)\">\n <tr *ngSwitchCase=\"true\">\n <th id=\"case-viewer-label-header\">\n <div class=\"case-viewer-label\">{{field.label}}</div>\n </th>\n <td>\n <ccd-field-read [caseField]=\"field\" [caseReference]=\"caseHistory.case_id\"></ccd-field-read>\n </td>\n </tr>\n <tr *ngSwitchCase=\"false\" class=\"compound-field\">\n <th colspan=\"2\">\n <ccd-field-read [caseField]=\"field\" [caseReference]=\"caseHistory.case_id\"></ccd-field-read>\n </th>\n </tr>\n </ng-container>\n </div>\n </ng-container>\n </table>\n </div>\n </ng-container>\n </div>\n </div>\n </div>\n</div>\n", styles: [".CaseHistory th,.CaseHistory td{border-bottom:none}.caseHistorySection{margin-top:40px}.EventDetails th,.EventDetails td{border-bottom:none}th{width:1%;white-space:nowrap;vertical-align:top}.compound-field td{padding:0}.case-viewer-controls{margin-top:47px;margin-bottom:20px}ccd-case-header{float:left;margin-right:10px}ccd-event-trigger{float:right}.case-viewer-label{min-width:300px;white-space:normal}\n"] }]
33256
33375
  }], () => [{ type: i1$1.ActivatedRoute }, { type: AlertService }, { type: OrderService }, { type: CaseNotifier }, { type: CaseHistoryService }], { event: [{
33257
33376
  type: Input
33258
33377
  }] }); })();
@@ -33458,6 +33577,7 @@ class CaseResolver {
33458
33577
  static EVENT_REGEX = new RegExp('\/trigger\/.*?\/submit$');
33459
33578
  static PARAM_CASE_ID = 'cid';
33460
33579
  static CASE_CREATED_MSG = 'The case has been created successfully';
33580
+ static EVENT_ID_QM_RESPOND_TO_QUERY = 'eventId=queryManagementRespondQuery';
33461
33581
  static defaultWAPage = '/work/my-work/list';
33462
33582
  static defaultPage = '/cases';
33463
33583
  // we need to run the CaseResolver on every child route of 'case/:jid/:ctid/:cid'
@@ -33478,6 +33598,12 @@ class CaseResolver {
33478
33598
  }
33479
33599
  resolve(route) {
33480
33600
  const cid = route.paramMap.get(CaseResolver.PARAM_CASE_ID);
33601
+ const currentUrl = this.router.url ?? '';
33602
+ // Prevent resolving if eventId=queryManagementRespondQuery is in the URL
33603
+ if (currentUrl.includes(CaseResolver.EVENT_ID_QM_RESPOND_TO_QUERY)) {
33604
+ console.info('Skipping resolve for event queryManagementRespondQuery.');
33605
+ this.goToDefaultPage();
33606
+ }
33481
33607
  if (!cid) {
33482
33608
  console.info('No case ID available in the route. Will navigate to case list.');
33483
33609
  // when redirected to case view after a case created, and the user has no READ access,
@@ -33552,9 +33678,9 @@ class CaseResolver {
33552
33678
  // as discussed for EUI-5456, need functionality to go to default page
33553
33679
  goToDefaultPage() {
33554
33680
  console.info('Going to default page!');
33555
- const userDetails = JSON.parse(this.sessionStorage.getItem('userDetails'));
33681
+ const userDetails = JSON.parse(this.sessionStorage.getItem(USER_DETAILS));
33556
33682
  userDetails && userDetails.roles
33557
- && !userDetails.roles.includes('pui-case-manager')
33683
+ && !userDetails.roles.includes(PUI_CASE_MANAGER)
33558
33684
  &&
33559
33685
  (userDetails.roles.includes('caseworker-ia-iacjudge')
33560
33686
  || userDetails.roles.includes('caseworker-ia-caseofficer')
@@ -33596,9 +33722,13 @@ class EventTriggerResolver {
33596
33722
  this.loadingService = loadingService;
33597
33723
  }
33598
33724
  resolve(route) {
33599
- return this.isRootTriggerEventRoute(route) ? this.getAndCacheEventTrigger(route)
33600
- : this.cachedEventTrigger ? Promise.resolve(this.cachedEventTrigger)
33601
- : this.getAndCacheEventTrigger(route);
33725
+ if (this.isRootTriggerEventRoute(route)) {
33726
+ return this.getAndCacheEventTrigger(route);
33727
+ }
33728
+ if (this.cachedEventTrigger && (route.params?.eid === this.cachedEventTrigger?.id)) {
33729
+ return Promise.resolve(this.cachedEventTrigger);
33730
+ }
33731
+ return this.getAndCacheEventTrigger(route);
33602
33732
  }
33603
33733
  isRootTriggerEventRoute(route) {
33604
33734
  // if route is 'trigger/:eid'
@@ -33986,15 +34116,14 @@ function CaseBasicAccessViewComponent_div_18_Template(rf, ctx) { if (rf & 1) {
33986
34116
  i0.ɵɵelementEnd();
33987
34117
  i0.ɵɵelementStart(4, "dd", 12);
33988
34118
  i0.ɵɵtext(5);
33989
- i0.ɵɵpipe(6, "rpxTranslate");
33990
- i0.ɵɵpipe(7, "titlecase");
34119
+ i0.ɵɵpipe(6, "titlecase");
33991
34120
  i0.ɵɵelementEnd()();
33992
34121
  } if (rf & 2) {
33993
34122
  const ctx_r0 = i0.ɵɵnextContext();
33994
34123
  i0.ɵɵadvance(2);
33995
34124
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Court or hearing centre"));
33996
34125
  i0.ɵɵadvance(3);
33997
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 6, i0.ɵɵpipeBind1(6, 4, ctx_r0.courtOrHearingCentre)));
34126
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 4, ctx_r0.courtOrHearingCentre));
33998
34127
  } }
33999
34128
  function CaseBasicAccessViewComponent_div_19_Template(rf, ctx) { if (rf & 1) {
34000
34129
  i0.ɵɵelementStart(0, "div", 10)(1, "dt", 11);
@@ -34069,7 +34198,7 @@ class CaseBasicAccessViewComponent {
34069
34198
  i0.ɵɵpipe(13, "rpxTranslate");
34070
34199
  i0.ɵɵelementEnd();
34071
34200
  i0.ɵɵelementStart(14, "dl", 4);
34072
- i0.ɵɵtemplate(15, CaseBasicAccessViewComponent_div_15_Template, 7, 6, "div", 5)(16, CaseBasicAccessViewComponent_div_16_Template, 7, 6, "div", 5)(17, CaseBasicAccessViewComponent_div_17_Template, 7, 6, "div", 5)(18, CaseBasicAccessViewComponent_div_18_Template, 8, 8, "div", 5)(19, CaseBasicAccessViewComponent_div_19_Template, 8, 8, "div", 5);
34201
+ i0.ɵɵtemplate(15, CaseBasicAccessViewComponent_div_15_Template, 7, 6, "div", 5)(16, CaseBasicAccessViewComponent_div_16_Template, 7, 6, "div", 5)(17, CaseBasicAccessViewComponent_div_17_Template, 7, 6, "div", 5)(18, CaseBasicAccessViewComponent_div_18_Template, 7, 6, "div", 5)(19, CaseBasicAccessViewComponent_div_19_Template, 8, 8, "div", 5);
34073
34202
  i0.ɵɵelementEnd()();
34074
34203
  i0.ɵɵelementStart(20, "div", 6)(21, "button", 7);
34075
34204
  i0.ɵɵtext(22);
@@ -34114,7 +34243,7 @@ class CaseBasicAccessViewComponent {
34114
34243
  }
34115
34244
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseBasicAccessViewComponent, [{
34116
34245
  type: Component,
34117
- args: [{ selector: 'ccd-case-basic-access-view', template: "<ccd-loading-spinner *ngIf=\"showSpinner\"></ccd-loading-spinner>\n<div>\n <cut-alert type=\"information\">\n <ng-container *ngIf=\"accessType === 'CHALLENGED'\">{{'This case requires' | rpxTranslate}} {{accessType | rpxTranslate | lowercase}} {{'access' | rpxTranslate}}.</ng-container>\n <ng-container *ngIf=\"accessType === 'SPECIFIC'\">{{'Authorisation is needed to access this case' | rpxTranslate}}</ng-container>\n <br />\n <ng-container *ngIf=\"accessType === 'CHALLENGED'\">{{'This is because the case is outside your work area. If you request access to the case, it will be logged for auditing purposes' | rpxTranslate}}.</ng-container>\n <ng-container *ngIf=\"accessType === 'SPECIFIC'\">{{\"This could be because it's outside your jurisdiction, or you may be excluded from the case. If you request access to this case, it will be logged for auditing purposes\" | rpxTranslate }}.</ng-container>\n </cut-alert>\n <h1 class=\"heading-h1\">#{{ caseDetails.case_id | ccdCaseReference}}</h1>\n <h2 class=\"govuk-heading-m\">{{'Case details' | rpxTranslate}}</h2>\n <dl class=\"govuk-summary-list\">\n <div class=\"govuk-summary-list__row\" *ngIf=\"caseDetails.basicFields?.caseNameHmctsInternal\">\n <dt class=\"govuk-summary-list__key summary-key\">{{'Case name' | rpxTranslate}}</dt>\n <dd class=\"govuk-summary-list__value\">{{caseDetails.basicFields.caseNameHmctsInternal | rpxTranslate}}</dd>\n </div>\n <div class=\"govuk-summary-list__row\" *ngIf=\"caseDetails.case_type?.jurisdiction?.name\">\n <dt class=\"govuk-summary-list__key summary-key\">{{'Service' | rpxTranslate}}</dt>\n <dd class=\"govuk-summary-list__value\">{{caseDetails.case_type.jurisdiction.name | rpxTranslate}}</dd>\n </div>\n <div class=\"govuk-summary-list__row\" *ngIf=\"caseDetails.state?.description\">\n <dt class=\"govuk-summary-list__key summary-key\">{{'State' | rpxTranslate}}</dt>\n <dd class=\"govuk-summary-list__value\">{{caseDetails.state.description | rpxTranslate}}</dd>\n </div>\n <div class=\"govuk-summary-list__row\" *ngIf=\"courtOrHearingCentre\">\n <dt class=\"govuk-summary-list__key summary-key\">{{'Court or hearing centre' | rpxTranslate}}</dt>\n <dd class=\"govuk-summary-list__value\">{{courtOrHearingCentre | rpxTranslate | titlecase}}</dd>\n </div>\n\n <div class=\"govuk-summary-list__row\" *ngIf=\"accessType\">\n <dt class=\"govuk-summary-list__key summary-key\">{{'Access' | rpxTranslate}}</dt>\n <dd class=\"govuk-summary-list__value\">{{accessType | titlecase | rpxTranslate}}</dd>\n </div>\n </dl>\n</div>\n<div class=\"govuk-button-group\">\n <button class=\"govuk-button govuk-!-margin-right-3\" [routerLink]=\"getRequestUrl(accessType)\">\n {{'Request access' | rpxTranslate}}\n </button>\n <div class=\"govuk-grid-column-full govuk-!-padding-left-0\">\n <p>\n <a class=\"govuk-body\" (click)=\"onCancel()\" href=\"javascript:void(0)\">\n {{'Cancel' | rpxTranslate}}\n </a>\n </p>\n </div>\n</div>\n" }]
34246
+ args: [{ selector: 'ccd-case-basic-access-view', template: "<ccd-loading-spinner *ngIf=\"showSpinner\"></ccd-loading-spinner>\n<div>\n <cut-alert type=\"information\">\n <ng-container *ngIf=\"accessType === 'CHALLENGED'\">{{'This case requires' | rpxTranslate}} {{accessType | rpxTranslate | lowercase}} {{'access' | rpxTranslate}}.</ng-container>\n <ng-container *ngIf=\"accessType === 'SPECIFIC'\">{{'Authorisation is needed to access this case' | rpxTranslate}}</ng-container>\n <br />\n <ng-container *ngIf=\"accessType === 'CHALLENGED'\">{{'This is because the case is outside your work area. If you request access to the case, it will be logged for auditing purposes' | rpxTranslate}}.</ng-container>\n <ng-container *ngIf=\"accessType === 'SPECIFIC'\">{{\"This could be because it's outside your jurisdiction, or you may be excluded from the case. If you request access to this case, it will be logged for auditing purposes\" | rpxTranslate }}.</ng-container>\n </cut-alert>\n <h1 class=\"heading-h1\">#{{ caseDetails.case_id | ccdCaseReference}}</h1>\n <h2 class=\"govuk-heading-m\">{{'Case details' | rpxTranslate}}</h2>\n <dl class=\"govuk-summary-list\">\n <div class=\"govuk-summary-list__row\" *ngIf=\"caseDetails.basicFields?.caseNameHmctsInternal\">\n <dt class=\"govuk-summary-list__key summary-key\">{{'Case name' | rpxTranslate}}</dt>\n <dd class=\"govuk-summary-list__value\">{{caseDetails.basicFields.caseNameHmctsInternal | rpxTranslate}}</dd>\n </div>\n <div class=\"govuk-summary-list__row\" *ngIf=\"caseDetails.case_type?.jurisdiction?.name\">\n <dt class=\"govuk-summary-list__key summary-key\">{{'Service' | rpxTranslate}}</dt>\n <dd class=\"govuk-summary-list__value\">{{caseDetails.case_type.jurisdiction.name | rpxTranslate}}</dd>\n </div>\n <div class=\"govuk-summary-list__row\" *ngIf=\"caseDetails.state?.description\">\n <dt class=\"govuk-summary-list__key summary-key\">{{'State' | rpxTranslate}}</dt>\n <dd class=\"govuk-summary-list__value\">{{caseDetails.state.description | rpxTranslate}}</dd>\n </div>\n <div class=\"govuk-summary-list__row\" *ngIf=\"courtOrHearingCentre\">\n <dt class=\"govuk-summary-list__key summary-key\">{{'Court or hearing centre' | rpxTranslate}}</dt>\n <dd class=\"govuk-summary-list__value\">{{courtOrHearingCentre | titlecase}}</dd>\n </div>\n\n <div class=\"govuk-summary-list__row\" *ngIf=\"accessType\">\n <dt class=\"govuk-summary-list__key summary-key\">{{'Access' | rpxTranslate}}</dt>\n <dd class=\"govuk-summary-list__value\">{{accessType | titlecase | rpxTranslate}}</dd>\n </div>\n </dl>\n</div>\n<div class=\"govuk-button-group\">\n <button class=\"govuk-button govuk-!-margin-right-3\" [routerLink]=\"getRequestUrl(accessType)\">\n {{'Request access' | rpxTranslate}}\n </button>\n <div class=\"govuk-grid-column-full govuk-!-padding-left-0\">\n <p>\n <a class=\"govuk-body\" (click)=\"onCancel()\" href=\"javascript:void(0)\">\n {{'Cancel' | rpxTranslate}}\n </a>\n </p>\n </div>\n</div>\n" }]
34118
34247
  }], () => [{ type: CasesService }, { type: i1$1.Router }], { caseDetails: [{
34119
34248
  type: Input
34120
34249
  }], accessType: [{
@@ -34351,7 +34480,7 @@ function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_3_ng_
34351
34480
  i0.ɵɵadvance();
34352
34481
  i0.ɵɵproperty("id", "case-viewer-field-read--" + field_r7.id);
34353
34482
  i0.ɵɵadvance(2);
34354
- i0.ɵɵproperty("topLevelFormGroup", ctx_r1.formGroup == null ? null : ctx_r1.formGroup.controls["data"])("caseField", field_r7)("caseReference", ctx_r1.caseDetails.case_id)("markdownUseHrefAsRouterLink", ctx_r1.markdownUseHrefAsRouterLink);
34483
+ i0.ɵɵproperty("topLevelFormGroup", ctx_r1.formGroup == null ? null : ctx_r1.formGroup.controls["data"])("caseField", field_r7)("caseReference", ctx_r1.caseDetails.case_id);
34355
34484
  } }
34356
34485
  function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_3_ng_container_3_tr_5_Template(rf, ctx) { if (rf & 1) {
34357
34486
  i0.ɵɵelementStart(0, "tr", 40)(1, "th", 35)(2, "span", 36);
@@ -34363,14 +34492,14 @@ function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_3_ng_
34363
34492
  i0.ɵɵadvance();
34364
34493
  i0.ɵɵproperty("id", "case-viewer-field-read--" + field_r7.id);
34365
34494
  i0.ɵɵadvance(2);
34366
- i0.ɵɵproperty("topLevelFormGroup", ctx_r1.formGroup.controls["data"])("caseField", field_r7)("caseReference", ctx_r1.caseDetails.case_id)("markdownUseHrefAsRouterLink", ctx_r1.markdownUseHrefAsRouterLink);
34495
+ i0.ɵɵproperty("topLevelFormGroup", ctx_r1.formGroup.controls["data"])("caseField", field_r7)("caseReference", ctx_r1.caseDetails.case_id);
34367
34496
  } }
34368
34497
  function CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_3_ng_container_3_Template(rf, ctx) { if (rf & 1) {
34369
34498
  i0.ɵɵelementContainerStart(0);
34370
34499
  i0.ɵɵelementStart(1, "div", 30);
34371
34500
  i0.ɵɵelementContainerStart(2, 31);
34372
34501
  i0.ɵɵpipe(3, "ccdIsCompound");
34373
- i0.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_3_ng_container_3_tr_4_Template, 5, 6, "tr", 32)(5, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_3_ng_container_3_tr_5_Template, 4, 5, "tr", 33);
34502
+ i0.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_3_ng_container_3_tr_4_Template, 5, 5, "tr", 32)(5, CaseFullAccessViewComponent_ng_container_12_mat_tab_4_ng_template_3_ng_container_3_tr_5_Template, 4, 4, "tr", 33);
34374
34503
  i0.ɵɵelementContainerEnd();
34375
34504
  i0.ɵɵelementEnd();
34376
34505
  i0.ɵɵelementContainerEnd();
@@ -34488,7 +34617,6 @@ class CaseFullAccessViewComponent {
34488
34617
  caseSubscription;
34489
34618
  errorSubscription;
34490
34619
  dialogConfig;
34491
- markdownUseHrefAsRouterLink;
34492
34620
  message;
34493
34621
  subscription;
34494
34622
  notificationBannerConfig;
@@ -34532,7 +34660,6 @@ class CaseFullAccessViewComponent {
34532
34660
  }));
34533
34661
  initDialog();
34534
34662
  this.init();
34535
- this.markdownUseHrefAsRouterLink = true;
34536
34663
  this.sessionStorageService?.removeItem('eventUrl');
34537
34664
  this.subscription = this.convertHrefToRouterService?.getHrefMarkdownLinkContent().subscribe((hrefMarkdownLinkContent) => {
34538
34665
  // do not convert router with initial default value; convert to router only on updated link content
@@ -34867,7 +34994,7 @@ class CaseFullAccessViewComponent {
34867
34994
  } if (rf & 2) {
34868
34995
  let _t;
34869
34996
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tabGroup = _t.first);
34870
- } }, inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", caseDetails: "caseDetails", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, features: [i0.ɵɵNgOnChangesFeature], decls: 13, vars: 12, consts: [["tabGroup", ""], ["class", "error-summary", "role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "callbackErrorsContext", "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject"], [3, "caseId", "displayMode"], [1, "grid-row"], [1, "column-one-half"], [3, "caseDetails"], ["class", "case-viewer-controls", 4, "ngIf"], ["class", "column-one-half", 4, "ngIf"], ["class", "grid-row", 4, "ngIf"], [1, "column-full"], [4, "ngIf"], ["role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h2", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], [4, "ngFor", "ngForOf"], [1, "case-viewer-controls"], ["id", "case-viewer-control-print", "routerLink", "print", 1, "button", "button-secondary"], [3, "onTriggerChange", "onTriggerSubmit", "isDisabled", "triggers", "triggerText", "eventId"], [3, "linkClicked", "notificationBannerConfig"], ["animationDuration", "0ms", 3, "selectedIndexChange", "disableRipple", "selectedIndex"], [3, "id", "label", 4, "ngFor", "ngForOf"], [3, "id", "label", "aria-label", 4, "ngFor", "ngForOf"], [3, "id", "label"], [3, "id", "label", "aria-label"], ["matTabContent", ""], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "hidden"], [3, "ngSwitch"], [4, "ngSwitchCase"], ["class", "compound-field", 4, "ngSwitchCase"], ["id", "case-viewer-field-label", 4, "ngIf"], ["scope", "col", 3, "id"], [1, "text-16"], [3, "topLevelFormGroup", "caseField", "caseReference", "markdownUseHrefAsRouterLink"], ["id", "case-viewer-field-label"], [1, "case-viewer-label", "text-16"], [1, "compound-field"]], template: function CaseFullAccessViewComponent_Template(rf, ctx) { if (rf & 1) {
34997
+ } }, inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", caseDetails: "caseDetails", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, features: [i0.ɵɵNgOnChangesFeature], decls: 13, vars: 12, consts: [["tabGroup", ""], ["class", "error-summary", "role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "callbackErrorsContext", "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject"], [3, "caseId", "displayMode"], [1, "grid-row"], [1, "column-one-half"], [3, "caseDetails"], ["class", "case-viewer-controls", 4, "ngIf"], ["class", "column-one-half", 4, "ngIf"], ["class", "grid-row", 4, "ngIf"], [1, "column-full"], [4, "ngIf"], ["role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 1, "error-summary"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h1", "error-summary-heading"], ["id", "edit-case-event_error-summary-body", 1, "govuk-error-summary__body"], ["href", "get-help", "target", "_blank"], ["id", "edit-case-event_error-summary-heading", 1, "heading-h2", "error-summary-heading"], ["class", "error-summary-list", 4, "ngIf"], [1, "error-summary-list"], [4, "ngFor", "ngForOf"], [1, "case-viewer-controls"], ["id", "case-viewer-control-print", "routerLink", "print", 1, "button", "button-secondary"], [3, "onTriggerChange", "onTriggerSubmit", "isDisabled", "triggers", "triggerText", "eventId"], [3, "linkClicked", "notificationBannerConfig"], ["animationDuration", "0ms", 3, "selectedIndexChange", "disableRipple", "selectedIndex"], [3, "id", "label", 4, "ngFor", "ngForOf"], [3, "id", "label", "aria-label", 4, "ngFor", "ngForOf"], [3, "id", "label"], [3, "id", "label", "aria-label"], ["matTabContent", ""], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "hidden"], [3, "ngSwitch"], [4, "ngSwitchCase"], ["class", "compound-field", 4, "ngSwitchCase"], ["id", "case-viewer-field-label", 4, "ngIf"], ["scope", "col", 3, "id"], [1, "text-16"], [3, "topLevelFormGroup", "caseField", "caseReference"], ["id", "case-viewer-field-label"], [1, "case-viewer-label", "text-16"], [1, "compound-field"]], template: function CaseFullAccessViewComponent_Template(rf, ctx) { if (rf & 1) {
34871
34998
  i0.ɵɵtemplate(0, CaseFullAccessViewComponent_div_0_Template, 14, 12, "div", 1)(1, CaseFullAccessViewComponent_div_1_Template, 8, 7, "div", 1);
34872
34999
  i0.ɵɵelementStart(2, "ccd-callback-errors", 2);
34873
35000
  i0.ɵɵlistener("callbackErrorsContext", function CaseFullAccessViewComponent_Template_ccd_callback_errors_callbackErrorsContext_2_listener($event) { return ctx.callbackErrorsNotify($event); });
@@ -34905,7 +35032,7 @@ class CaseFullAccessViewComponent {
34905
35032
  }
34906
35033
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFullAccessViewComponent, [{
34907
35034
  type: Component,
34908
- args: [{ selector: 'ccd-case-full-access-view', template: "<!-- Generic error heading and error message to be displayed only if there are no specific callback errors or warnings, or no error details -->\n<div *ngIf=\"error && !(error.callbackErrors || error.callbackWarnings || error.details)\" class=\"error-summary\"\n role=\"group\" aria-labelledby=\"edit-case-event_error-summary-heading\" tabindex=\"-1\">\n <h1 class=\"heading-h1 error-summary-heading\" id=\"edit-case-event_error-summary-heading\">\n {{'Something went wrong' | rpxTranslate}}\n </h1>\n <div class=\"govuk-error-summary__body\" id=\"edit-case-event_error-summary-body\">\n <p>{{\"We're working to fix the problem. Try again shortly.\" | rpxTranslate}}</p>\n <p>\n <a href=\"get-help\" target=\"_blank\">\n {{\"Contact us\" | rpxTranslate}}</a> {{\"if you're still having problems.\" | rpxTranslate}}\n </p>\n </div>\n</div>\n<!-- Callback error heading and error message to be displayed if there are specific error details -->\n<div *ngIf=\"error && error.details\" class=\"error-summary\" role=\"group\"\n aria-labelledby=\"edit-case-event_error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-h2 error-summary-heading\" id=\"edit-case-event_error-summary-heading\">\n {{'The callback data failed validation' | rpxTranslate}}\n </h2>\n <p>{{error.message | rpxTranslate}}</p>\n <ul *ngIf=\"error.details?.field_errors\" class=\"error-summary-list\">\n <li *ngFor=\"let fieldError of error.details.field_errors\">\n {{fieldError.message | rpxTranslate}}\n </li>\n </ul>\n</div>\n<ccd-callback-errors\n [triggerTextContinue]=\"triggerTextStart\"\n [triggerTextIgnore]=\"triggerTextIgnoreWarnings\"\n [callbackErrorsSubject]=\"callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\">\n</ccd-callback-errors>\n<ccd-activity [caseId]=\"caseDetails.case_id\" [displayMode]=\"BANNER\"></ccd-activity>\n<div class=\"grid-row\">\n <div class=\"column-one-half\">\n <ccd-case-header [caseDetails]=\"caseDetails\"></ccd-case-header>\n <div class=\"case-viewer-controls\" *ngIf=\"hasPrint && !isDraft() && isPrintEnabled()\">\n <a id=\"case-viewer-control-print\" routerLink=\"print\" class=\"button button-secondary\">{{'Print' | rpxTranslate}}</a>\n </div>\n </div>\n <div *ngIf=\"hasEventSelector\" class=\"column-one-half\">\n <ccd-event-trigger [isDisabled]=\"isTriggerButtonDisabled()\" [triggers]=\"caseDetails.triggers\"\n [triggerText]=\"triggerText\"\n [eventId]=\"eventId\"\n (onTriggerChange)=\"clearErrorsAndWarnings()\"\n (onTriggerSubmit)=\"applyTrigger($event)\"></ccd-event-trigger>\n </div>\n</div>\n<div class=\"grid-row\" *ngIf=\"activeCaseFlags && !caseFlagsExternalUser\">\n <div class=\"column-full\">\n <ccd-notification-banner [notificationBannerConfig]=\"notificationBannerConfig\" (linkClicked)=\"onLinkClicked($event)\">\n </ccd-notification-banner>\n </div>\n</div>\n<div class=\"grid-row\">\n <div class=\"column-full\">\n <ng-container *ngIf=\"hasTabsPresent()\">\n <mat-tab-group #tabGroup animationDuration=\"0ms\" (selectedIndexChange)=\"tabChanged($event)\" [disableRipple]=\"true\"\n [selectedIndex]=\"selectedTabIndex\">\n <mat-tab *ngFor=\"let tab of prependedTabs\" [id]=\"tab.id\" [label]=\"tab.label | rpxTranslate\">\n </mat-tab>\n <mat-tab *ngFor=\"let tab of sortedTabs; let curIdx=index\" [id]=\"tab.id\" [label]=\"tab.label | rpxTranslate\" [aria-label]=\"curIdx === 0 ? tab.label + ', Please use left and right arrow keys to navigate case tabs' : '' | rpxTranslate\">\n <ng-template matTabContent>\n <table [class]=\"tab.id\" [attr.aria-label]=\"'case viewer table' | rpxTranslate\">\n <tbody>\n <ng-container *ngFor=\"let field of tab | ccdTabFields | ccdReadFieldsFilter:false :undefined :true : formGroup?.controls['data']\">\n <div ccdLabelSubstitutor [caseField]=\"field\" [contextFields]=\"caseFields\" [hidden]=\"field.hidden\">\n <ng-container [ngSwitch]=\"!(field | ccdIsCompound)\">\n <tr *ngSwitchCase=\"true\">\n <th id=\"case-viewer-field-label\" *ngIf=\"!isFieldToHaveNoLabel(field)\">\n <div class=\"case-viewer-label text-16\">\n {{field.label | rpxTranslate}}</div>\n </th>\n <td [id]=\"'case-viewer-field-read--' + field.id\" scope=\"col\">\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"formGroup?.controls['data']\"\n [caseField]=\"field\" [caseReference]=\"caseDetails.case_id\"\n [markdownUseHrefAsRouterLink]=\"markdownUseHrefAsRouterLink\">\n </ccd-field-read>\n </span>\n </td>\n </tr>\n <tr *ngSwitchCase=\"false\" class=\"compound-field\">\n <th [id]=\"'case-viewer-field-read--' + field.id\" scope=\"col\">\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"formGroup.controls['data']\"\n [caseField]=\"field\" [caseReference]=\"caseDetails.case_id\"\n [markdownUseHrefAsRouterLink]=\"markdownUseHrefAsRouterLink\">\n </ccd-field-read>\n </span>\n </th>\n </tr>\n </ng-container>\n </div>\n </ng-container>\n </tbody>\n </table>\n </ng-template>\n </mat-tab>\n <mat-tab *ngFor=\"let tab of appendedTabs\" [id]=\"tab.id\" [label]=\"tab.label | rpxTranslate\">\n </mat-tab>\n </mat-tab-group>\n <router-outlet *ngIf=\"(prependedTabs && prependedTabs.length) || (appendedTabs && appendedTabs.length)\"></router-outlet>\n </ng-container>\n </div>\n</div>\n", styles: ["th{width:1%;white-space:nowrap;vertical-align:top}.compound-field th{padding:0}.case-viewer-controls{margin-top:47px;margin-bottom:20px}ccd-case-header{float:left;margin-right:10px}ccd-event-trigger{float:right}.case-viewer-label{min-width:300px;white-space:normal}.markdown h3{margin-bottom:0}.hide-table-capion{position:absolute;visibility:hidden}\n"] }]
35035
+ args: [{ selector: 'ccd-case-full-access-view', template: "<!-- Generic error heading and error message to be displayed only if there are no specific callback errors or warnings, or no error details -->\n<div *ngIf=\"error && !(error.callbackErrors || error.callbackWarnings || error.details)\" class=\"error-summary\"\n role=\"group\" aria-labelledby=\"edit-case-event_error-summary-heading\" tabindex=\"-1\">\n <h1 class=\"heading-h1 error-summary-heading\" id=\"edit-case-event_error-summary-heading\">\n {{'Something went wrong' | rpxTranslate}}\n </h1>\n <div class=\"govuk-error-summary__body\" id=\"edit-case-event_error-summary-body\">\n <p>{{\"We're working to fix the problem. Try again shortly.\" | rpxTranslate}}</p>\n <p>\n <a href=\"get-help\" target=\"_blank\">\n {{\"Contact us\" | rpxTranslate}}</a> {{\"if you're still having problems.\" | rpxTranslate}}\n </p>\n </div>\n</div>\n<!-- Callback error heading and error message to be displayed if there are specific error details -->\n<div *ngIf=\"error && error.details\" class=\"error-summary\" role=\"group\"\n aria-labelledby=\"edit-case-event_error-summary-heading\" tabindex=\"-1\">\n <h2 class=\"heading-h2 error-summary-heading\" id=\"edit-case-event_error-summary-heading\">\n {{'The callback data failed validation' | rpxTranslate}}\n </h2>\n <p>{{error.message | rpxTranslate}}</p>\n <ul *ngIf=\"error.details?.field_errors\" class=\"error-summary-list\">\n <li *ngFor=\"let fieldError of error.details.field_errors\">\n {{fieldError.message | rpxTranslate}}\n </li>\n </ul>\n</div>\n<ccd-callback-errors\n [triggerTextContinue]=\"triggerTextStart\"\n [triggerTextIgnore]=\"triggerTextIgnoreWarnings\"\n [callbackErrorsSubject]=\"callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\">\n</ccd-callback-errors>\n<ccd-activity [caseId]=\"caseDetails.case_id\" [displayMode]=\"BANNER\"></ccd-activity>\n<div class=\"grid-row\">\n <div class=\"column-one-half\">\n <ccd-case-header [caseDetails]=\"caseDetails\"></ccd-case-header>\n <div class=\"case-viewer-controls\" *ngIf=\"hasPrint && !isDraft() && isPrintEnabled()\">\n <a id=\"case-viewer-control-print\" routerLink=\"print\" class=\"button button-secondary\">{{'Print' | rpxTranslate}}</a>\n </div>\n </div>\n <div *ngIf=\"hasEventSelector\" class=\"column-one-half\">\n <ccd-event-trigger [isDisabled]=\"isTriggerButtonDisabled()\" [triggers]=\"caseDetails.triggers\"\n [triggerText]=\"triggerText\"\n [eventId]=\"eventId\"\n (onTriggerChange)=\"clearErrorsAndWarnings()\"\n (onTriggerSubmit)=\"applyTrigger($event)\"></ccd-event-trigger>\n </div>\n</div>\n<div class=\"grid-row\" *ngIf=\"activeCaseFlags && !caseFlagsExternalUser\">\n <div class=\"column-full\">\n <ccd-notification-banner [notificationBannerConfig]=\"notificationBannerConfig\" (linkClicked)=\"onLinkClicked($event)\">\n </ccd-notification-banner>\n </div>\n</div>\n<div class=\"grid-row\">\n <div class=\"column-full\">\n <ng-container *ngIf=\"hasTabsPresent()\">\n <mat-tab-group #tabGroup animationDuration=\"0ms\" (selectedIndexChange)=\"tabChanged($event)\" [disableRipple]=\"true\"\n [selectedIndex]=\"selectedTabIndex\">\n <mat-tab *ngFor=\"let tab of prependedTabs\" [id]=\"tab.id\" [label]=\"tab.label | rpxTranslate\">\n </mat-tab>\n <mat-tab *ngFor=\"let tab of sortedTabs; let curIdx=index\" [id]=\"tab.id\" [label]=\"tab.label | rpxTranslate\" [aria-label]=\"curIdx === 0 ? tab.label + ', Please use left and right arrow keys to navigate case tabs' : '' | rpxTranslate\">\n <ng-template matTabContent>\n <table [class]=\"tab.id\" [attr.aria-label]=\"'case viewer table' | rpxTranslate\">\n <tbody>\n <ng-container *ngFor=\"let field of tab | ccdTabFields | ccdReadFieldsFilter:false :undefined :true : formGroup?.controls['data']\">\n <div ccdLabelSubstitutor [caseField]=\"field\" [contextFields]=\"caseFields\" [hidden]=\"field.hidden\">\n <ng-container [ngSwitch]=\"!(field | ccdIsCompound)\">\n <tr *ngSwitchCase=\"true\">\n <th id=\"case-viewer-field-label\" *ngIf=\"!isFieldToHaveNoLabel(field)\">\n <div class=\"case-viewer-label text-16\">\n {{field.label | rpxTranslate}}</div>\n </th>\n <td [id]=\"'case-viewer-field-read--' + field.id\" scope=\"col\">\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"formGroup?.controls['data']\"\n [caseField]=\"field\" [caseReference]=\"caseDetails.case_id\">\n </ccd-field-read>\n </span>\n </td>\n </tr>\n <tr *ngSwitchCase=\"false\" class=\"compound-field\">\n <th [id]=\"'case-viewer-field-read--' + field.id\" scope=\"col\">\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"formGroup.controls['data']\"\n [caseField]=\"field\" [caseReference]=\"caseDetails.case_id\">\n </ccd-field-read>\n </span>\n </th>\n </tr>\n </ng-container>\n </div>\n </ng-container>\n </tbody>\n </table>\n </ng-template>\n </mat-tab>\n <mat-tab *ngFor=\"let tab of appendedTabs\" [id]=\"tab.id\" [label]=\"tab.label | rpxTranslate\">\n </mat-tab>\n </mat-tab-group>\n <router-outlet *ngIf=\"(prependedTabs && prependedTabs.length) || (appendedTabs && appendedTabs.length)\"></router-outlet>\n </ng-container>\n </div>\n</div>\n", styles: ["th{width:1%;white-space:nowrap;vertical-align:top}.compound-field th{padding:0}.case-viewer-controls{margin-top:47px;margin-bottom:20px}ccd-case-header{float:left;margin-right:10px}ccd-event-trigger{float:right}.case-viewer-label{min-width:300px;white-space:normal}.markdown h3{margin-bottom:0}.hide-table-capion{position:absolute;visibility:hidden}\n"] }]
34909
35036
  }], () => [{ type: i0.NgZone }, { type: i1$1.ActivatedRoute }, { type: i1$1.Router }, { type: NavigationNotifierService }, { type: OrderService }, { type: ActivityPollingService }, { type: i1$3.MatLegacyDialog }, { type: AlertService }, { type: DraftService }, { type: ErrorNotifierService }, { type: ConvertHrefToRouterService }, { type: i5.Location }, { type: i0.ChangeDetectorRef }, { type: SessionStorageService }, { type: i1.RpxTranslatePipe }, { type: LoadingService }, { type: LinkedCasesService }, { type: CaseFlagStateService }], { hasPrint: [{
34910
35037
  type: Input
34911
35038
  }], hasEventSelector: [{
@@ -34983,20 +35110,19 @@ function CasePrinterComponent_div_0_tr_16_Template(rf, ctx) { if (rf & 1) {
34983
35110
  i0.ɵɵelementStart(0, "tr")(1, "td", 4)(2, "a", 5);
34984
35111
  i0.ɵɵpipe(3, "ccdPrintUrl");
34985
35112
  i0.ɵɵtext(4);
34986
- i0.ɵɵpipe(5, "rpxTranslate");
34987
35113
  i0.ɵɵelementEnd()();
34988
- i0.ɵɵelementStart(6, "td", 6);
34989
- i0.ɵɵtext(7);
34990
- i0.ɵɵpipe(8, "rpxTranslate");
35114
+ i0.ɵɵelementStart(5, "td", 6);
35115
+ i0.ɵɵtext(6);
35116
+ i0.ɵɵpipe(7, "rpxTranslate");
34991
35117
  i0.ɵɵelementEnd()();
34992
35118
  } if (rf & 2) {
34993
35119
  const document_r1 = ctx.$implicit;
34994
35120
  i0.ɵɵadvance(2);
34995
35121
  i0.ɵɵproperty("href", i0.ɵɵpipeBind1(3, 3, document_r1.url), i0.ɵɵsanitizeUrl);
34996
35122
  i0.ɵɵadvance(2);
34997
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 5, document_r1.name), " ");
34998
- i0.ɵɵadvance(3);
34999
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(8, 7, document_r1.type));
35123
+ i0.ɵɵtextInterpolate1(" ", document_r1.name, " ");
35124
+ i0.ɵɵadvance(2);
35125
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 5, document_r1.type));
35000
35126
  } }
35001
35127
  function CasePrinterComponent_div_0_Template(rf, ctx) { if (rf & 1) {
35002
35128
  i0.ɵɵelementStart(0, "div");
@@ -35016,7 +35142,7 @@ function CasePrinterComponent_div_0_Template(rf, ctx) { if (rf & 1) {
35016
35142
  i0.ɵɵpipe(14, "rpxTranslate");
35017
35143
  i0.ɵɵelementEnd()()();
35018
35144
  i0.ɵɵelementStart(15, "tbody");
35019
- i0.ɵɵtemplate(16, CasePrinterComponent_div_0_tr_16_Template, 9, 9, "tr", 3);
35145
+ i0.ɵɵtemplate(16, CasePrinterComponent_div_0_tr_16_Template, 8, 7, "tr", 3);
35020
35146
  i0.ɵɵelementEnd()()();
35021
35147
  } if (rf & 2) {
35022
35148
  const ctx_r1 = i0.ɵɵnextContext();
@@ -35081,7 +35207,7 @@ class CasePrinterComponent {
35081
35207
  }
35082
35208
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CasePrinterComponent, [{
35083
35209
  type: Component,
35084
- args: [{ template: "<div *ngIf=\"isDataLoaded()\">\n <ccd-case-header [caseDetails]=\"caseDetails\"></ccd-case-header>\n <h2 class=\"heading-h2\">{{'Print' | rpxTranslate}}</h2>\n <table [attr.aria-describedby]=\"'case print table' | rpxTranslate\">\n <thead>\n <tr>\n <th>{{'Name' | rpxTranslate}}</th>\n <th>{{'Type' | rpxTranslate}}</th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let document of documents\">\n <td class=\"document-name\"><a [href]=\"document.url | ccdPrintUrl\" target=\"_blank\" rel=\"external\">\n {{document.name | rpxTranslate}}\n </a></td>\n <td class=\"document-type\">{{document.type | rpxTranslate}}</td>\n </tr>\n </tbody>\n </table>\n</div>\n" }]
35210
+ args: [{ template: "<div *ngIf=\"isDataLoaded()\">\n <ccd-case-header [caseDetails]=\"caseDetails\"></ccd-case-header>\n <h2 class=\"heading-h2\">{{'Print' | rpxTranslate}}</h2>\n <table [attr.aria-describedby]=\"'case print table' | rpxTranslate\">\n <thead>\n <tr>\n <th>{{'Name' | rpxTranslate}}</th>\n <th>{{'Type' | rpxTranslate}}</th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let document of documents\">\n <td class=\"document-name\"><a [href]=\"document.url | ccdPrintUrl\" target=\"_blank\" rel=\"external\">\n {{document.name}}\n </a></td>\n <td class=\"document-type\">{{document.type | rpxTranslate}}</td>\n </tr>\n </tbody>\n </table>\n</div>\n" }]
35085
35211
  }], () => [{ type: CaseNotifier }, { type: CasesService }, { type: AlertService }], null); })();
35086
35212
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CasePrinterComponent, { className: "CasePrinterComponent", filePath: "lib/shared/components/case-viewer/printer/case-printer.component.ts", lineNumber: 14 }); })();
35087
35213
 
@@ -37693,7 +37819,7 @@ class CreateCaseFiltersComponent {
37693
37819
  return events.filter(event => event.pre_states.length === 0);
37694
37820
  }
37695
37821
  retainEventsWithCreateRights(events) {
37696
- const userProfile = JSON.parse(this.sessionStorageService.getItem('userDetails'));
37822
+ const userProfile = JSON.parse(this.sessionStorageService.getItem(USER_DETAILS));
37697
37823
  return events.filter(event => userProfile && userProfile.roles &&
37698
37824
  !!userProfile.roles.find(role => this.hasCreateAccess(event, role)));
37699
37825
  }
@@ -38379,7 +38505,7 @@ function SearchResultComponent_table_0_div_6_Template(rf, ctx) { if (rf & 1) {
38379
38505
  } if (rf & 2) {
38380
38506
  const ctx_r0 = i0.ɵɵnextContext(2);
38381
38507
  i0.ɵɵadvance();
38382
- i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(2, 8, ctx_r0.getTotalResults() + " results have been found"));
38508
+ i0.ɵɵattribute("aria-label", ctx_r0.getTotalResults() + " " + i0.ɵɵpipeBind1(2, 8, "results have been found"));
38383
38509
  i0.ɵɵadvance(3);
38384
38510
  i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(5, 10, "Showing"), " ");
38385
38511
  i0.ɵɵadvance(3);
@@ -38426,13 +38552,15 @@ function SearchResultComponent_table_0_td_10_Template(rf, ctx) { if (rf & 1) {
38426
38552
  function SearchResultComponent_table_0_th_11_div_5_Template(rf, ctx) { if (rf & 1) {
38427
38553
  const _r6 = i0.ɵɵgetCurrentView();
38428
38554
  i0.ɵɵelementStart(0, "div", 28)(1, "a", 29);
38429
- i0.ɵɵlistener("click", function SearchResultComponent_table_0_th_11_div_5_Template_a_click_1_listener() { i0.ɵɵrestoreView(_r6); const col_r5 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.sort(col_r5)); });
38555
+ i0.ɵɵpipe(2, "rpxTranslate");
38556
+ i0.ɵɵlistener("click", function SearchResultComponent_table_0_th_11_div_5_Template_a_click_1_listener() { i0.ɵɵrestoreView(_r6); const col_r5 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.sort(col_r5)); })("keyup.enter", function SearchResultComponent_table_0_th_11_div_5_Template_a_keyup_enter_1_listener() { i0.ɵɵrestoreView(_r6); const col_r5 = i0.ɵɵnextContext().$implicit; const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.sort(col_r5)); });
38430
38557
  i0.ɵɵelementEnd()();
38431
38558
  } if (rf & 2) {
38432
38559
  const col_r5 = i0.ɵɵnextContext().$implicit;
38433
38560
  const ctx_r0 = i0.ɵɵnextContext(2);
38434
38561
  i0.ɵɵadvance();
38435
38562
  i0.ɵɵproperty("innerHTML", ctx_r0.sortWidget(col_r5), i0.ɵɵsanitizeHtml);
38563
+ i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(2, 2, "Sort " + col_r5.label));
38436
38564
  } }
38437
38565
  function SearchResultComponent_table_0_th_11_Template(rf, ctx) { if (rf & 1) {
38438
38566
  const _r4 = i0.ɵɵgetCurrentView();
@@ -38441,14 +38569,14 @@ function SearchResultComponent_table_0_th_11_Template(rf, ctx) { if (rf & 1) {
38441
38569
  i0.ɵɵtext(3);
38442
38570
  i0.ɵɵpipe(4, "rpxTranslate");
38443
38571
  i0.ɵɵelementEnd();
38444
- i0.ɵɵtemplate(5, SearchResultComponent_table_0_th_11_div_5_Template, 2, 1, "div", 27);
38572
+ i0.ɵɵtemplate(5, SearchResultComponent_table_0_th_11_div_5_Template, 3, 4, "div", 27);
38445
38573
  i0.ɵɵelementEnd()();
38446
38574
  } if (rf & 2) {
38447
38575
  const col_r5 = ctx.$implicit;
38448
38576
  const ctx_r0 = i0.ɵɵnextContext(2);
38449
38577
  i0.ɵɵattribute("aria-sort", ctx_r0.isSortAscending(col_r5) === null ? null : ctx_r0.isSortAscending(col_r5) ? "ascending" : "descending");
38450
38578
  i0.ɵɵadvance(3);
38451
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 3, col_r5.label), " ");
38579
+ i0.ɵɵtextInterpolate1(" ", ctx_r0.isTranslatable(col_r5) ? i0.ɵɵpipeBind1(4, 3, col_r5.label) : col_r5.label, " ");
38452
38580
  i0.ɵɵadvance(2);
38453
38581
  i0.ɵɵproperty("ngIf", ctx_r0.comparator(col_r5));
38454
38582
  } }
@@ -38822,6 +38950,9 @@ class SearchResultComponent {
38822
38950
  this.selected.page = (changes['page']).currentValue;
38823
38951
  }
38824
38952
  }
38953
+ isTranslatable(col) {
38954
+ return FieldsUtils.isTranslatable(col.case_field_type);
38955
+ }
38825
38956
  get resultTotal() {
38826
38957
  const total = this.paginationMetadata.totalResultsCount;
38827
38958
  const maximumResultReached = total >= this.PAGINATION_MAX_ITEM_RESULT;
@@ -39085,7 +39216,7 @@ class SearchResultComponent {
39085
39216
  // eslint-disable-next-line @typescript-eslint/no-empty-function
39086
39217
  noop() { }
39087
39218
  static ɵfac = function SearchResultComponent_Factory(t) { return new (t || SearchResultComponent)(i0.ɵɵdirectiveInject(SearchResultViewItemComparatorFactory), i0.ɵɵdirectiveInject(AbstractAppConfig), i0.ɵɵdirectiveInject(ActivityService), i0.ɵɵdirectiveInject(CaseReferencePipe), i0.ɵɵdirectiveInject(PlaceholderService), i0.ɵɵdirectiveInject(BrowserService), i0.ɵɵdirectiveInject(SessionStorageService)); };
39088
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SearchResultComponent, selectors: [["ccd-search-result"]], inputs: { caseLinkUrlTemplate: "caseLinkUrlTemplate", jurisdiction: "jurisdiction", caseType: "caseType", caseState: "caseState", caseFilterFG: "caseFilterFG", resultView: "resultView", page: "page", paginationMetadata: "paginationMetadata", metadataFields: "metadataFields", selectionEnabled: "selectionEnabled", showOnlySelected: "showOnlySelected", preSelectedCases: "preSelectedCases", consumerSortingEnabled: "consumerSortingEnabled" }, outputs: { selection: "selection", changePage: "changePage", clickCase: "clickCase", sortHandler: "sortHandler" }, features: [i0.ɵɵNgOnChangesFeature], decls: 3, vars: 3, consts: [["case_reference", ""], [4, "ngIf"], [3, "visibilityLabel", "autoHide", "maxSize", "screenReaderPaginationLabel", "screenReaderPageLabel", "screenReaderCurrentLabel", "pageChange", 4, "ngIf"], ["class", "notification", 4, "ngIf"], ["id", "search-result-heading__text", "tabindex", "-1", 1, "heading-h2"], ["class", "govuk-warning-text pagination-limit-warning", 4, "ngIf"], ["class", "pagination-top", 4, "ngIf"], ["class", "reset-selection", 4, "ngIf"], ["scope", "row"], ["class", "govuk-table__checkbox", 4, "ngIf"], ["class", "search-result-column-header", "scope", "col", 4, "ngFor", "ngForOf"], ["style", "width: 110px;", "scope", "col", 4, "ngIf"], [1, "govuk-warning-text", "pagination-limit-warning"], ["aria-hidden", "true", 1, "govuk-warning-text__icon"], [1, "govuk-warning-text__text"], [1, "govuk-warning-text__assistive"], [1, "pagination-top"], ["id", "search-result-summary__text", 1, "text-16"], [1, "govuk-!-font-weight-bold"], [1, "reset-selection"], ["href", "javascript:void(0)", 1, "search-result-reset-link", 3, "click"], [1, "govuk-table__checkbox"], [1, "govuk-checkboxes__item"], ["id", "select-all", "name", "select-all", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "change", "checked", "disabled"], ["for", "select-all", 1, "govuk-label", "govuk-checkboxes__label"], ["scope", "col", 1, "search-result-column-header"], [1, "search-result-column-label", 3, "click", "keyup"], ["class", "search-result-column-sort", 4, "ngIf"], [1, "search-result-column-sort"], ["href", "javascript:void(0)", 1, "sort-widget", 3, "click", "innerHTML"], ["scope", "col", 2, "width", "110px"], [4, "ngFor", "ngForOf"], ["class", "govuk-table__checkbox", "scope", "col", 4, "ngIf"], ["class", "search-result-column-cell", "scope", "row", 4, "ngFor", "ngForOf"], ["scope", "col", 1, "govuk-table__checkbox"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "change", "id", "name", "checked", "disabled"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"], ["scope", "row", 1, "search-result-column-cell"], ["class", "govuk-link", 3, "routerLink", 4, "ngIf"], ["class", "text-16", 3, "visibility", 4, "ngIf"], [1, "govuk-link", 3, "routerLink"], ["class", "text-16", 4, "ngIf"], [1, "text-16"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "elementsToSubstitute", 4, "ngIf", "ngIfElse"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "elementsToSubstitute"], [3, "caseId", "displayMode"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "change", "keyup", "id", "name", "checked", "disabled"], [3, "pageChange", "visibilityLabel", "autoHide", "maxSize", "screenReaderPaginationLabel", "screenReaderPageLabel", "screenReaderCurrentLabel"], [1, "notification"]], template: function SearchResultComponent_Template(rf, ctx) { if (rf & 1) {
39219
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SearchResultComponent, selectors: [["ccd-search-result"]], inputs: { caseLinkUrlTemplate: "caseLinkUrlTemplate", jurisdiction: "jurisdiction", caseType: "caseType", caseState: "caseState", caseFilterFG: "caseFilterFG", resultView: "resultView", page: "page", paginationMetadata: "paginationMetadata", metadataFields: "metadataFields", selectionEnabled: "selectionEnabled", showOnlySelected: "showOnlySelected", preSelectedCases: "preSelectedCases", consumerSortingEnabled: "consumerSortingEnabled" }, outputs: { selection: "selection", changePage: "changePage", clickCase: "clickCase", sortHandler: "sortHandler" }, features: [i0.ɵɵNgOnChangesFeature], decls: 3, vars: 3, consts: [["case_reference", ""], [4, "ngIf"], [3, "visibilityLabel", "autoHide", "maxSize", "screenReaderPaginationLabel", "screenReaderPageLabel", "screenReaderCurrentLabel", "pageChange", 4, "ngIf"], ["class", "notification", 4, "ngIf"], ["id", "search-result-heading__text", "tabindex", "-1", 1, "heading-h2"], ["class", "govuk-warning-text pagination-limit-warning", 4, "ngIf"], ["class", "pagination-top", 4, "ngIf"], ["class", "reset-selection", 4, "ngIf"], ["scope", "row"], ["class", "govuk-table__checkbox", 4, "ngIf"], ["class", "search-result-column-header", "scope", "col", 4, "ngFor", "ngForOf"], ["style", "width: 110px;", "scope", "col", 4, "ngIf"], [1, "govuk-warning-text", "pagination-limit-warning"], ["aria-hidden", "true", 1, "govuk-warning-text__icon"], [1, "govuk-warning-text__text"], [1, "govuk-warning-text__assistive"], [1, "pagination-top"], ["id", "search-result-summary__text", 1, "text-16"], [1, "govuk-!-font-weight-bold"], [1, "reset-selection"], ["href", "javascript:void(0)", 1, "search-result-reset-link", 3, "click"], [1, "govuk-table__checkbox"], [1, "govuk-checkboxes__item"], ["id", "select-all", "name", "select-all", "type", "checkbox", 1, "govuk-checkboxes__input", 3, "change", "checked", "disabled"], ["for", "select-all", 1, "govuk-label", "govuk-checkboxes__label"], ["scope", "col", 1, "search-result-column-header"], [1, "search-result-column-label", 3, "click", "keyup"], ["class", "search-result-column-sort", 4, "ngIf"], [1, "search-result-column-sort"], ["href", "javascript:void(0)", 1, "sort-widget", 3, "click", "keyup.enter", "innerHTML"], ["scope", "col", 2, "width", "110px"], [4, "ngFor", "ngForOf"], ["class", "govuk-table__checkbox", "scope", "col", 4, "ngIf"], ["class", "search-result-column-cell", "scope", "row", 4, "ngFor", "ngForOf"], ["scope", "col", 1, "govuk-table__checkbox"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "change", "id", "name", "checked", "disabled"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for"], ["scope", "row", 1, "search-result-column-cell"], ["class", "govuk-link", 3, "routerLink", 4, "ngIf"], ["class", "text-16", 3, "visibility", 4, "ngIf"], [1, "govuk-link", 3, "routerLink"], ["class", "text-16", 4, "ngIf"], [1, "text-16"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "elementsToSubstitute", 4, "ngIf", "ngIfElse"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "elementsToSubstitute"], [3, "caseId", "displayMode"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "change", "keyup", "id", "name", "checked", "disabled"], [3, "pageChange", "visibilityLabel", "autoHide", "maxSize", "screenReaderPaginationLabel", "screenReaderPageLabel", "screenReaderCurrentLabel"], [1, "notification"]], template: function SearchResultComponent_Template(rf, ctx) { if (rf & 1) {
39089
39220
  i0.ɵɵtemplate(0, SearchResultComponent_table_0_Template, 16, 11, "table", 1)(1, SearchResultComponent_ccd_pagination_1_Template, 1, 6, "ccd-pagination", 2)(2, SearchResultComponent_div_2_Template, 4, 6, "div", 3);
39090
39221
  } if (rf & 2) {
39091
39222
  i0.ɵɵproperty("ngIf", ctx.hasResults() || ctx.hasDrafts());
@@ -39097,7 +39228,7 @@ class SearchResultComponent {
39097
39228
  }
39098
39229
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SearchResultComponent, [{
39099
39230
  type: Component,
39100
- args: [{ selector: 'ccd-search-result', template: "<table *ngIf=\"hasResults() || hasDrafts()\">\n <caption>\n <h2 class=\"heading-h2\" id=\"search-result-heading__text\" tabindex=\"-1\">{{ (caseState ? 'Your cases' : 'Search result') | rpxTranslate}}</h2>\n\n <div class=\"govuk-warning-text pagination-limit-warning\" *ngIf=\"paginationLimitEnforced\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">{{'Warning' | rpxTranslate}}</span>\n {{'The total size of the result set is' | rpxTranslate}} {{paginationMetadata.totalResultsCount | number}}. {{'Only the first 10,000 records are available for display.' | rpxTranslate}}\n </strong>\n </div>\n\n <div *ngIf=\"(hasResults() || hasDrafts())\" class=\"pagination-top\">\n <output [attr.aria-label]=\"getTotalResults() + ' results have been found' | rpxTranslate\"></output>\n <span class=\"text-16\" id=\"search-result-summary__text\">{{'Showing' | rpxTranslate}}\n <span class=\"govuk-!-font-weight-bold\">{{ getFirstResult() }}</span>\n {{'to' | rpxTranslate}}\n <span class=\"govuk-!-font-weight-bold\">{{ getLastResult() }}</span>\n {{'of' | rpxTranslate}}\n <span class=\"govuk-!-font-weight-bold\">{{ getTotalResults() }}</span> {{'results' | rpxTranslate}}</span>\n </div>\n <div *ngIf=\"(hasResults() || hasDrafts()) && selectionEnabled\" class=\"reset-selection\"\n [attr.aria-label]=\"'Reset selection' | rpxTranslate\">\n <span><a class=\"search-result-reset-link\" href=\"javascript:void(0)\" (click)=\"clearSelection()\">{{'Reset case selection' | rpxTranslate}}</a></span>\n </div>\n </caption>\n <thead>\n <tr scope=\"row\">\n <td *ngIf=\"selectionEnabled\" class=\"govuk-table__checkbox\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"select-all\" name=\"select-all\" type=\"checkbox\" (change)=\"selectAll()\" [checked]=\"allOnPageSelected()\" [disabled]=\"!canAnyBeShared()\" />\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"select-all\" [attr.aria-labelledby]=\"'select-all'\">\n </label>\n </div>\n </td>\n <th *ngFor=\"let col of resultView.columns\" class=\"search-result-column-header\"\n [attr.aria-sort]=\"isSortAscending(col) === null ? null : (isSortAscending(col) ? 'ascending' : 'descending')\" scope=\"col\">\n <div>\n <div class=\"search-result-column-label\" (click)=\"sort(col)\" (keyup)=\"noop()\">\n {{col.label | rpxTranslate}}\n </div>\n <div *ngIf=\"comparator(col)\" class=\"search-result-column-sort\">\n <a (click)=\"sort(col)\" class=\"sort-widget\" [innerHTML]=\"sortWidget(col)\" href=\"javascript:void(0)\"></a>\n </div>\n </div>\n </th>\n <th *ngIf=\"activityEnabled()\" style=\"width: 110px;\" scope=\"col\">&ZeroWidthSpace;</th>\n </tr>\n </thead>\n\n <tbody>\n <!-- sorted by consumer -->\n <ng-container *ngIf=\"consumerSortingEnabled\">\n <tr *ngFor=\"let result of resultView.results | paginate: { itemsPerPage: paginationPageSize, currentPage: selected.page, totalItems: resultTotal }\">\n <td *ngIf=\"selectionEnabled\" class=\"govuk-table__checkbox\" scope=\"col\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"select-{{ result.case_id }}\" name=\"select-{{ result.case_id }}\"\n type=\"checkbox\" (change)=\"changeSelection(result)\" [checked]=\"isSelected(result)\" [disabled]=\"!canBeShared(result)\" />\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"select-{{ result.case_id }}\" [attr.aria-labelledby]=\"'select-' + result.case_id\">\n </label>\n </div>\n </td>\n <td class=\"search-result-column-cell\" *ngFor=\"let col of resultView.columns; let colIndex = index\" scope=\"row\">\n <a *ngIf=\"colIndex == 0\" [routerLink]=\"prepareCaseLinkUrl(result.case_id)\"\n attr.aria-label=\"go to case with Case reference:{{ result.case_id | ccdCaseReference }}\" class=\"govuk-link\">\n <ng-container class=\"text-16\" *ngIf=\"!hideRows\">\n <ccd-field-read *ngIf=\"draftPrefixOrGet(col, result); else case_reference\"\n ccdLabelSubstitutor [caseField]=\"getColumnsWithPrefix(result.columns[col.case_field_id], result)\"\n [contextFields]=\"result.hydrated_case_fields\"\n [elementsToSubstitute]=\"['value']\"></ccd-field-read>\n <ng-template #case_reference>{{result.case_id | ccdCaseReference}}</ng-template>\n </ng-container>\n </a>\n <div *ngIf=\"colIndex != 0\" class=\"text-16\" [style.visibility]=\"hideRows ? 'hidden' : 'visible'\">\n <ccd-field-read ccdLabelSubstitutor\n [caseField]=\"result.columns[col.case_field_id]\"\n [contextFields]=\"result.hydrated_case_fields\"\n [elementsToSubstitute]=\"['value']\"></ccd-field-read>\n </div>\n </td>\n <td *ngIf=\"activityEnabled()\">\n <div [style.visibility]=\"hideRows ? 'hidden' : 'visible'\">\n <ccd-activity [caseId]=\"result.case_id\" [displayMode]=\"ICON\"></ccd-activity>\n </div>\n </td>\n </tr>\n </ng-container>\n <!-- sorted by toolkit -->\n <ng-container *ngIf=\"!consumerSortingEnabled\">\n <tr *ngFor=\"let result of resultView.results | ccdSortSearchResult : sortParameters | paginate: { itemsPerPage: paginationPageSize, currentPage: selected.page, totalItems: resultTotal }\">\n <td *ngIf=\"selectionEnabled\" class=\"govuk-table__checkbox\" scope=\"col\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"select-{{ result.case_id }}\" name=\"select-{{ result.case_id }}\"\n type=\"checkbox\" (change)=\"changeSelection(result)\" [checked]=\"isSelected(result)\" [disabled]=\"!canBeShared(result)\" (keyup)=\"onKeyUp($event, result)\" />\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"select-{{ result.case_id }}\" [attr.aria-labelledby]=\"'select-' + result.case_id\">\n </label>\n </div>\n </td>\n <td class=\"search-result-column-cell\" *ngFor=\"let col of resultView.columns; let colIndex = index\" scope=\"row\">\n\n <a *ngIf=\"colIndex == 0\" [routerLink]=\"prepareCaseLinkUrl(result.case_id)\"\n attr.aria-label=\"go to case with Case reference:{{ result.case_id | ccdCaseReference }}\" class=\"govuk-link\">\n <ng-container class=\"text-16\" *ngIf=\"!hideRows\">\n <ccd-field-read *ngIf=\"draftPrefixOrGet(col, result); else case_reference\"\n ccdLabelSubstitutor [caseField]=\"getColumnsWithPrefix(result.columns[col.case_field_id], result)\"\n [contextFields]=\"result.hydrated_case_fields\"\n [elementsToSubstitute]=\"['value']\"></ccd-field-read>\n <ng-template #case_reference>{{result.case_id | ccdCaseReference}}</ng-template>\n </ng-container>\n </a>\n <div *ngIf=\"colIndex != 0\" class=\"text-16\" [style.visibility]=\"hideRows ? 'hidden' : 'visible'\">\n <ccd-field-read ccdLabelSubstitutor\n [caseField]=\"result.columns[col.case_field_id]\"\n [contextFields]=\"result.hydrated_case_fields\"\n [elementsToSubstitute]=\"['value']\"></ccd-field-read>\n </div>\n </td>\n <td *ngIf=\"activityEnabled()\">\n <div [style.visibility]=\"hideRows ? 'hidden' : 'visible'\">\n <ccd-activity [caseId]=\"result.case_id\" [displayMode]=\"ICON\"></ccd-activity>\n </div>\n </td>\n </tr>\n </ng-container>\n\n </tbody>\n</table>\n\n<ccd-pagination\n *ngIf=\"hasResults()\"\n (pageChange)=\"goToPage($event)\"\n [visibilityLabel]=\"hideRows ? 'hidden' : 'visible'\"\n [autoHide]=\"true\"\n [maxSize]=\"8\"\n [screenReaderPaginationLabel]=\"'Pagination'\"\n [screenReaderPageLabel]=\"page\"\n [screenReaderCurrentLabel]=\"'You\\'re on page'\"></ccd-pagination>\n\n<div *ngIf=\"!(hasResults() || hasDrafts())\" class=\"notification\"\n[attr.aria-describedby]=\"'No cases found. Try using different filters.' | rpxTranslate\">\n{{'No cases found. Try using different filters.' | rpxTranslate}}\n</div>\n", styles: ["table thead tr th{vertical-align:top}table tbody tr td{font-size:16px;word-wrap:break-word}table tbody tr td a{float:left}table .caseid-col{white-space:nowrap}.notification{text-align:center;padding:30px 0;margin-top:75px}a:hover{color:#005ea5}.search-result-reset-link{padding-right:15px;padding-left:15px}.search-result-column-header{width:unset;table-layout:normal}.search-result-column-header div{display:table-cell;width:auto}@media screen and (max-width: 379px){.search-result-column-header div{display:block;float:right}}.search-result-column-label{font-size:16px;font-weight:700;word-wrap:break-word;cursor:pointer;padding-right:15px}.search-result-column-sort{font-size:16px}.sort-widget{cursor:pointer;text-decoration:none;color:#231f20}span.heading-medium{margin-top:-20px}.govuk-table__checkbox{vertical-align:middle;padding-left:3px}#search-result-heading__text:focus{outline:none}\n"] }]
39231
+ args: [{ selector: 'ccd-search-result', template: "<table *ngIf=\"hasResults() || hasDrafts()\">\n <caption>\n <h2 class=\"heading-h2\" id=\"search-result-heading__text\" tabindex=\"-1\">{{ (caseState ? 'Your cases' : 'Search result') | rpxTranslate}}</h2>\n\n <div class=\"govuk-warning-text pagination-limit-warning\" *ngIf=\"paginationLimitEnforced\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">{{'Warning' | rpxTranslate}}</span>\n {{'The total size of the result set is' | rpxTranslate}} {{paginationMetadata.totalResultsCount | number}}. {{'Only the first 10,000 records are available for display.' | rpxTranslate}}\n </strong>\n </div>\n\n <div *ngIf=\"(hasResults() || hasDrafts())\" class=\"pagination-top\">\n <output [attr.aria-label]=\"getTotalResults() + ' ' + ('results have been found' | rpxTranslate)\"></output>\n <span class=\"text-16\" id=\"search-result-summary__text\">{{'Showing' | rpxTranslate}}\n <span class=\"govuk-!-font-weight-bold\">{{ getFirstResult() }}</span>\n {{'to' | rpxTranslate}}\n <span class=\"govuk-!-font-weight-bold\">{{ getLastResult() }}</span>\n {{'of' | rpxTranslate}}\n <span class=\"govuk-!-font-weight-bold\">{{ getTotalResults() }}</span> {{'results' | rpxTranslate}}</span>\n </div>\n <div *ngIf=\"(hasResults() || hasDrafts()) && selectionEnabled\" class=\"reset-selection\"\n [attr.aria-label]=\"'Reset selection' | rpxTranslate\">\n <span><a class=\"search-result-reset-link\" href=\"javascript:void(0)\" (click)=\"clearSelection()\">{{'Reset case selection' | rpxTranslate}}</a></span>\n </div>\n </caption>\n <thead>\n <tr scope=\"row\">\n <td *ngIf=\"selectionEnabled\" class=\"govuk-table__checkbox\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"select-all\" name=\"select-all\" type=\"checkbox\" (change)=\"selectAll()\" [checked]=\"allOnPageSelected()\" [disabled]=\"!canAnyBeShared()\" />\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"select-all\" [attr.aria-labelledby]=\"'select-all'\">\n </label>\n </div>\n </td>\n <th *ngFor=\"let col of resultView.columns\" class=\"search-result-column-header\"\n [attr.aria-sort]=\"isSortAscending(col) === null ? null : (isSortAscending(col) ? 'ascending' : 'descending')\" scope=\"col\">\n <div>\n <div class=\"search-result-column-label\" (click)=\"sort(col)\" (keyup)=\"noop()\">\n {{ isTranslatable(col) ? (col.label | rpxTranslate) : col.label }}\n </div>\n <div *ngIf=\"comparator(col)\" class=\"search-result-column-sort\">\n <a (click)=\"sort(col)\" (keyup.enter)=\"sort(col)\" class=\"sort-widget\" [innerHTML]=\"sortWidget(col)\" [attr.aria-label]=\"'Sort ' + col.label | rpxTranslate\" href=\"javascript:void(0)\"></a>\n </div>\n </div>\n </th>\n <th *ngIf=\"activityEnabled()\" style=\"width: 110px;\" scope=\"col\">&ZeroWidthSpace;</th>\n </tr>\n </thead>\n\n <tbody>\n <!-- sorted by consumer -->\n <ng-container *ngIf=\"consumerSortingEnabled\">\n <tr *ngFor=\"let result of resultView.results | paginate: { itemsPerPage: paginationPageSize, currentPage: selected.page, totalItems: resultTotal }\">\n <td *ngIf=\"selectionEnabled\" class=\"govuk-table__checkbox\" scope=\"col\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"select-{{ result.case_id }}\" name=\"select-{{ result.case_id }}\"\n type=\"checkbox\" (change)=\"changeSelection(result)\" [checked]=\"isSelected(result)\" [disabled]=\"!canBeShared(result)\" />\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"select-{{ result.case_id }}\" [attr.aria-labelledby]=\"'select-' + result.case_id\">\n </label>\n </div>\n </td>\n <td class=\"search-result-column-cell\" *ngFor=\"let col of resultView.columns; let colIndex = index\" scope=\"row\">\n <a *ngIf=\"colIndex == 0\" [routerLink]=\"prepareCaseLinkUrl(result.case_id)\"\n attr.aria-label=\"go to case with Case reference:{{ result.case_id | ccdCaseReference }}\" class=\"govuk-link\">\n <ng-container class=\"text-16\" *ngIf=\"!hideRows\">\n <ccd-field-read *ngIf=\"draftPrefixOrGet(col, result); else case_reference\"\n ccdLabelSubstitutor [caseField]=\"getColumnsWithPrefix(result.columns[col.case_field_id], result)\"\n [contextFields]=\"result.hydrated_case_fields\"\n [elementsToSubstitute]=\"['value']\"></ccd-field-read>\n <ng-template #case_reference>{{result.case_id | ccdCaseReference}}</ng-template>\n </ng-container>\n </a>\n <div *ngIf=\"colIndex != 0\" class=\"text-16\" [style.visibility]=\"hideRows ? 'hidden' : 'visible'\">\n <ccd-field-read ccdLabelSubstitutor\n [caseField]=\"result.columns[col.case_field_id]\"\n [contextFields]=\"result.hydrated_case_fields\"\n [elementsToSubstitute]=\"['value']\"></ccd-field-read>\n </div>\n </td>\n <td *ngIf=\"activityEnabled()\">\n <div [style.visibility]=\"hideRows ? 'hidden' : 'visible'\">\n <ccd-activity [caseId]=\"result.case_id\" [displayMode]=\"ICON\"></ccd-activity>\n </div>\n </td>\n </tr>\n </ng-container>\n <!-- sorted by toolkit -->\n <ng-container *ngIf=\"!consumerSortingEnabled\">\n <tr *ngFor=\"let result of resultView.results | ccdSortSearchResult : sortParameters | paginate: { itemsPerPage: paginationPageSize, currentPage: selected.page, totalItems: resultTotal }\">\n <td *ngIf=\"selectionEnabled\" class=\"govuk-table__checkbox\" scope=\"col\">\n <div class=\"govuk-checkboxes__item\">\n <input class=\"govuk-checkboxes__input\" id=\"select-{{ result.case_id }}\" name=\"select-{{ result.case_id }}\"\n type=\"checkbox\" (change)=\"changeSelection(result)\" [checked]=\"isSelected(result)\" [disabled]=\"!canBeShared(result)\" (keyup)=\"onKeyUp($event, result)\" />\n <label class=\"govuk-label govuk-checkboxes__label\" for=\"select-{{ result.case_id }}\" [attr.aria-labelledby]=\"'select-' + result.case_id\">\n </label>\n </div>\n </td>\n <td class=\"search-result-column-cell\" *ngFor=\"let col of resultView.columns; let colIndex = index\" scope=\"row\">\n\n <a *ngIf=\"colIndex == 0\" [routerLink]=\"prepareCaseLinkUrl(result.case_id)\"\n attr.aria-label=\"go to case with Case reference:{{ result.case_id | ccdCaseReference }}\" class=\"govuk-link\">\n <ng-container class=\"text-16\" *ngIf=\"!hideRows\">\n <ccd-field-read *ngIf=\"draftPrefixOrGet(col, result); else case_reference\"\n ccdLabelSubstitutor [caseField]=\"getColumnsWithPrefix(result.columns[col.case_field_id], result)\"\n [contextFields]=\"result.hydrated_case_fields\"\n [elementsToSubstitute]=\"['value']\"></ccd-field-read>\n <ng-template #case_reference>{{result.case_id | ccdCaseReference}}</ng-template>\n </ng-container>\n </a>\n <div *ngIf=\"colIndex != 0\" class=\"text-16\" [style.visibility]=\"hideRows ? 'hidden' : 'visible'\">\n <ccd-field-read ccdLabelSubstitutor\n [caseField]=\"result.columns[col.case_field_id]\"\n [contextFields]=\"result.hydrated_case_fields\"\n [elementsToSubstitute]=\"['value']\"></ccd-field-read>\n </div>\n </td>\n <td *ngIf=\"activityEnabled()\">\n <div [style.visibility]=\"hideRows ? 'hidden' : 'visible'\">\n <ccd-activity [caseId]=\"result.case_id\" [displayMode]=\"ICON\"></ccd-activity>\n </div>\n </td>\n </tr>\n </ng-container>\n\n </tbody>\n</table>\n\n<ccd-pagination\n *ngIf=\"hasResults()\"\n (pageChange)=\"goToPage($event)\"\n [visibilityLabel]=\"hideRows ? 'hidden' : 'visible'\"\n [autoHide]=\"true\"\n [maxSize]=\"8\"\n [screenReaderPaginationLabel]=\"'Pagination'\"\n [screenReaderPageLabel]=\"page\"\n [screenReaderCurrentLabel]=\"'You\\'re on page'\"></ccd-pagination>\n\n<div *ngIf=\"!(hasResults() || hasDrafts())\" class=\"notification\"\n[attr.aria-describedby]=\"'No cases found. Try using different filters.' | rpxTranslate\">\n{{'No cases found. Try using different filters.' | rpxTranslate}}\n</div>\n", styles: ["table thead tr th{vertical-align:top}table tbody tr td{font-size:16px;word-wrap:break-word}table tbody tr td a{float:left}table .caseid-col{white-space:nowrap}.notification{text-align:center;padding:30px 0;margin-top:75px}a:hover{color:#005ea5}.search-result-reset-link{padding-right:15px;padding-left:15px}.search-result-column-header{width:unset;table-layout:normal}.search-result-column-header div{display:table-cell;width:auto}@media screen and (max-width: 379px){.search-result-column-header div{display:block;float:right}}.search-result-column-label{font-size:16px;font-weight:700;word-wrap:break-word;cursor:pointer;padding-right:15px}.search-result-column-sort{font-size:16px}.sort-widget{cursor:pointer;text-decoration:none;color:#231f20}span.heading-medium{margin-top:-20px}.govuk-table__checkbox{vertical-align:middle;padding-left:3px}#search-result-heading__text:focus{outline:none}\n"] }]
39101
39232
  }], () => [{ type: SearchResultViewItemComparatorFactory }, { type: AbstractAppConfig }, { type: ActivityService }, { type: CaseReferencePipe }, { type: PlaceholderService }, { type: BrowserService }, { type: SessionStorageService }], { caseLinkUrlTemplate: [{
39102
39233
  type: Input
39103
39234
  }], jurisdiction: [{