@hmcts/ccd-case-ui-toolkit 5.0.24-angular11-upgrade → 5.0.24-case-file-view-post-ccd-toolkit-angular11-upgrade

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 (54) hide show
  1. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +162 -21
  2. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
  3. package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
  4. package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
  5. package/esm2015/lib/app.config.js +1 -1
  6. package/esm2015/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.js +35 -18
  7. package/esm2015/lib/shared/components/palette/case-file-view/case-file-view-field.component.js +55 -0
  8. package/esm2015/lib/shared/components/palette/case-file-view/index.js +2 -0
  9. package/esm2015/lib/shared/components/palette/index.js +2 -1
  10. package/esm2015/lib/shared/components/palette/palette.module.js +11 -4
  11. package/esm2015/lib/shared/components/palette/palette.service.js +18 -1
  12. package/esm2015/lib/shared/domain/case-file-view/case-file-view-category.model.js +3 -0
  13. package/esm2015/lib/shared/domain/case-file-view/case-file-view-document.model.js +3 -0
  14. package/esm2015/lib/shared/domain/case-file-view/categories-and-documents.model.js +7 -0
  15. package/esm2015/lib/shared/domain/case-file-view/index.js +4 -0
  16. package/esm2015/lib/shared/domain/definition/field-type-enum.model.js +1 -1
  17. package/esm2015/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.js +2 -2
  18. package/esm2015/lib/shared/services/case-file-view/case-file-view.service.js +47 -0
  19. package/esm2015/lib/shared/services/case-file-view/index.js +2 -0
  20. package/esm2015/lib/shared/services/index.js +2 -1
  21. package/fesm2015/hmcts-ccd-case-ui-toolkit.js +154 -24
  22. package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
  23. package/lib/app.config.d.ts +4 -0
  24. package/lib/app.config.d.ts.map +1 -1
  25. package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts +7 -0
  26. package/lib/shared/components/case-viewer/case-full-access-view/case-full-access-view.component.d.ts.map +1 -1
  27. package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts +10 -0
  28. package/lib/shared/components/palette/case-file-view/case-file-view-field.component.d.ts.map +1 -0
  29. package/lib/shared/components/palette/case-file-view/index.d.ts +2 -0
  30. package/lib/shared/components/palette/case-file-view/index.d.ts.map +1 -0
  31. package/lib/shared/components/palette/index.d.ts +1 -0
  32. package/lib/shared/components/palette/index.d.ts.map +1 -1
  33. package/lib/shared/components/palette/palette.module.d.ts +22 -21
  34. package/lib/shared/components/palette/palette.module.d.ts.map +1 -1
  35. package/lib/shared/components/palette/palette.service.d.ts +2 -0
  36. package/lib/shared/components/palette/palette.service.d.ts.map +1 -1
  37. package/lib/shared/domain/case-file-view/case-file-view-category.model.d.ts +9 -0
  38. package/lib/shared/domain/case-file-view/case-file-view-category.model.d.ts.map +1 -0
  39. package/lib/shared/domain/case-file-view/case-file-view-document.model.d.ts +8 -0
  40. package/lib/shared/domain/case-file-view/case-file-view-document.model.d.ts.map +1 -0
  41. package/lib/shared/domain/case-file-view/categories-and-documents.model.d.ts +12 -0
  42. package/lib/shared/domain/case-file-view/categories-and-documents.model.d.ts.map +1 -0
  43. package/lib/shared/domain/case-file-view/index.d.ts +4 -0
  44. package/lib/shared/domain/case-file-view/index.d.ts.map +1 -0
  45. package/lib/shared/domain/definition/field-type-enum.model.d.ts +1 -1
  46. package/lib/shared/domain/definition/field-type-enum.model.d.ts.map +1 -1
  47. package/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.d.ts.map +1 -1
  48. package/lib/shared/services/case-file-view/case-file-view.service.d.ts +22 -0
  49. package/lib/shared/services/case-file-view/case-file-view.service.d.ts.map +1 -0
  50. package/lib/shared/services/case-file-view/index.d.ts +2 -0
  51. package/lib/shared/services/case-file-view/index.d.ts.map +1 -0
  52. package/lib/shared/services/index.d.ts +1 -0
  53. package/lib/shared/services/index.d.ts.map +1 -1
  54. package/package.json +1 -1
@@ -7,10 +7,10 @@ import { RouterModule, NavigationStart, NavigationEnd } from '@angular/router';
7
7
  import * as i1$3 from '@angular/forms';
8
8
  import { NG_VALUE_ACCESSOR, NG_VALIDATORS, FormArray, FormGroup, FormControl, Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
9
9
  import polling from 'rx-polling';
10
- import { throwError, Subject, EMPTY, Observable, BehaviorSubject, of, timer } from 'rxjs';
10
+ import { throwError, Subject, EMPTY, Observable, BehaviorSubject, fromEvent, of, timer } from 'rxjs';
11
11
  import * as i1$2 from '@angular/common/http';
12
12
  import { HttpErrorResponse, HttpHeaders, HttpParams } from '@angular/common/http';
13
- import { catchError, map, publish, refCount, debounceTime, distinctUntilChanged, finalize, tap, delay, publishReplay, take, filter, switchMap, first } from 'rxjs/operators';
13
+ import { catchError, map, publish, refCount, debounceTime, distinctUntilChanged, finalize, tap, switchMap, takeUntil, delay, publishReplay, take, filter, first } from 'rxjs/operators';
14
14
  import { Type, Expose, plainToClassFromExist, plainToClass } from 'class-transformer';
15
15
  import * as _ from 'underscore';
16
16
  import * as moment from 'moment';
@@ -6656,6 +6656,57 @@ WriteAddressFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteAddressFi
6656
6656
  type: Input
6657
6657
  }] }); })();
6658
6658
 
6659
+ class CaseFileViewFieldComponent {
6660
+ constructor(elementRef) {
6661
+ this.elementRef = elementRef;
6662
+ }
6663
+ ngAfterViewInit() {
6664
+ const slider = this.elementRef.nativeElement.querySelector('.slider');
6665
+ const documentTreeContainer = this.elementRef.nativeElement.querySelector('.document-tree-container');
6666
+ const mousedown$ = fromEvent(slider, 'mousedown');
6667
+ const mousemove$ = fromEvent(document, 'mousemove');
6668
+ const mouseup$ = fromEvent(document, 'mouseup');
6669
+ const drag$ = mousedown$.pipe(switchMap((start) => {
6670
+ const x = start.clientX;
6671
+ const documentTreeContainerWidth = documentTreeContainer.getBoundingClientRect().width;
6672
+ return mousemove$.pipe(map(move => {
6673
+ move.preventDefault();
6674
+ return {
6675
+ dx: move.clientX - x,
6676
+ documentTreeContainerWidth
6677
+ };
6678
+ }), takeUntil(mouseup$));
6679
+ }));
6680
+ drag$.subscribe(pos => {
6681
+ const calculatedWidth = ((pos.documentTreeContainerWidth + pos.dx) * 100) / slider.parentElement.getBoundingClientRect().width;
6682
+ documentTreeContainer.setAttribute('style', `width: ${calculatedWidth}%`);
6683
+ });
6684
+ }
6685
+ }
6686
+ CaseFileViewFieldComponent.ɵfac = function CaseFileViewFieldComponent_Factory(t) { return new (t || CaseFileViewFieldComponent)(i0.ɵɵdirectiveInject(i0.ElementRef)); };
6687
+ CaseFileViewFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFileViewFieldComponent, selectors: [["ccd-case-file-view-field"]], decls: 8, vars: 0, consts: [[1, "govuk-heading-l"], ["id", "case-file-view", 1, "govuk-form-group"], [1, "document-tree-container"], [1, "slider"], [1, "media-viewer-container"]], template: function CaseFileViewFieldComponent_Template(rf, ctx) { if (rf & 1) {
6688
+ i0.ɵɵelementStart(0, "h2", 0);
6689
+ i0.ɵɵtext(1, "Case file");
6690
+ i0.ɵɵelementEnd();
6691
+ i0.ɵɵelementStart(2, "div", 1);
6692
+ i0.ɵɵelementStart(3, "div", 2);
6693
+ i0.ɵɵtext(4, " Document tree ");
6694
+ i0.ɵɵelementEnd();
6695
+ i0.ɵɵelement(5, "div", 3);
6696
+ i0.ɵɵelementStart(6, "div", 4);
6697
+ i0.ɵɵtext(7, " Media viewer ");
6698
+ i0.ɵɵelementEnd();
6699
+ i0.ɵɵelementEnd();
6700
+ } }, styles: ["#case-file-view[_ngcontent-%COMP%]{display:flex}#case-file-view[_ngcontent-%COMP%] .document-tree-container[_ngcontent-%COMP%]{background-color:#add8e6;width:40%;min-height:400px}#case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]{background-color:#ff4500;width:.2%}#case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:focus, #case-file-view[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:hover{cursor:col-resize}#case-file-view[_ngcontent-%COMP%] .media-viewer-container[_ngcontent-%COMP%]{background-color:#90ee90;flex:1 1 0%}"] });
6701
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFieldComponent, [{
6702
+ type: Component,
6703
+ args: [{
6704
+ selector: 'ccd-case-file-view-field',
6705
+ templateUrl: './case-file-view-field.component.html',
6706
+ styleUrls: ['./case-file-view-field.component.scss']
6707
+ }]
6708
+ }], function () { return [{ type: i0.ElementRef }]; }, null); })();
6709
+
6659
6710
  var PaletteContext;
6660
6711
  (function (PaletteContext) {
6661
6712
  PaletteContext["DEFAULT"] = "DEFAULT";
@@ -10557,6 +10608,46 @@ const ɵCaseHistoryViewerFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetIn
10557
10608
  }]
10558
10609
  }], null, null); })();
10559
10610
 
10611
+ class CaseFileViewService {
10612
+ constructor(http, appConfig, errorService) {
10613
+ this.http = http;
10614
+ this.appConfig = appConfig;
10615
+ this.errorService = errorService;
10616
+ }
10617
+ /**
10618
+ * Retrieves the categories and documents for a case.
10619
+ *
10620
+ * @param caseRef 16-digit Case Reference number of the case
10621
+ * @returns An `Observable` of the `CategoriesAndDocuments` for the case
10622
+ */
10623
+ getCategoriesAndDocuments(caseRef) {
10624
+ let url = this.appConfig.getCategoriesAndDocumentsUrl();
10625
+ if (url) {
10626
+ url += `/${caseRef}`;
10627
+ return this.http.get(url, { observe: 'body' });
10628
+ }
10629
+ return of(null);
10630
+ }
10631
+ updateDocumentCategory(caseRef, caseVersion, attributePath, categoryId) {
10632
+ let url = this.appConfig.getDocumentDataUrl();
10633
+ if (url) {
10634
+ url += `/${caseRef}`;
10635
+ const body = {
10636
+ case_version: caseVersion,
10637
+ attribute_path: attributePath,
10638
+ category_id: categoryId
10639
+ };
10640
+ return this.http.put(url, body, { observe: 'body' });
10641
+ }
10642
+ return of(null);
10643
+ }
10644
+ }
10645
+ CaseFileViewService.ɵfac = function CaseFileViewService_Factory(t) { return new (t || CaseFileViewService)(i0.ɵɵinject(HttpService), i0.ɵɵinject(AbstractAppConfig), i0.ɵɵinject(HttpErrorService)); };
10646
+ CaseFileViewService.ɵprov = i0.ɵɵdefineInjectable({ token: CaseFileViewService, factory: CaseFileViewService.ɵfac });
10647
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewService, [{
10648
+ type: Injectable
10649
+ }], function () { return [{ type: HttpService }, { type: AbstractAppConfig }, { type: HttpErrorService }]; }, null); })();
10650
+
10560
10651
  class ErrorNotifierService {
10561
10652
  constructor() {
10562
10653
  this.errorSource = new Subject();
@@ -13298,6 +13389,11 @@ WriteYesNoFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteYesNoFieldC
13298
13389
  }], function () { return [{ type: YesNoService }]; }, null); })();
13299
13390
 
13300
13391
  class PaletteService {
13392
+ constructor() {
13393
+ this.componentLauncherRegistry = {
13394
+ CaseFileView: CaseFileViewFieldComponent
13395
+ };
13396
+ }
13301
13397
  getFieldComponentClass(caseField, write) {
13302
13398
  switch (caseField.field_type.type) {
13303
13399
  case 'Text':
@@ -13356,10 +13452,21 @@ class PaletteService {
13356
13452
  return CaseHistoryViewerFieldComponent;
13357
13453
  case 'WaysToPay':
13358
13454
  return WaysToPayFieldComponent;
13455
+ case 'ComponentLauncher':
13456
+ return this.getComponentLauncherComponent(caseField);
13359
13457
  default:
13360
13458
  return UnsupportedFieldComponent;
13361
13459
  }
13362
13460
  }
13461
+ getComponentLauncherComponent(caseField) {
13462
+ // Extract the value passed for #ARGUMENT(...) in the CaseField display_context_parameter and return the matching
13463
+ // component from the componentLauncherRegistry
13464
+ const argumentValue = caseField.display_context_parameter.match(/#ARGUMENT\((.*?)\)/)[1];
13465
+ if (argumentValue && this.componentLauncherRegistry.hasOwnProperty(argumentValue)) {
13466
+ return this.componentLauncherRegistry[argumentValue];
13467
+ }
13468
+ return UnsupportedFieldComponent;
13469
+ }
13363
13470
  }
13364
13471
  PaletteService.ɵfac = function PaletteService_Factory(t) { return new (t || PaletteService)(); };
13365
13472
  PaletteService.ɵprov = i0.ɵɵdefineInjectable({ token: PaletteService, factory: PaletteService.ɵfac });
@@ -16061,7 +16168,7 @@ ReadFieldsFilterPipe.EMPTY_VALUES = [
16061
16168
  '',
16062
16169
  {}
16063
16170
  ];
16064
- ReadFieldsFilterPipe.ALWAYS_NULL_FIELDS = ['CasePaymentHistoryViewer', 'WaysToPay'];
16171
+ ReadFieldsFilterPipe.ALWAYS_NULL_FIELDS = ['CasePaymentHistoryViewer', 'WaysToPay', 'ComponentLauncher'];
16065
16172
  ReadFieldsFilterPipe.NESTED_TYPES = {
16066
16173
  Complex: ReadFieldsFilterPipe.isValidComplex,
16067
16174
  Collection: ReadFieldsFilterPipe.isValidCollection
@@ -16362,7 +16469,9 @@ const PALETTE_COMPONENTS = [
16362
16469
  WriteFixedListFieldComponent,
16363
16470
  WriteFixedRadioListFieldComponent,
16364
16471
  WriteCaseLinkFieldComponent,
16365
- WriteCollectionFieldComponent
16472
+ WriteCollectionFieldComponent,
16473
+ // ComponentLauncher web components
16474
+ CaseFileViewFieldComponent
16366
16475
  ];
16367
16476
  class PaletteModule {
16368
16477
  }
@@ -16479,7 +16588,9 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
16479
16588
  WriteFixedListFieldComponent,
16480
16589
  WriteFixedRadioListFieldComponent,
16481
16590
  WriteCaseLinkFieldComponent,
16482
- WriteCollectionFieldComponent], imports: [CommonModule,
16591
+ WriteCollectionFieldComponent,
16592
+ // ComponentLauncher web components
16593
+ CaseFileViewFieldComponent], imports: [CommonModule,
16483
16594
  RouterModule,
16484
16595
  FormsModule,
16485
16596
  ReactiveFormsModule,
@@ -16573,7 +16684,9 @@ PaletteModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
16573
16684
  WriteFixedListFieldComponent,
16574
16685
  WriteFixedRadioListFieldComponent,
16575
16686
  WriteCaseLinkFieldComponent,
16576
- WriteCollectionFieldComponent] }); })();
16687
+ WriteCollectionFieldComponent,
16688
+ // ComponentLauncher web components
16689
+ CaseFileViewFieldComponent] }); })();
16577
16690
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaletteModule, [{
16578
16691
  type: NgModule,
16579
16692
  args: [{
@@ -19640,29 +19753,36 @@ function CaseFullAccessViewComponent_ng_container_11_mat_tab_3_Template(rf, ctx)
19640
19753
  const tab_r16 = ctx.$implicit;
19641
19754
  i0.ɵɵproperty("id", tab_r16.id)("label", tab_r16.label);
19642
19755
  } }
19643
- function CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template(rf, ctx) { if (rf & 1) {
19644
- i0.ɵɵelementStart(0, "tr");
19645
- i0.ɵɵelementStart(1, "th");
19646
- i0.ɵɵelementStart(2, "div", 31);
19647
- i0.ɵɵtext(3);
19756
+ function CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_th_1_Template(rf, ctx) { if (rf & 1) {
19757
+ i0.ɵɵelementStart(0, "th", 34);
19758
+ i0.ɵɵelementStart(1, "div", 35);
19759
+ i0.ɵɵtext(2);
19648
19760
  i0.ɵɵelementEnd();
19649
19761
  i0.ɵɵelementEnd();
19650
- i0.ɵɵelementStart(4, "td");
19651
- i0.ɵɵelementStart(5, "span", 32);
19652
- i0.ɵɵelement(6, "ccd-field-read", 33);
19762
+ } if (rf & 2) {
19763
+ const field_r21 = i0.ɵɵnextContext(2).$implicit;
19764
+ i0.ɵɵadvance(2);
19765
+ i0.ɵɵtextInterpolate(field_r21.label);
19766
+ } }
19767
+ function CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template(rf, ctx) { if (rf & 1) {
19768
+ i0.ɵɵelementStart(0, "tr");
19769
+ i0.ɵɵtemplate(1, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_th_1_Template, 3, 1, "th", 31);
19770
+ i0.ɵɵelementStart(2, "td");
19771
+ i0.ɵɵelementStart(3, "span", 32);
19772
+ i0.ɵɵelement(4, "ccd-field-read", 33);
19653
19773
  i0.ɵɵelementEnd();
19654
19774
  i0.ɵɵelementEnd();
19655
19775
  i0.ɵɵelementEnd();
19656
19776
  } if (rf & 2) {
19657
19777
  const field_r21 = i0.ɵɵnextContext().$implicit;
19658
19778
  const ctx_r22 = i0.ɵɵnextContext(4);
19659
- i0.ɵɵadvance(3);
19660
- i0.ɵɵtextInterpolate(field_r21.label);
19779
+ i0.ɵɵadvance(1);
19780
+ i0.ɵɵproperty("ngIf", !ctx_r22.isFieldToHaveNoLabel(field_r21));
19661
19781
  i0.ɵɵadvance(3);
19662
19782
  i0.ɵɵproperty("topLevelFormGroup", ctx_r22.formGroup.controls["data"])("caseField", field_r21)("caseReference", ctx_r22.caseDetails.case_id)("markdownUseHrefAsRouterLink", ctx_r22.markdownUseHrefAsRouterLink);
19663
19783
  } }
19664
19784
  function CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_5_Template(rf, ctx) { if (rf & 1) {
19665
- i0.ɵɵelementStart(0, "tr", 34);
19785
+ i0.ɵɵelementStart(0, "tr", 36);
19666
19786
  i0.ɵɵelementStart(1, "th");
19667
19787
  i0.ɵɵelementStart(2, "span", 32);
19668
19788
  i0.ɵɵelement(3, "ccd-field-read", 33);
@@ -19680,7 +19800,7 @@ function CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_
19680
19800
  i0.ɵɵelementStart(1, "div", 27);
19681
19801
  i0.ɵɵelementContainerStart(2, 28);
19682
19802
  i0.ɵɵpipe(3, "ccdIsCompound");
19683
- i0.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template, 7, 5, "tr", 29);
19803
+ i0.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template, 5, 5, "tr", 29);
19684
19804
  i0.ɵɵtemplate(5, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_5_Template, 4, 4, "tr", 30);
19685
19805
  i0.ɵɵelementContainerEnd();
19686
19806
  i0.ɵɵelementEnd();
@@ -19724,17 +19844,17 @@ function CaseFullAccessViewComponent_ng_container_11_mat_tab_4_Template(rf, ctx)
19724
19844
  function CaseFullAccessViewComponent_ng_container_11_mat_tab_5_Template(rf, ctx) { if (rf & 1) {
19725
19845
  i0.ɵɵelement(0, "mat-tab", 24);
19726
19846
  } if (rf & 2) {
19727
- const tab_r27 = ctx.$implicit;
19728
- i0.ɵɵproperty("id", tab_r27.id)("label", tab_r27.label);
19847
+ const tab_r29 = ctx.$implicit;
19848
+ i0.ɵɵproperty("id", tab_r29.id)("label", tab_r29.label);
19729
19849
  } }
19730
19850
  function CaseFullAccessViewComponent_ng_container_11_router_outlet_6_Template(rf, ctx) { if (rf & 1) {
19731
19851
  i0.ɵɵelement(0, "router-outlet");
19732
19852
  } }
19733
19853
  function CaseFullAccessViewComponent_ng_container_11_Template(rf, ctx) { if (rf & 1) {
19734
- const _r29 = i0.ɵɵgetCurrentView();
19854
+ const _r31 = i0.ɵɵgetCurrentView();
19735
19855
  i0.ɵɵelementContainerStart(0);
19736
19856
  i0.ɵɵelementStart(1, "mat-tab-group", 21, 22);
19737
- i0.ɵɵlistener("selectedTabChange", function CaseFullAccessViewComponent_ng_container_11_Template_mat_tab_group_selectedTabChange_1_listener($event) { i0.ɵɵrestoreView(_r29); const ctx_r28 = i0.ɵɵnextContext(); return ctx_r28.tabChanged($event); });
19857
+ i0.ɵɵlistener("selectedTabChange", function CaseFullAccessViewComponent_ng_container_11_Template_mat_tab_group_selectedTabChange_1_listener($event) { i0.ɵɵrestoreView(_r31); const ctx_r30 = i0.ɵɵnextContext(); return ctx_r30.tabChanged($event); });
19738
19858
  i0.ɵɵtemplate(3, CaseFullAccessViewComponent_ng_container_11_mat_tab_3_Template, 1, 2, "mat-tab", 23);
19739
19859
  i0.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_Template, 2, 2, "mat-tab", 23);
19740
19860
  i0.ɵɵtemplate(5, CaseFullAccessViewComponent_ng_container_11_mat_tab_5_Template, 1, 2, "mat-tab", 23);
@@ -19943,6 +20063,16 @@ class CaseFullAccessViewComponent {
19943
20063
  });
19944
20064
  }
19945
20065
  }
20066
+ /**
20067
+ * Indicates that a CaseField is to be displayed without a label, as is expected for all ComponentLauncher-type
20068
+ * fields.
20069
+ * @param caseField The `CaseField` instance to check
20070
+ * @returns `true` if it should not have a label; `false` otherwise
20071
+ */
20072
+ isFieldToHaveNoLabel(caseField) {
20073
+ return caseField.field_type.type === 'ComponentLauncher'
20074
+ && caseField.display_context_parameter === '#ARGUMENT(CaseFileView)';
20075
+ }
19946
20076
  init() {
19947
20077
  // Clone and sort tabs array
19948
20078
  this.sortedTabs = this.orderService.sort(this.caseDetails.tabs);
@@ -20003,7 +20133,7 @@ CaseFullAccessViewComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFullAcces
20003
20133
  } if (rf & 2) {
20004
20134
  let _t;
20005
20135
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tabGroup = _t.first);
20006
- } }, inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", caseDetails: "caseDetails", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, decls: 12, vars: 11, consts: [["class", "error-summary", "role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject", "callbackErrorsContext"], [3, "caseId", "displayMode"], [1, "grid-row"], [1, "column-one-half"], [3, "caseDetails"], ["class", "case-viewer-controls", 4, "ngIf"], ["class", "column-one-half", 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, "isDisabled", "triggers", "triggerText", "onTriggerChange", "onTriggerSubmit"], ["animationDuration", "0ms", 3, "disableRipple", "selectedTabChange"], ["tabGroup", ""], [3, "id", "label", 4, "ngFor", "ngForOf"], [3, "id", "label"], ["matTabContent", ""], ["aria-describedby", "case viewer table"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "hidden"], [3, "ngSwitch"], [4, "ngSwitchCase"], ["class", "compound-field", 4, "ngSwitchCase"], [1, "case-viewer-label", "text-16"], [1, "text-16"], [3, "topLevelFormGroup", "caseField", "caseReference", "markdownUseHrefAsRouterLink"], [1, "compound-field"]], template: function CaseFullAccessViewComponent_Template(rf, ctx) { if (rf & 1) {
20136
+ } }, inputs: { hasPrint: "hasPrint", hasEventSelector: "hasEventSelector", caseDetails: "caseDetails", prependedTabs: "prependedTabs", appendedTabs: "appendedTabs" }, decls: 12, vars: 11, consts: [["class", "error-summary", "role", "group", "aria-labelledby", "edit-case-event_error-summary-heading", "tabindex", "-1", 4, "ngIf"], [3, "triggerTextContinue", "triggerTextIgnore", "callbackErrorsSubject", "callbackErrorsContext"], [3, "caseId", "displayMode"], [1, "grid-row"], [1, "column-one-half"], [3, "caseDetails"], ["class", "case-viewer-controls", 4, "ngIf"], ["class", "column-one-half", 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, "isDisabled", "triggers", "triggerText", "onTriggerChange", "onTriggerSubmit"], ["animationDuration", "0ms", 3, "disableRipple", "selectedTabChange"], ["tabGroup", ""], [3, "id", "label", 4, "ngFor", "ngForOf"], [3, "id", "label"], ["matTabContent", ""], ["aria-describedby", "case viewer table"], ["ccdLabelSubstitutor", "", 3, "caseField", "contextFields", "hidden"], [3, "ngSwitch"], [4, "ngSwitchCase"], ["class", "compound-field", 4, "ngSwitchCase"], ["id", "case-viewer-field-label", 4, "ngIf"], [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) {
20007
20137
  i0.ɵɵtemplate(0, CaseFullAccessViewComponent_div_0_Template, 10, 0, "div", 0);
20008
20138
  i0.ɵɵtemplate(1, CaseFullAccessViewComponent_div_1_Template, 6, 2, "div", 0);
20009
20139
  i0.ɵɵelementStart(2, "ccd-callback-errors", 1);
@@ -24190,5 +24320,5 @@ class TestRouteSnapshotBuilder {
24190
24320
  * Generated bundle index. Do not edit.
24191
24321
  */
24192
24322
 
24193
- export { AbstractAppConfig, AbstractFieldReadComponent, AbstractFieldWriteComponent, Activity, ActivityBannerComponent, ActivityComponent, ActivityIconComponent, ActivityInfo, ActivityModule, ActivityPollingService, ActivityService, AddressModel, AddressOption, AddressesService, Alert, AlertComponent, AlertIconClassPipe, AlertMessageType, AlertModule, AlertService, AuthService, Banner, BannersService, BodyComponent, BrowserService, CallbackErrorsComponent, CallbackErrorsContext, CaseAccessUtils, CaseBasicAccessViewComponent, CaseChallengedAccessRequestComponent, CaseChallengedAccessSuccessComponent, CaseCreateComponent, CaseDetails, CaseEditComponent, CaseEditConfirmComponent, CaseEditFormComponent, CaseEditPageComponent, CaseEditSubmitComponent, CaseEditWizardGuard, CaseEditorConfig, CaseEditorModule, CaseEvent, CaseEventData, CaseEventTrigger, CaseEventTriggerComponent, CaseField, CaseFieldService, CaseFullAccessViewComponent, CaseHeaderComponent, CaseHeaderModule, CaseHistoryViewerFieldComponent, CaseListComponent, CaseListFiltersComponent, CaseListFiltersModule, CaseListModule, CaseNotifier, CasePaymentHistoryViewerFieldComponent, CasePrintDocument, CasePrinterComponent, CaseProgressComponent, CaseReferencePipe, CaseResolver, CaseSpecificAccessRequestComponent, CaseSpecificAccessSuccessComponent, CaseState, CaseTab, CaseTimelineComponent, CaseTimelineDisplayMode, CaseTimelineModule, CaseType, CaseTypeLite, CaseView, CaseViewComponent, CaseViewEvent, CaseViewTrigger, CaseViewerComponent, CaseViewerModule, CasesService, CaseworkerService, CcdCYAPageLabelFilterPipe, CcdCaseTitlePipe, CcdCollectionTableCaseFieldsFilterPipe, CcdPageFieldsPipe, CcdTabFieldsPipe, ConditionalShowFormDirective, ConditionalShowModule, ConditionalShowRegistrarService, Confirmation, ConvertHrefToRouterService, CreateCaseFiltersComponent, CreateCaseFiltersModule, CreateCaseFiltersSelection, DRAFT_PREFIX, DRAFT_QUERY_PARAM, DashPipe, DateInputComponent, DatePipe, DateTimeFormatUtils, DatetimePickerComponent, DefinitionsModule, DefinitionsService, DeleteOrCancelDialogComponent, DialogsModule, DisplayMode, Document, DocumentData, DocumentDialogComponent, DocumentLinks, DocumentManagementService, DocumentUrlPipe, Draft, DraftService, DynamicListPipe, DynamicRadioListPipe, Embedded, ErrorMessageComponent, ErrorNotifierService, EventCaseField, EventCompletionReturnStates, EventCompletionStateMachineService, EventCompletionStates, EventLogComponent, EventLogDetailsComponent, EventLogTableComponent, EventMessageModule, EventStartComponent, EventStartModule, EventStartStateMachineService, EventStatusService, EventTriggerResolver, EventTriggerService, Fee, FeeValue, Field, FieldLabelPipe, FieldReadComponent, FieldReadLabelComponent, FieldType, FieldTypeSanitiser, FieldWriteComponent, FieldsFilterPipe, FieldsPurger, FieldsUtils, FirstErrorPipe, FixedListItem, FixedListPipe, FixedRadioListPipe, FocusElementDirective, FocusElementModule, FooterComponent, FormDocument, FormErrorService, FormValidatorsService, FormValueService, FormatTranslatorService, GreyBarService, HRef, HasLoadingState, HeaderBarComponent, HeadersModule, HttpError, HttpErrorService, HttpService, IsCompoundPipe, IsMandatoryPipe, IsReadOnlyAndNotCollectionPipe, IsReadOnlyPipe, JudicialworkerService, Jurisdiction, JurisdictionService, LabelFieldComponent, LabelSubstitutorDirective, LabelSubstitutorModule, LoadingModule, LoadingService, LoadingSpinnerComponent, MULTIPLE_TASKS_FOUND, MarkdownComponent, MoneyGbpInputComponent, MultipleTasksExistComponent, NavigationComponent, NavigationItemComponent, NavigationNotifierService, NavigationOrigin, NoTasksAvailableComponent, OrderService, OrderSummary, OrganisationConverter, OrganisationService, PageValidationService, PaginationComponent, PaginationMetadata, PaginationModule, PaletteContext, PaletteModule, PaletteService, PaletteUtilsModule, PaymentField, PhaseComponent, PipesModule, PlaceholderService, PrintUrlPipe, Profile, ProfileNotifier, ProfileService, ReadCaseLinkFieldComponent, ReadCollectionFieldComponent, ReadComplexFieldCollectionTableComponent, ReadComplexFieldComponent, ReadComplexFieldRawComponent, ReadComplexFieldTableComponent, ReadDateFieldComponent, ReadDocumentFieldComponent, ReadDynamicListFieldComponent, ReadDynamicRadioListFieldComponent, ReadEmailFieldComponent, ReadFieldsFilterPipe, ReadFixedListFieldComponent, ReadFixedRadioListFieldComponent, ReadJudicialUserFieldComponent, ReadMoneyGbpFieldComponent, ReadMultiSelectListFieldComponent, ReadNumberFieldComponent, ReadOrderSummaryFieldComponent, ReadOrderSummaryRowComponent, ReadOrganisationFieldComponent, ReadOrganisationFieldRawComponent, ReadOrganisationFieldTableComponent, ReadPhoneUKFieldComponent, ReadTextAreaFieldComponent, ReadTextFieldComponent, ReadYesNoFieldComponent, RemoveDialogComponent, RequestOptionsBuilder, RouterHelperService, SaveOrDiscardDialogComponent, SearchFiltersComponent, SearchFiltersModule, SearchFiltersWrapperComponent, SearchInput, SearchResultComponent, SearchResultModule, SearchResultView, SearchResultViewColumn, SearchResultViewItem, SearchResultViewItemComparatorFactory, SearchService, SessionStorageService, ShowCondition, SortOrder, SortParameters, SortSearchResultPipe, TabComponent, TableColumnConfig, TableConfig, TabsComponent, TabsModule, TaskAssignedComponent, TaskCancelledComponent, TaskConflictComponent, TaskUnassignedComponent, TestRouteSnapshotBuilder, UnsupportedFieldComponent, WaysToPayFieldComponent, WindowService, Wizard, WizardFactoryService, WizardPage, WizardPageField, WorkAllocationService, WorkbasketFiltersComponent, WorkbasketFiltersModule, WorkbasketInput, WorkbasketInputFilterService, WorkbasketInputModel, WriteAddressFieldComponent, WriteCaseLinkFieldComponent, WriteCollectionFieldComponent, WriteComplexFieldComponent, WriteDateContainerFieldComponent, WriteDateFieldComponent, WriteDocumentFieldComponent, WriteDynamicListFieldComponent, WriteDynamicRadioListFieldComponent, WriteEmailFieldComponent, WriteFixedListFieldComponent, WriteFixedRadioListFieldComponent, WriteJudicialUserFieldComponent, WriteMoneyGbpFieldComponent, WriteMultiSelectListFieldComponent, WriteNumberFieldComponent, WriteOrderSummaryFieldComponent, WriteOrganisationComplexFieldComponent, WriteOrganisationFieldComponent, WritePhoneUKFieldComponent, WriteTextAreaFieldComponent, WriteTextFieldComponent, WriteYesNoFieldComponent, YesNoService, aCaseField, createACL, createCaseEventTrigger, createCaseField, createComplexFieldOverride, createFieldType, createFixedListFieldType, createHiddenComplexFieldOverride, createMultiSelectListFieldType, createWizardPage, createWizardPageField, editorRouting, initDialog, newCaseField, textFieldType, viewerRouting };
24323
+ export { AbstractAppConfig, AbstractFieldReadComponent, AbstractFieldWriteComponent, Activity, ActivityBannerComponent, ActivityComponent, ActivityIconComponent, ActivityInfo, ActivityModule, ActivityPollingService, ActivityService, AddressModel, AddressOption, AddressesService, Alert, AlertComponent, AlertIconClassPipe, AlertMessageType, AlertModule, AlertService, AuthService, Banner, BannersService, BodyComponent, BrowserService, CallbackErrorsComponent, CallbackErrorsContext, CaseAccessUtils, CaseBasicAccessViewComponent, CaseChallengedAccessRequestComponent, CaseChallengedAccessSuccessComponent, CaseCreateComponent, CaseDetails, CaseEditComponent, CaseEditConfirmComponent, CaseEditFormComponent, CaseEditPageComponent, CaseEditSubmitComponent, CaseEditWizardGuard, CaseEditorConfig, CaseEditorModule, CaseEvent, CaseEventData, CaseEventTrigger, CaseEventTriggerComponent, CaseField, CaseFieldService, CaseFileViewFieldComponent, CaseFileViewService, CaseFullAccessViewComponent, CaseHeaderComponent, CaseHeaderModule, CaseHistoryViewerFieldComponent, CaseListComponent, CaseListFiltersComponent, CaseListFiltersModule, CaseListModule, CaseNotifier, CasePaymentHistoryViewerFieldComponent, CasePrintDocument, CasePrinterComponent, CaseProgressComponent, CaseReferencePipe, CaseResolver, CaseSpecificAccessRequestComponent, CaseSpecificAccessSuccessComponent, CaseState, CaseTab, CaseTimelineComponent, CaseTimelineDisplayMode, CaseTimelineModule, CaseType, CaseTypeLite, CaseView, CaseViewComponent, CaseViewEvent, CaseViewTrigger, CaseViewerComponent, CaseViewerModule, CasesService, CaseworkerService, CcdCYAPageLabelFilterPipe, CcdCaseTitlePipe, CcdCollectionTableCaseFieldsFilterPipe, CcdPageFieldsPipe, CcdTabFieldsPipe, ConditionalShowFormDirective, ConditionalShowModule, ConditionalShowRegistrarService, Confirmation, ConvertHrefToRouterService, CreateCaseFiltersComponent, CreateCaseFiltersModule, CreateCaseFiltersSelection, DRAFT_PREFIX, DRAFT_QUERY_PARAM, DashPipe, DateInputComponent, DatePipe, DateTimeFormatUtils, DatetimePickerComponent, DefinitionsModule, DefinitionsService, DeleteOrCancelDialogComponent, DialogsModule, DisplayMode, Document, DocumentData, DocumentDialogComponent, DocumentLinks, DocumentManagementService, DocumentUrlPipe, Draft, DraftService, DynamicListPipe, DynamicRadioListPipe, Embedded, ErrorMessageComponent, ErrorNotifierService, EventCaseField, EventCompletionReturnStates, EventCompletionStateMachineService, EventCompletionStates, EventLogComponent, EventLogDetailsComponent, EventLogTableComponent, EventMessageModule, EventStartComponent, EventStartModule, EventStartStateMachineService, EventStatusService, EventTriggerResolver, EventTriggerService, Fee, FeeValue, Field, FieldLabelPipe, FieldReadComponent, FieldReadLabelComponent, FieldType, FieldTypeSanitiser, FieldWriteComponent, FieldsFilterPipe, FieldsPurger, FieldsUtils, FirstErrorPipe, FixedListItem, FixedListPipe, FixedRadioListPipe, FocusElementDirective, FocusElementModule, FooterComponent, FormDocument, FormErrorService, FormValidatorsService, FormValueService, FormatTranslatorService, GreyBarService, HRef, HasLoadingState, HeaderBarComponent, HeadersModule, HttpError, HttpErrorService, HttpService, IsCompoundPipe, IsMandatoryPipe, IsReadOnlyAndNotCollectionPipe, IsReadOnlyPipe, JudicialworkerService, Jurisdiction, JurisdictionService, LabelFieldComponent, LabelSubstitutorDirective, LabelSubstitutorModule, LoadingModule, LoadingService, LoadingSpinnerComponent, MULTIPLE_TASKS_FOUND, MarkdownComponent, MoneyGbpInputComponent, MultipleTasksExistComponent, NavigationComponent, NavigationItemComponent, NavigationNotifierService, NavigationOrigin, NoTasksAvailableComponent, OrderService, OrderSummary, OrganisationConverter, OrganisationService, PageValidationService, PaginationComponent, PaginationMetadata, PaginationModule, PaletteContext, PaletteModule, PaletteService, PaletteUtilsModule, PaymentField, PhaseComponent, PipesModule, PlaceholderService, PrintUrlPipe, Profile, ProfileNotifier, ProfileService, ReadCaseLinkFieldComponent, ReadCollectionFieldComponent, ReadComplexFieldCollectionTableComponent, ReadComplexFieldComponent, ReadComplexFieldRawComponent, ReadComplexFieldTableComponent, ReadDateFieldComponent, ReadDocumentFieldComponent, ReadDynamicListFieldComponent, ReadDynamicRadioListFieldComponent, ReadEmailFieldComponent, ReadFieldsFilterPipe, ReadFixedListFieldComponent, ReadFixedRadioListFieldComponent, ReadJudicialUserFieldComponent, ReadMoneyGbpFieldComponent, ReadMultiSelectListFieldComponent, ReadNumberFieldComponent, ReadOrderSummaryFieldComponent, ReadOrderSummaryRowComponent, ReadOrganisationFieldComponent, ReadOrganisationFieldRawComponent, ReadOrganisationFieldTableComponent, ReadPhoneUKFieldComponent, ReadTextAreaFieldComponent, ReadTextFieldComponent, ReadYesNoFieldComponent, RemoveDialogComponent, RequestOptionsBuilder, RouterHelperService, SaveOrDiscardDialogComponent, SearchFiltersComponent, SearchFiltersModule, SearchFiltersWrapperComponent, SearchInput, SearchResultComponent, SearchResultModule, SearchResultView, SearchResultViewColumn, SearchResultViewItem, SearchResultViewItemComparatorFactory, SearchService, SessionStorageService, ShowCondition, SortOrder, SortParameters, SortSearchResultPipe, TabComponent, TableColumnConfig, TableConfig, TabsComponent, TabsModule, TaskAssignedComponent, TaskCancelledComponent, TaskConflictComponent, TaskUnassignedComponent, TestRouteSnapshotBuilder, UnsupportedFieldComponent, WaysToPayFieldComponent, WindowService, Wizard, WizardFactoryService, WizardPage, WizardPageField, WorkAllocationService, WorkbasketFiltersComponent, WorkbasketFiltersModule, WorkbasketInput, WorkbasketInputFilterService, WorkbasketInputModel, WriteAddressFieldComponent, WriteCaseLinkFieldComponent, WriteCollectionFieldComponent, WriteComplexFieldComponent, WriteDateContainerFieldComponent, WriteDateFieldComponent, WriteDocumentFieldComponent, WriteDynamicListFieldComponent, WriteDynamicRadioListFieldComponent, WriteEmailFieldComponent, WriteFixedListFieldComponent, WriteFixedRadioListFieldComponent, WriteJudicialUserFieldComponent, WriteMoneyGbpFieldComponent, WriteMultiSelectListFieldComponent, WriteNumberFieldComponent, WriteOrderSummaryFieldComponent, WriteOrganisationComplexFieldComponent, WriteOrganisationFieldComponent, WritePhoneUKFieldComponent, WriteTextAreaFieldComponent, WriteTextFieldComponent, WriteYesNoFieldComponent, YesNoService, aCaseField, createACL, createCaseEventTrigger, createCaseField, createComplexFieldOverride, createFieldType, createFixedListFieldType, createHiddenComplexFieldOverride, createMultiSelectListFieldType, createWizardPage, createWizardPageField, editorRouting, initDialog, newCaseField, textFieldType, viewerRouting };
24194
24324
  //# sourceMappingURL=hmcts-ccd-case-ui-toolkit.js.map