@hmcts/ccd-case-ui-toolkit 6.16.0-query-management-respond-validation → 6.16.0-query-management-respond-validation-v2

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.
@@ -21339,6 +21339,7 @@
21339
21339
  RaiseQueryErrorMessage["QUERY_BODY"] = "Enter query details";
21340
21340
  RaiseQueryErrorMessage["QUERY_HEARING_RELATED"] = "Select whether the query is hearing related or not";
21341
21341
  RaiseQueryErrorMessage["QUERY_HEARING_DATE"] = "Enter a valid date";
21342
+ RaiseQueryErrorMessage["RESPOND_QUERY_BODY"] = "Add a response before continue";
21342
21343
  })(exports.RaiseQueryErrorMessage || (exports.RaiseQueryErrorMessage = {}));
21343
21344
 
21344
21345
  exports.RespondToQueryErrorMessages = void 0;
@@ -21665,7 +21666,7 @@
21665
21666
  i0__namespace.ɵɵadvance(2);
21666
21667
  i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(3, 2, "Error:"), " ");
21667
21668
  i0__namespace.ɵɵadvance(2);
21668
- i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r0.respondToQueryErrorMessages.FULL_NAME), " ");
21669
+ i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessages.FULL_NAME), " ");
21669
21670
  }
21670
21671
  }
21671
21672
  function QueryWriteRespondToQueryComponent_p_37_Template(rf, ctx) {
@@ -21684,7 +21685,7 @@
21684
21685
  i0__namespace.ɵɵadvance(2);
21685
21686
  i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(3, 2, "Error:"), " ");
21686
21687
  i0__namespace.ɵɵadvance(2);
21687
- i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r1.respondToQueryErrorMessages.QUERY_BODY), " ");
21688
+ i0__namespace.ɵɵtextInterpolate1("", ctx_r1.QueryCreateContext === ctx_r1.queryItemTypeEnum.RESPOND ? ctx_r1.raiseQueryErrorMessages.RESPOND_QUERY_BODY : i0__namespace.ɵɵpipeBind1(5, 4, ctx_r1.raiseQueryErrorMessages.QUERY_BODY), " ");
21688
21689
  }
21689
21690
  }
21690
21691
  var QueryWriteRespondToQueryComponent = /** @class */ (function () {
@@ -21693,7 +21694,7 @@
21693
21694
  // Set default value as false for testing follow up EUI-8454
21694
21695
  this.QueryCreateContext = exports.QueryItemType.FOLLOWUP;
21695
21696
  this.queryItemTypeEnum = exports.QueryItemType;
21696
- this.respondToQueryErrorMessages = exports.RespondToQueryErrorMessages;
21697
+ this.raiseQueryErrorMessages = exports.RaiseQueryErrorMessage;
21697
21698
  }
21698
21699
  return QueryWriteRespondToQueryComponent;
21699
21700
  }());