@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.
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/router'), require('@angular/forms'), require('rx-polling'), require('rxjs'), require('@angular/common/http'), require('rxjs/operators'), require('class-transformer'), require('moment'), require('underscore'), require('pegjs'), require('util'), require('@edium/fsm'), require('@angular/material/dialog'), require('@nicky-lenaers/ngx-scroll-to'), require('@angular/material/autocomplete'), require('@angular/material/core'), require('@hmcts/ccpay-web-component'), require('@angular/cdk/overlay'), require('@angular/cdk/tree'), require('@angular/material/input'), require('@angular-material-components/datetime-picker'), require('@angular-material-components/moment-adapter'), require('@angular/material/datepicker'), require('@angular/material/form-field'), require('ngx-md'), require('@hmcts/media-viewer'), require('@angular/cdk/portal'), require('ngx-pagination'), require('@angular/material/tabs')) :
3
- typeof define === 'function' && define.amd ? define('@hmcts/ccd-case-ui-toolkit', ['exports', '@angular/core', '@angular/common', '@angular/router', '@angular/forms', 'rx-polling', 'rxjs', '@angular/common/http', 'rxjs/operators', 'class-transformer', 'moment', 'underscore', 'pegjs', 'util', '@edium/fsm', '@angular/material/dialog', '@nicky-lenaers/ngx-scroll-to', '@angular/material/autocomplete', '@angular/material/core', '@hmcts/ccpay-web-component', '@angular/cdk/overlay', '@angular/cdk/tree', '@angular/material/input', '@angular-material-components/datetime-picker', '@angular-material-components/moment-adapter', '@angular/material/datepicker', '@angular/material/form-field', 'ngx-md', '@hmcts/media-viewer', '@angular/cdk/portal', 'ngx-pagination', '@angular/material/tabs'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.hmcts = global.hmcts || {}, global.hmcts["ccd-case-ui-toolkit"] = {}), global.ng.core, global.ng.common, global.ng.router, global.ng.forms, global["rx-polling"], global.rxjs, global.ng.common.http, global.rxjs.operators, global["class-transformer"], global.moment, global.underscore, global.pegjs, global.util, global["@edium/fsm"], global.ng.material.dialog, global["@nicky-lenaers/ngx-scroll-to"], global.ng.material.autocomplete, global.ng.material.core, global["@hmcts/ccpay-web-component"], global.ng.cdk.overlay, global.ng.cdk.tree, global.ng.material.input, global["@angular-material-components/datetime-picker"], global["@angular-material-components/moment-adapter"], global.ng.material.datepicker, global.ng.material.formField, global["ngx-md"], global.i11, global.ng.cdk.portal, global["ngx-pagination"], global.ng.material.tabs));
5
- })(this, (function (exports, i0, i1, i1$1, i2, polling, rxjs, i1$2, operators, classTransformer, moment, _, pegjs, util, fsm, i1$3, i2$1, i4, i5, i3, i1$4, i7, i3$1, i4$1, momentAdapter, i5$1, i6, i1$5, i11, i6$1, i1$6, i9) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/router'), require('@angular/forms'), require('rx-polling'), require('rxjs'), require('@angular/common/http'), require('rxjs/operators'), require('class-transformer'), require('moment'), require('underscore'), require('pegjs'), require('util'), require('@edium/fsm'), require('@angular/material/dialog'), require('@nicky-lenaers/ngx-scroll-to'), require('ngx-md'), require('@angular/material/autocomplete'), require('@angular/material/core'), require('@hmcts/ccpay-web-component'), require('@angular/cdk/overlay'), require('@angular/cdk/tree'), require('@angular/material/input'), require('@angular-material-components/datetime-picker'), require('@angular-material-components/moment-adapter'), require('@angular/material/datepicker'), require('@angular/material/form-field'), require('@hmcts/media-viewer'), require('@angular/cdk/portal'), require('ngx-pagination'), require('@angular/material/tabs')) :
3
+ typeof define === 'function' && define.amd ? define('@hmcts/ccd-case-ui-toolkit', ['exports', '@angular/core', '@angular/common', '@angular/router', '@angular/forms', 'rx-polling', 'rxjs', '@angular/common/http', 'rxjs/operators', 'class-transformer', 'moment', 'underscore', 'pegjs', 'util', '@edium/fsm', '@angular/material/dialog', '@nicky-lenaers/ngx-scroll-to', 'ngx-md', '@angular/material/autocomplete', '@angular/material/core', '@hmcts/ccpay-web-component', '@angular/cdk/overlay', '@angular/cdk/tree', '@angular/material/input', '@angular-material-components/datetime-picker', '@angular-material-components/moment-adapter', '@angular/material/datepicker', '@angular/material/form-field', '@hmcts/media-viewer', '@angular/cdk/portal', 'ngx-pagination', '@angular/material/tabs'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.hmcts = global.hmcts || {}, global.hmcts["ccd-case-ui-toolkit"] = {}), global.ng.core, global.ng.common, global.ng.router, global.ng.forms, global["rx-polling"], global.rxjs, global.ng.common.http, global.rxjs.operators, global["class-transformer"], global.moment, global.underscore, global.pegjs, global.util, global["@edium/fsm"], global.ng.material.dialog, global["@nicky-lenaers/ngx-scroll-to"], global["ngx-md"], global.ng.material.autocomplete, global.ng.material.core, global["@hmcts/ccpay-web-component"], global.ng.cdk.overlay, global.ng.cdk.tree, global.ng.material.input, global["@angular-material-components/datetime-picker"], global["@angular-material-components/moment-adapter"], global.ng.material.datepicker, global.ng.material.formField, global.i11, global.ng.cdk.portal, global["ngx-pagination"], global.ng.material.tabs));
5
+ })(this, (function (exports, i0, i1, i1$1, i2, polling, rxjs, i1$2, operators, classTransformer, moment, _, pegjs, util, fsm, i1$3, i2$1, i1$4, i4, i5, i3, i1$5, i7, i3$1, i4$1, momentAdapter, i5$1, i6, i11, i6$1, i1$6, i9) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -34,16 +34,16 @@
34
34
  var ___namespace = /*#__PURE__*/_interopNamespace(_);
35
35
  var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$3);
36
36
  var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
37
+ var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$4);
37
38
  var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
38
39
  var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
39
40
  var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
40
- var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$4);
41
+ var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$5);
41
42
  var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
42
43
  var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
43
44
  var i4__namespace$1 = /*#__PURE__*/_interopNamespace(i4$1);
44
45
  var i5__namespace$1 = /*#__PURE__*/_interopNamespace(i5$1);
45
46
  var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
46
- var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$5);
47
47
  var i11__namespace = /*#__PURE__*/_interopNamespace(i11);
48
48
  var i6__namespace$1 = /*#__PURE__*/_interopNamespace(i6$1);
49
49
  var i1__namespace$6 = /*#__PURE__*/_interopNamespace(i1$6);
@@ -481,7 +481,7 @@
481
481
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
482
482
  PERFORMANCE OF THIS SOFTWARE.
483
483
  ***************************************************************************** */
484
- /* global Reflect, Promise */
484
+ /* global Reflect, Promise, SuppressedError, Symbol */
485
485
  var extendStatics = function (d, b) {
486
486
  extendStatics = Object.setPrototypeOf ||
487
487
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -560,11 +560,11 @@
560
560
  if (_ = accept(result.set))
561
561
  descriptor.set = _;
562
562
  if (_ = accept(result.init))
563
- initializers.push(_);
563
+ initializers.unshift(_);
564
564
  }
565
565
  else if (_ = accept(result)) {
566
566
  if (kind === "field")
567
- initializers.push(_);
567
+ initializers.unshift(_);
568
568
  else
569
569
  descriptor[key] = _;
570
570
  }
@@ -851,6 +851,85 @@
851
851
  throw new TypeError("Cannot use 'in' operator on non-object");
852
852
  return typeof state === "function" ? receiver === state : state.has(receiver);
853
853
  }
854
+ function __addDisposableResource(env, value, async) {
855
+ if (value !== null && value !== void 0) {
856
+ if (typeof value !== "object")
857
+ throw new TypeError("Object expected.");
858
+ var dispose;
859
+ if (async) {
860
+ if (!Symbol.asyncDispose)
861
+ throw new TypeError("Symbol.asyncDispose is not defined.");
862
+ dispose = value[Symbol.asyncDispose];
863
+ }
864
+ if (dispose === void 0) {
865
+ if (!Symbol.dispose)
866
+ throw new TypeError("Symbol.dispose is not defined.");
867
+ dispose = value[Symbol.dispose];
868
+ }
869
+ if (typeof dispose !== "function")
870
+ throw new TypeError("Object not disposable.");
871
+ env.stack.push({ value: value, dispose: dispose, async: async });
872
+ }
873
+ else if (async) {
874
+ env.stack.push({ async: true });
875
+ }
876
+ return value;
877
+ }
878
+ var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
879
+ var e = new Error(message);
880
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
881
+ };
882
+ function __disposeResources(env) {
883
+ function fail(e) {
884
+ env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
885
+ env.hasError = true;
886
+ }
887
+ function next() {
888
+ while (env.stack.length) {
889
+ var rec = env.stack.pop();
890
+ try {
891
+ var result = rec.dispose && rec.dispose.call(rec.value);
892
+ if (rec.async)
893
+ return Promise.resolve(result).then(next, function (e) { fail(e); return next(); });
894
+ }
895
+ catch (e) {
896
+ fail(e);
897
+ }
898
+ }
899
+ if (env.hasError)
900
+ throw env.error;
901
+ }
902
+ return next();
903
+ }
904
+ var tslib_es6 = {
905
+ __extends: __extends,
906
+ __assign: __assign,
907
+ __rest: __rest,
908
+ __decorate: __decorate,
909
+ __param: __param,
910
+ __metadata: __metadata,
911
+ __awaiter: __awaiter,
912
+ __generator: __generator,
913
+ __createBinding: __createBinding,
914
+ __exportStar: __exportStar,
915
+ __values: __values,
916
+ __read: __read,
917
+ __spread: __spread,
918
+ __spreadArrays: __spreadArrays,
919
+ __spreadArray: __spreadArray,
920
+ __await: __await,
921
+ __asyncGenerator: __asyncGenerator,
922
+ __asyncDelegator: __asyncDelegator,
923
+ __asyncValues: __asyncValues,
924
+ __makeTemplateObject: __makeTemplateObject,
925
+ __importStar: __importStar,
926
+ __importDefault: __importDefault,
927
+ __classPrivateFieldGet: __classPrivateFieldGet,
928
+ __classPrivateFieldSet: __classPrivateFieldSet,
929
+ __classPrivateFieldIn: __classPrivateFieldIn,
930
+ __addDisposableResource: __addDisposableResource,
931
+ __disposeResources: __disposeResources,
932
+ };
854
933
 
855
934
  var _c0$X = function (a0) { return { "govuk-input--error": a0 }; };
856
935
  function DateInputComponent_div_16_Template(rf, ctx) {
@@ -10623,7 +10702,7 @@
10623
10702
  this.wizard = this.caseEdit.wizard;
10624
10703
  this.caseFields = this.getCaseFields();
10625
10704
  this.syncCaseEditDataService();
10626
- this.route.params
10705
+ this.routeParamsSub = this.route.params
10627
10706
  .subscribe(function (params) {
10628
10707
  var _a, _b;
10629
10708
  var pageId = params['page'];
@@ -10643,15 +10722,17 @@
10643
10722
  }
10644
10723
  _this.hasPreviousPage$.next(_this.caseEdit.hasPrevious((_b = _this.currentPage) === null || _b === void 0 ? void 0 : _b.id));
10645
10724
  }
10725
+ _this.triggerText = _this.getTriggerText();
10646
10726
  });
10647
10727
  CaseEditPageComponent.setFocusToTop();
10648
- this.caseEditDataService.caseEditForm$.subscribe({
10728
+ this.caseEditFormSub = this.caseEditDataService.caseEditForm$.subscribe({
10649
10729
  next: function (editForm) { return _this.editForm = editForm; }
10650
10730
  });
10651
- this.caseEditDataService.caseIsLinkedCasesJourneyAtFinalStep$.subscribe({
10652
- next: function (isLinkedCasesJourneyAtFinalStep) { return _this.isLinkedCasesJourneyAtFinalStep = isLinkedCasesJourneyAtFinalStep; }
10653
- });
10654
- this.caseEditDataService.caseTriggerSubmitEvent$.subscribe({
10731
+ this.caseIsLinkedCasesJourneyAtFinalStepSub =
10732
+ this.caseEditDataService.caseIsLinkedCasesJourneyAtFinalStep$.subscribe({
10733
+ next: function (isLinkedCasesJourneyAtFinalStep) { return _this.isLinkedCasesJourneyAtFinalStep = isLinkedCasesJourneyAtFinalStep; }
10734
+ });
10735
+ this.caseTriggerSubmitEventSub = this.caseEditDataService.caseTriggerSubmitEvent$.subscribe({
10655
10736
  next: function (state) {
10656
10737
  if (state) {
10657
10738
  _this.caseEditDataService.setTriggerSubmitEvent(false);
@@ -10659,11 +10740,21 @@
10659
10740
  }
10660
10741
  }
10661
10742
  });
10662
- this.triggerText = this.getTriggerText();
10663
10743
  };
10664
10744
  CaseEditPageComponent.prototype.ngAfterViewChecked = function () {
10665
10745
  this.cdRef.detectChanges();
10666
10746
  };
10747
+ CaseEditPageComponent.prototype.ngOnDestroy = function () {
10748
+ var _a, _b, _c, _d, _e, _f, _g, _h;
10749
+ (_a = this.routeParamsSub) === null || _a === void 0 ? void 0 : _a.unsubscribe();
10750
+ (_b = this.caseEditFormSub) === null || _b === void 0 ? void 0 : _b.unsubscribe();
10751
+ (_c = this.caseIsLinkedCasesJourneyAtFinalStepSub) === null || _c === void 0 ? void 0 : _c.unsubscribe();
10752
+ (_d = this.caseTriggerSubmitEventSub) === null || _d === void 0 ? void 0 : _d.unsubscribe();
10753
+ (_e = this.validateSub) === null || _e === void 0 ? void 0 : _e.unsubscribe();
10754
+ (_f = this.dialogRefAfterClosedSub) === null || _f === void 0 ? void 0 : _f.unsubscribe();
10755
+ (_g = this.saveDraftSub) === null || _g === void 0 ? void 0 : _g.unsubscribe();
10756
+ (_h = this.caseFormValidationErrorsSub) === null || _h === void 0 ? void 0 : _h.unsubscribe();
10757
+ };
10667
10758
  CaseEditPageComponent.prototype.applyValuesChanged = function (valuesChanged) {
10668
10759
  this.formValuesChanged = valuesChanged;
10669
10760
  };
@@ -10738,7 +10829,7 @@
10738
10829
  _this.generateErrorMessage(casefield.field_type.collection_field_type.complex_fields, c.get('value'), id_1);
10739
10830
  });
10740
10831
  }
10741
- else if (FieldsUtils.isFlagLauncherCaseField(casefield)) {
10832
+ else if (FieldsUtils.isCaseFieldOfType(casefield, ['FlagLauncher'])) {
10742
10833
  // Check whether the case field DisplayContextParameter is signalling "create" mode or "update" mode
10743
10834
  // (expected always to be one of the two), to set the correct error message
10744
10835
  var action = '';
@@ -10793,7 +10884,7 @@
10793
10884
  this.caseEdit.error = null;
10794
10885
  var caseEventData = this.buildCaseEventData();
10795
10886
  var loadingSpinnerToken_1 = this.loadingService.register();
10796
- this.caseEdit.validate(caseEventData, this.currentPage.id)
10887
+ this.validateSub = this.caseEdit.validate(caseEventData, this.currentPage.id)
10797
10888
  .pipe(operators.finalize(function () {
10798
10889
  _this.loadingService.unregister(loadingSpinnerToken_1);
10799
10890
  }))
@@ -10812,10 +10903,10 @@
10812
10903
  CaseEditPageComponent.setFocusToTop();
10813
10904
  };
10814
10905
  CaseEditPageComponent.prototype.updateFormData = function (jsonData) {
10815
- var e_1, _c;
10906
+ var e_1, _j;
10816
10907
  try {
10817
- for (var _d = __values(Object.keys(jsonData.data)), _e = _d.next(); !_e.done; _e = _d.next()) {
10818
- var caseFieldId = _e.value;
10908
+ for (var _k = __values(Object.keys(jsonData.data)), _l = _k.next(); !_l.done; _l = _k.next()) {
10909
+ var caseFieldId = _l.value;
10819
10910
  /* istanbul ignore else */
10820
10911
  if (this.pageWithFieldExists(caseFieldId)) {
10821
10912
  this.updateEventTriggerCaseFields(caseFieldId, jsonData, this.caseEdit.eventTrigger);
@@ -10826,7 +10917,7 @@
10826
10917
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
10827
10918
  finally {
10828
10919
  try {
10829
- if (_e && !_e.done && (_c = _d.return)) _c.call(_d);
10920
+ if (_l && !_l.done && (_j = _k.return)) _j.call(_k);
10830
10921
  }
10831
10922
  finally { if (e_1) throw e_1.error; }
10832
10923
  }
@@ -10855,12 +10946,12 @@
10855
10946
  CaseEditPageComponent.prototype.updateJsonDataObject = function (caseFieldId, jsonData, element) {
10856
10947
  var _this = this;
10857
10948
  return Object.keys(jsonData.data[caseFieldId]).reduce(function (acc, key) {
10858
- var _c;
10949
+ var _j;
10859
10950
  var elementValue = element.value[key];
10860
10951
  var jsonDataValue = jsonData.data[caseFieldId][key];
10861
10952
  var hasElementGotValueProperty = _this.isAnObject(elementValue) && elementValue.value !== undefined;
10862
10953
  var jsonDataOrElementValue = (jsonDataValue === null || jsonDataValue === void 0 ? void 0 : jsonDataValue.value) !== null && (jsonDataValue === null || jsonDataValue === void 0 ? void 0 : jsonDataValue.value) !== undefined ? jsonDataValue : elementValue;
10863
- return Object.assign(Object.assign({}, acc), (_c = {}, _c["" + key] = hasElementGotValueProperty ? jsonDataOrElementValue : jsonDataValue, _c));
10954
+ return Object.assign(Object.assign({}, acc), (_j = {}, _j["" + key] = hasElementGotValueProperty ? jsonDataOrElementValue : jsonDataValue, _j));
10864
10955
  }, {});
10865
10956
  };
10866
10957
  CaseEditPageComponent.prototype.isAnObject = function (property) {
@@ -10908,7 +10999,7 @@
10908
10999
  if (this.eventTrigger.can_save_draft) {
10909
11000
  if (this.formValuesChanged) {
10910
11001
  var dialogRef = this.dialog.open(SaveOrDiscardDialogComponent, this.dialogConfig);
10911
- dialogRef.afterClosed().subscribe(function (result) {
11002
+ this.dialogRefAfterClosedSub = dialogRef.afterClosed().subscribe(function (result) {
10912
11003
  if (result === 'Discard') {
10913
11004
  _this.discard();
10914
11005
  }
@@ -10995,7 +11086,7 @@
10995
11086
  var draftCaseEventData = this.formValueService.sanitise(this.editForm.value);
10996
11087
  draftCaseEventData.event_token = this.eventTrigger.event_token;
10997
11088
  draftCaseEventData.ignore_warning = this.caseEdit.ignoreWarning;
10998
- this.caseEdit.saveDraft(draftCaseEventData).subscribe(function (draft) { return _this.eventTrigger.case_id = DRAFT_PREFIX + draft.id; }, function (error) { return _this.handleError(error); });
11089
+ this.saveDraftSub = this.caseEdit.saveDraft(draftCaseEventData).subscribe(function (draft) { return _this.eventTrigger.case_id = DRAFT_PREFIX + draft.id; }, function (error) { return _this.handleError(error); });
10999
11090
  }
11000
11091
  };
11001
11092
  CaseEditPageComponent.prototype.getCaseFields = function () {
@@ -11063,7 +11154,7 @@
11063
11154
  this.caseEditDataService.setCaseEventTriggerName(this.eventTrigger.name);
11064
11155
  this.caseEditDataService.setCaseTitle(this.getCaseTitle());
11065
11156
  this.caseEditDataService.setCaseEditForm(this.editForm);
11066
- this.caseEditDataService.caseFormValidationErrors$.subscribe({
11157
+ this.caseFormValidationErrorsSub = this.caseEditDataService.caseFormValidationErrors$.subscribe({
11067
11158
  next: function (validationErrors) { return _this.validationErrors = validationErrors; }
11068
11159
  });
11069
11160
  };
@@ -14686,44 +14777,62 @@
14686
14777
  }], null, null);
14687
14778
  })();
14688
14779
 
14689
- var FixedListPipe = /** @class */ (function () {
14690
- function FixedListPipe() {
14780
+ var MarkdownComponent = /** @class */ (function () {
14781
+ function MarkdownComponent() {
14691
14782
  }
14692
- FixedListPipe.prototype.transform = function (value, items) {
14693
- if (!!items) {
14694
- var item = items.find(function (i) { return i.code === value; });
14695
- return item ? item.label : FixedListPipe.EMPTY;
14696
- }
14697
- else {
14698
- return FixedListPipe.EMPTY;
14783
+ MarkdownComponent.prototype.ngOnInit = function () {
14784
+ this.content = this.content.replace(/ \n/g, '<br>');
14785
+ };
14786
+ MarkdownComponent.prototype.onMarkdownClick = function (event) {
14787
+ // If we don't have an anchor tag, we don't need to do anything.
14788
+ if (event.target instanceof HTMLAnchorElement === false) {
14789
+ return;
14699
14790
  }
14791
+ return true;
14700
14792
  };
14701
- return FixedListPipe;
14793
+ return MarkdownComponent;
14702
14794
  }());
14703
- FixedListPipe.EMPTY = '';
14704
- FixedListPipefac = function FixedListPipe_Factory(t) { return new (t || FixedListPipe)(); };
14705
- FixedListPipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "ccdFixedList", type: FixedListPipe, pure: true });
14795
+ MarkdownComponent.ɵfac = function MarkdownComponent_Factory(t) { return new (t || MarkdownComponent)(); };
14796
+ MarkdownComponentcmp = i0__namespace.ɵɵdefineComponent({ type: MarkdownComponent, selectors: [["ccd-markdown"]], hostBindings: function MarkdownComponent_HostBindings(rf, ctx) {
14797
+ if (rf & 1) {
14798
+ i0__namespace.ɵɵlistener("click", function MarkdownComponent_click_HostBindingHandler($event) { return ctx.onMarkdownClick($event); });
14799
+ }
14800
+ }, inputs: { content: "content", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink" }, decls: 3, vars: 3, consts: [[1, "markdown", 3, "innerHTML"]], template: function MarkdownComponent_Template(rf, ctx) {
14801
+ if (rf & 1) {
14802
+ i0__namespace.ɵɵelementStart(0, "div");
14803
+ i0__namespace.ɵɵelement(1, "markdown", 0);
14804
+ i0__namespace.ɵɵpipe(2, "ccdCaseReference");
14805
+ i0__namespace.ɵɵelementEnd();
14806
+ }
14807
+ if (rf & 2) {
14808
+ i0__namespace.ɵɵadvance(1);
14809
+ i0__namespace.ɵɵproperty("innerHTML", i0__namespace.ɵɵpipeBind1(2, 1, ctx.content), i0__namespace.ɵɵsanitizeHtml);
14810
+ }
14811
+ }, directives: [i1__namespace$4.NgxMdComponent], pipes: [CaseReferencePipe], encapsulation: 2 });
14706
14812
  (function () {
14707
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(FixedListPipe, [{
14708
- type: i0.Pipe,
14813
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(MarkdownComponent, [{
14814
+ type: i0.Component,
14709
14815
  args: [{
14710
- name: 'ccdFixedList'
14816
+ selector: 'ccd-markdown',
14817
+ templateUrl: './markdown.html'
14711
14818
  }]
14712
- }], null, null);
14819
+ }], function () { return []; }, { content: [{
14820
+ type: i0.Input
14821
+ }], markdownUseHrefAsRouterLink: [{
14822
+ type: i0.Input
14823
+ }], onMarkdownClick: [{
14824
+ type: i0.HostListener,
14825
+ args: ['click', ['$event']]
14826
+ }] });
14713
14827
  })();
14714
14828
 
14715
14829
  function ReadDynamicMultiSelectListFieldComponent_div_0_Template(rf, ctx) {
14716
14830
  if (rf & 1) {
14717
14831
  i0__namespace.ɵɵelementStart(0, "div");
14718
- i0__namespace.ɵɵtext(1);
14719
- i0__namespace.ɵɵpipe(2, "ccdFixedList");
14832
+ i0__namespace.ɵɵelementStart(1, "ccd-markdown");
14833
+ i0__namespace.ɵɵtext(2, "[content]=\"value.code | ccdFixedList:caseField.list_items\"");
14834
+ i0__namespace.ɵɵelementEnd();
14720
14835
  i0__namespace.ɵɵelementEnd();
14721
- }
14722
- if (rf & 2) {
14723
- var value_r1 = ctx.$implicit;
14724
- var ctx_r0 = i0__namespace.ɵɵnextContext();
14725
- i0__namespace.ɵɵadvance(1);
14726
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(2, 1, value_r1.code, ctx_r0.caseField.list_items), "\n");
14727
14836
  }
14728
14837
  }
14729
14838
  var ReadDynamicMultiSelectListFieldComponent = /** @class */ (function (_super) {
@@ -14749,12 +14858,12 @@
14749
14858
  ReadDynamicMultiSelectListFieldComponent.ɵfac = function ReadDynamicMultiSelectListFieldComponent_Factory(t) { return ɵReadDynamicMultiSelectListFieldComponent_BaseFactory(t || ReadDynamicMultiSelectListFieldComponent); };
14750
14859
  ReadDynamicMultiSelectListFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReadDynamicMultiSelectListFieldComponent, selectors: [["ccd-read-dynamic-multi-select-list-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [[4, "ngFor", "ngForOf"]], template: function ReadDynamicMultiSelectListFieldComponent_Template(rf, ctx) {
14751
14860
  if (rf & 1) {
14752
- i0__namespace.ɵɵtemplate(0, ReadDynamicMultiSelectListFieldComponent_div_0_Template, 3, 4, "div", 0);
14861
+ i0__namespace.ɵɵtemplate(0, ReadDynamicMultiSelectListFieldComponent_div_0_Template, 3, 0, "div", 0);
14753
14862
  }
14754
14863
  if (rf & 2) {
14755
14864
  i0__namespace.ɵɵproperty("ngForOf", ctx.caseField.value);
14756
14865
  }
14757
- }, directives: [i1__namespace.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}"] });
14866
+ }, directives: [i1__namespace.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}"] });
14758
14867
  var ɵReadDynamicMultiSelectListFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(ReadDynamicMultiSelectListFieldComponent);
14759
14868
  (function () {
14760
14869
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ReadDynamicMultiSelectListFieldComponent, [{
@@ -14814,7 +14923,7 @@
14814
14923
  i0__namespace.ɵɵlistener("change", function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template_input_change_2_listener($event) { i0__namespace.ɵɵrestoreView(_r6_1); var ctx_r5 = i0__namespace.ɵɵnextContext(); return ctx_r5.onCheckChange($event); });
14815
14924
  i0__namespace.ɵɵelementEnd();
14816
14925
  i0__namespace.ɵɵelementStart(3, "label", 10);
14817
- i0__namespace.ɵɵtext(4);
14926
+ i0__namespace.ɵɵelement(4, "ccd-markdown", 11);
14818
14927
  i0__namespace.ɵɵelementEnd();
14819
14928
  i0__namespace.ɵɵelementEnd();
14820
14929
  i0__namespace.ɵɵelementContainerEnd();
@@ -14829,7 +14938,7 @@
14829
14938
  i0__namespace.ɵɵadvance(1);
14830
14939
  i0__namespace.ɵɵpropertyInterpolate("for", ctx_r3.createElementId(checkbox_r4.code));
14831
14940
  i0__namespace.ɵɵadvance(1);
14832
- i0__namespace.ɵɵtextInterpolate(checkbox_r4.label);
14941
+ i0__namespace.ɵɵproperty("content", checkbox_r4.label);
14833
14942
  }
14834
14943
  }
14835
14944
  var _c0$L = function (a0) { return { "error": a0 }; };
@@ -14901,7 +15010,7 @@
14901
15010
  return WriteDynamicMultiSelectListFieldComponent;
14902
15011
  }(AbstractFieldWriteComponent));
14903
15012
  WriteDynamicMultiSelectListFieldComponent.ɵfac = function WriteDynamicMultiSelectListFieldComponent_Factory(t) { return ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory(t || WriteDynamicMultiSelectListFieldComponent); };
14904
- WriteDynamicMultiSelectListFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteDynamicMultiSelectListFieldComponent, selectors: [["ccd-write-dynamic-multi-select-list-field"]], features: [i0__namespace.ɵɵ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) {
15013
+ WriteDynamicMultiSelectListFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteDynamicMultiSelectListFieldComponent, selectors: [["ccd-write-dynamic-multi-select-list-field"]], features: [i0__namespace.ɵɵ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) {
14905
15014
  if (rf & 1) {
14906
15015
  i0__namespace.ɵɵelementStart(0, "div", 0);
14907
15016
  i0__namespace.ɵɵelementStart(1, "fieldset");
@@ -14925,14 +15034,15 @@
14925
15034
  i0__namespace.ɵɵadvance(1);
14926
15035
  i0__namespace.ɵɵproperty("ngForOf", ctx.caseField.list_items);
14927
15036
  }
14928
- }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgForOf], pipes: [FieldLabelPipe, FirstErrorPipe], encapsulation: 2 });
15037
+ }, directives: [i1__namespace.NgClass, i1__namespace.NgIf, i1__namespace.NgForOf, MarkdownComponent], pipes: [FieldLabelPipe, FirstErrorPipe], styles: ["ccd-markdown[_ngcontent-%COMP%]{display:inline-block}"] });
14929
15038
  var ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory = /*@__PURE__*/ i0__namespace.ɵɵgetInheritedFactory(WriteDynamicMultiSelectListFieldComponent);
14930
15039
  (function () {
14931
15040
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteDynamicMultiSelectListFieldComponent, [{
14932
15041
  type: i0.Component,
14933
15042
  args: [{
14934
15043
  selector: 'ccd-write-dynamic-multi-select-list-field',
14935
- templateUrl: './write-dynamic-multi-select-list-field.html'
15044
+ templateUrl: './write-dynamic-multi-select-list-field.html',
15045
+ styleUrls: ['./write-dynamic-multi-select-list-field.component.scss']
14936
15046
  }]
14937
15047
  }], null, null);
14938
15048
  })();
@@ -15282,6 +15392,32 @@
15282
15392
  }], null, null);
15283
15393
  })();
15284
15394
 
15395
+ var FixedListPipe = /** @class */ (function () {
15396
+ function FixedListPipe() {
15397
+ }
15398
+ FixedListPipe.prototype.transform = function (value, items) {
15399
+ if (!!items) {
15400
+ var item = items.find(function (i) { return i.code === value; });
15401
+ return item ? item.label : FixedListPipe.EMPTY;
15402
+ }
15403
+ else {
15404
+ return FixedListPipe.EMPTY;
15405
+ }
15406
+ };
15407
+ return FixedListPipe;
15408
+ }());
15409
+ FixedListPipe.EMPTY = '';
15410
+ FixedListPipe.ɵfac = function FixedListPipe_Factory(t) { return new (t || FixedListPipe)(); };
15411
+ FixedListPipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "ccdFixedList", type: FixedListPipe, pure: true });
15412
+ (function () {
15413
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(FixedListPipe, [{
15414
+ type: i0.Pipe,
15415
+ args: [{
15416
+ name: 'ccdFixedList'
15417
+ }]
15418
+ }], null, null);
15419
+ })();
15420
+
15285
15421
  var ReadFixedListFieldComponent = /** @class */ (function (_super) {
15286
15422
  __extends(ReadFixedListFieldComponent, _super);
15287
15423
  function ReadFixedListFieldComponent() {
@@ -21037,7 +21173,7 @@
21037
21173
  i0__namespace.ɵɵadvance(4);
21038
21174
  i0__namespace.ɵɵproperty("cdkConnectedOverlayOrigin", _r0)("cdkConnectedOverlayOpen", ctx.isOpen)("cdkConnectedOverlayHasBackdrop", true)("cdkConnectedOverlayBackdropClass", "cdk-overlay-transparent-backdrop");
21039
21175
  }
21040
- }, directives: [i1__namespace$4.CdkOverlayOrigin, i1__namespace$4.CdkConnectedOverlay, i1__namespace.NgIf, i1__namespace.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}"] });
21176
+ }, directives: [i1__namespace$5.CdkOverlayOrigin, i1__namespace$5.CdkConnectedOverlay, i1__namespace.NgIf, i1__namespace.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}"] });
21041
21177
  (function () {
21042
21178
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CaseFileViewOverlayMenuComponent, [{
21043
21179
  type: i0.Component,
@@ -24901,55 +25037,6 @@
24901
25037
  }] });
24902
25038
  })();
24903
25039
 
24904
- var MarkdownComponent = /** @class */ (function () {
24905
- function MarkdownComponent() {
24906
- }
24907
- MarkdownComponent.prototype.ngOnInit = function () {
24908
- this.content = this.content.replace(/ \n/g, '<br>');
24909
- };
24910
- MarkdownComponent.prototype.onMarkdownClick = function (event) {
24911
- // If we don't have an anchor tag, we don't need to do anything.
24912
- if (event.target instanceof HTMLAnchorElement === false) {
24913
- return;
24914
- }
24915
- return true;
24916
- };
24917
- return MarkdownComponent;
24918
- }());
24919
- MarkdownComponent.ɵfac = function MarkdownComponent_Factory(t) { return new (t || MarkdownComponent)(); };
24920
- MarkdownComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: MarkdownComponent, selectors: [["ccd-markdown"]], hostBindings: function MarkdownComponent_HostBindings(rf, ctx) {
24921
- if (rf & 1) {
24922
- i0__namespace.ɵɵlistener("click", function MarkdownComponent_click_HostBindingHandler($event) { return ctx.onMarkdownClick($event); });
24923
- }
24924
- }, inputs: { content: "content", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink" }, decls: 3, vars: 3, consts: [[1, "markdown", 3, "innerHTML"]], template: function MarkdownComponent_Template(rf, ctx) {
24925
- if (rf & 1) {
24926
- i0__namespace.ɵɵelementStart(0, "div");
24927
- i0__namespace.ɵɵelement(1, "markdown", 0);
24928
- i0__namespace.ɵɵpipe(2, "ccdCaseReference");
24929
- i0__namespace.ɵɵelementEnd();
24930
- }
24931
- if (rf & 2) {
24932
- i0__namespace.ɵɵadvance(1);
24933
- i0__namespace.ɵɵproperty("innerHTML", i0__namespace.ɵɵpipeBind1(2, 1, ctx.content), i0__namespace.ɵɵsanitizeHtml);
24934
- }
24935
- }, directives: [i1__namespace$5.NgxMdComponent], pipes: [CaseReferencePipe], encapsulation: 2 });
24936
- (function () {
24937
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(MarkdownComponent, [{
24938
- type: i0.Component,
24939
- args: [{
24940
- selector: 'ccd-markdown',
24941
- templateUrl: './markdown.html'
24942
- }]
24943
- }], function () { return []; }, { content: [{
24944
- type: i0.Input
24945
- }], markdownUseHrefAsRouterLink: [{
24946
- type: i0.Input
24947
- }], onMarkdownClick: [{
24948
- type: i0.HostListener,
24949
- args: ['click', ['$event']]
24950
- }] });
24951
- })();
24952
-
24953
25040
  var FeeValue = /** @class */ (function () {
24954
25041
  function FeeValue() {
24955
25042
  }
@@ -26040,7 +26127,7 @@
26040
26127
  FormModule,
26041
26128
  TabsModule,
26042
26129
  LabelSubstitutorModule,
26043
- i1$5.NgxMdModule,
26130
+ i1$4.NgxMdModule,
26044
26131
  i4$1.NgxMatDatetimePickerModule,
26045
26132
  i4$1.NgxMatTimepickerModule,
26046
26133
  i4$1.NgxMatNativeDateModule,
@@ -26049,7 +26136,7 @@
26049
26136
  i5$1.MatDatepickerModule,
26050
26137
  i4.MatAutocompleteModule,
26051
26138
  i7.CdkTreeModule,
26052
- i1$4.OverlayModule,
26139
+ i1$5.OverlayModule,
26053
26140
  i3.PaymentLibModule,
26054
26141
  i2$1.ScrollToModule.forRoot(),
26055
26142
  i1$3.MatDialogModule,
@@ -26183,7 +26270,7 @@
26183
26270
  FormModule,
26184
26271
  TabsModule,
26185
26272
  LabelSubstitutorModule,
26186
- i1$5.NgxMdModule,
26273
+ i1$4.NgxMdModule,
26187
26274
  i4$1.NgxMatDatetimePickerModule,
26188
26275
  i4$1.NgxMatTimepickerModule,
26189
26276
  i4$1.NgxMatNativeDateModule,
@@ -26192,7 +26279,7 @@
26192
26279
  i5$1.MatDatepickerModule,
26193
26280
  i4.MatAutocompleteModule,
26194
26281
  i7.CdkTreeModule,
26195
- i1$4.OverlayModule,
26282
+ i1$5.OverlayModule,
26196
26283
  i3.PaymentLibModule, i2__namespace$1.ScrollToModule, i1$3.MatDialogModule,
26197
26284
  i11.MediaViewerModule,
26198
26285
  LoadingModule], exports: [i4$1.NgxMatDatetimePickerModule,
@@ -26316,7 +26403,7 @@
26316
26403
  FormModule,
26317
26404
  TabsModule,
26318
26405
  LabelSubstitutorModule,
26319
- i1$5.NgxMdModule,
26406
+ i1$4.NgxMdModule,
26320
26407
  i4$1.NgxMatDatetimePickerModule,
26321
26408
  i4$1.NgxMatTimepickerModule,
26322
26409
  i4$1.NgxMatNativeDateModule,
@@ -26325,7 +26412,7 @@
26325
26412
  i5$1.MatDatepickerModule,
26326
26413
  i4.MatAutocompleteModule,
26327
26414
  i7.CdkTreeModule,
26328
- i1$4.OverlayModule,
26415
+ i1$5.OverlayModule,
26329
26416
  i3.PaymentLibModule,
26330
26417
  i2$1.ScrollToModule.forRoot(),
26331
26418
  i1$3.MatDialogModule,