@hmcts/ccd-case-ui-toolkit 4.9.0-rc.2 → 4.9.0-rc.6

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.
package/dist/index.umd.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @hmcts/ccd-case-ui-toolkit - Case UI Toolkit
3
- * @version v4.9.0-rc.2
3
+ * @version v4.9.0-rc.6
4
4
  * @link undefined
5
5
  * @license MIT
6
6
  */
@@ -13743,7 +13743,6 @@ var CaseEditPageComponent = /** @class */ (function () {
13743
13743
  if (this.currentPageIsNotValid()) {
13744
13744
  this.generateErrorMessage(this.currentPage.case_fields);
13745
13745
  }
13746
- this.showSpinner = true;
13747
13746
  if (!this.isSubmitting && !this.currentPageIsNotValid()) {
13748
13747
  this.isSubmitting = true;
13749
13748
  this.error = null;
@@ -21852,6 +21851,10 @@ var ReadFieldsFilterPipe = /** @class */ (function () {
21852
21851
  return !!hasChildrenWithValue;
21853
21852
  };
21854
21853
  ReadFieldsFilterPipe.isValidCollection = function (field, values) {
21854
+ // if field is collection and it has complex/collection child field; parent field doesnt have value defined
21855
+ if (!Array.isArray(field.value) && values && values.hasOwnProperty(field.id)) {
21856
+ return true;
21857
+ }
21855
21858
  var isNotEmpty = Array.isArray(field.value) && field.value.length > 0;
21856
21859
  if (isNotEmpty && field.field_type.collection_field_type.type === 'Complex') {
21857
21860
  return !!field.value.find(function (item) {
@@ -65063,7 +65066,7 @@ module.exports = "<div *ngIf=\"isDataLoaded()\">\n <ccd-case-viewer [hasPrint
65063
65066
  /***/ 67025:
65064
65067
  /***/ ((module) => {
65065
65068
 
65066
- module.exports = "<div *ngIf=\"isDataLoaded()\">\n <ccd-case-basic-access-view *ngIf=\"!hasStandardAccess()\"\n [accessType]=\"userAccessType\"\n [caseDetails]=\"caseDetails\">\n </ccd-case-basic-access-view>\n <ccd-case-full-access-view *ngIf=\"hasStandardAccess()\"\n [caseDetails]=\"caseDetails\"\n [hasPrint]=\"hasPrint\"\n [hasEventSelector]=\"hasEventSelector\"\n [prependedTabs]=\"prependedTabs\"\n [appendedTabs]=\"appendedTabs\">\n </ccd-case-full-access-view>\n <ccd-case-full-access-view *ngIf=\"hasStandardAccess()\" [caseDetails]=\"caseDetails\" [hasPrint]=\"hasPrint\" [hasEventSelector]=\"hasEventSelector\" [prependedTabs]=\"prependedTabs\" [appendedTabs]=\"appendedTabs\"></ccd-case-full-access-view>\n</div>\n"
65069
+ module.exports = "<div *ngIf=\"isDataLoaded()\">\n <ccd-case-basic-access-view *ngIf=\"!hasStandardAccess()\"\n [accessType]=\"userAccessType\"\n [caseDetails]=\"caseDetails\">\n </ccd-case-basic-access-view>\n <ccd-case-full-access-view *ngIf=\"hasStandardAccess()\"\n [caseDetails]=\"caseDetails\"\n [hasPrint]=\"hasPrint\"\n [hasEventSelector]=\"hasEventSelector\"\n [prependedTabs]=\"prependedTabs\"\n [appendedTabs]=\"appendedTabs\">\n </ccd-case-full-access-view>\n</div>\n"
65067
65070
 
65068
65071
  /***/ }),
65069
65072