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

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 (38) hide show
  1. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +149 -65
  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 +9 -2
  6. package/esm2015/lib/shared/components/palette/palette.service.js +4 -3
  7. package/esm2015/lib/shared/components/palette/query-management/components/index.js +2 -1
  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-create/query-create.component.js +18 -0
  10. package/esm2015/lib/shared/components/palette/query-management/components/query-management-error-messages/query-management-error-message.model.js +2 -0
  11. package/esm2015/lib/shared/components/palette/query-management/components/query-write/query-write-raise-query/query-write-raise-query.component.js +27 -33
  12. package/esm2015/lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.js +13 -17
  13. package/esm2015/lib/shared/components/palette/query-management/enums/index.js +1 -2
  14. package/esm2015/lib/shared/components/palette/query-management/index.js +2 -2
  15. package/esm2015/lib/shared/components/palette/query-management/write-query-management-field.component.js +60 -0
  16. package/fesm2015/hmcts-ccd-case-ui-toolkit.js +128 -63
  17. package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
  18. package/lib/shared/components/palette/palette.module.d.ts +40 -38
  19. package/lib/shared/components/palette/palette.module.d.ts.map +1 -1
  20. package/lib/shared/components/palette/palette.service.d.ts.map +1 -1
  21. package/lib/shared/components/palette/query-management/components/index.d.ts +1 -0
  22. package/lib/shared/components/palette/query-management/components/index.d.ts.map +1 -1
  23. package/lib/shared/components/palette/query-management/components/query-create/query-create.component.d.ts +9 -0
  24. package/lib/shared/components/palette/query-management/components/query-create/query-create.component.d.ts.map +1 -0
  25. package/lib/shared/components/palette/query-management/components/query-management-error-messages/query-management-error-message.model.d.ts +5 -0
  26. package/lib/shared/components/palette/query-management/components/query-management-error-messages/query-management-error-message.model.d.ts.map +1 -0
  27. package/lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.d.ts +0 -2
  28. 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
  29. package/lib/shared/components/palette/query-management/enums/index.d.ts +0 -1
  30. package/lib/shared/components/palette/query-management/enums/index.d.ts.map +1 -1
  31. package/lib/shared/components/palette/query-management/index.d.ts +1 -1
  32. package/lib/shared/components/palette/query-management/index.d.ts.map +1 -1
  33. package/lib/shared/components/palette/query-management/write-query-management-field.component.d.ts +16 -0
  34. package/lib/shared/components/palette/query-management/write-query-management-field.component.d.ts.map +1 -0
  35. package/package.json +1 -1
  36. package/esm2015/lib/shared/components/palette/query-management/enums/respond-to-query-error-messages.enum.js +0 -6
  37. package/lib/shared/components/palette/query-management/enums/respond-to-query-error-messages.enum.d.ts +0 -5
  38. package/lib/shared/components/palette/query-management/enums/respond-to-query-error-messages.enum.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", 17);
20565
+ i0__namespace.ɵɵelement(0, "ccd-read-collection-field", 18);
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"], ["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"], [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) {
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", 12);
20628
+ i0__namespace.ɵɵelementStart(28, "a", 13);
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", 13);
20643
- i0__namespace.ɵɵtemplate(37, QueryCheckYourAnswersComponent_ccd_read_collection_field_37_Template, 1, 1, "ccd-read-collection-field", 14);
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);
20644
20644
  i0__namespace.ɵɵelementEnd();
20645
20645
  i0__namespace.ɵɵelementStart(38, "dd", 11);
20646
- i0__namespace.ɵɵelementStart(39, "a", 12);
20646
+ i0__namespace.ɵɵelementStart(39, "a", 13);
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", 15);
20656
+ i0__namespace.ɵɵelementStart(44, "button", 16);
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", 16);
20661
+ i0__namespace.ɵɵelementStart(47, "button", 17);
20662
20662
  i0__namespace.ɵɵtext(48);
20663
20663
  i0__namespace.ɵɵpipe(49, "rpxTranslate");
20664
20664
  i0__namespace.ɵɵelementEnd();
@@ -20716,6 +20716,25 @@
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
+
20719
20738
  function QueryDetailsTableComponent_ng_container_0_tr_35_Template(rf, ctx) {
20720
20739
  if (rf & 1) {
20721
20740
  i0__namespace.ɵɵelementStart(0, "tr", 3);
@@ -21332,20 +21351,14 @@
21332
21351
  }] });
21333
21352
  })();
21334
21353
 
21335
- exports.RaiseQueryErrorMessage = void 0;
21354
+ var RaiseQueryErrorMessage;
21336
21355
  (function (RaiseQueryErrorMessage) {
21337
21356
  RaiseQueryErrorMessage["FULL_NAME"] = "Enter a full name";
21338
21357
  RaiseQueryErrorMessage["QUERY_SUBJECT"] = "Enter a query subject";
21339
21358
  RaiseQueryErrorMessage["QUERY_BODY"] = "Enter query details";
21340
21359
  RaiseQueryErrorMessage["QUERY_HEARING_RELATED"] = "Select whether the query is hearing related or not";
21341
21360
  RaiseQueryErrorMessage["QUERY_HEARING_DATE"] = "Enter a valid date";
21342
- })(exports.RaiseQueryErrorMessage || (exports.RaiseQueryErrorMessage = {}));
21343
-
21344
- exports.RespondToQueryErrorMessages = void 0;
21345
- (function (RespondToQueryErrorMessages) {
21346
- RespondToQueryErrorMessages["FULL_NAME"] = "Enter a full name";
21347
- RespondToQueryErrorMessages["QUERY_BODY"] = "Add a response before continue";
21348
- })(exports.RespondToQueryErrorMessages || (exports.RespondToQueryErrorMessages = {}));
21361
+ })(RaiseQueryErrorMessage || (RaiseQueryErrorMessage = {}));
21349
21362
 
21350
21363
  function QueryWriteRaiseQueryComponent_p_22_Template(rf, ctx) {
21351
21364
  if (rf & 1) {
@@ -21361,9 +21374,9 @@
21361
21374
  if (rf & 2) {
21362
21375
  var ctx_r0 = i0__namespace.ɵɵnextContext();
21363
21376
  i0__namespace.ɵɵadvance(2);
21364
- i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(3, 2, "Error:"), " ");
21377
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 2, "Error:"));
21365
21378
  i0__namespace.ɵɵadvance(2);
21366
- i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessage.FULL_NAME), " ");
21379
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r0.raiseQueryErrorMessage.FULL_NAME), " ");
21367
21380
  }
21368
21381
  }
21369
21382
  function QueryWriteRaiseQueryComponent_p_32_Template(rf, ctx) {
@@ -21380,9 +21393,9 @@
21380
21393
  if (rf & 2) {
21381
21394
  var ctx_r1 = i0__namespace.ɵɵnextContext();
21382
21395
  i0__namespace.ɵɵadvance(2);
21383
- i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(3, 2, "Error:"), " ");
21396
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 2, "Error:"));
21384
21397
  i0__namespace.ɵɵadvance(2);
21385
- i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r1.raiseQueryErrorMessage.QUERY_SUBJECT), " ");
21398
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r1.raiseQueryErrorMessage.QUERY_SUBJECT), " ");
21386
21399
  }
21387
21400
  }
21388
21401
  function QueryWriteRaiseQueryComponent_p_42_Template(rf, ctx) {
@@ -21399,9 +21412,9 @@
21399
21412
  if (rf & 2) {
21400
21413
  var ctx_r2 = i0__namespace.ɵɵnextContext();
21401
21414
  i0__namespace.ɵɵadvance(2);
21402
- i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(3, 2, "Error:"), " ");
21415
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 2, "Error:"));
21403
21416
  i0__namespace.ɵɵadvance(2);
21404
- i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r2.raiseQueryErrorMessage.QUERY_BODY), " ");
21417
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r2.raiseQueryErrorMessage.QUERY_BODY), " ");
21405
21418
  }
21406
21419
  }
21407
21420
  function QueryWriteRaiseQueryComponent_p_51_Template(rf, ctx) {
@@ -21418,9 +21431,9 @@
21418
21431
  if (rf & 2) {
21419
21432
  var ctx_r3 = i0__namespace.ɵɵnextContext();
21420
21433
  i0__namespace.ɵɵadvance(2);
21421
- i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(3, 2, "Error:"), " ");
21434
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 2, "Error:"));
21422
21435
  i0__namespace.ɵɵadvance(2);
21423
- i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r3.raiseQueryErrorMessage.QUERY_HEARING_RELATED), " ");
21436
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r3.raiseQueryErrorMessage.QUERY_HEARING_RELATED), " ");
21424
21437
  }
21425
21438
  }
21426
21439
  function QueryWriteRaiseQueryComponent_ng_container_63_p_7_Template(rf, ctx) {
@@ -21437,9 +21450,9 @@
21437
21450
  if (rf & 2) {
21438
21451
  var ctx_r5 = i0__namespace.ɵɵnextContext(2);
21439
21452
  i0__namespace.ɵɵadvance(2);
21440
- i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(3, 2, "Error:"), " ");
21453
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 2, "Error:"));
21441
21454
  i0__namespace.ɵɵadvance(2);
21442
- i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r5.raiseQueryErrorMessage.QUERY_HEARING_DATE), " ");
21455
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r5.raiseQueryErrorMessage.QUERY_HEARING_DATE), " ");
21443
21456
  }
21444
21457
  }
21445
21458
  var _c0$B = function (a0) { return { "govuk-form-group--error": a0 }; };
@@ -21472,12 +21485,12 @@
21472
21485
  }
21473
21486
  var QueryWriteRaiseQueryComponent = /** @class */ (function () {
21474
21487
  function QueryWriteRaiseQueryComponent() {
21475
- this.raiseQueryErrorMessage = exports.RaiseQueryErrorMessage;
21488
+ this.raiseQueryErrorMessage = RaiseQueryErrorMessage;
21476
21489
  }
21477
21490
  return QueryWriteRaiseQueryComponent;
21478
21491
  }());
21479
21492
  QueryWriteRaiseQueryComponent.ɵfac = function QueryWriteRaiseQueryComponent_Factory(t) { return new (t || QueryWriteRaiseQueryComponent)(); };
21480
- 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) {
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
21494
  if (rf & 1) {
21482
21495
  i0__namespace.ɵɵelementStart(0, "div");
21483
21496
  i0__namespace.ɵɵelementStart(1, "div", 0);
@@ -21575,62 +21588,56 @@
21575
21588
  i0__namespace.ɵɵelementEnd();
21576
21589
  }
21577
21590
  if (rf & 2) {
21578
- var tmp_7_0 = null;
21579
- var tmp_13_0 = null;
21580
- var tmp_19_0 = null;
21581
21591
  i0__namespace.ɵɵadvance(3);
21582
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(4, 34, "Raise a query"));
21592
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(4, 28, "Raise a query"));
21583
21593
  i0__namespace.ɵɵadvance(3);
21584
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(7, 36, "Enter query details"));
21594
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(7, 30, "Enter query details"));
21585
21595
  i0__namespace.ɵɵadvance(6);
21586
21596
  i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
21587
21597
  i0__namespace.ɵɵadvance(2);
21588
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(60, _c0$B, ctx.submitted && ctx.formGroup.get("fullName").hasError("required")));
21598
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(54, _c0$B, ctx.submitted && ctx.formGroup.get("fullName").hasError("required")));
21589
21599
  i0__namespace.ɵɵadvance(3);
21590
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(18, 38, "Full name"), " ");
21600
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(18, 32, "Full name"), " ");
21591
21601
  i0__namespace.ɵɵadvance(3);
21592
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(21, 40, "Your full name must be included here"), " ");
21602
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(21, 34, "Your full name must be included here"), " ");
21593
21603
  i0__namespace.ɵɵadvance(2);
21594
21604
  i0__namespace.ɵɵproperty("ngIf", ctx.submitted && ctx.formGroup.get("fullName").hasError("required"));
21595
21605
  i0__namespace.ɵɵadvance(1);
21596
- i0__namespace.ɵɵclassProp("govuk-input--error", ctx.submitted && ((tmp_7_0 = ctx.formGroup.get("fullName")) == null ? null : tmp_7_0.hasError("required")));
21597
21606
  i0__namespace.ɵɵproperty("formControlName", "fullName");
21598
21607
  i0__namespace.ɵɵadvance(1);
21599
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(62, _c0$B, ctx.submitted && ctx.formGroup.get("subject").hasError("required")));
21608
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(56, _c0$B, ctx.submitted && ctx.formGroup.get("subject").hasError("required")));
21600
21609
  i0__namespace.ɵɵadvance(3);
21601
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(28, 42, "Query subject"), " ");
21610
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(28, 36, "Query subject"), " ");
21602
21611
  i0__namespace.ɵɵadvance(3);
21603
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(31, 44, "The subject should be a summary of your query"), " ");
21612
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(31, 38, "The subject should be a summary of your query"), " ");
21604
21613
  i0__namespace.ɵɵadvance(2);
21605
21614
  i0__namespace.ɵɵproperty("ngIf", ctx.submitted && ctx.formGroup.get("subject").hasError("required"));
21606
21615
  i0__namespace.ɵɵadvance(1);
21607
- i0__namespace.ɵɵclassProp("govuk-input--error", ctx.submitted && ((tmp_13_0 = ctx.formGroup.get("subject")) == null ? null : tmp_13_0.hasError("required")));
21608
21616
  i0__namespace.ɵɵproperty("formControlName", "subject");
21609
21617
  i0__namespace.ɵɵadvance(1);
21610
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(64, _c0$B, ctx.submitted && ctx.formGroup.get("body").hasError("required")));
21618
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(58, _c0$B, ctx.submitted && ctx.formGroup.get("body").hasError("required")));
21611
21619
  i0__namespace.ɵɵadvance(3);
21612
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(38, 46, "Query body"), " ");
21620
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(38, 40, "Query body"), " ");
21613
21621
  i0__namespace.ɵɵadvance(3);
21614
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(41, 48, "Include as many details as possible so case workers can respond to your query"), " ");
21622
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(41, 42, "Include as many details as possible so case workers can respond to your query"), " ");
21615
21623
  i0__namespace.ɵɵadvance(2);
21616
21624
  i0__namespace.ɵɵproperty("ngIf", ctx.submitted && ctx.formGroup.get("body").hasError("required"));
21617
21625
  i0__namespace.ɵɵadvance(1);
21618
- i0__namespace.ɵɵclassProp("govuk-input--error", ctx.submitted && ((tmp_19_0 = ctx.formGroup.get("body")) == null ? null : tmp_19_0.hasError("required")));
21619
21626
  i0__namespace.ɵɵproperty("formControlName", "body");
21620
21627
  i0__namespace.ɵɵadvance(2);
21621
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(66, _c0$B, ctx.submitted && ctx.formGroup.get("isHearingRelated").hasError("required")));
21628
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(60, _c0$B, ctx.submitted && ctx.formGroup.get("isHearingRelated").hasError("required")));
21622
21629
  i0__namespace.ɵɵadvance(4);
21623
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(50, 50, "Is the query hearing related?"), " ");
21630
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(50, 44, "Is the query hearing related?"), " ");
21624
21631
  i0__namespace.ɵɵadvance(2);
21625
21632
  i0__namespace.ɵɵproperty("ngIf", ctx.submitted && ctx.formGroup.get("isHearingRelated").hasError("required"));
21626
21633
  i0__namespace.ɵɵadvance(3);
21627
21634
  i0__namespace.ɵɵproperty("checked", ctx.formGroup.get("isHearingRelated").value === true)("value", true);
21628
21635
  i0__namespace.ɵɵadvance(2);
21629
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind3(57, 52, "Is the query hearing related?", null, "Yes"), " ");
21636
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind3(57, 46, "Is the query hearing related?", null, "Yes"), " ");
21630
21637
  i0__namespace.ɵɵadvance(3);
21631
21638
  i0__namespace.ɵɵproperty("checked", ctx.formGroup.get("isHearingRelated").value === false)("value", false);
21632
21639
  i0__namespace.ɵɵadvance(2);
21633
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind3(62, 56, "Is the query hearing related?", null, "No"), " ");
21640
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind3(62, 50, "Is the query hearing related?", null, "No"), " ");
21634
21641
  i0__namespace.ɵɵadvance(2);
21635
21642
  i0__namespace.ɵɵproperty("ngIf", ctx.formGroup.get("isHearingRelated").value);
21636
21643
  }
@@ -21661,11 +21668,10 @@
21661
21668
  i0__namespace.ɵɵelementEnd();
21662
21669
  }
21663
21670
  if (rf & 2) {
21664
- var ctx_r0 = i0__namespace.ɵɵnextContext();
21665
21671
  i0__namespace.ɵɵadvance(2);
21666
- i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(3, 2, "Error:"), " ");
21672
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 2, "Error:"));
21667
21673
  i0__namespace.ɵɵadvance(2);
21668
- i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r0.respondToQueryErrorMessages.FULL_NAME), " ");
21674
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, "Enter your full name"), " ");
21669
21675
  }
21670
21676
  }
21671
21677
  function QueryWriteRespondToQueryComponent_p_37_Template(rf, ctx) {
@@ -21680,11 +21686,10 @@
21680
21686
  i0__namespace.ɵɵelementEnd();
21681
21687
  }
21682
21688
  if (rf & 2) {
21683
- var ctx_r1 = i0__namespace.ɵɵnextContext();
21684
21689
  i0__namespace.ɵɵadvance(2);
21685
- i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(3, 2, "Error:"), " ");
21690
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 2, "Error:"));
21686
21691
  i0__namespace.ɵɵadvance(2);
21687
- i0__namespace.ɵɵtextInterpolate1("", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r1.respondToQueryErrorMessages.QUERY_BODY), " ");
21692
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, "Enter a response message"), " ");
21688
21693
  }
21689
21694
  }
21690
21695
  var QueryWriteRespondToQueryComponent = /** @class */ (function () {
@@ -21693,12 +21698,11 @@
21693
21698
  // Set default value as false for testing follow up EUI-8454
21694
21699
  this.QueryCreateContext = exports.QueryItemType.FOLLOWUP;
21695
21700
  this.queryItemTypeEnum = exports.QueryItemType;
21696
- this.respondToQueryErrorMessages = exports.RespondToQueryErrorMessages;
21697
21701
  }
21698
21702
  return QueryWriteRespondToQueryComponent;
21699
21703
  }());
21700
21704
  QueryWriteRespondToQueryComponent.ɵfac = function QueryWriteRespondToQueryComponent_Factory(t) { return new (t || QueryWriteRespondToQueryComponent)(); };
21701
- 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) {
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
21706
  if (rf & 1) {
21703
21707
  i0__namespace.ɵɵelementStart(0, "div", 0);
21704
21708
  i0__namespace.ɵɵelementStart(1, "a", 1);
@@ -21771,7 +21775,7 @@
21771
21775
  i0__namespace.ɵɵadvance(2);
21772
21776
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 21, "Cancel and return to tasks"));
21773
21777
  i0__namespace.ɵɵadvance(5);
21774
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(8, 23, "Respond to query"));
21778
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(8, 23, "Respond to the query"));
21775
21779
  i0__namespace.ɵɵadvance(3);
21776
21780
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(11, 25, "Query details"));
21777
21781
  i0__namespace.ɵɵadvance(5);
@@ -21781,24 +21785,24 @@
21781
21785
  i0__namespace.ɵɵadvance(2);
21782
21786
  i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
21783
21787
  i0__namespace.ɵɵadvance(1);
21784
- i0__namespace.ɵɵclassProp("govuk-form-group--error", ctx.submitted && ((tmp_6_0 = ctx.formGroup.get("fullName")) == null ? null : tmp_6_0.hasError("required")));
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
21789
  i0__namespace.ɵɵadvance(3);
21786
21790
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(26, 29, "Full name"), " ");
21787
21791
  i0__namespace.ɵɵadvance(3);
21788
21792
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(29, 31, "Your full name must be included here"), " ");
21789
21793
  i0__namespace.ɵɵadvance(2);
21790
- i0__namespace.ɵɵproperty("ngIf", ctx.submitted && ((tmp_9_0 = ctx.formGroup.get("fullName")) == null ? null : tmp_9_0.hasError("required")));
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
21795
  i0__namespace.ɵɵadvance(1);
21792
- i0__namespace.ɵɵclassProp("govuk-input--error", ctx.submitted && ((tmp_10_0 = ctx.formGroup.get("fullName")) == null ? null : tmp_10_0.hasError("required")));
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
21797
  i0__namespace.ɵɵproperty("formControlName", "fullName");
21794
21798
  i0__namespace.ɵɵadvance(1);
21795
- i0__namespace.ɵɵclassProp("govuk-form-group--error", ctx.submitted && ((tmp_12_0 = ctx.formGroup.get("body")) == null ? null : tmp_12_0.hasError("required")));
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
21800
  i0__namespace.ɵɵadvance(3);
21797
21801
  i0__namespace.ɵɵtextInterpolate1(" ", ctx.QueryCreateContext === ctx.queryItemTypeEnum.RESPOND ? "Response message" : i0__namespace.ɵɵpipeBind1(36, 33, "Query Body"), " ");
21798
21802
  i0__namespace.ɵɵadvance(2);
21799
- i0__namespace.ɵɵproperty("ngIf", ctx.submitted && ((tmp_14_0 = ctx.formGroup.get("body")) == null ? null : tmp_14_0.hasError("required")));
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
21804
  i0__namespace.ɵɵadvance(1);
21801
- i0__namespace.ɵɵclassProp("govuk-textarea--error", ctx.submitted && ((tmp_15_0 = ctx.formGroup.get("body")) == null ? null : tmp_15_0.hasError("required")));
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
21806
  i0__namespace.ɵɵproperty("formControlName", "body");
21803
21807
  }
21804
21808
  }, styles: [".query-respond[_ngcontent-%COMP%]{width:100%;max-width:720px}"] });
@@ -21913,6 +21917,76 @@
21913
21917
  }], function () { return [{ type: i1__namespace$1.ActivatedRoute }]; }, null);
21914
21918
  })();
21915
21919
 
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
+
21916
21990
  var ReadTextAreaFieldComponent = /** @class */ (function (_super) {
21917
21991
  __extends(ReadTextAreaFieldComponent, _super);
21918
21992
  function ReadTextAreaFieldComponent() {
@@ -22445,7 +22519,8 @@
22445
22519
  this.componentLauncherRegistry = (_b = {},
22446
22520
  _b[DisplayContextCustomParameter.CaseFileView] = [CaseFileViewFieldComponent, CaseFileViewFieldComponent],
22447
22521
  _b[DisplayContextCustomParameter.LinkedCases] = [WriteLinkedCasesFieldComponent, ReadLinkedCasesFieldComponent],
22448
- _b[DisplayContextCustomParameter.QueryManagement] = [ReadQueryManagementFieldComponent, ReadQueryManagementFieldComponent],
22522
+ _b[DisplayContextCustomParameter.QueryManagement] = [WriteQueryManagementFieldComponent, ReadQueryManagementFieldComponent],
22523
+ _b[DisplayContextCustomParameter.QueryManagementWriteTest] = [WriteQueryManagementFieldComponent, WriteQueryManagementFieldComponent],
22449
22524
  _b);
22450
22525
  }
22451
22526
  PaletteService.prototype.getFieldComponentClass = function (caseField, write) {
@@ -29652,7 +29727,9 @@
29652
29727
  NoLinkedCasesComponent,
29653
29728
  // Components for Query Management
29654
29729
  ReadQueryManagementFieldComponent,
29730
+ WriteQueryManagementFieldComponent,
29655
29731
  QueryDetailsComponent,
29732
+ QueryCreateComponent,
29656
29733
  QueryListComponent,
29657
29734
  QueryDetailsTableComponent,
29658
29735
  QueryWriteRespondToQueryComponent,
@@ -29838,7 +29915,9 @@
29838
29915
  NoLinkedCasesComponent,
29839
29916
  // Components for Query Management
29840
29917
  ReadQueryManagementFieldComponent,
29918
+ WriteQueryManagementFieldComponent,
29841
29919
  QueryDetailsComponent,
29920
+ QueryCreateComponent,
29842
29921
  QueryListComponent,
29843
29922
  QueryDetailsTableComponent,
29844
29923
  QueryWriteRespondToQueryComponent,
@@ -29985,7 +30064,9 @@
29985
30064
  NoLinkedCasesComponent,
29986
30065
  // Components for Query Management
29987
30066
  ReadQueryManagementFieldComponent,
30067
+ WriteQueryManagementFieldComponent,
29988
30068
  QueryDetailsComponent,
30069
+ QueryCreateComponent,
29989
30070
  QueryListComponent,
29990
30071
  QueryDetailsTableComponent,
29991
30072
  QueryWriteRespondToQueryComponent,
@@ -30135,6 +30216,7 @@
30135
30216
  // Components for Query Management
30136
30217
  ReadQueryManagementFieldComponent, [i5__namespace.NgForOf, i5__namespace.NgIf, QueryListComponent,
30137
30218
  QueryDetailsComponent], []);
30219
+ i0__namespace.ɵɵsetComponentScope(WriteQueryManagementFieldComponent, [i5__namespace.NgIf, QueryWriteRespondToQueryComponent, i3__namespace.NgControlStatusGroup, i3__namespace.FormGroupDirective, QueryWriteRaiseQueryComponent], []);
30138
30220
  i0__namespace.ɵɵsetComponentScope(QueryDetailsComponent, [i5__namespace.NgIf, QueryDetailsTableComponent], [i1__namespace.RpxTranslatePipe]);
30139
30221
  i0__namespace.ɵɵsetComponentScope(QueryWriteRespondToQueryComponent, [QueryCaseDetailsHeaderComponent,
30140
30222
  QueryDetailsTableComponent, i3__namespace.NgControlStatusGroup, i3__namespace.FormGroupDirective, i5__namespace.NgIf, i3__namespace.DefaultValueAccessor, i3__namespace.NgControlStatus, i3__namespace.FormControlName], [i1__namespace.RpxTranslatePipe]);
@@ -40759,6 +40841,7 @@
40759
40841
  exports.ProfileService = ProfileService;
40760
40842
  exports.QueryCaseDetailsHeaderComponent = QueryCaseDetailsHeaderComponent;
40761
40843
  exports.QueryCheckYourAnswersComponent = QueryCheckYourAnswersComponent;
40844
+ exports.QueryCreateComponent = QueryCreateComponent;
40762
40845
  exports.QueryDetailsComponent = QueryDetailsComponent;
40763
40846
  exports.QueryDetailsTableComponent = QueryDetailsTableComponent;
40764
40847
  exports.QueryListComponent = QueryListComponent;
@@ -40872,6 +40955,7 @@
40872
40955
  exports.WriteOrganisationComplexFieldComponent = WriteOrganisationComplexFieldComponent;
40873
40956
  exports.WriteOrganisationFieldComponent = WriteOrganisationFieldComponent;
40874
40957
  exports.WritePhoneUKFieldComponent = WritePhoneUKFieldComponent;
40958
+ exports.WriteQueryManagementFieldComponent = WriteQueryManagementFieldComponent;
40875
40959
  exports.WriteTextAreaFieldComponent = WriteTextAreaFieldComponent;
40876
40960
  exports.WriteTextFieldComponent = WriteTextFieldComponent;
40877
40961
  exports.WriteYesNoFieldComponent = WriteYesNoFieldComponent;