@hmcts/ccd-case-ui-toolkit 6.13.10-b → 6.13.10-mv-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.
@@ -25009,26 +25009,23 @@
25009
25009
  || !ReadFieldsFilterPipe.isEmpty(value[field.id]);
25010
25010
  };
25011
25011
  ReadFieldsFilterPipe.getValue = function (field, values, index) {
25012
- if (ReadFieldsFilterPipe.isEmpty(field.value)) {
25013
- var value = void 0;
25014
- if (index >= 0) {
25015
- value = values[index].value[field.id];
25016
- }
25017
- else {
25018
- value = values[field.id];
25019
- }
25020
- return value;
25012
+ var value;
25013
+ if (index >= 0) {
25014
+ value = values[index].value[field.id];
25015
+ }
25016
+ else {
25017
+ value = values[field.id];
25021
25018
  }
25022
- return field.value;
25019
+ return ReadFieldsFilterPipe.isEmpty(field.value) ? value : field.value;
25023
25020
  };
25024
- ReadFieldsFilterPipe.evaluateConditionalShow = function (field, formValue, path, formGroupAvailable, fieldId) {
25021
+ ReadFieldsFilterPipe.evaluateConditionalShow = function (field, formValue, path, formGroupAvaliable, fieldId) {
25025
25022
  if (field.display_context === 'HIDDEN') {
25026
25023
  field.hidden = true;
25027
25024
  }
25028
25025
  else if (field.show_condition) {
25029
25026
  var cond = void 0;
25030
- if (fieldId && field.show_condition.indexOf(fieldId + ".") > -1 && !formGroupAvailable && !!Object.keys(formValue).length) {
25031
- var search = fieldId + ".";
25027
+ if (fieldId && field.show_condition.indexOf(fieldId) > -1 && !formGroupAvaliable && !!Object.keys(formValue).length) {
25028
+ var search = fieldId + '.';
25032
25029
  var searchRegExp = new RegExp(search, 'g');
25033
25030
  var replaceWith = '';
25034
25031
  cond = ShowCondition.getInstance(field.show_condition.replace(searchRegExp, replaceWith));
@@ -25868,8 +25865,8 @@
25868
25865
  i0__namespace.ɵɵsetComponentScope(WriteCollectionFieldComponent, [i1__namespace.NgIf, i1__namespace.NgForOf, FieldWriteComponent, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective], [FieldLabelPipe, FirstErrorPipe]);
25869
25866
  i0__namespace.ɵɵsetComponentScope(
25870
25867
  // ComponentLauncher web components
25871
- CaseFileViewFieldComponent, [i1__namespace.NgIf, CaseFileViewFolderComponent, i11__namespace.ɵcs], []);
25872
- i0__namespace.ɵɵsetComponentScope(CaseFileViewFieldReadComponent, [i1__namespace.NgIf, CaseFileViewFolderComponent, i11__namespace.ɵcs], []);
25868
+ CaseFileViewFieldComponent, [i1__namespace.NgIf, CaseFileViewFolderComponent, i11__namespace.MediaViewerComponent], []);
25869
+ i0__namespace.ɵɵsetComponentScope(CaseFileViewFieldReadComponent, [i1__namespace.NgIf, CaseFileViewFolderComponent, i11__namespace.MediaViewerComponent], []);
25873
25870
  i0__namespace.ɵɵsetComponentScope(LinkedCasesToTableComponent, [i1__namespace.NgIf, i1__namespace.NgForOf], [CaseReferencePipe, LinkCasesReasonValuePipe]);
25874
25871
  i0__namespace.ɵɵsetComponentScope(LinkedCasesFromTableComponent, [i1__namespace.NgIf, i1__namespace.NgForOf], [CaseReferencePipe, LinkCasesFromReasonValuePipe]);
25875
25872
  i0__namespace.ɵɵsetComponentScope(LinkCasesComponent, [i1__namespace.NgIf, i2__namespace.NgControlStatusGroup, i2__namespace.FormGroupDirective, i1__namespace.NgClass, i2__namespace.DefaultValueAccessor, i2__namespace.NgControlStatus, i2__namespace.FormControlName, i2__namespace.FormArrayName, i1__namespace.NgForOf, i2__namespace.FormGroupName, i2__namespace.CheckboxControlValueAccessor], [CaseReferencePipe, LinkCasesReasonValuePipe]);