@hmcts/ccd-case-ui-toolkit 6.16.0-query-management-respond-backlink-text-v2 → 6.16.0-query-management-raise-query-function-v7

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 (18) hide show
  1. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +193 -41
  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 +8 -5
  6. package/esm2015/lib/shared/components/palette/query-management/components/index.js +2 -1
  7. package/esm2015/lib/shared/components/palette/query-management/components/query-write/query-write-date-input/query-write-date-input.component.js +125 -0
  8. package/esm2015/lib/shared/components/palette/query-management/components/query-write/query-write-raise-query/query-write-raise-query.component.js +40 -19
  9. package/esm2015/lib/shared/components/palette/query-management/components/query-write/query-write-respond-to-query/query-write-respond-to-query.component.js +19 -21
  10. package/fesm2015/hmcts-ccd-case-ui-toolkit.js +184 -42
  11. package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
  12. package/lib/shared/components/palette/palette.module.d.ts +30 -29
  13. package/lib/shared/components/palette/palette.module.d.ts.map +1 -1
  14. package/lib/shared/components/palette/query-management/components/index.d.ts +1 -0
  15. package/lib/shared/components/palette/query-management/components/index.d.ts.map +1 -1
  16. package/lib/shared/components/palette/query-management/components/query-write/query-write-date-input/query-write-date-input.component.d.ts +20 -0
  17. package/lib/shared/components/palette/query-management/components/query-write/query-write-date-input/query-write-date-input.component.d.ts.map +1 -0
  18. package/package.json +1 -1
@@ -20900,6 +20900,132 @@
20900
20900
  }] });
20901
20901
  })();
20902
20902
 
20903
+ var QueryWriteDateInputComponent = /** @class */ (function () {
20904
+ function QueryWriteDateInputComponent() {
20905
+ this.disabled = false;
20906
+ }
20907
+ QueryWriteDateInputComponent.prototype.writeValue = function (date) {
20908
+ if (date instanceof Date && !isNaN(date.getTime())) {
20909
+ this.day = date.getDate();
20910
+ this.month = date.getMonth() + 1; // Months are zero-based
20911
+ this.year = date.getFullYear();
20912
+ }
20913
+ else {
20914
+ this.day = null;
20915
+ this.month = null;
20916
+ this.year = null;
20917
+ }
20918
+ };
20919
+ QueryWriteDateInputComponent.prototype.registerOnChange = function (fn) {
20920
+ this.onChange = fn;
20921
+ };
20922
+ QueryWriteDateInputComponent.prototype.registerOnTouched = function (fn) {
20923
+ this.onTouched = fn;
20924
+ };
20925
+ QueryWriteDateInputComponent.prototype.setDisabledState = function (isDisabled) {
20926
+ this.disabled = isDisabled;
20927
+ };
20928
+ QueryWriteDateInputComponent.prototype.updateDate = function () {
20929
+ var updatedValue = this.onChange && this.isValidDateInput() ?
20930
+ new Date(this.year, this.month - 1, this.day)
20931
+ : null;
20932
+ this.onChange(updatedValue);
20933
+ this.onTouched();
20934
+ };
20935
+ QueryWriteDateInputComponent.prototype.isValidDateInput = function () {
20936
+ var isValidDay = this.day >= 1 && this.day <= 31;
20937
+ var isValidMonth = this.month >= 1 && this.month <= 12;
20938
+ var isValidYear = this.year >= 0;
20939
+ return isValidDay && isValidMonth && isValidYear;
20940
+ };
20941
+ return QueryWriteDateInputComponent;
20942
+ }());
20943
+ QueryWriteDateInputComponent.ɵfac = function QueryWriteDateInputComponent_Factory(t) { return new (t || QueryWriteDateInputComponent)(); };
20944
+ QueryWriteDateInputComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryWriteDateInputComponent, selectors: [["ccd-query-write-date-input"]], inputs: { formControlName: "formControlName" }, features: [i0__namespace.ɵɵProvidersFeature([
20945
+ {
20946
+ provide: i3.NG_VALUE_ACCESSOR,
20947
+ useExisting: i0.forwardRef(function () { return QueryWriteDateInputComponent; }),
20948
+ multi: true
20949
+ }
20950
+ ])], decls: 19, vars: 24, consts: [[1, "govuk-date-input", 3, "id"], [1, "govuk-date-input__item"], [1, "govuk-form-group"], [1, "govuk-label", "govuk-date-input__label", 3, "for"], ["type", "text", "inputmode", "numeric", 1, "govuk-input", "govuk-date-input__input", "govuk-input--width-2", 3, "id", "name", "ngModel", "disabled", "ngModelChange", "input"], ["id", "formControlName + '-year'", "type", "text", "inputmode", "numeric", 1, "govuk-input", "govuk-date-input__input", "govuk-input--width-4", 3, "name", "ngModel", "disabled", "ngModelChange", "input"]], template: function QueryWriteDateInputComponent_Template(rf, ctx) {
20951
+ if (rf & 1) {
20952
+ i0__namespace.ɵɵelementStart(0, "div", 0);
20953
+ i0__namespace.ɵɵelementStart(1, "div", 1);
20954
+ i0__namespace.ɵɵelementStart(2, "div", 2);
20955
+ i0__namespace.ɵɵelementStart(3, "label", 3);
20956
+ i0__namespace.ɵɵtext(4);
20957
+ i0__namespace.ɵɵpipe(5, "rpxTranslate");
20958
+ i0__namespace.ɵɵelementEnd();
20959
+ i0__namespace.ɵɵelementStart(6, "input", 4);
20960
+ i0__namespace.ɵɵlistener("ngModelChange", function QueryWriteDateInputComponent_Template_input_ngModelChange_6_listener($event) { return ctx.day = $event; })("input", function QueryWriteDateInputComponent_Template_input_input_6_listener() { return ctx.updateDate(); });
20961
+ i0__namespace.ɵɵelementEnd();
20962
+ i0__namespace.ɵɵelementEnd();
20963
+ i0__namespace.ɵɵelementEnd();
20964
+ i0__namespace.ɵɵelementStart(7, "div", 1);
20965
+ i0__namespace.ɵɵelementStart(8, "div", 2);
20966
+ i0__namespace.ɵɵelementStart(9, "label", 3);
20967
+ i0__namespace.ɵɵtext(10);
20968
+ i0__namespace.ɵɵpipe(11, "rpxTranslate");
20969
+ i0__namespace.ɵɵelementEnd();
20970
+ i0__namespace.ɵɵelementStart(12, "input", 4);
20971
+ i0__namespace.ɵɵlistener("ngModelChange", function QueryWriteDateInputComponent_Template_input_ngModelChange_12_listener($event) { return ctx.month = $event; })("input", function QueryWriteDateInputComponent_Template_input_input_12_listener() { return ctx.updateDate(); });
20972
+ i0__namespace.ɵɵelementEnd();
20973
+ i0__namespace.ɵɵelementEnd();
20974
+ i0__namespace.ɵɵelementEnd();
20975
+ i0__namespace.ɵɵelementStart(13, "div", 1);
20976
+ i0__namespace.ɵɵelementStart(14, "div", 2);
20977
+ i0__namespace.ɵɵelementStart(15, "label", 3);
20978
+ i0__namespace.ɵɵtext(16);
20979
+ i0__namespace.ɵɵpipe(17, "rpxTranslate");
20980
+ i0__namespace.ɵɵelementEnd();
20981
+ i0__namespace.ɵɵelementStart(18, "input", 5);
20982
+ i0__namespace.ɵɵlistener("ngModelChange", function QueryWriteDateInputComponent_Template_input_ngModelChange_18_listener($event) { return ctx.year = $event; })("input", function QueryWriteDateInputComponent_Template_input_input_18_listener() { return ctx.updateDate(); });
20983
+ i0__namespace.ɵɵelementEnd();
20984
+ i0__namespace.ɵɵelementEnd();
20985
+ i0__namespace.ɵɵelementEnd();
20986
+ i0__namespace.ɵɵelementEnd();
20987
+ }
20988
+ if (rf & 2) {
20989
+ i0__namespace.ɵɵproperty("id", ctx.formControlName);
20990
+ i0__namespace.ɵɵadvance(3);
20991
+ i0__namespace.ɵɵproperty("for", ctx.formControlName + "-day");
20992
+ i0__namespace.ɵɵadvance(1);
20993
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 18, "Day"), " ");
20994
+ i0__namespace.ɵɵadvance(2);
20995
+ i0__namespace.ɵɵproperty("id", ctx.formControlName + "-day")("name", ctx.formControlName + "-day")("ngModel", ctx.day)("disabled", ctx.disabled);
20996
+ i0__namespace.ɵɵadvance(3);
20997
+ i0__namespace.ɵɵproperty("for", ctx.formControlName + "-month");
20998
+ i0__namespace.ɵɵadvance(1);
20999
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(11, 20, "Month"), " ");
21000
+ i0__namespace.ɵɵadvance(2);
21001
+ i0__namespace.ɵɵproperty("id", ctx.formControlName + "-month")("name", ctx.formControlName + "-month")("ngModel", ctx.month)("disabled", ctx.disabled);
21002
+ i0__namespace.ɵɵadvance(3);
21003
+ i0__namespace.ɵɵproperty("for", ctx.formControlName + "-year");
21004
+ i0__namespace.ɵɵadvance(1);
21005
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(17, 22, "Year"), " ");
21006
+ i0__namespace.ɵɵadvance(2);
21007
+ i0__namespace.ɵɵproperty("name", ctx.formControlName + "-year")("ngModel", ctx.year)("disabled", ctx.disabled);
21008
+ }
21009
+ }, directives: [i3__namespace.DefaultValueAccessor, i3__namespace.NgControlStatus, i3__namespace.NgModel], pipes: [i1__namespace.RpxTranslatePipe], encapsulation: 2 });
21010
+ (function () {
21011
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QueryWriteDateInputComponent, [{
21012
+ type: i0.Component,
21013
+ args: [{
21014
+ selector: 'ccd-query-write-date-input',
21015
+ templateUrl: './query-write-date-input.component.html',
21016
+ providers: [
21017
+ {
21018
+ provide: i3.NG_VALUE_ACCESSOR,
21019
+ useExisting: i0.forwardRef(function () { return QueryWriteDateInputComponent; }),
21020
+ multi: true
21021
+ }
21022
+ ]
21023
+ }]
21024
+ }], null, { formControlName: [{
21025
+ type: i0.Input
21026
+ }] });
21027
+ })();
21028
+
20903
21029
  var QueryWriteAddDocumentsComponent = /** @class */ (function () {
20904
21030
  function QueryWriteAddDocumentsComponent() {
20905
21031
  this.documentFormGroup = new i3.FormGroup({});
@@ -20971,8 +21097,8 @@
20971
21097
 
20972
21098
  function QueryWriteRaiseQueryComponent_p_22_Template(rf, ctx) {
20973
21099
  if (rf & 1) {
20974
- i0__namespace.ɵɵelementStart(0, "p", 27);
20975
- i0__namespace.ɵɵelementStart(1, "span", 28);
21100
+ i0__namespace.ɵɵelementStart(0, "p", 28);
21101
+ i0__namespace.ɵɵelementStart(1, "span", 29);
20976
21102
  i0__namespace.ɵɵtext(2);
20977
21103
  i0__namespace.ɵɵpipe(3, "rpxTranslate");
20978
21104
  i0__namespace.ɵɵelementEnd();
@@ -20989,8 +21115,8 @@
20989
21115
  }
20990
21116
  function QueryWriteRaiseQueryComponent_p_32_Template(rf, ctx) {
20991
21117
  if (rf & 1) {
20992
- i0__namespace.ɵɵelementStart(0, "p", 29);
20993
- i0__namespace.ɵɵelementStart(1, "span", 28);
21118
+ i0__namespace.ɵɵelementStart(0, "p", 30);
21119
+ i0__namespace.ɵɵelementStart(1, "span", 29);
20994
21120
  i0__namespace.ɵɵtext(2);
20995
21121
  i0__namespace.ɵɵpipe(3, "rpxTranslate");
20996
21122
  i0__namespace.ɵɵelementEnd();
@@ -21007,8 +21133,8 @@
21007
21133
  }
21008
21134
  function QueryWriteRaiseQueryComponent_p_42_Template(rf, ctx) {
21009
21135
  if (rf & 1) {
21010
- i0__namespace.ɵɵelementStart(0, "p", 30);
21011
- i0__namespace.ɵɵelementStart(1, "span", 28);
21136
+ i0__namespace.ɵɵelementStart(0, "p", 31);
21137
+ i0__namespace.ɵɵelementStart(1, "span", 29);
21012
21138
  i0__namespace.ɵɵtext(2);
21013
21139
  i0__namespace.ɵɵpipe(3, "rpxTranslate");
21014
21140
  i0__namespace.ɵɵelementEnd();
@@ -21023,13 +21149,34 @@
21023
21149
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, "Enter a query body"), " ");
21024
21150
  }
21025
21151
  }
21152
+ function QueryWriteRaiseQueryComponent_ng_container_62_Template(rf, ctx) {
21153
+ if (rf & 1) {
21154
+ i0__namespace.ɵɵelementContainerStart(0);
21155
+ i0__namespace.ɵɵelementStart(1, "div", 32);
21156
+ i0__namespace.ɵɵelementStart(2, "fieldset", 33);
21157
+ i0__namespace.ɵɵelementStart(3, "legend");
21158
+ i0__namespace.ɵɵelementStart(4, "label", 34);
21159
+ i0__namespace.ɵɵtext(5);
21160
+ i0__namespace.ɵɵpipe(6, "rpxTranslate");
21161
+ i0__namespace.ɵɵelementEnd();
21162
+ i0__namespace.ɵɵelementEnd();
21163
+ i0__namespace.ɵɵelement(7, "ccd-query-write-date-input", 35);
21164
+ i0__namespace.ɵɵelementEnd();
21165
+ i0__namespace.ɵɵelementEnd();
21166
+ i0__namespace.ɵɵelementContainerEnd();
21167
+ }
21168
+ if (rf & 2) {
21169
+ i0__namespace.ɵɵadvance(5);
21170
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(6, 1, "Hearing date"), " ");
21171
+ }
21172
+ }
21026
21173
  var QueryWriteRaiseQueryComponent = /** @class */ (function () {
21027
21174
  function QueryWriteRaiseQueryComponent() {
21028
21175
  }
21029
21176
  return QueryWriteRaiseQueryComponent;
21030
21177
  }());
21031
21178
  QueryWriteRaiseQueryComponent.ɵfac = function QueryWriteRaiseQueryComponent_Factory(t) { return new (t || QueryWriteRaiseQueryComponent)(); };
21032
- QueryWriteRaiseQueryComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryWriteRaiseQueryComponent, selectors: [["ccd-query-write-raise-query"]], inputs: { formGroup: "formGroup" }, decls: 62, vars: 60, 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"], [1, "govuk-label-wrapper"], ["for", "query-raise-fullName", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "query-raise-fullName-hint", 1, "govuk-hint"], ["id", "query-raise-fullName-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "query-raise-fullName", "name", "query-raise-fullName", "type", "text", 1, "govuk-input", 3, "formControlName"], ["for", "query-raise-subject", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "query-raise-subject-hint", 1, "govuk-hint"], ["id", "query-raise-subject-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "query-raise-subject", "name", "query-raise-subject", "type", "text", 1, "govuk-input", 3, "formControlName"], ["for", "query-raise-body", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "query-raise-body-hint", 1, "govuk-hint"], ["id", "query-raise-body-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "query-raise-body", "name", "query-body", "rows", "5", "aria-describedby", "query-body-hint query-body-error", 1, "govuk-textarea", 3, "formControlName"], [1, "govuk-fieldset"], [1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["data-module", "govuk-radios", 1, "govuk-radios", "govuk-radios--inline"], [1, "govuk-radios__item"], ["id", "query-raise-isHearingRelated-yes", "name", "query-raise-isHearingRelated-yes", "type", "radio", 1, "govuk-radios__input", 3, "checked", "value"], ["for", "query-raise-isHearingRelated-yes", 1, "govuk-label", "govuk-radios__label"], ["id", "query-raise-isHearingRelated-no", "name", "query-raise-isHearingRelated-no", "type", "radio", 1, "govuk-radios__input", 3, "checked", "value"], ["for", "query-raise-isHearingRelated-no", 1, "govuk-label", "govuk-radios__label"], ["id", "query-raise-fullName-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "query-raise-subject-error", 1, "govuk-error-message"], ["id", "query-raise-body-error", 1, "govuk-error-message"]], template: function QueryWriteRaiseQueryComponent_Template(rf, ctx) {
21179
+ QueryWriteRaiseQueryComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryWriteRaiseQueryComponent, selectors: [["ccd-query-write-raise-query"]], inputs: { formGroup: "formGroup" }, decls: 63, vars: 61, 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"], [1, "govuk-label-wrapper"], ["for", "query-raise-fullName", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "query-raise-fullName-hint", 1, "govuk-hint"], ["id", "query-raise-fullName-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "query-raise-fullName", "name", "query-raise-fullName", "type", "text", 1, "govuk-input", 3, "formControlName"], ["for", "query-raise-subject", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "query-raise-subject-hint", 1, "govuk-hint"], ["id", "query-raise-subject-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "query-raise-subject", "name", "query-raise-subject", "type", "text", 1, "govuk-input", 3, "formControlName"], ["for", "query-raise-body", 1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["id", "query-raise-body-hint", 1, "govuk-hint"], ["id", "query-raise-body-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "query-raise-body", "name", "query-body", "rows", "5", "aria-describedby", "query-body-hint query-body-error", 1, "govuk-textarea", 3, "formControlName"], [1, "govuk-fieldset"], [1, "govuk-label", "govuk-label--m", "govuk-!-font-weight-bold"], ["data-module", "govuk-radios", 1, "govuk-radios", "govuk-radios--inline"], [1, "govuk-radios__item"], ["id", "query-raise-isHearingRelated-yes", "name", "query-raise-isHearingRelated-yes", "type", "radio", 1, "govuk-radios__input", 3, "checked", "value"], ["for", "query-raise-isHearingRelated-yes", 1, "govuk-label", "govuk-radios__label"], ["id", "query-raise-isHearingRelated-no", "name", "query-raise-isHearingRelated-no", "type", "radio", 1, "govuk-radios__input", 3, "checked", "value"], ["for", "query-raise-isHearingRelated-no", 1, "govuk-label", "govuk-radios__label"], [4, "ngIf"], ["id", "query-raise-fullName-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "query-raise-subject-error", 1, "govuk-error-message"], ["id", "query-raise-body-error", 1, "govuk-error-message"], [1, "govuk-!-margin-top-1"], ["role", "group", 1, "govuk-fieldset"], [1, "govuk-label", "govuk-label--s"], ["formControlName", "hearingDate"]], template: function QueryWriteRaiseQueryComponent_Template(rf, ctx) {
21033
21180
  if (rf & 1) {
21034
21181
  i0__namespace.ɵɵelementStart(0, "div");
21035
21182
  i0__namespace.ɵɵelementStart(1, "div", 0);
@@ -21118,6 +21265,7 @@
21118
21265
  i0__namespace.ɵɵelementEnd();
21119
21266
  i0__namespace.ɵɵelementEnd();
21120
21267
  i0__namespace.ɵɵelementEnd();
21268
+ i0__namespace.ɵɵtemplate(62, QueryWriteRaiseQueryComponent_ng_container_62_Template, 8, 3, "ng-container", 27);
21121
21269
  i0__namespace.ɵɵelementEnd();
21122
21270
  i0__namespace.ɵɵelementEnd();
21123
21271
  i0__namespace.ɵɵelementEnd();
@@ -21135,17 +21283,17 @@
21135
21283
  var tmp_18_0 = null;
21136
21284
  var tmp_19_0 = null;
21137
21285
  i0__namespace.ɵɵadvance(3);
21138
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(4, 34, "Raise a query"));
21286
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(4, 35, "Raise a query"));
21139
21287
  i0__namespace.ɵɵadvance(3);
21140
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(7, 36, "Enter query details"));
21288
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(7, 37, "Enter query details"));
21141
21289
  i0__namespace.ɵɵadvance(6);
21142
21290
  i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
21143
21291
  i0__namespace.ɵɵadvance(2);
21144
21292
  i0__namespace.ɵɵclassProp("govuk-form-group--error", (tmp_3_0 = ctx.formGroup.get("fullName")) == null ? null : tmp_3_0.errors == null ? null : tmp_3_0.errors.length);
21145
21293
  i0__namespace.ɵɵadvance(3);
21146
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(18, 38, "Full name"), " ");
21294
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(18, 39, "Full name"), " ");
21147
21295
  i0__namespace.ɵɵadvance(3);
21148
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(21, 40, "Your full name must be included here"), " ");
21296
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(21, 41, "Your full name must be included here"), " ");
21149
21297
  i0__namespace.ɵɵadvance(2);
21150
21298
  i0__namespace.ɵɵproperty("ngIf", (tmp_6_0 = ctx.formGroup.get("body")) == null ? null : tmp_6_0.errors == null ? null : tmp_6_0.errors.length);
21151
21299
  i0__namespace.ɵɵadvance(1);
@@ -21154,9 +21302,9 @@
21154
21302
  i0__namespace.ɵɵadvance(1);
21155
21303
  i0__namespace.ɵɵclassProp("govuk-form-group--error", (tmp_9_0 = ctx.formGroup.get("subject")) == null ? null : tmp_9_0.errors == null ? null : tmp_9_0.errors.length);
21156
21304
  i0__namespace.ɵɵadvance(3);
21157
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(28, 42, "Query subject"), " ");
21305
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(28, 43, "Query subject"), " ");
21158
21306
  i0__namespace.ɵɵadvance(3);
21159
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(31, 44, "The subject should be a summary of your query"), " ");
21307
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(31, 45, "The subject should be a summary of your query"), " ");
21160
21308
  i0__namespace.ɵɵadvance(2);
21161
21309
  i0__namespace.ɵɵproperty("ngIf", (tmp_12_0 = ctx.formGroup.get("body")) == null ? null : tmp_12_0.errors == null ? null : tmp_12_0.errors.length);
21162
21310
  i0__namespace.ɵɵadvance(1);
@@ -21165,24 +21313,26 @@
21165
21313
  i0__namespace.ɵɵadvance(1);
21166
21314
  i0__namespace.ɵɵclassProp("govuk-form-group--error", (tmp_15_0 = ctx.formGroup.get("body")) == null ? null : tmp_15_0.errors == null ? null : tmp_15_0.errors.length);
21167
21315
  i0__namespace.ɵɵadvance(3);
21168
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(38, 46, "Query body"), " ");
21316
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(38, 47, "Query body"), " ");
21169
21317
  i0__namespace.ɵɵadvance(3);
21170
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(41, 48, "Include as many details as possible so case workers can respond to your query"), " ");
21318
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(41, 49, "Include as many details as possible so case workers can respond to your query"), " ");
21171
21319
  i0__namespace.ɵɵadvance(2);
21172
21320
  i0__namespace.ɵɵproperty("ngIf", (tmp_18_0 = ctx.formGroup.get("body")) == null ? null : tmp_18_0.errors == null ? null : tmp_18_0.errors.length);
21173
21321
  i0__namespace.ɵɵadvance(1);
21174
21322
  i0__namespace.ɵɵclassProp("govuk-textarea--error", (tmp_19_0 = ctx.formGroup.get("body")) == null ? null : tmp_19_0.errors == null ? null : tmp_19_0.errors.length);
21175
21323
  i0__namespace.ɵɵproperty("formControlName", "body");
21176
21324
  i0__namespace.ɵɵadvance(6);
21177
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(50, 50, "Is the query hearing related?"), " ");
21325
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(50, 51, "Is the query hearing related?"), " ");
21178
21326
  i0__namespace.ɵɵadvance(4);
21179
21327
  i0__namespace.ɵɵproperty("checked", ctx.formGroup.get("isHearingRelated").value === true)("value", true);
21180
21328
  i0__namespace.ɵɵadvance(2);
21181
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind3(56, 52, "Is the query hearing related?", null, "Yes"), " ");
21329
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind3(56, 53, "Is the query hearing related?", null, "Yes"), " ");
21182
21330
  i0__namespace.ɵɵadvance(3);
21183
21331
  i0__namespace.ɵɵproperty("checked", ctx.formGroup.get("isHearingRelated").value === false)("value", false);
21184
21332
  i0__namespace.ɵɵadvance(2);
21185
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind3(61, 56, "Is the query hearing related?", null, "No"), " ");
21333
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind3(61, 57, "Is the query hearing related?", null, "No"), " ");
21334
+ i0__namespace.ɵɵadvance(2);
21335
+ i0__namespace.ɵɵproperty("ngIf", ctx.formGroup.get("isHearingRelated").value);
21186
21336
  }
21187
21337
  }, encapsulation: 2 });
21188
21338
  (function () {
@@ -21197,7 +21347,7 @@
21197
21347
  }] });
21198
21348
  })();
21199
21349
 
21200
- function QueryWriteRespondToQueryComponent_p_27_Template(rf, ctx) {
21350
+ function QueryWriteRespondToQueryComponent_p_26_Template(rf, ctx) {
21201
21351
  if (rf & 1) {
21202
21352
  i0__namespace.ɵɵelementStart(0, "p", 15);
21203
21353
  i0__namespace.ɵɵelementStart(1, "span", 16);
@@ -21221,7 +21371,7 @@
21221
21371
  return QueryWriteRespondToQueryComponent;
21222
21372
  }());
21223
21373
  QueryWriteRespondToQueryComponent.ɵfac = function QueryWriteRespondToQueryComponent_Factory(t) { return new (t || QueryWriteRespondToQueryComponent)(); };
21224
- QueryWriteRespondToQueryComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryWriteRespondToQueryComponent, selectors: [["ccd-query-write-respond-to-query"]], inputs: { queryItem: "queryItem", formGroup: "formGroup" }, decls: 30, vars: 23, 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", "body-textarea"], [1, "govuk-label-wrapper"], ["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-body-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"]], template: function QueryWriteRespondToQueryComponent_Template(rf, ctx) {
21374
+ QueryWriteRespondToQueryComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QueryWriteRespondToQueryComponent, selectors: [["ccd-query-write-respond-to-query"]], inputs: { queryItem: "queryItem", formGroup: "formGroup" }, decls: 29, vars: 23, 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", "body-textarea"], [1, "govuk-label-wrapper"], ["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-body-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"]], template: function QueryWriteRespondToQueryComponent_Template(rf, ctx) {
21225
21375
  if (rf & 1) {
21226
21376
  i0__namespace.ɵɵelementStart(0, "div", 0);
21227
21377
  i0__namespace.ɵɵelementStart(1, "a", 1);
@@ -21248,23 +21398,21 @@
21248
21398
  i0__namespace.ɵɵelementEnd();
21249
21399
  i0__namespace.ɵɵelementEnd();
21250
21400
  i0__namespace.ɵɵelementStart(16, "div", 7);
21251
- i0__namespace.ɵɵelementStart(17, "div", 5);
21252
- i0__namespace.ɵɵelementStart(18, "h1", 8);
21253
- i0__namespace.ɵɵtext(19);
21254
- i0__namespace.ɵɵpipe(20, "rpxTranslate");
21255
- i0__namespace.ɵɵelementEnd();
21256
- i0__namespace.ɵɵelementStart(21, "div", 9);
21257
- i0__namespace.ɵɵelementStart(22, "div", 10);
21258
- i0__namespace.ɵɵelementStart(23, "div", 11);
21259
- i0__namespace.ɵɵelementStart(24, "label", 12);
21260
- i0__namespace.ɵɵtext(25);
21261
- i0__namespace.ɵɵpipe(26, "rpxTranslate");
21401
+ i0__namespace.ɵɵelementStart(17, "h1", 8);
21402
+ i0__namespace.ɵɵtext(18);
21403
+ i0__namespace.ɵɵpipe(19, "rpxTranslate");
21262
21404
  i0__namespace.ɵɵelementEnd();
21405
+ i0__namespace.ɵɵelementStart(20, "div", 9);
21406
+ i0__namespace.ɵɵelementStart(21, "div", 10);
21407
+ i0__namespace.ɵɵelementStart(22, "div", 11);
21408
+ i0__namespace.ɵɵelementStart(23, "label", 12);
21409
+ i0__namespace.ɵɵtext(24);
21410
+ i0__namespace.ɵɵpipe(25, "rpxTranslate");
21263
21411
  i0__namespace.ɵɵelementEnd();
21264
- i0__namespace.ɵɵtemplate(27, QueryWriteRespondToQueryComponent_p_27_Template, 6, 6, "p", 13);
21265
- i0__namespace.ɵɵelementStart(28, "textarea", 14);
21266
- i0__namespace.ɵɵtext(29, " ");
21267
21412
  i0__namespace.ɵɵelementEnd();
21413
+ i0__namespace.ɵɵtemplate(26, QueryWriteRespondToQueryComponent_p_26_Template, 6, 6, "p", 13);
21414
+ i0__namespace.ɵɵelementStart(27, "textarea", 14);
21415
+ i0__namespace.ɵɵtext(28, " ");
21268
21416
  i0__namespace.ɵɵelementEnd();
21269
21417
  i0__namespace.ɵɵelementEnd();
21270
21418
  i0__namespace.ɵɵelementEnd();
@@ -21275,21 +21423,21 @@
21275
21423
  var tmp_8_0 = null;
21276
21424
  var tmp_9_0 = null;
21277
21425
  i0__namespace.ɵɵadvance(2);
21278
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 13, "Cancel and return to tasks"));
21426
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 13, "Back to tasks"));
21279
21427
  i0__namespace.ɵɵadvance(5);
21280
21428
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(8, 15, "Respond to query"));
21281
21429
  i0__namespace.ɵɵadvance(3);
21282
21430
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(11, 17, "Query details"));
21283
21431
  i0__namespace.ɵɵadvance(5);
21284
21432
  i0__namespace.ɵɵproperty("queryItem", ctx.queryItem);
21285
- i0__namespace.ɵɵadvance(4);
21286
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(20, 19, "Respond to a query"));
21433
+ i0__namespace.ɵɵadvance(3);
21434
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(19, 19, "Respond to a query"));
21287
21435
  i0__namespace.ɵɵadvance(2);
21288
21436
  i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
21289
21437
  i0__namespace.ɵɵadvance(1);
21290
21438
  i0__namespace.ɵɵclassProp("govuk-form-group--error", (tmp_6_0 = ctx.formGroup.get("body")) == null ? null : tmp_6_0.errors == null ? null : tmp_6_0.errors.length);
21291
21439
  i0__namespace.ɵɵadvance(3);
21292
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(26, 21, "Response message"), " ");
21440
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(25, 21, "Response message"), " ");
21293
21441
  i0__namespace.ɵɵadvance(2);
21294
21442
  i0__namespace.ɵɵproperty("ngIf", (tmp_8_0 = ctx.formGroup.get("body")) == null ? null : tmp_8_0.errors == null ? null : tmp_8_0.errors.length);
21295
21443
  i0__namespace.ɵɵadvance(1);
@@ -29223,6 +29371,7 @@
29223
29371
  QueryWriteRaiseQueryComponent,
29224
29372
  QueryCaseDetailsHeaderComponent,
29225
29373
  QueryWriteAddDocumentsComponent,
29374
+ QueryWriteDateInputComponent
29226
29375
  ];
29227
29376
  var PaletteModule = /** @class */ (function () {
29228
29377
  function PaletteModule() {
@@ -29408,7 +29557,8 @@
29408
29557
  QueryWriteRespondToQueryComponent,
29409
29558
  QueryWriteRaiseQueryComponent,
29410
29559
  QueryCaseDetailsHeaderComponent,
29411
- QueryWriteAddDocumentsComponent], imports: [i5.CommonModule,
29560
+ QueryWriteAddDocumentsComponent,
29561
+ QueryWriteDateInputComponent], imports: [i5.CommonModule,
29412
29562
  i1$1.RouterModule,
29413
29563
  i3.FormsModule,
29414
29564
  i3.ReactiveFormsModule,
@@ -29555,7 +29705,8 @@
29555
29705
  QueryWriteRespondToQueryComponent,
29556
29706
  QueryWriteRaiseQueryComponent,
29557
29707
  QueryCaseDetailsHeaderComponent,
29558
- QueryWriteAddDocumentsComponent] });
29708
+ QueryWriteAddDocumentsComponent,
29709
+ QueryWriteDateInputComponent] });
29559
29710
  })();
29560
29711
  (function () {
29561
29712
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PaletteModule, [{
@@ -29701,7 +29852,7 @@
29701
29852
  i0__namespace.ɵɵsetComponentScope(QueryDetailsComponent, [i5__namespace.NgIf, QueryDetailsTableComponent], [i1__namespace.RpxTranslatePipe]);
29702
29853
  i0__namespace.ɵɵsetComponentScope(QueryWriteRespondToQueryComponent, [QueryCaseDetailsHeaderComponent,
29703
29854
  QueryDetailsTableComponent, i3__namespace.NgControlStatusGroup, i3__namespace.FormGroupDirective, i5__namespace.NgIf, i3__namespace.DefaultValueAccessor, i3__namespace.NgControlStatus, i3__namespace.FormControlName], [i1__namespace.RpxTranslatePipe]);
29704
- i0__namespace.ɵɵsetComponentScope(QueryWriteRaiseQueryComponent, [QueryCaseDetailsHeaderComponent, i3__namespace.NgControlStatusGroup, i3__namespace.FormGroupDirective, i5__namespace.NgIf, i3__namespace.DefaultValueAccessor, i3__namespace.NgControlStatus, i3__namespace.FormControlName], [i1__namespace.RpxTranslatePipe]);
29855
+ i0__namespace.ɵɵsetComponentScope(QueryWriteRaiseQueryComponent, [QueryCaseDetailsHeaderComponent, i3__namespace.NgControlStatusGroup, i3__namespace.FormGroupDirective, i5__namespace.NgIf, i3__namespace.DefaultValueAccessor, i3__namespace.NgControlStatus, i3__namespace.FormControlName, QueryWriteDateInputComponent], [i1__namespace.RpxTranslatePipe]);
29705
29856
  i0__namespace.ɵɵsetComponentScope(QueryWriteAddDocumentsComponent, [WriteCollectionFieldComponent, i3__namespace.NgControlStatusGroup, i3__namespace.FormGroupDirective], []);
29706
29857
 
29707
29858
  var Confirmation = /** @class */ (function () {
@@ -40326,6 +40477,7 @@
40326
40477
  exports.QueryListData = QueryListData;
40327
40478
  exports.QueryListItem = QueryListItem;
40328
40479
  exports.QueryWriteAddDocumentsComponent = QueryWriteAddDocumentsComponent;
40480
+ exports.QueryWriteDateInputComponent = QueryWriteDateInputComponent;
40329
40481
  exports.QueryWriteRaiseQueryComponent = QueryWriteRaiseQueryComponent;
40330
40482
  exports.QueryWriteRespondToQueryComponent = QueryWriteRespondToQueryComponent;
40331
40483
  exports.ReadCaseFlagFieldComponent = ReadCaseFlagFieldComponent;