@hmcts/ccd-case-ui-toolkit 6.16.0-create-qualifying-questions-component-v2 → 6.16.0-create-qualifying-questions-component-v3

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.
@@ -20280,37 +20280,43 @@
20280
20280
 
20281
20281
  function QualifyingQuestionsComponent_span_7_Template(rf, ctx) {
20282
20282
  if (rf & 1) {
20283
- i0__namespace.ɵɵelementStart(0, "span", 10);
20284
- i0__namespace.ɵɵelementStart(1, "span", 11);
20285
- i0__namespace.ɵɵtext(2, "Error:");
20283
+ i0__namespace.ɵɵelementStart(0, "span", 9);
20284
+ i0__namespace.ɵɵelementStart(1, "span", 10);
20285
+ i0__namespace.ɵɵtext(2);
20286
+ i0__namespace.ɵɵpipe(3, "rpxTranslate");
20286
20287
  i0__namespace.ɵɵelementEnd();
20287
- i0__namespace.ɵɵtext(3);
20288
+ i0__namespace.ɵɵtext(4);
20289
+ i0__namespace.ɵɵpipe(5, "rpxTranslate");
20288
20290
  i0__namespace.ɵɵelementEnd();
20289
20291
  }
20290
20292
  if (rf & 2) {
20291
20293
  var ctx_r0 = i0__namespace.ɵɵnextContext();
20292
- i0__namespace.ɵɵadvance(3);
20293
- i0__namespace.ɵɵtextInterpolate1(" ", ctx_r0.qualifyingQuestionSelectionError, " ");
20294
+ i0__namespace.ɵɵadvance(2);
20295
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(3, 2, "Error:"));
20296
+ i0__namespace.ɵɵadvance(2);
20297
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(5, 4, ctx_r0.qualifyingQuestionSelectionError), " ");
20294
20298
  }
20295
20299
  }
20296
20300
  function QualifyingQuestionsComponent_div_10_Template(rf, ctx) {
20297
20301
  if (rf & 1) {
20298
- i0__namespace.ɵɵelementStart(0, "div", 7);
20299
- i0__namespace.ɵɵelement(1, "input", 12);
20300
- i0__namespace.ɵɵelementStart(2, "label", 13);
20302
+ i0__namespace.ɵɵelementStart(0, "div", 6);
20303
+ i0__namespace.ɵɵelement(1, "input", 11);
20304
+ i0__namespace.ɵɵelementStart(2, "label", 12);
20301
20305
  i0__namespace.ɵɵtext(3);
20306
+ i0__namespace.ɵɵpipe(4, "rpxTranslate");
20302
20307
  i0__namespace.ɵɵelementEnd();
20303
20308
  i0__namespace.ɵɵelementEnd();
20304
20309
  }
20305
20310
  if (rf & 2) {
20306
20311
  var qualifyingQuestion_r2 = ctx.$implicit;
20312
+ var ctx_r1 = i0__namespace.ɵɵnextContext();
20307
20313
  i0__namespace.ɵɵadvance(1);
20308
20314
  i0__namespace.ɵɵpropertyInterpolate("id", qualifyingQuestion_r2.name);
20309
- i0__namespace.ɵɵproperty("formControlName", "qualifyingQuestionOption")("value", qualifyingQuestion_r2.name);
20315
+ i0__namespace.ɵɵproperty("formControl", ctx_r1.qualifyingQuestionControl)("value", qualifyingQuestion_r2.name);
20310
20316
  i0__namespace.ɵɵadvance(1);
20311
20317
  i0__namespace.ɵɵproperty("for", qualifyingQuestion_r2.name);
20312
20318
  i0__namespace.ɵɵadvance(1);
20313
- i0__namespace.ɵɵtextInterpolate(qualifyingQuestion_r2.name);
20319
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(4, 5, qualifyingQuestion_r2.name));
20314
20320
  }
20315
20321
  }
20316
20322
  var _c0$C = function (a0) { return { "govuk-form-group--error": a0 }; };
@@ -20320,24 +20326,24 @@
20320
20326
  return QualifyingQuestionsComponent;
20321
20327
  }());
20322
20328
  QualifyingQuestionsComponent.ɵfac = function QualifyingQuestionsComponent_Factory(t) { return new (t || QualifyingQuestionsComponent)(); };
20323
- QualifyingQuestionsComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QualifyingQuestionsComponent, selectors: [["ccd-qualifying-questions"]], inputs: { formGroup: "formGroup", qualifyingQuestions$: "qualifyingQuestions$" }, decls: 17, vars: 15, consts: [[1, "govuk-heading-l"], [3, "formGroup"], [1, "govuk-form-group", 3, "ngClass"], ["id", "qualifying-question", 1, "govuk-fieldset"], ["class", "govuk-error-message", 4, "ngIf"], [1, "govuk-radios"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf"], [1, "govuk-radios__item"], ["id", "raiseAQuery", "name", "qualifyingQuestionOption", "type", "radio", "value", "raiseAQuery", 1, "govuk-radios__input", 3, "formControlName"], ["for", "raise-a-query", 1, "govuk-label", "govuk-radios__label"], [1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["name", "qualifyingQuestionOption", "type", "radio", 1, "govuk-radios__input", 3, "id", "formControlName", "value"], [1, "govuk-label", "govuk-radios__label", 3, "for"]], template: function QualifyingQuestionsComponent_Template(rf, ctx) {
20329
+ QualifyingQuestionsComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: QualifyingQuestionsComponent, selectors: [["ccd-qualifying-questions"]], inputs: { qualifyingQuestionControl: "qualifyingQuestionControl", qualifyingQuestions$: "qualifyingQuestions$" }, decls: 17, vars: 14, consts: [[1, "govuk-heading-l"], [1, "govuk-form-group", 3, "ngClass"], ["id", "qualifying-question", 1, "govuk-fieldset"], ["class", "govuk-error-message", 4, "ngIf"], [1, "govuk-radios"], ["class", "govuk-radios__item", 4, "ngFor", "ngForOf"], [1, "govuk-radios__item"], ["id", "raiseAQuery", "name", "qualifyingQuestionOption", "type", "radio", "value", "raiseAQuery", 1, "govuk-radios__input", 3, "formControl"], ["for", "raise-a-query", 1, "govuk-label", "govuk-radios__label"], [1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["name", "qualifyingQuestionOption", "type", "radio", 1, "govuk-radios__input", 3, "id", "formControl", "value"], [1, "govuk-label", "govuk-radios__label", 3, "for"]], template: function QualifyingQuestionsComponent_Template(rf, ctx) {
20324
20330
  if (rf & 1) {
20325
20331
  i0__namespace.ɵɵelementStart(0, "h1", 0);
20326
20332
  i0__namespace.ɵɵtext(1);
20327
20333
  i0__namespace.ɵɵpipe(2, "rpxTranslate");
20328
20334
  i0__namespace.ɵɵelementEnd();
20329
- i0__namespace.ɵɵelementStart(3, "div", 1);
20330
- i0__namespace.ɵɵelementStart(4, "div", 2);
20331
- i0__namespace.ɵɵelementStart(5, "fieldset", 3);
20335
+ i0__namespace.ɵɵelementStart(3, "div");
20336
+ i0__namespace.ɵɵelementStart(4, "div", 1);
20337
+ i0__namespace.ɵɵelementStart(5, "fieldset", 2);
20332
20338
  i0__namespace.ɵɵelementStart(6, "legend");
20333
- i0__namespace.ɵɵtemplate(7, QualifyingQuestionsComponent_span_7_Template, 4, 1, "span", 4);
20334
- i0__namespace.ɵɵelementStart(8, "div", 5);
20335
- i0__namespace.ɵɵelementStart(9, "div", 5);
20336
- i0__namespace.ɵɵtemplate(10, QualifyingQuestionsComponent_div_10_Template, 4, 5, "div", 6);
20339
+ i0__namespace.ɵɵtemplate(7, QualifyingQuestionsComponent_span_7_Template, 6, 6, "span", 3);
20340
+ i0__namespace.ɵɵelementStart(8, "div", 4);
20341
+ i0__namespace.ɵɵelementStart(9, "div", 4);
20342
+ i0__namespace.ɵɵtemplate(10, QualifyingQuestionsComponent_div_10_Template, 5, 7, "div", 5);
20337
20343
  i0__namespace.ɵɵpipe(11, "async");
20338
- i0__namespace.ɵɵelementStart(12, "div", 7);
20339
- i0__namespace.ɵɵelement(13, "input", 8);
20340
- i0__namespace.ɵɵelementStart(14, "label", 9);
20344
+ i0__namespace.ɵɵelementStart(12, "div", 6);
20345
+ i0__namespace.ɵɵelement(13, "input", 7);
20346
+ i0__namespace.ɵɵelementStart(14, "label", 8);
20341
20347
  i0__namespace.ɵɵtext(15);
20342
20348
  i0__namespace.ɵɵpipe(16, "rpxTranslate");
20343
20349
  i0__namespace.ɵɵelementEnd();
@@ -20351,21 +20357,19 @@
20351
20357
  }
20352
20358
  if (rf & 2) {
20353
20359
  i0__namespace.ɵɵadvance(1);
20354
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 7, "Are you contacting us about any of the following:"), "\n");
20355
- i0__namespace.ɵɵadvance(2);
20356
- i0__namespace.ɵɵproperty("formGroup", ctx.formGroup);
20357
- i0__namespace.ɵɵadvance(1);
20358
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(13, _c0$C, ctx.qualifyingQuestionSelectionError));
20360
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 6, "Are you contacting us about any of the following:"), "\n");
20361
+ i0__namespace.ɵɵadvance(3);
20362
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(12, _c0$C, ctx.qualifyingQuestionSelectionError));
20359
20363
  i0__namespace.ɵɵadvance(3);
20360
20364
  i0__namespace.ɵɵproperty("ngIf", ctx.qualifyingQuestionSelectionError);
20361
20365
  i0__namespace.ɵɵadvance(3);
20362
- i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(11, 9, ctx.qualifyingQuestions$));
20366
+ i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(11, 8, ctx.qualifyingQuestions$));
20363
20367
  i0__namespace.ɵɵadvance(3);
20364
- i0__namespace.ɵɵproperty("formControlName", "qualifyingQuestionOption");
20368
+ i0__namespace.ɵɵproperty("formControl", ctx.qualifyingQuestionControl);
20365
20369
  i0__namespace.ɵɵadvance(2);
20366
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(16, 11, "Raise a query"));
20370
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(16, 10, "Raise another query relating to this case"));
20367
20371
  }
20368
- }, directives: [i3__namespace.NgControlStatusGroup, i3__namespace.FormGroupDirective, i5__namespace.NgClass, i5__namespace.NgIf, i5__namespace.NgForOf, i3__namespace.RadioControlValueAccessor, i3__namespace.DefaultValueAccessor, i3__namespace.NgControlStatus, i3__namespace.FormControlName], pipes: [i1__namespace.RpxTranslatePipe, i5__namespace.AsyncPipe], encapsulation: 2 });
20372
+ }, directives: [i5__namespace.NgClass, i5__namespace.NgIf, i5__namespace.NgForOf, i3__namespace.RadioControlValueAccessor, i3__namespace.DefaultValueAccessor, i3__namespace.NgControlStatus, i3__namespace.FormControlDirective], pipes: [i1__namespace.RpxTranslatePipe, i5__namespace.AsyncPipe], encapsulation: 2 });
20369
20373
  (function () {
20370
20374
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(QualifyingQuestionsComponent, [{
20371
20375
  type: i0.Component,
@@ -20373,7 +20377,7 @@
20373
20377
  selector: 'ccd-qualifying-questions',
20374
20378
  templateUrl: './qualifying-questions.component.html'
20375
20379
  }]
20376
- }], null, { formGroup: [{
20380
+ }], null, { qualifyingQuestionControl: [{
20377
20381
  type: i0.Input
20378
20382
  }], qualifyingQuestions$: [{
20379
20383
  type: i0.Input
@@ -20592,7 +20596,7 @@
20592
20596
  QueryItemType["NEW"] = "New";
20593
20597
  QueryItemType["RESPOND"] = "Respond";
20594
20598
  QueryItemType["FOLLOWUP"] = "Followup";
20595
- QueryItemType["NONE"] = "none";
20599
+ QueryItemType["NONE"] = "None";
20596
20600
  })(exports.QueryItemType || (exports.QueryItemType = {}));
20597
20601
 
20598
20602
  var QueryManagementUtils = /** @class */ (function () {