@hmcts/ccd-case-ui-toolkit 6.16.0-query-management-minor-defects → 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.
Files changed (41) hide show
  1. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +66 -149
  2. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js.map +1 -1
  3. package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js +1 -1
  4. package/bundles/hmcts-ccd-case-ui-toolkit.umd.min.js.map +1 -1
  5. package/esm2015/lib/shared/components/palette/palette.module.js +2 -9
  6. package/esm2015/lib/shared/components/palette/palette.service.js +3 -4
  7. package/esm2015/lib/shared/components/palette/query-management/components/index.js +1 -2
  8. package/esm2015/lib/shared/components/palette/query-management/components/query-check-your-answers/query-check-your-answers.component.js +9 -9
  9. package/esm2015/lib/shared/components/palette/query-management/components/query-write/query-write-raise-query/query-write-raise-query.component.js +33 -27
  10. package/esm2015/lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.js +17 -13
  11. package/esm2015/lib/shared/components/palette/query-management/enums/index.js +2 -1
  12. package/esm2015/lib/shared/components/palette/query-management/enums/raise-query-error-message.enum.js +2 -1
  13. package/esm2015/lib/shared/components/palette/query-management/enums/respond-to-query-error-messages.enum.js +6 -0
  14. package/esm2015/lib/shared/components/palette/query-management/index.js +2 -2
  15. package/fesm2015/hmcts-ccd-case-ui-toolkit.js +64 -128
  16. package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
  17. package/lib/shared/components/palette/palette.module.d.ts +38 -40
  18. package/lib/shared/components/palette/palette.module.d.ts.map +1 -1
  19. package/lib/shared/components/palette/palette.service.d.ts.map +1 -1
  20. package/lib/shared/components/palette/query-management/components/index.d.ts +0 -1
  21. package/lib/shared/components/palette/query-management/components/index.d.ts.map +1 -1
  22. package/lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.d.ts +2 -0
  23. package/lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.d.ts.map +1 -1
  24. package/lib/shared/components/palette/query-management/enums/index.d.ts +1 -0
  25. package/lib/shared/components/palette/query-management/enums/index.d.ts.map +1 -1
  26. package/lib/shared/components/palette/query-management/enums/raise-query-error-message.enum.d.ts +2 -1
  27. package/lib/shared/components/palette/query-management/enums/raise-query-error-message.enum.d.ts.map +1 -1
  28. package/lib/shared/components/palette/query-management/enums/respond-to-query-error-messages.enum.d.ts +5 -0
  29. package/lib/shared/components/palette/query-management/enums/respond-to-query-error-messages.enum.d.ts.map +1 -0
  30. package/lib/shared/components/palette/query-management/index.d.ts +1 -1
  31. package/lib/shared/components/palette/query-management/index.d.ts.map +1 -1
  32. package/package.json +1 -1
  33. package/esm2015/lib/shared/components/palette/query-management/components/query-create/query-create.component.js +0 -18
  34. package/esm2015/lib/shared/components/palette/query-management/components/query-management-error-messages/query-management-error-message.model.js +0 -2
  35. package/esm2015/lib/shared/components/palette/query-management/write-query-management-field.component.js +0 -60
  36. package/lib/shared/components/palette/query-management/components/query-create/query-create.component.d.ts +0 -9
  37. package/lib/shared/components/palette/query-management/components/query-create/query-create.component.d.ts.map +0 -1
  38. package/lib/shared/components/palette/query-management/components/query-management-error-messages/query-management-error-message.model.d.ts +0 -5
  39. package/lib/shared/components/palette/query-management/components/query-management-error-messages/query-management-error-message.model.d.ts.map +0 -1
  40. package/lib/shared/components/palette/query-management/write-query-management-field.component.d.ts +0 -16
  41. package/lib/shared/components/palette/query-management/write-query-management-field.component.d.ts.map +0 -1
@@ -20562,7 +20562,7 @@
20562
20562
  }
20563
20563
  function QueryCheckYourAnswersComponent_ccd_read_collection_field_37_Template(rf, ctx) {
20564
20564
  if (rf & 1) {
20565
- i0__namespace.ɵɵelement(0, "ccd-read-collection-field", 18);
20565
+ i0__namespace.ɵɵelement(0, "ccd-read-collection-field", 17);
20566
20566
  }
20567
20567
  if (rf & 2) {
20568
20568
  var ctx_r4 = i0__namespace.ɵɵnextContext();
@@ -20585,7 +20585,7 @@
20585
20585
  return QueryCheckYourAnswersComponent;
20586
20586
  }());
20587
20587
  QueryCheckYourAnswersComponent.ɵfac = function QueryCheckYourAnswersComponent_Factory(t) { return new (t || QueryCheckYourAnswersComponent)(); };
20588
- QueryCheckYourAnswersComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryCheckYourAnswersComponent, selectors: [["ccd-query-check-your-answers"]], inputs: { formGroup: "formGroup", queryItem: "queryItem", QueryCreateContext: "QueryCreateContext" }, outputs: { backClicked: "backClicked" }, decls: 50, vars: 30, consts: [[1, "govuk-grid-row"], [1, "govuk-grid-column-two-thirds-from-desktop"], [1, "govuk-heading-l"], [4, "ngIf", "ngIfElse"], ["defaultCheckYourAnswersTitle", ""], [1, "govuk-!-margin-bottom-4"], ["class", "govuk-summary-list govuk-!-margin-bottom-0", 4, "ngIf"], [1, "govuk-summary-list", "govuk-!-margin-bottom-0"], [1, "govuk-summary-list__row"], [1, "govuk-summary-list__key"], [1, "govuk-summary-list__value"], [1, "govuk-summary-list__actions"], [1, "govuk-link", 3, "click"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [1, "govuk-summary-list__value", "govuk-summary-list__value--documentAttached"], [3, "caseField", 4, "ngIf"], ["data-module", "govuk-button", 1, "govuk-button", "govuk-button--secondary", "govuk-!-margin-right-3", 3, "click"], ["data-module", "govuk-button", 1, "govuk-button"], [3, "caseField"]], template: function QueryCheckYourAnswersComponent_Template(rf, ctx) {
20588
+ QueryCheckYourAnswersComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryCheckYourAnswersComponent, selectors: [["ccd-query-check-your-answers"]], inputs: { formGroup: "formGroup", queryItem: "queryItem", QueryCreateContext: "QueryCreateContext" }, outputs: { backClicked: "backClicked" }, decls: 50, vars: 30, consts: [[1, "govuk-grid-row"], [1, "govuk-grid-column-two-thirds-from-desktop"], [1, "govuk-heading-l"], [4, "ngIf", "ngIfElse"], ["defaultCheckYourAnswersTitle", ""], [1, "govuk-!-margin-bottom-4"], ["class", "govuk-summary-list govuk-!-margin-bottom-0", 4, "ngIf"], [1, "govuk-summary-list", "govuk-!-margin-bottom-0"], [1, "govuk-summary-list__row"], [1, "govuk-summary-list__key"], [1, "govuk-summary-list__value"], [1, "govuk-summary-list__actions"], ["href", "javascript:void(0)", 1, "govuk-link", 3, "click"], [1, "govuk-summary-list__value", "govuk-summary-list__value--documentAttached"], [3, "caseField", 4, "ngIf"], ["data-module", "govuk-button", 1, "govuk-button", "govuk-button--secondary", "govuk-!-margin-right-3", 3, "click"], ["data-module", "govuk-button", 1, "govuk-button"], [3, "caseField"]], template: function QueryCheckYourAnswersComponent_Template(rf, ctx) {
20589
20589
  if (rf & 1) {
20590
20590
  i0__namespace.ɵɵelementStart(0, "div", 0);
20591
20591
  i0__namespace.ɵɵelementStart(1, "div", 1);
@@ -20625,7 +20625,7 @@
20625
20625
  i0__namespace.ɵɵtext(26);
20626
20626
  i0__namespace.ɵɵelementEnd();
20627
20627
  i0__namespace.ɵɵelementStart(27, "dd", 11);
20628
- i0__namespace.ɵɵelementStart(28, "a", 13);
20628
+ i0__namespace.ɵɵelementStart(28, "a", 12);
20629
20629
  i0__namespace.ɵɵlistener("click", function QueryCheckYourAnswersComponent_Template_a_click_28_listener() { return ctx.goBack(); });
20630
20630
  i0__namespace.ɵɵtext(29);
20631
20631
  i0__namespace.ɵɵpipe(30, "rpxTranslate");
@@ -20639,11 +20639,11 @@
20639
20639
  i0__namespace.ɵɵtext(34);
20640
20640
  i0__namespace.ɵɵpipe(35, "rpxTranslate");
20641
20641
  i0__namespace.ɵɵelementEnd();
20642
- i0__namespace.ɵɵelementStart(36, "dd", 14);
20643
- i0__namespace.ɵɵtemplate(37, QueryCheckYourAnswersComponent_ccd_read_collection_field_37_Template, 1, 1, "ccd-read-collection-field", 15);
20642
+ i0__namespace.ɵɵelementStart(36, "dd", 13);
20643
+ i0__namespace.ɵɵtemplate(37, QueryCheckYourAnswersComponent_ccd_read_collection_field_37_Template, 1, 1, "ccd-read-collection-field", 14);
20644
20644
  i0__namespace.ɵɵelementEnd();
20645
20645
  i0__namespace.ɵɵelementStart(38, "dd", 11);
20646
- i0__namespace.ɵɵelementStart(39, "a", 13);
20646
+ i0__namespace.ɵɵelementStart(39, "a", 12);
20647
20647
  i0__namespace.ɵɵlistener("click", function QueryCheckYourAnswersComponent_Template_a_click_39_listener() { return ctx.goBack(); });
20648
20648
  i0__namespace.ɵɵtext(40);
20649
20649
  i0__namespace.ɵɵpipe(41, "rpxTranslate");
@@ -20653,12 +20653,12 @@
20653
20653
  i0__namespace.ɵɵelementEnd();
20654
20654
  i0__namespace.ɵɵelement(42, "br");
20655
20655
  i0__namespace.ɵɵelementStart(43, "div");
20656
- i0__namespace.ɵɵelementStart(44, "button", 16);
20656
+ i0__namespace.ɵɵelementStart(44, "button", 15);
20657
20657
  i0__namespace.ɵɵlistener("click", function QueryCheckYourAnswersComponent_Template_button_click_44_listener() { return ctx.goBack(); });
20658
20658
  i0__namespace.ɵɵtext(45);
20659
20659
  i0__namespace.ɵɵpipe(46, "rpxTranslate");
20660
20660
  i0__namespace.ɵɵelementEnd();
20661
- i0__namespace.ɵɵelementStart(47, "button", 17);
20661
+ i0__namespace.ɵɵelementStart(47, "button", 16);
20662
20662
  i0__namespace.ɵɵtext(48);
20663
20663
  i0__namespace.ɵɵpipe(49, "rpxTranslate");
20664
20664
  i0__namespace.ɵɵelementEnd();
@@ -20716,25 +20716,6 @@
20716
20716
  }] });
20717
20717
  })();
20718
20718
 
20719
- var QueryCreateComponent = /** @class */ (function () {
20720
- function QueryCreateComponent() {
20721
- }
20722
- QueryCreateComponent.prototype.ngOnInit = function () {
20723
- };
20724
- return QueryCreateComponent;
20725
- }());
20726
- QueryCreateComponent.ɵfac = function QueryCreateComponent_Factory(t) { return new (t || QueryCreateComponent)(); };
20727
- QueryCreateComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryCreateComponent, selectors: [["ccd-query-create"]], decls: 0, vars: 0, template: function QueryCreateComponent_Template(rf, ctx) { }, encapsulation: 2 });
20728
- (function () {
20729
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryCreateComponent, [{
20730
- type: i0.Component,
20731
- args: [{
20732
- selector: 'ccd-query-create',
20733
- templateUrl: './query-create.component.html',
20734
- }]
20735
- }], function () { return []; }, null);
20736
- })();
20737
-
20738
20719
  function QueryDetailsTableComponent_ng_container_0_tr_35_Template(rf, ctx) {
20739
20720
  if (rf & 1) {
20740
20721
  i0__namespace.ɵɵelementStart(0, "tr", 3);
@@ -21351,14 +21332,21 @@
21351
21332
  }] });
21352
21333
  })();
21353
21334
 
21354
- var RaiseQueryErrorMessage;
21335
+ exports.RaiseQueryErrorMessage = void 0;
21355
21336
  (function (RaiseQueryErrorMessage) {
21356
21337
  RaiseQueryErrorMessage["FULL_NAME"] = "Enter a full name";
21357
21338
  RaiseQueryErrorMessage["QUERY_SUBJECT"] = "Enter a query subject";
21358
21339
  RaiseQueryErrorMessage["QUERY_BODY"] = "Enter query details";
21359
21340
  RaiseQueryErrorMessage["QUERY_HEARING_RELATED"] = "Select whether the query is hearing related or not";
21360
21341
  RaiseQueryErrorMessage["QUERY_HEARING_DATE"] = "Enter a valid date";
21361
- })(RaiseQueryErrorMessage || (RaiseQueryErrorMessage = {}));
21342
+ RaiseQueryErrorMessage["RESPOND_QUERY_BODY"] = "Add a response before continue";
21343
+ })(exports.RaiseQueryErrorMessage || (exports.RaiseQueryErrorMessage = {}));
21344
+
21345
+ exports.RespondToQueryErrorMessages = void 0;
21346
+ (function (RespondToQueryErrorMessages) {
21347
+ RespondToQueryErrorMessages["FULL_NAME"] = "Enter a full name";
21348
+ RespondToQueryErrorMessages["QUERY_BODY"] = "Add a response before continue";
21349
+ })(exports.RespondToQueryErrorMessages || (exports.RespondToQueryErrorMessages = {}));
21362
21350
 
21363
21351
  function QueryWriteRaiseQueryComponent_p_22_Template(rf, ctx) {
21364
21352
  if (rf & 1) {
@@ -21374,9 +21362,9 @@
21374
21362
  if (rf & 2) {
21375
21363
  var ctx_r0 = i0__namespace.ɵɵnextContext();
21376
21364
  i0__namespace.ɵɵadvance(2);
21377
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 2, "Error:"));
21365
+ i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(3, 2, "Error:"), " ");
21378
21366
  i0__namespace.ɵɵadvance(2);
21379
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessage.FULL_NAME), " ");
21367
+ i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessage.FULL_NAME), " ");
21380
21368
  }
21381
21369
  }
21382
21370
  function QueryWriteRaiseQueryComponent_p_32_Template(rf, ctx) {
@@ -21393,9 +21381,9 @@
21393
21381
  if (rf & 2) {
21394
21382
  var ctx_r1 = i0__namespace.ɵɵnextContext();
21395
21383
  i0__namespace.ɵɵadvance(2);
21396
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 2, "Error:"));
21384
+ i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(3, 2, "Error:"), " ");
21397
21385
  i0__namespace.ɵɵadvance(2);
21398
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r1.raiseQueryErrorMessage.QUERY_SUBJECT), " ");
21386
+ i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r1.raiseQueryErrorMessage.QUERY_SUBJECT), " ");
21399
21387
  }
21400
21388
  }
21401
21389
  function QueryWriteRaiseQueryComponent_p_42_Template(rf, ctx) {
@@ -21412,9 +21400,9 @@
21412
21400
  if (rf & 2) {
21413
21401
  var ctx_r2 = i0__namespace.ɵɵnextContext();
21414
21402
  i0__namespace.ɵɵadvance(2);
21415
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 2, "Error:"));
21403
+ i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(3, 2, "Error:"), " ");
21416
21404
  i0__namespace.ɵɵadvance(2);
21417
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r2.raiseQueryErrorMessage.QUERY_BODY), " ");
21405
+ i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r2.raiseQueryErrorMessage.QUERY_BODY), " ");
21418
21406
  }
21419
21407
  }
21420
21408
  function QueryWriteRaiseQueryComponent_p_51_Template(rf, ctx) {
@@ -21431,9 +21419,9 @@
21431
21419
  if (rf & 2) {
21432
21420
  var ctx_r3 = i0__namespace.ɵɵnextContext();
21433
21421
  i0__namespace.ɵɵadvance(2);
21434
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 2, "Error:"));
21422
+ i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(3, 2, "Error:"), " ");
21435
21423
  i0__namespace.ɵɵadvance(2);
21436
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r3.raiseQueryErrorMessage.QUERY_HEARING_RELATED), " ");
21424
+ i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r3.raiseQueryErrorMessage.QUERY_HEARING_RELATED), " ");
21437
21425
  }
21438
21426
  }
21439
21427
  function QueryWriteRaiseQueryComponent_ng_container_63_p_7_Template(rf, ctx) {
@@ -21450,9 +21438,9 @@
21450
21438
  if (rf & 2) {
21451
21439
  var ctx_r5 = i0__namespace.ɵɵnextContext(2);
21452
21440
  i0__namespace.ɵɵadvance(2);
21453
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 2, "Error:"));
21441
+ i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(3, 2, "Error:"), " ");
21454
21442
  i0__namespace.ɵɵadvance(2);
21455
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r5.raiseQueryErrorMessage.QUERY_HEARING_DATE), " ");
21443
+ i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r5.raiseQueryErrorMessage.QUERY_HEARING_DATE), " ");
21456
21444
  }
21457
21445
  }
21458
21446
  var _c0$B = function (a0) { return { "govuk-form-group--error": a0 }; };
@@ -21485,12 +21473,12 @@
21485
21473
  }
21486
21474
  var QueryWriteRaiseQueryComponent = /** @class */ (function () {
21487
21475
  function QueryWriteRaiseQueryComponent() {
21488
- this.raiseQueryErrorMessage = RaiseQueryErrorMessage;
21476
+ this.raiseQueryErrorMessage = exports.RaiseQueryErrorMessage;
21489
21477
  }
21490
21478
  return QueryWriteRaiseQueryComponent;
21491
21479
  }());
21492
21480
  QueryWriteRaiseQueryComponent.ɵfac = function QueryWriteRaiseQueryComponent_Factory(t) { return new (t || QueryWriteRaiseQueryComponent)(); };
21493
- QueryWriteRaiseQueryComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryWriteRaiseQueryComponent, selectors: [["ccd-query-write-raise-query"]], inputs: { formGroup: "formGroup", submitted: "submitted" }, decls: 64, vars: 62, consts: [[1, "govuk-!-margin-bottom-6"], [1, "govuk-caption-l"], [1, "govuk-heading-l", "govuk-!-margin-bottom-4"], [1, "govuk-!-margin-bottom-4"], [3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-label-wrapper"], ["for", "fullName", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "fullName-hint", 1, "govuk-hint"], ["id", "fullName-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "fullName", "name", "fullName", "type", "text", 1, "govuk-input", 3, "formControlName"], ["for", "subject", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "subject-hint", 1, "govuk-hint"], ["id", "subject-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "subject", "name", "subject", "type", "text", 1, "govuk-input", 3, "formControlName"], ["for", "body", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "body-hint", 1, "govuk-hint"], ["id", "body-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "body", "name", "body", "rows", "5", "aria-describedby", "body-hint body-error", 1, "govuk-textarea", 3, "formControlName"], [1, "govuk-fieldset"], [1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "isHearingRelated-error", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-radios", 1, "govuk-radios", "govuk-radios--inline"], [1, "govuk-radios__item"], ["id", "isHearingRelated-yes", "name", "isHearingRelated", "type", "radio", "formControlName", "isHearingRelated", 1, "govuk-radios__input", 3, "checked", "value"], ["for", "isHearingRelated-yes", 1, "govuk-label", "govuk-radios__label"], ["id", "isHearingRelated-no", "name", "isHearingRelated", "type", "radio", "formControlName", "isHearingRelated", 1, "govuk-radios__input", 3, "checked", "value"], ["for", "isHearingRelated-no", 1, "govuk-label", "govuk-radios__label"], [4, "ngIf"], ["id", "fullName-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "subject-error", 1, "govuk-error-message"], ["id", "body-error", 1, "govuk-error-message"], ["id", "isHearingRelated-error", 1, "govuk-error-message"], [1, "govuk-!-margin-top-1", 3, "ngClass"], ["role", "group", 1, "govuk-fieldset"], [1, "govuk-label", "govuk-label--s"], ["id", "hearingDate-error", "class", "govuk-error-message", 4, "ngIf"], ["formControlName", "hearingDate"], ["id", "hearingDate-error", 1, "govuk-error-message"]], template: function QueryWriteRaiseQueryComponent_Template(rf, ctx) {
21481
+ QueryWriteRaiseQueryComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryWriteRaiseQueryComponent, selectors: [["ccd-query-write-raise-query"]], inputs: { formGroup: "formGroup", submitted: "submitted" }, decls: 64, vars: 68, consts: [[1, "govuk-!-margin-bottom-6"], [1, "govuk-caption-l"], [1, "govuk-heading-l", "govuk-!-margin-bottom-4"], [1, "govuk-!-margin-bottom-4"], [3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-label-wrapper"], ["for", "fullName", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "fullName-hint", 1, "govuk-hint"], ["id", "fullName-error", "class", "govuk-error-message", 4, "ngIf"], ["type", "text", "name", "fullName", "id", "fullName", 1, "govuk-input", 3, "formControlName"], ["for", "subject", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "subject-hint", 1, "govuk-hint"], ["id", "subject-error", "class", "govuk-error-message", 4, "ngIf"], ["type", "text", "name", "subject", "id", "subject", 1, "govuk-input", 3, "formControlName"], ["for", "body", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "body-hint", 1, "govuk-hint"], ["id", "body-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "body", "name", "body", "rows", "5", "aria-describedby", "body-hint body-error", 1, "govuk-textarea", 3, "formControlName"], [1, "govuk-fieldset"], [1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "isHearingRelated-error", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-radios", 1, "govuk-radios", "govuk-radios--inline"], [1, "govuk-radios__item"], ["id", "isHearingRelated-yes", "name", "isHearingRelated", "type", "radio", "formControlName", "isHearingRelated", 1, "govuk-radios__input", 3, "checked", "value"], ["for", "isHearingRelated-yes", 1, "govuk-label", "govuk-radios__label"], ["id", "isHearingRelated-no", "name", "isHearingRelated", "type", "radio", "formControlName", "isHearingRelated", 1, "govuk-radios__input", 3, "checked", "value"], ["for", "isHearingRelated-no", 1, "govuk-label", "govuk-radios__label"], [4, "ngIf"], ["id", "fullName-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "subject-error", 1, "govuk-error-message"], ["id", "body-error", 1, "govuk-error-message"], ["id", "isHearingRelated-error", 1, "govuk-error-message"], [1, "govuk-!-margin-top-1", 3, "ngClass"], ["role", "group", 1, "govuk-fieldset"], [1, "govuk-label", "govuk-label--s"], ["id", "hearingDate-error", "class", "govuk-error-message", 4, "ngIf"], ["formControlName", "hearingDate"], ["id", "hearingDate-error", 1, "govuk-error-message"]], template: function QueryWriteRaiseQueryComponent_Template(rf, ctx) {
21494
21482
  if (rf & 1) {
21495
21483
  i0__namespace.ɵɵelementStart(0, "div");
21496
21484
  i0__namespace.ɵɵelementStart(1, "div", 0);
@@ -21588,56 +21576,62 @@
21588
21576
  i0__namespace.ɵɵelementEnd();
21589
21577
  }
21590
21578
  if (rf & 2) {
21579
+ var tmp_7_0 = null;
21580
+ var tmp_13_0 = null;
21581
+ var tmp_19_0 = null;
21591
21582
  i0__namespace.ɵɵadvance(3);
21592
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(4, 28, "Raise a query"));
21583
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(4, 34, "Raise a query"));
21593
21584
  i0__namespace.ɵɵadvance(3);
21594
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(7, 30, "Enter query details"));
21585
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(7, 36, "Enter query details"));
21595
21586
  i0__namespace.ɵɵadvance(6);
21596
21587
  i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
21597
21588
  i0__namespace.ɵɵadvance(2);
21598
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(54, _c0$B, ctx.submitted && ctx.formGroup.get("fullName").hasError("required")));
21589
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(60, _c0$B, ctx.submitted && ctx.formGroup.get("fullName").hasError("required")));
21599
21590
  i0__namespace.ɵɵadvance(3);
21600
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(18, 32, "Full name"), " ");
21591
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(18, 38, "Full name"), " ");
21601
21592
  i0__namespace.ɵɵadvance(3);
21602
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(21, 34, "Your full name must be included here"), " ");
21593
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(21, 40, "Your full name must be included here"), " ");
21603
21594
  i0__namespace.ɵɵadvance(2);
21604
21595
  i0__namespace.ɵɵproperty("ngIf", ctx.submitted && ctx.formGroup.get("fullName").hasError("required"));
21605
21596
  i0__namespace.ɵɵadvance(1);
21597
+ i0__namespace.ɵɵclassProp("govuk-input--error", ctx.submitted && ((tmp_7_0 = ctx.formGroup.get("fullName")) == null ? null : tmp_7_0.hasError("required")));
21606
21598
  i0__namespace.ɵɵproperty("formControlName", "fullName");
21607
21599
  i0__namespace.ɵɵadvance(1);
21608
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(56, _c0$B, ctx.submitted && ctx.formGroup.get("subject").hasError("required")));
21600
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(62, _c0$B, ctx.submitted && ctx.formGroup.get("subject").hasError("required")));
21609
21601
  i0__namespace.ɵɵadvance(3);
21610
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(28, 36, "Query subject"), " ");
21602
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(28, 42, "Query subject"), " ");
21611
21603
  i0__namespace.ɵɵadvance(3);
21612
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(31, 38, "The subject should be a summary of your query"), " ");
21604
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(31, 44, "The subject should be a summary of your query"), " ");
21613
21605
  i0__namespace.ɵɵadvance(2);
21614
21606
  i0__namespace.ɵɵproperty("ngIf", ctx.submitted && ctx.formGroup.get("subject").hasError("required"));
21615
21607
  i0__namespace.ɵɵadvance(1);
21608
+ i0__namespace.ɵɵclassProp("govuk-input--error", ctx.submitted && ((tmp_13_0 = ctx.formGroup.get("subject")) == null ? null : tmp_13_0.hasError("required")));
21616
21609
  i0__namespace.ɵɵproperty("formControlName", "subject");
21617
21610
  i0__namespace.ɵɵadvance(1);
21618
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(58, _c0$B, ctx.submitted && ctx.formGroup.get("body").hasError("required")));
21611
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(64, _c0$B, ctx.submitted && ctx.formGroup.get("body").hasError("required")));
21619
21612
  i0__namespace.ɵɵadvance(3);
21620
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(38, 40, "Query body"), " ");
21613
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(38, 46, "Query body"), " ");
21621
21614
  i0__namespace.ɵɵadvance(3);
21622
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(41, 42, "Include as many details as possible so case workers can respond to your query"), " ");
21615
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(41, 48, "Include as many details as possible so case workers can respond to your query"), " ");
21623
21616
  i0__namespace.ɵɵadvance(2);
21624
21617
  i0__namespace.ɵɵproperty("ngIf", ctx.submitted && ctx.formGroup.get("body").hasError("required"));
21625
21618
  i0__namespace.ɵɵadvance(1);
21619
+ i0__namespace.ɵɵclassProp("govuk-input--error", ctx.submitted && ((tmp_19_0 = ctx.formGroup.get("body")) == null ? null : tmp_19_0.hasError("required")));
21626
21620
  i0__namespace.ɵɵproperty("formControlName", "body");
21627
21621
  i0__namespace.ɵɵadvance(2);
21628
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(60, _c0$B, ctx.submitted && ctx.formGroup.get("isHearingRelated").hasError("required")));
21622
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(66, _c0$B, ctx.submitted && ctx.formGroup.get("isHearingRelated").hasError("required")));
21629
21623
  i0__namespace.ɵɵadvance(4);
21630
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(50, 44, "Is the query hearing related?"), " ");
21624
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(50, 50, "Is the query hearing related?"), " ");
21631
21625
  i0__namespace.ɵɵadvance(2);
21632
21626
  i0__namespace.ɵɵproperty("ngIf", ctx.submitted && ctx.formGroup.get("isHearingRelated").hasError("required"));
21633
21627
  i0__namespace.ɵɵadvance(3);
21634
21628
  i0__namespace.ɵɵproperty("checked", ctx.formGroup.get("isHearingRelated").value === true)("value", true);
21635
21629
  i0__namespace.ɵɵadvance(2);
21636
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind3(57, 46, "Is the query hearing related?", null, "Yes"), " ");
21630
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind3(57, 52, "Is the query hearing related?", null, "Yes"), " ");
21637
21631
  i0__namespace.ɵɵadvance(3);
21638
21632
  i0__namespace.ɵɵproperty("checked", ctx.formGroup.get("isHearingRelated").value === false)("value", false);
21639
21633
  i0__namespace.ɵɵadvance(2);
21640
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind3(62, 50, "Is the query hearing related?", null, "No"), " ");
21634
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind3(62, 56, "Is the query hearing related?", null, "No"), " ");
21641
21635
  i0__namespace.ɵɵadvance(2);
21642
21636
  i0__namespace.ɵɵproperty("ngIf", ctx.formGroup.get("isHearingRelated").value);
21643
21637
  }
@@ -21668,10 +21662,11 @@
21668
21662
  i0__namespace.ɵɵelementEnd();
21669
21663
  }
21670
21664
  if (rf & 2) {
21665
+ var ctx_r0 = i0__namespace.ɵɵnextContext();
21671
21666
  i0__namespace.ɵɵadvance(2);
21672
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 2, "Error:"));
21667
+ i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(3, 2, "Error:"), " ");
21673
21668
  i0__namespace.ɵɵadvance(2);
21674
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, "Enter your full name"), " ");
21669
+ i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessages.FULL_NAME), " ");
21675
21670
  }
21676
21671
  }
21677
21672
  function QueryWriteRespondToQueryComponent_p_37_Template(rf, ctx) {
@@ -21686,10 +21681,11 @@
21686
21681
  i0__namespace.ɵɵelementEnd();
21687
21682
  }
21688
21683
  if (rf & 2) {
21684
+ var ctx_r1 = i0__namespace.ɵɵnextContext();
21689
21685
  i0__namespace.ɵɵadvance(2);
21690
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 2, "Error:"));
21686
+ i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(3, 2, "Error:"), " ");
21691
21687
  i0__namespace.ɵɵadvance(2);
21692
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, "Enter a response message"), " ");
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), " ");
21693
21689
  }
21694
21690
  }
21695
21691
  var QueryWriteRespondToQueryComponent = /** @class */ (function () {
@@ -21698,11 +21694,12 @@
21698
21694
  // Set default value as false for testing follow up EUI-8454
21699
21695
  this.QueryCreateContext = exports.QueryItemType.FOLLOWUP;
21700
21696
  this.queryItemTypeEnum = exports.QueryItemType;
21697
+ this.raiseQueryErrorMessages = exports.RaiseQueryErrorMessage;
21701
21698
  }
21702
21699
  return QueryWriteRespondToQueryComponent;
21703
21700
  }());
21704
21701
  QueryWriteRespondToQueryComponent.ɵfac = function QueryWriteRespondToQueryComponent_Factory(t) { return new (t || QueryWriteRespondToQueryComponent)(); };
21705
- QueryWriteRespondToQueryComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryWriteRespondToQueryComponent, selectors: [["ccd-query-write-respond-to-query"]], inputs: { queryItem: "queryItem", formGroup: "formGroup", submitted: "submitted", QueryCreateContext: "QueryCreateContext" }, decls: 40, vars: 35, consts: [[1, "govuk-!-margin-bottom-2"], ["href", "javascript:void(0)", 1, "govuk-back-link", "govuk-!-margin-top-0"], [1, "govuk-!-margin-bottom-6"], [1, "govuk-caption-l"], [1, "govuk-heading-l", "govuk-!-margin-bottom-0"], [1, "govuk-!-margin-bottom-4"], [3, "queryItem"], [1, "query-respond"], [1, "govuk-heading-m"], [3, "formGroup"], [1, "govuk-form-group"], [1, "govuk-label-wrapper"], ["for", "query-respond-fullName", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "query-respond-fullName-hint", 1, "govuk-hint"], ["id", "query-respond-fullName-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "query-respond-fullName", "name", "query-respond-fullName", "type", "text", 1, "govuk-input", 3, "formControlName"], [1, "govuk-form-group", "body-textarea"], ["for", "query-body", 1, "govuk-label", "govuk-!-font-weight-bold"], ["id", "query-body-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "query-body", "name", "query-body", "rows", "5", "aria-describedby", "query-body-hint query-body-error", 1, "govuk-textarea", 3, "formControlName"], ["id", "query-respond-fullName-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "query-body-error", 1, "govuk-error-message"]], template: function QueryWriteRespondToQueryComponent_Template(rf, ctx) {
21702
+ QueryWriteRespondToQueryComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryWriteRespondToQueryComponent, selectors: [["ccd-query-write-respond-to-query"]], inputs: { queryItem: "queryItem", formGroup: "formGroup", submitted: "submitted", QueryCreateContext: "QueryCreateContext" }, decls: 40, vars: 35, consts: [[1, "govuk-!-margin-bottom-2"], ["href", "javascript:void(0)", 1, "govuk-back-link", "govuk-!-margin-top-0"], [1, "govuk-!-margin-bottom-6"], [1, "govuk-caption-l"], [1, "govuk-heading-l", "govuk-!-margin-bottom-0"], [1, "govuk-!-margin-bottom-4"], [3, "queryItem"], [1, "query-respond"], [1, "govuk-heading-m"], [3, "formGroup"], [1, "govuk-form-group"], [1, "govuk-label-wrapper"], ["for", "fullName", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "fullName-hint", 1, "govuk-hint"], ["id", "fullName-error", "class", "govuk-error-message", 4, "ngIf"], ["type", "text", "name", "fullName", "id", "fullName", 1, "govuk-input", 3, "formControlName"], [1, "govuk-form-group", "body-textarea"], ["for", "body", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "body-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "body", "name", "body", "rows", "5", "aria-describedby", "body-hint body-error", 1, "govuk-textarea", 3, "formControlName"], ["id", "fullName-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "body-error", 1, "govuk-error-message"]], template: function QueryWriteRespondToQueryComponent_Template(rf, ctx) {
21706
21703
  if (rf & 1) {
21707
21704
  i0__namespace.ɵɵelementStart(0, "div", 0);
21708
21705
  i0__namespace.ɵɵelementStart(1, "a", 1);
@@ -21775,7 +21772,7 @@
21775
21772
  i0__namespace.ɵɵadvance(2);
21776
21773
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 21, "Cancel and return to tasks"));
21777
21774
  i0__namespace.ɵɵadvance(5);
21778
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(8, 23, "Respond to the query"));
21775
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(8, 23, "Respond to query"));
21779
21776
  i0__namespace.ɵɵadvance(3);
21780
21777
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(11, 25, "Query details"));
21781
21778
  i0__namespace.ɵɵadvance(5);
@@ -21785,24 +21782,24 @@
21785
21782
  i0__namespace.ɵɵadvance(2);
21786
21783
  i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
21787
21784
  i0__namespace.ɵɵadvance(1);
21788
- i0__namespace.ɵɵclassProp("govuk-form-group--error", (tmp_6_0 = ctx.formGroup.get("fullName")) == null ? null : tmp_6_0.errors == null ? null : tmp_6_0.errors.length);
21785
+ i0__namespace.ɵɵclassProp("govuk-form-group--error", ctx.submitted && ((tmp_6_0 = ctx.formGroup.get("fullName")) == null ? null : tmp_6_0.hasError("required")));
21789
21786
  i0__namespace.ɵɵadvance(3);
21790
21787
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(26, 29, "Full name"), " ");
21791
21788
  i0__namespace.ɵɵadvance(3);
21792
21789
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(29, 31, "Your full name must be included here"), " ");
21793
21790
  i0__namespace.ɵɵadvance(2);
21794
- i0__namespace.ɵɵproperty("ngIf", ctx.submitted && ((tmp_9_0 = ctx.formGroup.get("fullName")) == null ? null : tmp_9_0.errors == null ? null : tmp_9_0.errors.length));
21791
+ i0__namespace.ɵɵproperty("ngIf", ctx.submitted && ((tmp_9_0 = ctx.formGroup.get("fullName")) == null ? null : tmp_9_0.hasError("required")));
21795
21792
  i0__namespace.ɵɵadvance(1);
21796
- i0__namespace.ɵɵclassProp("govuk-input--error", (tmp_10_0 = ctx.formGroup.get("fullName")) == null ? null : tmp_10_0.errors == null ? null : tmp_10_0.errors.length);
21793
+ i0__namespace.ɵɵclassProp("govuk-input--error", ctx.submitted && ((tmp_10_0 = ctx.formGroup.get("fullName")) == null ? null : tmp_10_0.hasError("required")));
21797
21794
  i0__namespace.ɵɵproperty("formControlName", "fullName");
21798
21795
  i0__namespace.ɵɵadvance(1);
21799
- i0__namespace.ɵɵclassProp("govuk-form-group--error", (tmp_12_0 = ctx.formGroup.get("body")) == null ? null : tmp_12_0.errors == null ? null : tmp_12_0.errors.length);
21796
+ i0__namespace.ɵɵclassProp("govuk-form-group--error", ctx.submitted && ((tmp_12_0 = ctx.formGroup.get("body")) == null ? null : tmp_12_0.hasError("required")));
21800
21797
  i0__namespace.ɵɵadvance(3);
21801
21798
  i0__namespace.ɵɵtextInterpolate1(" ", ctx.QueryCreateContext === ctx.queryItemTypeEnum.RESPOND ? "Response message" : i0__namespace.ɵɵpipeBind1(36, 33, "Query Body"), " ");
21802
21799
  i0__namespace.ɵɵadvance(2);
21803
- i0__namespace.ɵɵproperty("ngIf", (tmp_14_0 = ctx.formGroup.get("body")) == null ? null : tmp_14_0.errors == null ? null : tmp_14_0.errors.length);
21800
+ i0__namespace.ɵɵproperty("ngIf", ctx.submitted && ((tmp_14_0 = ctx.formGroup.get("body")) == null ? null : tmp_14_0.hasError("required")));
21804
21801
  i0__namespace.ɵɵadvance(1);
21805
- i0__namespace.ɵɵclassProp("govuk-textarea--error", (tmp_15_0 = ctx.formGroup.get("body")) == null ? null : tmp_15_0.errors == null ? null : tmp_15_0.errors.length);
21802
+ i0__namespace.ɵɵclassProp("govuk-textarea--error", ctx.submitted && ((tmp_15_0 = ctx.formGroup.get("body")) == null ? null : tmp_15_0.hasError("required")));
21806
21803
  i0__namespace.ɵɵproperty("formControlName", "body");
21807
21804
  }
21808
21805
  }, styles: [".query-respond[_ngcontent-%COMP%]{width:100%;max-width:720px}"] });
@@ -21917,76 +21914,6 @@
21917
21914
  }], function () { return [{ type: i1__namespace$1.ActivatedRoute }]; }, null);
21918
21915
  })();
21919
21916
 
21920
- function WriteQueryManagementFieldComponent_ng_container_1_Template(rf, ctx) {
21921
- if (rf & 1) {
21922
- i0__namespace.ɵɵelementContainerStart(0);
21923
- i0__namespace.ɵɵelement(1, "ccd-query-write-respond-to-query", 3);
21924
- i0__namespace.ɵɵelementContainerEnd();
21925
- }
21926
- if (rf & 2) {
21927
- var ctx_r0 = i0__namespace.ɵɵnextContext();
21928
- i0__namespace.ɵɵadvance(1);
21929
- i0__namespace.ɵɵproperty("queryItem", ctx_r0.queryItem)("formGroup", ctx_r0.formGroup);
21930
- }
21931
- }
21932
- function WriteQueryManagementFieldComponent_ng_template_2_Template(rf, ctx) {
21933
- if (rf & 1) {
21934
- i0__namespace.ɵɵelement(0, "ccd-query-write-raise-query", 4);
21935
- }
21936
- if (rf & 2) {
21937
- var ctx_r2 = i0__namespace.ɵɵnextContext();
21938
- i0__namespace.ɵɵproperty("formGroup", ctx_r2.formGroup);
21939
- }
21940
- }
21941
- var WriteQueryManagementFieldComponent = /** @class */ (function (_super) {
21942
- __extends(WriteQueryManagementFieldComponent, _super);
21943
- function WriteQueryManagementFieldComponent() {
21944
- var _this = _super.call(this) || this;
21945
- _this.responseFormGroup = new i3.FormGroup({
21946
- response: new i3.FormControl('', [i3.Validators.required]),
21947
- documents: new i3.FormControl([])
21948
- });
21949
- _this.errorMessages = [];
21950
- _this.submitted = false;
21951
- return _this;
21952
- }
21953
- WriteQueryManagementFieldComponent.prototype.submitForm = function () {
21954
- this.submitted = true;
21955
- this.errorMessages = [];
21956
- window.scrollTo(0, 0);
21957
- if (!this.responseFormGroup.valid) {
21958
- if (this.responseFormGroup.controls.response.hasError('required')) {
21959
- this.errorMessages.push({ controlName: 'response', message: 'Add a response before continue' });
21960
- }
21961
- }
21962
- };
21963
- return WriteQueryManagementFieldComponent;
21964
- }(AbstractFieldReadComponent));
21965
- WriteQueryManagementFieldComponent.ɵfac = function WriteQueryManagementFieldComponent_Factory(t) { return new (t || WriteQueryManagementFieldComponent)(); };
21966
- WriteQueryManagementFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WriteQueryManagementFieldComponent, selectors: [["ccd-write-query-management-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 4, vars: 2, consts: [[1, "govuk-!-margin-top-6", "govuk-!-margin-bottom-6"], [4, "ngIf", "ngIfElse"], ["raiseQuery", ""], [3, "queryItem", "formGroup"], [3, "formGroup"]], template: function WriteQueryManagementFieldComponent_Template(rf, ctx) {
21967
- if (rf & 1) {
21968
- i0__namespace.ɵɵelementStart(0, "div", 0);
21969
- i0__namespace.ɵɵtemplate(1, WriteQueryManagementFieldComponent_ng_container_1_Template, 2, 2, "ng-container", 1);
21970
- i0__namespace.ɵɵtemplate(2, WriteQueryManagementFieldComponent_ng_template_2_Template, 1, 1, "ng-template", null, 2, i0__namespace.ɵɵtemplateRefExtractor);
21971
- i0__namespace.ɵɵelementEnd();
21972
- }
21973
- if (rf & 2) {
21974
- var _r1 = i0__namespace.ɵɵreference(3);
21975
- i0__namespace.ɵɵadvance(1);
21976
- i0__namespace.ɵɵproperty("ngIf", ctx.queryItem)("ngIfElse", _r1);
21977
- }
21978
- }, styles: [".response-textarea[_ngcontent-%COMP%]{max-width:576px}"] });
21979
- (function () {
21980
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(WriteQueryManagementFieldComponent, [{
21981
- type: i0.Component,
21982
- args: [{
21983
- selector: 'ccd-write-query-management-field',
21984
- templateUrl: './write-query-management-field.component.html',
21985
- styleUrls: ['./write-query-management-field.component.scss']
21986
- }]
21987
- }], function () { return []; }, null);
21988
- })();
21989
-
21990
21917
  var ReadTextAreaFieldComponent = /** @class */ (function (_super) {
21991
21918
  __extends(ReadTextAreaFieldComponent, _super);
21992
21919
  function ReadTextAreaFieldComponent() {
@@ -22519,8 +22446,7 @@
22519
22446
  this.componentLauncherRegistry = (_b = {},
22520
22447
  _b[DisplayContextCustomParameter.CaseFileView] = [CaseFileViewFieldComponent, CaseFileViewFieldComponent],
22521
22448
  _b[DisplayContextCustomParameter.LinkedCases] = [WriteLinkedCasesFieldComponent, ReadLinkedCasesFieldComponent],
22522
- _b[DisplayContextCustomParameter.QueryManagement] = [WriteQueryManagementFieldComponent, ReadQueryManagementFieldComponent],
22523
- _b[DisplayContextCustomParameter.QueryManagementWriteTest] = [WriteQueryManagementFieldComponent, WriteQueryManagementFieldComponent],
22449
+ _b[DisplayContextCustomParameter.QueryManagement] = [ReadQueryManagementFieldComponent, ReadQueryManagementFieldComponent],
22524
22450
  _b);
22525
22451
  }
22526
22452
  PaletteService.prototype.getFieldComponentClass = function (caseField, write) {
@@ -29727,9 +29653,7 @@
29727
29653
  NoLinkedCasesComponent,
29728
29654
  // Components for Query Management
29729
29655
  ReadQueryManagementFieldComponent,
29730
- WriteQueryManagementFieldComponent,
29731
29656
  QueryDetailsComponent,
29732
- QueryCreateComponent,
29733
29657
  QueryListComponent,
29734
29658
  QueryDetailsTableComponent,
29735
29659
  QueryWriteRespondToQueryComponent,
@@ -29915,9 +29839,7 @@
29915
29839
  NoLinkedCasesComponent,
29916
29840
  // Components for Query Management
29917
29841
  ReadQueryManagementFieldComponent,
29918
- WriteQueryManagementFieldComponent,
29919
29842
  QueryDetailsComponent,
29920
- QueryCreateComponent,
29921
29843
  QueryListComponent,
29922
29844
  QueryDetailsTableComponent,
29923
29845
  QueryWriteRespondToQueryComponent,
@@ -30064,9 +29986,7 @@
30064
29986
  NoLinkedCasesComponent,
30065
29987
  // Components for Query Management
30066
29988
  ReadQueryManagementFieldComponent,
30067
- WriteQueryManagementFieldComponent,
30068
29989
  QueryDetailsComponent,
30069
- QueryCreateComponent,
30070
29990
  QueryListComponent,
30071
29991
  QueryDetailsTableComponent,
30072
29992
  QueryWriteRespondToQueryComponent,
@@ -30216,7 +30136,6 @@
30216
30136
  // Components for Query Management
30217
30137
  ReadQueryManagementFieldComponent, [i5__namespace.NgForOf, i5__namespace.NgIf, QueryListComponent,
30218
30138
  QueryDetailsComponent], []);
30219
- i0__namespace.ɵɵsetComponentScope(WriteQueryManagementFieldComponent, [i5__namespace.NgIf, QueryWriteRespondToQueryComponent, i3__namespace.NgControlStatusGroup, i3__namespace.FormGroupDirective, QueryWriteRaiseQueryComponent], []);
30220
30139
  i0__namespace.ɵɵsetComponentScope(QueryDetailsComponent, [i5__namespace.NgIf, QueryDetailsTableComponent], [i1__namespace.RpxTranslatePipe]);
30221
30140
  i0__namespace.ɵɵsetComponentScope(QueryWriteRespondToQueryComponent, [QueryCaseDetailsHeaderComponent,
30222
30141
  QueryDetailsTableComponent, i3__namespace.NgControlStatusGroup, i3__namespace.FormGroupDirective, i5__namespace.NgIf, i3__namespace.DefaultValueAccessor, i3__namespace.NgControlStatus, i3__namespace.FormControlName], [i1__namespace.RpxTranslatePipe]);
@@ -40841,7 +40760,6 @@
40841
40760
  exports.ProfileService = ProfileService;
40842
40761
  exports.QueryCaseDetailsHeaderComponent = QueryCaseDetailsHeaderComponent;
40843
40762
  exports.QueryCheckYourAnswersComponent = QueryCheckYourAnswersComponent;
40844
- exports.QueryCreateComponent = QueryCreateComponent;
40845
40763
  exports.QueryDetailsComponent = QueryDetailsComponent;
40846
40764
  exports.QueryDetailsTableComponent = QueryDetailsTableComponent;
40847
40765
  exports.QueryListComponent = QueryListComponent;
@@ -40955,7 +40873,6 @@
40955
40873
  exports.WriteOrganisationComplexFieldComponent = WriteOrganisationComplexFieldComponent;
40956
40874
  exports.WriteOrganisationFieldComponent = WriteOrganisationFieldComponent;
40957
40875
  exports.WritePhoneUKFieldComponent = WritePhoneUKFieldComponent;
40958
- exports.WriteQueryManagementFieldComponent = WriteQueryManagementFieldComponent;
40959
40876
  exports.WriteTextAreaFieldComponent = WriteTextAreaFieldComponent;
40960
40877
  exports.WriteTextFieldComponent = WriteTextFieldComponent;
40961
40878
  exports.WriteYesNoFieldComponent = WriteYesNoFieldComponent;