@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
@@ -7784,6 +7784,62 @@
7784
7784
  }] });
7785
7785
  })();
7786
7786
 
7787
+ var CaseFileViewFieldComponent = /** @class */ (function () {
7788
+ function CaseFileViewFieldComponent(elementRef) {
7789
+ this.elementRef = elementRef;
7790
+ }
7791
+ CaseFileViewFieldComponent.prototype.ngAfterViewInit = function () {
7792
+ var slider = this.elementRef.nativeElement.querySelector('.slider');
7793
+ var documentTreeContainer = this.elementRef.nativeElement.querySelector('.document-tree-container');
7794
+ var mousedown$ = rxjs.fromEvent(slider, 'mousedown');
7795
+ var mousemove$ = rxjs.fromEvent(document, 'mousemove');
7796
+ var mouseup$ = rxjs.fromEvent(document, 'mouseup');
7797
+ var drag$ = mousedown$.pipe(operators.switchMap(function (start) {
7798
+ var x = start.clientX;
7799
+ var documentTreeContainerWidth = documentTreeContainer.getBoundingClientRect().width;
7800
+ return mousemove$.pipe(operators.map(function (move) {
7801
+ move.preventDefault();
7802
+ return {
7803
+ dx: move.clientX - x,
7804
+ documentTreeContainerWidth: documentTreeContainerWidth
7805
+ };
7806
+ }), operators.takeUntil(mouseup$));
7807
+ }));
7808
+ drag$.subscribe(function (pos) {
7809
+ var calculatedWidth = ((pos.documentTreeContainerWidth + pos.dx) * 100) / slider.parentElement.getBoundingClientRect().width;
7810
+ documentTreeContainer.setAttribute('style', "width: " + calculatedWidth + "%");
7811
+ });
7812
+ };
7813
+ return CaseFileViewFieldComponent;
7814
+ }());
7815
+ CaseFileViewFieldComponent.ɵfac = function CaseFileViewFieldComponent_Factory(t) { return new (t || CaseFileViewFieldComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef)); };
7816
+ CaseFileViewFieldComponent.ɵcmp = i0__namespace.ɵɵ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) {
7817
+ if (rf & 1) {
7818
+ i0__namespace.ɵɵelementStart(0, "h2", 0);
7819
+ i0__namespace.ɵɵtext(1, "Case file");
7820
+ i0__namespace.ɵɵelementEnd();
7821
+ i0__namespace.ɵɵelementStart(2, "div", 1);
7822
+ i0__namespace.ɵɵelementStart(3, "div", 2);
7823
+ i0__namespace.ɵɵtext(4, " Document tree ");
7824
+ i0__namespace.ɵɵelementEnd();
7825
+ i0__namespace.ɵɵelement(5, "div", 3);
7826
+ i0__namespace.ɵɵelementStart(6, "div", 4);
7827
+ i0__namespace.ɵɵtext(7, " Media viewer ");
7828
+ i0__namespace.ɵɵelementEnd();
7829
+ i0__namespace.ɵɵelementEnd();
7830
+ }
7831
+ }, 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%}"] });
7832
+ (function () {
7833
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewFieldComponent, [{
7834
+ type: i0.Component,
7835
+ args: [{
7836
+ selector: 'ccd-case-file-view-field',
7837
+ templateUrl: './case-file-view-field.component.html',
7838
+ styleUrls: ['./case-file-view-field.component.scss']
7839
+ }]
7840
+ }], function () { return [{ type: i0__namespace.ElementRef }]; }, null);
7841
+ })();
7842
+
7787
7843
  function ReadCaseLinkFieldComponent_a_0_Template(rf, ctx) {
7788
7844
  if (rf & 1) {
7789
7845
  i0__namespace.ɵɵelementStart(0, "a", 1);
@@ -12651,6 +12707,49 @@
12651
12707
  return PaymentField;
12652
12708
  }(AbstractFieldReadComponent));
12653
12709
 
12710
+ var CaseFileViewService = /** @class */ (function () {
12711
+ function CaseFileViewService(http, appConfig, errorService) {
12712
+ this.http = http;
12713
+ this.appConfig = appConfig;
12714
+ this.errorService = errorService;
12715
+ }
12716
+ /**
12717
+ * Retrieves the categories and documents for a case.
12718
+ *
12719
+ * @param caseRef 16-digit Case Reference number of the case
12720
+ * @returns An `Observable` of the `CategoriesAndDocuments` for the case
12721
+ */
12722
+ CaseFileViewService.prototype.getCategoriesAndDocuments = function (caseRef) {
12723
+ var url = this.appConfig.getCategoriesAndDocumentsUrl();
12724
+ if (url) {
12725
+ url += "/" + caseRef;
12726
+ return this.http.get(url, { observe: 'body' });
12727
+ }
12728
+ return rxjs.of(null);
12729
+ };
12730
+ CaseFileViewService.prototype.updateDocumentCategory = function (caseRef, caseVersion, attributePath, categoryId) {
12731
+ var url = this.appConfig.getDocumentDataUrl();
12732
+ if (url) {
12733
+ url += "/" + caseRef;
12734
+ var body = {
12735
+ case_version: caseVersion,
12736
+ attribute_path: attributePath,
12737
+ category_id: categoryId
12738
+ };
12739
+ return this.http.put(url, body, { observe: 'body' });
12740
+ }
12741
+ return rxjs.of(null);
12742
+ };
12743
+ return CaseFileViewService;
12744
+ }());
12745
+ CaseFileViewService.ɵfac = function CaseFileViewService_Factory(t) { return new (t || CaseFileViewService)(i0__namespace.ɵɵinject(HttpService), i0__namespace.ɵɵinject(AbstractAppConfig), i0__namespace.ɵɵinject(HttpErrorService)); };
12746
+ CaseFileViewService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: CaseFileViewService, factory: CaseFileViewService.ɵfac });
12747
+ (function () {
12748
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewService, [{
12749
+ type: i0.Injectable
12750
+ }], function () { return [{ type: HttpService }, { type: AbstractAppConfig }, { type: HttpErrorService }]; }, null);
12751
+ })();
12752
+
12654
12753
  var ErrorNotifierService = /** @class */ (function () {
12655
12754
  function ErrorNotifierService() {
12656
12755
  this.errorSource = new rxjs.Subject();
@@ -15706,6 +15805,9 @@
15706
15805
 
15707
15806
  var PaletteService = /** @class */ (function () {
15708
15807
  function PaletteService() {
15808
+ this.componentLauncherRegistry = {
15809
+ CaseFileView: CaseFileViewFieldComponent
15810
+ };
15709
15811
  }
15710
15812
  PaletteService.prototype.getFieldComponentClass = function (caseField, write) {
15711
15813
  switch (caseField.field_type.type) {
@@ -15765,10 +15867,21 @@
15765
15867
  return CaseHistoryViewerFieldComponent;
15766
15868
  case 'WaysToPay':
15767
15869
  return WaysToPayFieldComponent;
15870
+ case 'ComponentLauncher':
15871
+ return this.getComponentLauncherComponent(caseField);
15768
15872
  default:
15769
15873
  return UnsupportedFieldComponent;
15770
15874
  }
15771
15875
  };
15876
+ PaletteService.prototype.getComponentLauncherComponent = function (caseField) {
15877
+ // Extract the value passed for #ARGUMENT(...) in the CaseField display_context_parameter and return the matching
15878
+ // component from the componentLauncherRegistry
15879
+ var argumentValue = caseField.display_context_parameter.match(/#ARGUMENT\((.*?)\)/)[1];
15880
+ if (argumentValue && this.componentLauncherRegistry.hasOwnProperty(argumentValue)) {
15881
+ return this.componentLauncherRegistry[argumentValue];
15882
+ }
15883
+ return UnsupportedFieldComponent;
15884
+ };
15772
15885
  return PaletteService;
15773
15886
  }());
15774
15887
  PaletteService.ɵfac = function PaletteService_Factory(t) { return new (t || PaletteService)(); };
@@ -18820,7 +18933,7 @@
18820
18933
  '',
18821
18934
  {}
18822
18935
  ];
18823
- ReadFieldsFilterPipe.ALWAYS_NULL_FIELDS = ['CasePaymentHistoryViewer', 'WaysToPay'];
18936
+ ReadFieldsFilterPipe.ALWAYS_NULL_FIELDS = ['CasePaymentHistoryViewer', 'WaysToPay', 'ComponentLauncher'];
18824
18937
  ReadFieldsFilterPipe.NESTED_TYPES = {
18825
18938
  Complex: ReadFieldsFilterPipe.isValidComplex,
18826
18939
  Collection: ReadFieldsFilterPipe.isValidCollection
@@ -19167,7 +19280,9 @@
19167
19280
  WriteFixedListFieldComponent,
19168
19281
  WriteFixedRadioListFieldComponent,
19169
19282
  WriteCaseLinkFieldComponent,
19170
- WriteCollectionFieldComponent
19283
+ WriteCollectionFieldComponent,
19284
+ // ComponentLauncher web components
19285
+ CaseFileViewFieldComponent
19171
19286
  ];
19172
19287
  var PaletteModule = /** @class */ (function () {
19173
19288
  function PaletteModule() {
@@ -19288,7 +19403,9 @@
19288
19403
  WriteFixedListFieldComponent,
19289
19404
  WriteFixedRadioListFieldComponent,
19290
19405
  WriteCaseLinkFieldComponent,
19291
- WriteCollectionFieldComponent], imports: [i1.CommonModule,
19406
+ WriteCollectionFieldComponent,
19407
+ // ComponentLauncher web components
19408
+ CaseFileViewFieldComponent], imports: [i1.CommonModule,
19292
19409
  i1$1.RouterModule,
19293
19410
  i1$2.FormsModule,
19294
19411
  i1$2.ReactiveFormsModule,
@@ -19382,7 +19499,9 @@
19382
19499
  WriteFixedListFieldComponent,
19383
19500
  WriteFixedRadioListFieldComponent,
19384
19501
  WriteCaseLinkFieldComponent,
19385
- WriteCollectionFieldComponent] });
19502
+ WriteCollectionFieldComponent,
19503
+ // ComponentLauncher web components
19504
+ CaseFileViewFieldComponent] });
19386
19505
  })();
19387
19506
  (function () {
19388
19507
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PaletteModule, [{
@@ -22843,17 +22962,27 @@
22843
22962
  i0__namespace.ɵɵproperty("id", tab_r16.id)("label", tab_r16.label);
22844
22963
  }
22845
22964
  }
22846
- function CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template(rf, ctx) {
22965
+ function CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_th_1_Template(rf, ctx) {
22847
22966
  if (rf & 1) {
22848
- i0__namespace.ɵɵelementStart(0, "tr");
22849
- i0__namespace.ɵɵelementStart(1, "th");
22850
- i0__namespace.ɵɵelementStart(2, "div", 31);
22851
- i0__namespace.ɵɵtext(3);
22967
+ i0__namespace.ɵɵelementStart(0, "th", 34);
22968
+ i0__namespace.ɵɵelementStart(1, "div", 35);
22969
+ i0__namespace.ɵɵtext(2);
22852
22970
  i0__namespace.ɵɵelementEnd();
22853
22971
  i0__namespace.ɵɵelementEnd();
22854
- i0__namespace.ɵɵelementStart(4, "td");
22855
- i0__namespace.ɵɵelementStart(5, "span", 32);
22856
- i0__namespace.ɵɵelement(6, "ccd-field-read", 33);
22972
+ }
22973
+ if (rf & 2) {
22974
+ var field_r21 = i0__namespace.ɵɵnextContext(2).$implicit;
22975
+ i0__namespace.ɵɵadvance(2);
22976
+ i0__namespace.ɵɵtextInterpolate(field_r21.label);
22977
+ }
22978
+ }
22979
+ function CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template(rf, ctx) {
22980
+ if (rf & 1) {
22981
+ i0__namespace.ɵɵelementStart(0, "tr");
22982
+ i0__namespace.ɵɵtemplate(1, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_th_1_Template, 3, 1, "th", 31);
22983
+ i0__namespace.ɵɵelementStart(2, "td");
22984
+ i0__namespace.ɵɵelementStart(3, "span", 32);
22985
+ i0__namespace.ɵɵelement(4, "ccd-field-read", 33);
22857
22986
  i0__namespace.ɵɵelementEnd();
22858
22987
  i0__namespace.ɵɵelementEnd();
22859
22988
  i0__namespace.ɵɵelementEnd();
@@ -22861,15 +22990,15 @@
22861
22990
  if (rf & 2) {
22862
22991
  var field_r21 = i0__namespace.ɵɵnextContext().$implicit;
22863
22992
  var ctx_r22 = i0__namespace.ɵɵnextContext(4);
22864
- i0__namespace.ɵɵadvance(3);
22865
- i0__namespace.ɵɵtextInterpolate(field_r21.label);
22993
+ i0__namespace.ɵɵadvance(1);
22994
+ i0__namespace.ɵɵproperty("ngIf", !ctx_r22.isFieldToHaveNoLabel(field_r21));
22866
22995
  i0__namespace.ɵɵadvance(3);
22867
22996
  i0__namespace.ɵɵproperty("topLevelFormGroup", ctx_r22.formGroup.controls["data"])("caseField", field_r21)("caseReference", ctx_r22.caseDetails.case_id)("markdownUseHrefAsRouterLink", ctx_r22.markdownUseHrefAsRouterLink);
22868
22997
  }
22869
22998
  }
22870
22999
  function CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_5_Template(rf, ctx) {
22871
23000
  if (rf & 1) {
22872
- i0__namespace.ɵɵelementStart(0, "tr", 34);
23001
+ i0__namespace.ɵɵelementStart(0, "tr", 36);
22873
23002
  i0__namespace.ɵɵelementStart(1, "th");
22874
23003
  i0__namespace.ɵɵelementStart(2, "span", 32);
22875
23004
  i0__namespace.ɵɵelement(3, "ccd-field-read", 33);
@@ -22890,7 +23019,7 @@
22890
23019
  i0__namespace.ɵɵelementStart(1, "div", 27);
22891
23020
  i0__namespace.ɵɵelementContainerStart(2, 28);
22892
23021
  i0__namespace.ɵɵpipe(3, "ccdIsCompound");
22893
- i0__namespace.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template, 7, 5, "tr", 29);
23022
+ i0__namespace.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_4_Template, 5, 5, "tr", 29);
22894
23023
  i0__namespace.ɵɵtemplate(5, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_ng_template_1_ng_container_2_tr_5_Template, 4, 4, "tr", 30);
22895
23024
  i0__namespace.ɵɵelementContainerEnd();
22896
23025
  i0__namespace.ɵɵelementEnd();
@@ -22944,8 +23073,8 @@
22944
23073
  i0__namespace.ɵɵelement(0, "mat-tab", 24);
22945
23074
  }
22946
23075
  if (rf & 2) {
22947
- var tab_r27 = ctx.$implicit;
22948
- i0__namespace.ɵɵproperty("id", tab_r27.id)("label", tab_r27.label);
23076
+ var tab_r29 = ctx.$implicit;
23077
+ i0__namespace.ɵɵproperty("id", tab_r29.id)("label", tab_r29.label);
22949
23078
  }
22950
23079
  }
22951
23080
  function CaseFullAccessViewComponent_ng_container_11_router_outlet_6_Template(rf, ctx) {
@@ -22955,10 +23084,10 @@
22955
23084
  }
22956
23085
  function CaseFullAccessViewComponent_ng_container_11_Template(rf, ctx) {
22957
23086
  if (rf & 1) {
22958
- var _r29_1 = i0__namespace.ɵɵgetCurrentView();
23087
+ var _r31_1 = i0__namespace.ɵɵgetCurrentView();
22959
23088
  i0__namespace.ɵɵelementContainerStart(0);
22960
23089
  i0__namespace.ɵɵelementStart(1, "mat-tab-group", 21, 22);
22961
- i0__namespace.ɵɵlistener("selectedTabChange", function CaseFullAccessViewComponent_ng_container_11_Template_mat_tab_group_selectedTabChange_1_listener($event) { i0__namespace.ɵɵrestoreView(_r29_1); var ctx_r28 = i0__namespace.ɵɵnextContext(); return ctx_r28.tabChanged($event); });
23090
+ i0__namespace.ɵɵlistener("selectedTabChange", function CaseFullAccessViewComponent_ng_container_11_Template_mat_tab_group_selectedTabChange_1_listener($event) { i0__namespace.ɵɵrestoreView(_r31_1); var ctx_r30 = i0__namespace.ɵɵnextContext(); return ctx_r30.tabChanged($event); });
22962
23091
  i0__namespace.ɵɵtemplate(3, CaseFullAccessViewComponent_ng_container_11_mat_tab_3_Template, 1, 2, "mat-tab", 23);
22963
23092
  i0__namespace.ɵɵtemplate(4, CaseFullAccessViewComponent_ng_container_11_mat_tab_4_Template, 2, 2, "mat-tab", 23);
22964
23093
  i0__namespace.ɵɵtemplate(5, CaseFullAccessViewComponent_ng_container_11_mat_tab_5_Template, 1, 2, "mat-tab", 23);
@@ -23172,6 +23301,16 @@
23172
23301
  });
23173
23302
  }
23174
23303
  };
23304
+ /**
23305
+ * Indicates that a CaseField is to be displayed without a label, as is expected for all ComponentLauncher-type
23306
+ * fields.
23307
+ * @param caseField The `CaseField` instance to check
23308
+ * @returns `true` if it should not have a label; `false` otherwise
23309
+ */
23310
+ CaseFullAccessViewComponent.prototype.isFieldToHaveNoLabel = function (caseField) {
23311
+ return caseField.field_type.type === 'ComponentLauncher'
23312
+ && caseField.display_context_parameter === '#ARGUMENT(CaseFileView)';
23313
+ };
23175
23314
  CaseFullAccessViewComponent.prototype.init = function () {
23176
23315
  var _this = this;
23177
23316
  // Clone and sort tabs array
@@ -23239,7 +23378,7 @@
23239
23378
  var _t = void 0;
23240
23379
  i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.tabGroup = _t.first);
23241
23380
  }
23242
- }, 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) {
23381
+ }, 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) {
23243
23382
  if (rf & 1) {
23244
23383
  i0__namespace.ɵɵtemplate(0, CaseFullAccessViewComponent_div_0_Template, 10, 0, "div", 0);
23245
23384
  i0__namespace.ɵɵtemplate(1, CaseFullAccessViewComponent_div_1_Template, 6, 2, "div", 0);
@@ -27891,6 +28030,8 @@
27891
28030
  exports.CaseEventTriggerComponent = CaseEventTriggerComponent;
27892
28031
  exports.CaseField = CaseField;
27893
28032
  exports.CaseFieldService = CaseFieldService;
28033
+ exports.CaseFileViewFieldComponent = CaseFileViewFieldComponent;
28034
+ exports.CaseFileViewService = CaseFileViewService;
27894
28035
  exports.CaseFullAccessViewComponent = CaseFullAccessViewComponent;
27895
28036
  exports.CaseHeaderComponent = CaseHeaderComponent;
27896
28037
  exports.CaseHeaderModule = CaseHeaderModule;