@hmcts/ccd-case-ui-toolkit 4.18.13 → 4.18.14

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.18.13
3
+ * @version v4.18.14
4
4
  * @link undefined
5
5
  * @license MIT
6
6
  */
@@ -30401,13 +30401,15 @@ var ReadComplexFieldComponent = /** @class */ (function (_super) {
30401
30401
  if (this.caseField.display_context_parameter) {
30402
30402
  this.context = palette_context_enum_1.PaletteContext.TABLE_VIEW;
30403
30403
  }
30404
- else if (!this.caseField.display_context_parameter && this.context && this.context !== palette_context_enum_1.PaletteContext.CHECK_YOUR_ANSWER) {
30404
+ else {
30405
30405
  // default to default views
30406
- this.context = palette_context_enum_1.PaletteContext.DEFAULT;
30406
+ if (!this.caseField.display_context_parameter && this.context) {
30407
+ this.context = palette_context_enum_1.PaletteContext.DEFAULT;
30408
+ }
30407
30409
  }
30408
30410
  if (this.caseField.field_type) {
30409
30411
  this.caseField.field_type.complex_fields.map(function (field) {
30410
- if (field.isDynamic()) {
30412
+ if (field.isDynamic() && _this.caseField.value[field.id]) {
30411
30413
  field.list_items = _this.caseField.value[field.id].list_items;
30412
30414
  field.value = {
30413
30415
  list_items: field.list_items,
@@ -90127,7 +90129,7 @@ module.exports = "<dl class=\"complex-raw\">\n <ng-container *ngFor=\"let field
90127
90129
  /***/ 28274:
90128
90130
  /***/ ((module) => {
90129
90131
 
90130
- module.exports = "<div class=\"complex-panel\">\n <dl class=\"complex-panel-title\"><dt><span class=\"text-16\">{{caseField.label}}</span></dt><dd></dd></dl>\n <table class=\"complex-panel-table\">\n <tbody>\n <ng-container *ngFor=\"let field of caseField | ccdReadFieldsFilter:false :undefined :true\">\n <ng-container *ngIf=\"(field | ccdIsCompound); else SimpleRow\">\n <tr class=\"complex-panel-compound-field\" [hidden]=\"field.hidden\">\n <td colspan=\"2\">\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"topLevelFormGroup\"\n [caseField]=\"field\" [context]=\"context\"></ccd-field-read>\n </span>\n </td>\n </tr>\n </ng-container>\n <ng-template #SimpleRow>\n <tr class=\"complex-panel-simple-field\" [hidden]=\"field.hidden\">\n <th><span class=\"text-16\">{{field.label}}</span></th>\n <td>\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"topLevelFormGroup\"\n [caseField]=\"field\" [context]=\"context\"></ccd-field-read>\n </span>\n </td>\n </tr>\n </ng-template>\n </ng-container>\n </tbody>\n </table>\n</div>\n"
90132
+ module.exports = "<div class=\"complex-panel\">\n <dl class=\"complex-panel-title\"><dt><span class=\"text-16\">{{caseField.label}}</span></dt><dd></dd></dl>\n <table class=\"complex-panel-table\">\n <tbody>\n <ng-container *ngFor=\"let field of caseField | ccdReadFieldsFilter:false :undefined :true :topLevelFormGroup\">\n <ng-container *ngIf=\"(field | ccdIsCompound); else SimpleRow\">\n <tr class=\"complex-panel-compound-field\" [hidden]=\"field.hidden\">\n <td colspan=\"2\">\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"topLevelFormGroup\"\n [caseField]=\"field\" [context]=\"context\"></ccd-field-read>\n </span>\n </td>\n </tr>\n </ng-container>\n <ng-template #SimpleRow>\n <tr class=\"complex-panel-simple-field\" [hidden]=\"field.hidden\">\n <th><span class=\"text-16\">{{field.label}}</span></th>\n <td>\n <span class=\"text-16\">\n <ccd-field-read [topLevelFormGroup]=\"topLevelFormGroup\"\n [caseField]=\"field\" [context]=\"context\"></ccd-field-read>\n </span>\n </td>\n </tr>\n </ng-template>\n </ng-container>\n </tbody>\n </table>\n</div>\n"
90131
90133
 
90132
90134
  /***/ }),
90133
90135