@hmcts/ccd-case-ui-toolkit 6.16.2-ccpay-upgrade → 6.18.2

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.
@@ -22,13 +22,15 @@ import * as i1$3 from '@angular/material/dialog';
22
22
  import { MatDialogConfig, MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
23
23
  import * as i2$1 from '@nicky-lenaers/ngx-scroll-to';
24
24
  import { ScrollToModule } from '@nicky-lenaers/ngx-scroll-to';
25
+ import * as i1$4 from 'ngx-md';
26
+ import { NgxMdModule } from 'ngx-md';
25
27
  import * as i4 from '@angular/material/autocomplete';
26
28
  import { MatAutocompleteModule } from '@angular/material/autocomplete';
27
29
  import * as i5 from '@angular/material/core';
28
30
  import { MAT_DATE_LOCALE } from '@angular/material/core';
29
31
  import * as i3 from '@hmcts/ccpay-web-component';
30
32
  import { PaymentLibModule } from '@hmcts/ccpay-web-component';
31
- import * as i1$4 from '@angular/cdk/overlay';
33
+ import * as i1$5 from '@angular/cdk/overlay';
32
34
  import { OverlayModule } from '@angular/cdk/overlay';
33
35
  import * as i7 from '@angular/cdk/tree';
34
36
  import { NestedTreeControl, CdkTreeModule } from '@angular/cdk/tree';
@@ -41,8 +43,6 @@ import * as i5$1 from '@angular/material/datepicker';
41
43
  import { MatDatepickerModule } from '@angular/material/datepicker';
42
44
  import * as i6 from '@angular/material/form-field';
43
45
  import { MatFormFieldModule } from '@angular/material/form-field';
44
- import * as i1$5 from 'ngx-md';
45
- import { NgxMdModule } from 'ngx-md';
46
46
  import * as i11 from '@hmcts/media-viewer';
47
47
  import { MediaViewerModule } from '@hmcts/media-viewer';
48
48
  import * as i6$1 from '@angular/cdk/portal';
@@ -9227,7 +9227,7 @@ class CaseEditPageComponent {
9227
9227
  this.wizard = this.caseEdit.wizard;
9228
9228
  this.caseFields = this.getCaseFields();
9229
9229
  this.syncCaseEditDataService();
9230
- this.route.params
9230
+ this.routeParamsSub = this.route.params
9231
9231
  .subscribe(params => {
9232
9232
  var _a, _b;
9233
9233
  const pageId = params['page'];
@@ -9247,15 +9247,17 @@ class CaseEditPageComponent {
9247
9247
  }
9248
9248
  this.hasPreviousPage$.next(this.caseEdit.hasPrevious((_b = this.currentPage) === null || _b === void 0 ? void 0 : _b.id));
9249
9249
  }
9250
+ this.triggerText = this.getTriggerText();
9250
9251
  });
9251
9252
  CaseEditPageComponent.setFocusToTop();
9252
- this.caseEditDataService.caseEditForm$.subscribe({
9253
+ this.caseEditFormSub = this.caseEditDataService.caseEditForm$.subscribe({
9253
9254
  next: editForm => this.editForm = editForm
9254
9255
  });
9255
- this.caseEditDataService.caseIsLinkedCasesJourneyAtFinalStep$.subscribe({
9256
- next: isLinkedCasesJourneyAtFinalStep => this.isLinkedCasesJourneyAtFinalStep = isLinkedCasesJourneyAtFinalStep
9257
- });
9258
- this.caseEditDataService.caseTriggerSubmitEvent$.subscribe({
9256
+ this.caseIsLinkedCasesJourneyAtFinalStepSub =
9257
+ this.caseEditDataService.caseIsLinkedCasesJourneyAtFinalStep$.subscribe({
9258
+ next: isLinkedCasesJourneyAtFinalStep => this.isLinkedCasesJourneyAtFinalStep = isLinkedCasesJourneyAtFinalStep
9259
+ });
9260
+ this.caseTriggerSubmitEventSub = this.caseEditDataService.caseTriggerSubmitEvent$.subscribe({
9259
9261
  next: state => {
9260
9262
  if (state) {
9261
9263
  this.caseEditDataService.setTriggerSubmitEvent(false);
@@ -9263,11 +9265,21 @@ class CaseEditPageComponent {
9263
9265
  }
9264
9266
  }
9265
9267
  });
9266
- this.triggerText = this.getTriggerText();
9267
9268
  }
9268
9269
  ngAfterViewChecked() {
9269
9270
  this.cdRef.detectChanges();
9270
9271
  }
9272
+ ngOnDestroy() {
9273
+ var _a, _b, _c, _d, _e, _f, _g, _h;
9274
+ (_a = this.routeParamsSub) === null || _a === void 0 ? void 0 : _a.unsubscribe();
9275
+ (_b = this.caseEditFormSub) === null || _b === void 0 ? void 0 : _b.unsubscribe();
9276
+ (_c = this.caseIsLinkedCasesJourneyAtFinalStepSub) === null || _c === void 0 ? void 0 : _c.unsubscribe();
9277
+ (_d = this.caseTriggerSubmitEventSub) === null || _d === void 0 ? void 0 : _d.unsubscribe();
9278
+ (_e = this.validateSub) === null || _e === void 0 ? void 0 : _e.unsubscribe();
9279
+ (_f = this.dialogRefAfterClosedSub) === null || _f === void 0 ? void 0 : _f.unsubscribe();
9280
+ (_g = this.saveDraftSub) === null || _g === void 0 ? void 0 : _g.unsubscribe();
9281
+ (_h = this.caseFormValidationErrorsSub) === null || _h === void 0 ? void 0 : _h.unsubscribe();
9282
+ }
9271
9283
  applyValuesChanged(valuesChanged) {
9272
9284
  this.formValuesChanged = valuesChanged;
9273
9285
  }
@@ -9341,7 +9353,7 @@ class CaseEditPageComponent {
9341
9353
  this.generateErrorMessage(casefield.field_type.collection_field_type.complex_fields, c.get('value'), id);
9342
9354
  });
9343
9355
  }
9344
- else if (FieldsUtils.isFlagLauncherCaseField(casefield)) {
9356
+ else if (FieldsUtils.isCaseFieldOfType(casefield, ['FlagLauncher'])) {
9345
9357
  // Check whether the case field DisplayContextParameter is signalling "create" mode or "update" mode
9346
9358
  // (expected always to be one of the two), to set the correct error message
9347
9359
  let action = '';
@@ -9395,7 +9407,7 @@ class CaseEditPageComponent {
9395
9407
  this.caseEdit.error = null;
9396
9408
  const caseEventData = this.buildCaseEventData();
9397
9409
  const loadingSpinnerToken = this.loadingService.register();
9398
- this.caseEdit.validate(caseEventData, this.currentPage.id)
9410
+ this.validateSub = this.caseEdit.validate(caseEventData, this.currentPage.id)
9399
9411
  .pipe(finalize(() => {
9400
9412
  this.loadingService.unregister(loadingSpinnerToken);
9401
9413
  }))
@@ -9495,7 +9507,7 @@ class CaseEditPageComponent {
9495
9507
  if (this.eventTrigger.can_save_draft) {
9496
9508
  if (this.formValuesChanged) {
9497
9509
  const dialogRef = this.dialog.open(SaveOrDiscardDialogComponent, this.dialogConfig);
9498
- dialogRef.afterClosed().subscribe(result => {
9510
+ this.dialogRefAfterClosedSub = dialogRef.afterClosed().subscribe(result => {
9499
9511
  if (result === 'Discard') {
9500
9512
  this.discard();
9501
9513
  }
@@ -9581,7 +9593,7 @@ class CaseEditPageComponent {
9581
9593
  const draftCaseEventData = this.formValueService.sanitise(this.editForm.value);
9582
9594
  draftCaseEventData.event_token = this.eventTrigger.event_token;
9583
9595
  draftCaseEventData.ignore_warning = this.caseEdit.ignoreWarning;
9584
- this.caseEdit.saveDraft(draftCaseEventData).subscribe((draft) => this.eventTrigger.case_id = DRAFT_PREFIX + draft.id, error => this.handleError(error));
9596
+ this.saveDraftSub = this.caseEdit.saveDraft(draftCaseEventData).subscribe((draft) => this.eventTrigger.case_id = DRAFT_PREFIX + draft.id, error => this.handleError(error));
9585
9597
  }
9586
9598
  }
9587
9599
  getCaseFields() {
@@ -9644,7 +9656,7 @@ class CaseEditPageComponent {
9644
9656
  this.caseEditDataService.setCaseEventTriggerName(this.eventTrigger.name);
9645
9657
  this.caseEditDataService.setCaseTitle(this.getCaseTitle());
9646
9658
  this.caseEditDataService.setCaseEditForm(this.editForm);
9647
- this.caseEditDataService.caseFormValidationErrors$.subscribe({
9659
+ this.caseFormValidationErrorsSub = this.caseEditDataService.caseFormValidationErrors$.subscribe({
9648
9660
  next: (validationErrors) => this.validationErrors = validationErrors
9649
9661
  });
9650
9662
  }
@@ -12823,37 +12835,52 @@ const ɵWriteDynamicListFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInh
12823
12835
  }]
12824
12836
  }], null, null); })();
12825
12837
 
12826
- class FixedListPipe {
12827
- transform(value, items) {
12828
- if (!!items) {
12829
- const item = items.find(i => i.code === value);
12830
- return item ? item.label : FixedListPipe.EMPTY;
12831
- }
12832
- else {
12833
- return FixedListPipe.EMPTY;
12838
+ class MarkdownComponent {
12839
+ constructor() { }
12840
+ ngOnInit() {
12841
+ this.content = this.content.replace(/ \n/g, '<br>');
12842
+ }
12843
+ onMarkdownClick(event) {
12844
+ // If we don't have an anchor tag, we don't need to do anything.
12845
+ if (event.target instanceof HTMLAnchorElement === false) {
12846
+ return;
12834
12847
  }
12848
+ return true;
12835
12849
  }
12836
12850
  }
12837
- FixedListPipe.EMPTY = '';
12838
- FixedListPipefac = function FixedListPipe_Factory(t) { return new (t || FixedListPipe)(); };
12839
- FixedListPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "ccdFixedList", type: FixedListPipe, pure: true });
12840
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FixedListPipe, [{
12841
- type: Pipe,
12851
+ MarkdownComponent.ɵfac = function MarkdownComponent_Factory(t) { return new (t || MarkdownComponent)(); };
12852
+ MarkdownComponentcmp = i0.ɵɵdefineComponent({ type: MarkdownComponent, selectors: [["ccd-markdown"]], hostBindings: function MarkdownComponent_HostBindings(rf, ctx) { if (rf & 1) {
12853
+ i0.ɵɵlistener("click", function MarkdownComponent_click_HostBindingHandler($event) { return ctx.onMarkdownClick($event); });
12854
+ } }, inputs: { content: "content", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink" }, decls: 3, vars: 3, consts: [[1, "markdown", 3, "innerHTML"]], template: function MarkdownComponent_Template(rf, ctx) { if (rf & 1) {
12855
+ i0.ɵɵelementStart(0, "div");
12856
+ i0.ɵɵelement(1, "markdown", 0);
12857
+ i0.ɵɵpipe(2, "ccdCaseReference");
12858
+ i0.ɵɵelementEnd();
12859
+ } if (rf & 2) {
12860
+ i0.ɵɵadvance(1);
12861
+ i0.ɵɵproperty("innerHTML", i0.ɵɵpipeBind1(2, 1, ctx.content), i0.ɵɵsanitizeHtml);
12862
+ } }, directives: [i1$4.NgxMdComponent], pipes: [CaseReferencePipe], encapsulation: 2 });
12863
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MarkdownComponent, [{
12864
+ type: Component,
12842
12865
  args: [{
12843
- name: 'ccdFixedList'
12866
+ selector: 'ccd-markdown',
12867
+ templateUrl: './markdown.html'
12844
12868
  }]
12845
- }], null, null); })();
12869
+ }], function () { return []; }, { content: [{
12870
+ type: Input
12871
+ }], markdownUseHrefAsRouterLink: [{
12872
+ type: Input
12873
+ }], onMarkdownClick: [{
12874
+ type: HostListener,
12875
+ args: ['click', ['$event']]
12876
+ }] }); })();
12846
12877
 
12847
12878
  function ReadDynamicMultiSelectListFieldComponent_div_0_Template(rf, ctx) { if (rf & 1) {
12848
12879
  i0.ɵɵelementStart(0, "div");
12849
- i0.ɵɵtext(1);
12850
- i0.ɵɵpipe(2, "ccdFixedList");
12880
+ i0.ɵɵelementStart(1, "ccd-markdown");
12881
+ i0.ɵɵtext(2, "[content]=\"value.code | ccdFixedList:caseField.list_items\"");
12882
+ i0.ɵɵelementEnd();
12851
12883
  i0.ɵɵelementEnd();
12852
- } if (rf & 2) {
12853
- const value_r1 = ctx.$implicit;
12854
- const ctx_r0 = i0.ɵɵnextContext();
12855
- i0.ɵɵadvance(1);
12856
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, value_r1.code, ctx_r0.caseField.list_items), "\n");
12857
12884
  } }
12858
12885
  class ReadDynamicMultiSelectListFieldComponent extends AbstractFieldReadComponent {
12859
12886
  ngOnInit() {
@@ -12872,10 +12899,10 @@ class ReadDynamicMultiSelectListFieldComponent extends AbstractFieldReadComponen
12872
12899
  }
12873
12900
  ReadDynamicMultiSelectListFieldComponent.ɵfac = function ReadDynamicMultiSelectListFieldComponent_Factory(t) { return ɵReadDynamicMultiSelectListFieldComponent_BaseFactory(t || ReadDynamicMultiSelectListFieldComponent); };
12874
12901
  ReadDynamicMultiSelectListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ReadDynamicMultiSelectListFieldComponent, selectors: [["ccd-read-dynamic-multi-select-list-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[4, "ngFor", "ngForOf"]], template: function ReadDynamicMultiSelectListFieldComponent_Template(rf, ctx) { if (rf & 1) {
12875
- i0.ɵɵtemplate(0, ReadDynamicMultiSelectListFieldComponent_div_0_Template, 3, 4, "div", 0);
12902
+ i0.ɵɵtemplate(0, ReadDynamicMultiSelectListFieldComponent_div_0_Template, 3, 0, "div", 0);
12876
12903
  } if (rf & 2) {
12877
12904
  i0.ɵɵproperty("ngForOf", ctx.caseField.value);
12878
- } }, directives: [i1.NgForOf], pipes: [FixedListPipe], styles: [".multi-select-list-field-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:5px 0}.multi-select-list-field-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child > td[_ngcontent-%COMP%]{border-bottom:none}.multi-select-list-field-table[_ngcontent-%COMP%] td.collection-actions[_ngcontent-%COMP%]{width:1px;white-space:nowrap}"] });
12905
+ } }, directives: [i1.NgForOf, MarkdownComponent], styles: [".multi-select-list-field-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:5px 0}.multi-select-list-field-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child > td[_ngcontent-%COMP%]{border-bottom:none}.multi-select-list-field-table[_ngcontent-%COMP%] td.collection-actions[_ngcontent-%COMP%]{width:1px;white-space:nowrap}"] });
12879
12906
  const ɵReadDynamicMultiSelectListFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(ReadDynamicMultiSelectListFieldComponent);
12880
12907
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadDynamicMultiSelectListFieldComponent, [{
12881
12908
  type: Component,
@@ -12923,7 +12950,7 @@ function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template(rf, c
12923
12950
  i0.ɵɵlistener("change", function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template_input_change_2_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(); return ctx_r5.onCheckChange($event); });
12924
12951
  i0.ɵɵelementEnd();
12925
12952
  i0.ɵɵelementStart(3, "label", 10);
12926
- i0.ɵɵtext(4);
12953
+ i0.ɵɵelement(4, "ccd-markdown", 11);
12927
12954
  i0.ɵɵelementEnd();
12928
12955
  i0.ɵɵelementEnd();
12929
12956
  i0.ɵɵelementContainerEnd();
@@ -12937,7 +12964,7 @@ function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template(rf, c
12937
12964
  i0.ɵɵadvance(1);
12938
12965
  i0.ɵɵpropertyInterpolate("for", ctx_r3.createElementId(checkbox_r4.code));
12939
12966
  i0.ɵɵadvance(1);
12940
- i0.ɵɵtextInterpolate(checkbox_r4.label);
12967
+ i0.ɵɵproperty("content", checkbox_r4.label);
12941
12968
  } }
12942
12969
  const _c0$L = function (a0) { return { "error": a0 }; };
12943
12970
  class WriteDynamicMultiSelectListFieldComponent extends AbstractFieldWriteComponent {
@@ -13001,7 +13028,7 @@ class WriteDynamicMultiSelectListFieldComponent extends AbstractFieldWriteCompon
13001
13028
  }
13002
13029
  }
13003
13030
  WriteDynamicMultiSelectListFieldComponent.ɵfac = function WriteDynamicMultiSelectListFieldComponent_Factory(t) { return ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory(t || WriteDynamicMultiSelectListFieldComponent); };
13004
- WriteDynamicMultiSelectListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteDynamicMultiSelectListFieldComponent, selectors: [["ccd-write-dynamic-multi-select-list-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 7, vars: 8, consts: [[1, "form-group", "bottom-30", 3, "ngClass", "id"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "form-label"], [1, "form-hint"], [1, "error-message"], [1, "multiple-choice"], ["type", "checkbox", 1, "form-control", 3, "id", "name", "value", "checked", "change"], [1, "form-label", 3, "for"]], template: function WriteDynamicMultiSelectListFieldComponent_Template(rf, ctx) { if (rf & 1) {
13031
+ WriteDynamicMultiSelectListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteDynamicMultiSelectListFieldComponent, selectors: [["ccd-write-dynamic-multi-select-list-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 7, vars: 8, consts: [[1, "form-group", "bottom-30", 3, "ngClass", "id"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "form-label"], [1, "form-hint"], [1, "error-message"], [1, "multiple-choice"], ["type", "checkbox", 1, "form-control", 3, "id", "name", "value", "checked", "change"], [1, "form-label", 3, "for"], [3, "content"]], template: function WriteDynamicMultiSelectListFieldComponent_Template(rf, ctx) { if (rf & 1) {
13005
13032
  i0.ɵɵelementStart(0, "div", 0);
13006
13033
  i0.ɵɵelementStart(1, "fieldset");
13007
13034
  i0.ɵɵelementStart(2, "legend");
@@ -13022,13 +13049,14 @@ WriteDynamicMultiSelectListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type:
13022
13049
  i0.ɵɵproperty("ngIf", ctx.checkboxes.errors && ctx.checkboxes.touched);
13023
13050
  i0.ɵɵadvance(1);
13024
13051
  i0.ɵɵproperty("ngForOf", ctx.caseField.list_items);
13025
- } }, directives: [i1.NgClass, i1.NgIf, i1.NgForOf], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
13052
+ } }, directives: [i1.NgClass, i1.NgIf, i1.NgForOf, MarkdownComponent], pipes: [FieldLabelPipe, FirstErrorPipe], styles: ["ccd-markdown[_ngcontent-%COMP%]{display:inline-block}"] });
13026
13053
  const ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(WriteDynamicMultiSelectListFieldComponent);
13027
13054
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteDynamicMultiSelectListFieldComponent, [{
13028
13055
  type: Component,
13029
13056
  args: [{
13030
13057
  selector: 'ccd-write-dynamic-multi-select-list-field',
13031
- templateUrl: './write-dynamic-multi-select-list-field.html'
13058
+ templateUrl: './write-dynamic-multi-select-list-field.html',
13059
+ styleUrls: ['./write-dynamic-multi-select-list-field.component.scss']
13032
13060
  }]
13033
13061
  }], null, null); })();
13034
13062
 
@@ -13308,6 +13336,27 @@ const ɵWriteEmailFieldComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInherited
13308
13336
  }]
13309
13337
  }], null, null); })();
13310
13338
 
13339
+ class FixedListPipe {
13340
+ transform(value, items) {
13341
+ if (!!items) {
13342
+ const item = items.find(i => i.code === value);
13343
+ return item ? item.label : FixedListPipe.EMPTY;
13344
+ }
13345
+ else {
13346
+ return FixedListPipe.EMPTY;
13347
+ }
13348
+ }
13349
+ }
13350
+ FixedListPipe.EMPTY = '';
13351
+ FixedListPipe.ɵfac = function FixedListPipe_Factory(t) { return new (t || FixedListPipe)(); };
13352
+ FixedListPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "ccdFixedList", type: FixedListPipe, pure: true });
13353
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FixedListPipe, [{
13354
+ type: Pipe,
13355
+ args: [{
13356
+ name: 'ccdFixedList'
13357
+ }]
13358
+ }], null, null); })();
13359
+
13311
13360
  class ReadFixedListFieldComponent extends AbstractFieldReadComponent {
13312
13361
  }
13313
13362
  ReadFixedListFieldComponent.ɵfac = function ReadFixedListFieldComponent_Factory(t) { return ɵReadFixedListFieldComponent_BaseFactory(t || ReadFixedListFieldComponent); };
@@ -18219,7 +18268,7 @@ CaseFileViewOverlayMenuComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseFile
18219
18268
  const _r0 = i0.ɵɵreference(2);
18220
18269
  i0.ɵɵadvance(4);
18221
18270
  i0.ɵɵproperty("cdkConnectedOverlayOrigin", _r0)("cdkConnectedOverlayOpen", ctx.isOpen)("cdkConnectedOverlayHasBackdrop", true)("cdkConnectedOverlayBackdropClass", "cdk-overlay-transparent-backdrop");
18222
- } }, directives: [i1$4.CdkOverlayOrigin, i1$4.CdkConnectedOverlay, i1.NgIf, i1.NgForOf], 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__item[_ngcontent-%COMP%], .overlay-menu__title[_ngcontent-%COMP%]{padding:10px;border-bottom:1px solid grey}.overlay-menu__item[_ngcontent-%COMP%]:last-child, .overlay-menu__title[_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}"] });
18271
+ } }, directives: [i1$5.CdkOverlayOrigin, i1$5.CdkConnectedOverlay, i1.NgIf, i1.NgForOf], 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__item[_ngcontent-%COMP%], .overlay-menu__title[_ngcontent-%COMP%]{padding:10px;border-bottom:1px solid grey}.overlay-menu__item[_ngcontent-%COMP%]:last-child, .overlay-menu__title[_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}"] });
18223
18272
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewOverlayMenuComponent, [{
18224
18273
  type: Component,
18225
18274
  args: [{
@@ -21654,46 +21703,6 @@ EventLogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: EventLogComponent, sele
21654
21703
  type: Output
21655
21704
  }] }); })();
21656
21705
 
21657
- class MarkdownComponent {
21658
- constructor() { }
21659
- ngOnInit() {
21660
- this.content = this.content.replace(/ \n/g, '<br>');
21661
- }
21662
- onMarkdownClick(event) {
21663
- // If we don't have an anchor tag, we don't need to do anything.
21664
- if (event.target instanceof HTMLAnchorElement === false) {
21665
- return;
21666
- }
21667
- return true;
21668
- }
21669
- }
21670
- MarkdownComponent.ɵfac = function MarkdownComponent_Factory(t) { return new (t || MarkdownComponent)(); };
21671
- MarkdownComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MarkdownComponent, selectors: [["ccd-markdown"]], hostBindings: function MarkdownComponent_HostBindings(rf, ctx) { if (rf & 1) {
21672
- i0.ɵɵlistener("click", function MarkdownComponent_click_HostBindingHandler($event) { return ctx.onMarkdownClick($event); });
21673
- } }, inputs: { content: "content", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink" }, decls: 3, vars: 3, consts: [[1, "markdown", 3, "innerHTML"]], template: function MarkdownComponent_Template(rf, ctx) { if (rf & 1) {
21674
- i0.ɵɵelementStart(0, "div");
21675
- i0.ɵɵelement(1, "markdown", 0);
21676
- i0.ɵɵpipe(2, "ccdCaseReference");
21677
- i0.ɵɵelementEnd();
21678
- } if (rf & 2) {
21679
- i0.ɵɵadvance(1);
21680
- i0.ɵɵproperty("innerHTML", i0.ɵɵpipeBind1(2, 1, ctx.content), i0.ɵɵsanitizeHtml);
21681
- } }, directives: [i1$5.NgxMdComponent], pipes: [CaseReferencePipe], encapsulation: 2 });
21682
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MarkdownComponent, [{
21683
- type: Component,
21684
- args: [{
21685
- selector: 'ccd-markdown',
21686
- templateUrl: './markdown.html'
21687
- }]
21688
- }], function () { return []; }, { content: [{
21689
- type: Input
21690
- }], markdownUseHrefAsRouterLink: [{
21691
- type: Input
21692
- }], onMarkdownClick: [{
21693
- type: HostListener,
21694
- args: ['click', ['$event']]
21695
- }] }); })();
21696
-
21697
21706
  class FeeValue {
21698
21707
  }
21699
21708