@hmcts/ccd-case-ui-toolkit 6.19.15-exui-1123 → 6.19.15-exui-1175

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.
@@ -5199,17 +5199,12 @@
5199
5199
  };
5200
5200
  AbstractFormFieldComponent.prototype.registerControl = function (control, replace) {
5201
5201
  if (replace === void 0) { replace = false; }
5202
- var _a;
5203
5202
  var container = this.parent || this.formGroup;
5204
5203
  if (!container) {
5205
5204
  return control;
5206
5205
  }
5207
5206
  var existing = container.controls[this.caseField.id];
5208
- // update the field value which has been set in mid-event call back
5209
5207
  if (existing) {
5210
- if (existing.value === null && ((_a = this.caseField) === null || _a === void 0 ? void 0 : _a.value)) {
5211
- existing.value = this.caseField.value;
5212
- }
5213
5208
  if (replace) {
5214
5209
  // Set the validators on the replacement with what already exists.
5215
5210
  control.setValidators(existing.validator);
@@ -8725,7 +8720,7 @@
8725
8720
  return childrenCaseFields;
8726
8721
  };
8727
8722
  WizardPageFieldToCaseFieldMapper.prototype.allCaseFieldsHidden = function (children) {
8728
- return !children.some(function (e) { return e.hidden !== true; });
8723
+ return children.every(function (e) { return e.display_context === 'HIDDEN'; });
8729
8724
  };
8730
8725
  return WizardPageFieldToCaseFieldMapper;
8731
8726
  }());