@hmcts/ccd-case-ui-toolkit 6.18.3-ConsoleLogs.1 → 6.18.3-hotfix-EUI-8737

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 (29) hide show
  1. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +71 -70
  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/case-editor/case-edit-page/case-edit-page.component.js +12 -1
  6. package/esm2015/lib/shared/components/palette/case-link/write-case-link-field.component.js +4 -5
  7. package/esm2015/lib/shared/components/palette/collection/write-collection-field.component.js +4 -5
  8. package/esm2015/lib/shared/components/palette/date/write-date-field.component.js +4 -5
  9. package/esm2015/lib/shared/components/palette/datetime-picker/datetime-picker.component.js +4 -5
  10. package/esm2015/lib/shared/components/palette/dynamic-list/write-dynamic-list-field.component.js +4 -5
  11. package/esm2015/lib/shared/components/palette/dynamic-radio-list/write-dynamic-radio-list-field.component.js +4 -5
  12. package/esm2015/lib/shared/components/palette/email/write-email-field.component.js +4 -5
  13. package/esm2015/lib/shared/components/palette/fixed-list/write-fixed-list-field.component.js +4 -5
  14. package/esm2015/lib/shared/components/palette/fixed-radio-list/write-fixed-radio-list-field.component.js +4 -5
  15. package/esm2015/lib/shared/components/palette/money-gbp/write-money-gbp-field.component.js +4 -5
  16. package/esm2015/lib/shared/components/palette/multi-select-list/write-multi-select-list-field.component.js +4 -5
  17. package/esm2015/lib/shared/components/palette/number/write-number-field.component.js +4 -5
  18. package/esm2015/lib/shared/components/palette/phone-uk/write-phone-uk-field.component.js +4 -5
  19. package/esm2015/lib/shared/components/palette/text/write-text-field.component.js +4 -5
  20. package/esm2015/lib/shared/components/palette/text-area/write-text-area-field.component.js +4 -5
  21. package/esm2015/lib/shared/components/palette/utils/first-error.pipe.js +16 -9
  22. package/esm2015/lib/shared/components/palette/yes-no/write-yes-no-field.component.js +4 -5
  23. package/fesm2015/hmcts-ccd-case-ui-toolkit.js +73 -73
  24. package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
  25. package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts +1 -0
  26. package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts.map +1 -1
  27. package/lib/shared/components/palette/utils/first-error.pipe.d.ts +8 -5
  28. package/lib/shared/components/palette/utils/first-error.pipe.d.ts.map +1 -1
  29. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, Input, EventEmitter, Output, NgModule, ViewEncapsulation, forwardRef, Pipe, ViewChildren, ContentChildren, Injectable, Inject, Directive, ViewChild, HostListener, Injector, ViewContainerRef, ChangeDetectorRef, InjectionToken } from '@angular/core';
2
+ import { Component, Input, EventEmitter, Output, NgModule, ViewEncapsulation, forwardRef, Pipe, ViewChildren, ContentChildren, Injectable, Inject, ChangeDetectorRef, Directive, ViewChild, HostListener, Injector, ViewContainerRef, InjectionToken } from '@angular/core';
3
3
  import * as i2 from '@angular/common';
4
- import { CommonModule, DOCUMENT, CurrencyPipe, formatDate } from '@angular/common';
4
+ import { CommonModule, DOCUMENT, AsyncPipe, CurrencyPipe, formatDate } from '@angular/common';
5
5
  import * as i1 from 'rpx-xui-translation';
6
6
  import { RpxTranslationModule, RpxTranslatePipe } from 'rpx-xui-translation';
7
7
  import * as i1$1 from '@angular/router';
@@ -12,7 +12,7 @@ import polling from 'rx-polling';
12
12
  import { throwError, Subject, EMPTY, Observable, of, BehaviorSubject, timer, fromEvent, forkJoin } from 'rxjs';
13
13
  import * as i1$2 from '@angular/common/http';
14
14
  import { HttpErrorResponse, HttpHeaders, HttpParams } from '@angular/common/http';
15
- import { catchError, map, publish, refCount, debounceTime, delay, distinctUntilChanged, finalize, publishReplay, take, tap, first, switchMap, takeUntil, filter } from 'rxjs/operators';
15
+ import { catchError, map, publish, refCount, switchMap, debounceTime, delay, distinctUntilChanged, finalize, publishReplay, take, tap, first, takeUntil, filter } from 'rxjs/operators';
16
16
  import { Type, Expose, plainToClassFromExist, plainToClass } from 'class-transformer';
17
17
  import * as moment from 'moment';
18
18
  import { __decorate, __metadata } from 'tslib';
@@ -2643,8 +2643,10 @@ FieldLabelPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "ccdFieldLabel", type: FieldLa
2643
2643
  }], null, null); })();
2644
2644
 
2645
2645
  class FirstErrorPipe {
2646
- constructor(rpxTranslationPipe) {
2647
- this.rpxTranslationPipe = rpxTranslationPipe;
2646
+ constructor(rpxTranslationService, injector) {
2647
+ this.rpxTranslationService = rpxTranslationService;
2648
+ this.injector = injector;
2649
+ this.asyncPipe = new AsyncPipe(this.injector.get(ChangeDetectorRef));
2648
2650
  }
2649
2651
  transform(value, args) {
2650
2652
  if (!value) {
@@ -2657,7 +2659,6 @@ class FirstErrorPipe {
2657
2659
  if (!keys.length) {
2658
2660
  return '';
2659
2661
  }
2660
- const fieldLabel = this.rpxTranslationPipe.transform(args);
2661
2662
  let errorMessage;
2662
2663
  if (keys[0] === 'required') {
2663
2664
  errorMessage = '%FIELDLABEL% is required';
@@ -2677,10 +2678,14 @@ class FirstErrorPipe {
2677
2678
  else {
2678
2679
  errorMessage = value[keys[0]];
2679
2680
  }
2680
- return this.rpxTranslationPipe.transform(errorMessage, { FIELDLABEL: fieldLabel });
2681
+ const o = this.rpxTranslationService.getTranslation$(args).pipe(switchMap(fieldLabel => this.rpxTranslationService.getTranslationWithReplacements$(errorMessage, { FIELDLABEL: fieldLabel })));
2682
+ return this.asyncPipe.transform(o);
2683
+ }
2684
+ ngOnDestroy() {
2685
+ this.asyncPipe.ngOnDestroy();
2681
2686
  }
2682
2687
  }
2683
- FirstErrorPipe.ɵfac = function FirstErrorPipe_Factory(t) { return new (t || FirstErrorPipe)(i0.ɵɵdirectiveInject(i1.RpxTranslatePipe)); };
2688
+ FirstErrorPipe.ɵfac = function FirstErrorPipe_Factory(t) { return new (t || FirstErrorPipe)(i0.ɵɵdirectiveInject(i1.RpxTranslationService), i0.ɵɵdirectiveInject(i0.Injector)); };
2684
2689
  FirstErrorPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "ccdFirstError", type: FirstErrorPipe, pure: false });
2685
2690
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FirstErrorPipe, [{
2686
2691
  type: Pipe,
@@ -2688,7 +2693,7 @@ FirstErrorPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "ccdFirstError", type: FirstEr
2688
2693
  name: 'ccdFirstError',
2689
2694
  pure: false
2690
2695
  }]
2691
- }], function () { return [{ type: i1.RpxTranslatePipe }]; }, null); })();
2696
+ }], function () { return [{ type: i1.RpxTranslationService }, { type: i0.Injector }]; }, null); })();
2692
2697
 
2693
2698
  class IsCompoundPipe {
2694
2699
  transform(field) {
@@ -9603,6 +9608,10 @@ class CaseEditPageComponent {
9603
9608
  this.handleError(error);
9604
9609
  });
9605
9610
  CaseEditPageComponent.scrollToTop();
9611
+ // Remove all JudicialUser FormControls with the ID suffix "_judicialUserControl" because these are not
9612
+ // intended to be present in the Case Event data (they are added only for value selection and validation
9613
+ // purposes)
9614
+ this.removeAllJudicialUserFormControls(this.currentPage, this.editForm);
9606
9615
  }
9607
9616
  CaseEditPageComponent.setFocusToTop();
9608
9617
  }
@@ -9853,6 +9862,13 @@ class CaseEditPageComponent {
9853
9862
  submit: this.caseEdit.submit,
9854
9863
  });
9855
9864
  }
9865
+ removeAllJudicialUserFormControls(page, editForm) {
9866
+ page.case_fields.forEach(caseField => {
9867
+ if (FieldsUtils.isCaseFieldOfType(caseField, ['JudicialUser'])) {
9868
+ editForm.controls['data'].removeControl(`${caseField.id}_judicialUserControl`);
9869
+ }
9870
+ });
9871
+ }
9856
9872
  }
9857
9873
  CaseEditPageComponent.RESUMED_FORM_DISCARD = 'RESUMED_FORM_DISCARD';
9858
9874
  CaseEditPageComponent.NEW_FORM_DISCARD = 'NEW_FORM_DISCARD';
@@ -11608,13 +11624,12 @@ function WriteCaseLinkFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
11608
11624
  function WriteCaseLinkFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
11609
11625
  i0.ɵɵelementStart(0, "span", 8);
11610
11626
  i0.ɵɵtext(1);
11611
- i0.ɵɵpipe(2, "rpxTranslate");
11612
- i0.ɵɵpipe(3, "ccdFirstError");
11627
+ i0.ɵɵpipe(2, "ccdFirstError");
11613
11628
  i0.ɵɵelementEnd();
11614
11629
  } if (rf & 2) {
11615
11630
  const ctx_r2 = i0.ɵɵnextContext();
11616
11631
  i0.ɵɵadvance(1);
11617
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.caseReferenceControl.errors, ctx_r2.caseField.label)), " ");
11632
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r2.caseReferenceControl.errors, ctx_r2.caseField.label), " ");
11618
11633
  } }
11619
11634
  const _c1$m = function (a0) { return { "form-group-error": a0 }; };
11620
11635
  class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
@@ -11674,7 +11689,7 @@ WriteCaseLinkFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteCaseLink
11674
11689
  i0.ɵɵtemplate(2, WriteCaseLinkFieldComponent_span_2_Template, 4, 5, "span", 2);
11675
11690
  i0.ɵɵelementEnd();
11676
11691
  i0.ɵɵtemplate(3, WriteCaseLinkFieldComponent_span_3_Template, 3, 3, "span", 3);
11677
- i0.ɵɵtemplate(4, WriteCaseLinkFieldComponent_span_4_Template, 4, 6, "span", 4);
11692
+ i0.ɵɵtemplate(4, WriteCaseLinkFieldComponent_span_4_Template, 3, 4, "span", 4);
11678
11693
  i0.ɵɵelement(5, "input", 5);
11679
11694
  i0.ɵɵelementEnd();
11680
11695
  } if (rf & 2) {
@@ -11870,18 +11885,17 @@ function WriteCollectionFieldComponent_h2_9_span_1_Template(rf, ctx) { if (rf &
11870
11885
  function WriteCollectionFieldComponent_h2_9_span_2_Template(rf, ctx) { if (rf & 1) {
11871
11886
  i0.ɵɵelementStart(0, "span", 10);
11872
11887
  i0.ɵɵtext(1);
11873
- i0.ɵɵpipe(2, "rpxTranslate");
11874
- i0.ɵɵpipe(3, "ccdFirstError");
11888
+ i0.ɵɵpipe(2, "ccdFirstError");
11875
11889
  i0.ɵɵelementEnd();
11876
11890
  } if (rf & 2) {
11877
11891
  const ctx_r4 = i0.ɵɵnextContext(2);
11878
11892
  i0.ɵɵadvance(1);
11879
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r4.formArray.errors, ctx_r4.caseField.label)), " ");
11893
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r4.formArray.errors, ctx_r4.caseField.label), " ");
11880
11894
  } }
11881
11895
  function WriteCollectionFieldComponent_h2_9_Template(rf, ctx) { if (rf & 1) {
11882
11896
  i0.ɵɵelementStart(0, "h2", 2);
11883
11897
  i0.ɵɵtemplate(1, WriteCollectionFieldComponent_h2_9_span_1_Template, 3, 3, "span", 7);
11884
- i0.ɵɵtemplate(2, WriteCollectionFieldComponent_h2_9_span_2_Template, 4, 6, "span", 8);
11898
+ i0.ɵɵtemplate(2, WriteCollectionFieldComponent_h2_9_span_2_Template, 3, 4, "span", 8);
11885
11899
  i0.ɵɵelementEnd();
11886
11900
  } if (rf & 2) {
11887
11901
  const ctx_r0 = i0.ɵɵnextContext();
@@ -13023,13 +13037,12 @@ function WriteDynamicListFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
13023
13037
  function WriteDynamicListFieldComponent_span_5_Template(rf, ctx) { if (rf & 1) {
13024
13038
  i0.ɵɵelementStart(0, "span", 10);
13025
13039
  i0.ɵɵtext(1);
13026
- i0.ɵɵpipe(2, "rpxTranslate");
13027
- i0.ɵɵpipe(3, "ccdFirstError");
13040
+ i0.ɵɵpipe(2, "ccdFirstError");
13028
13041
  i0.ɵɵelementEnd();
13029
13042
  } if (rf & 2) {
13030
13043
  const ctx_r3 = i0.ɵɵnextContext();
13031
13044
  i0.ɵɵadvance(1);
13032
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r3.dynamicListFormControl.errors, ctx_r3.caseField.label)));
13045
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r3.dynamicListFormControl.errors, ctx_r3.caseField.label));
13033
13046
  } }
13034
13047
  function WriteDynamicListFieldComponent_option_10_Template(rf, ctx) { if (rf & 1) {
13035
13048
  i0.ɵɵelementStart(0, "option", 11);
@@ -13075,7 +13088,7 @@ WriteDynamicListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteDynam
13075
13088
  i0.ɵɵelementEnd();
13076
13089
  i0.ɵɵtemplate(3, WriteDynamicListFieldComponent_span_3_Template, 3, 3, "span", 3);
13077
13090
  i0.ɵɵtemplate(4, WriteDynamicListFieldComponent_span_4_Template, 3, 3, "span", 2);
13078
- i0.ɵɵtemplate(5, WriteDynamicListFieldComponent_span_5_Template, 4, 6, "span", 4);
13091
+ i0.ɵɵtemplate(5, WriteDynamicListFieldComponent_span_5_Template, 3, 4, "span", 4);
13079
13092
  i0.ɵɵelementStart(6, "select", 5);
13080
13093
  i0.ɵɵelementStart(7, "option", 6);
13081
13094
  i0.ɵɵtext(8);
@@ -13458,13 +13471,12 @@ function WriteDynamicRadioListFieldComponent_span_6_Template(rf, ctx) { if (rf &
13458
13471
  function WriteDynamicRadioListFieldComponent_span_7_Template(rf, ctx) { if (rf & 1) {
13459
13472
  i0.ɵɵelementStart(0, "span", 9);
13460
13473
  i0.ɵɵtext(1);
13461
- i0.ɵɵpipe(2, "rpxTranslate");
13462
- i0.ɵɵpipe(3, "ccdFirstError");
13474
+ i0.ɵɵpipe(2, "ccdFirstError");
13463
13475
  i0.ɵɵelementEnd();
13464
13476
  } if (rf & 2) {
13465
13477
  const ctx_r3 = i0.ɵɵnextContext();
13466
13478
  i0.ɵɵadvance(1);
13467
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind1(3, 3, ctx_r3.dynamicRadioListControl.errors)));
13479
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r3.dynamicRadioListControl.errors));
13468
13480
  } }
13469
13481
  const _c0$K = function (a0) { return { selected: a0 }; };
13470
13482
  function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) { if (rf & 1) {
@@ -13518,7 +13530,7 @@ WriteDynamicRadioListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: Write
13518
13530
  i0.ɵɵtemplate(4, WriteDynamicRadioListFieldComponent_span_4_Template, 4, 5, "span", 3);
13519
13531
  i0.ɵɵtemplate(5, WriteDynamicRadioListFieldComponent_span_5_Template, 3, 3, "span", 4);
13520
13532
  i0.ɵɵtemplate(6, WriteDynamicRadioListFieldComponent_span_6_Template, 3, 3, "span", 3);
13521
- i0.ɵɵtemplate(7, WriteDynamicRadioListFieldComponent_span_7_Template, 4, 5, "span", 5);
13533
+ i0.ɵɵtemplate(7, WriteDynamicRadioListFieldComponent_span_7_Template, 3, 3, "span", 5);
13522
13534
  i0.ɵɵelementEnd();
13523
13535
  i0.ɵɵelementContainerStart(8);
13524
13536
  i0.ɵɵtemplate(9, WriteDynamicRadioListFieldComponent_div_9_Template, 5, 11, "div", 6);
@@ -13605,13 +13617,12 @@ function WriteEmailFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
13605
13617
  function WriteEmailFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
13606
13618
  i0.ɵɵelementStart(0, "span", 8);
13607
13619
  i0.ɵɵtext(1);
13608
- i0.ɵɵpipe(2, "rpxTranslate");
13609
- i0.ɵɵpipe(3, "ccdFirstError");
13620
+ i0.ɵɵpipe(2, "ccdFirstError");
13610
13621
  i0.ɵɵelementEnd();
13611
13622
  } if (rf & 2) {
13612
13623
  const ctx_r2 = i0.ɵɵnextContext();
13613
13624
  i0.ɵɵadvance(1);
13614
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.emailControl.errors, ctx_r2.caseField.label)));
13625
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.emailControl.errors, ctx_r2.caseField.label));
13615
13626
  } }
13616
13627
  const _c0$J = function (a0) { return { "form-group-error": a0 }; };
13617
13628
  const _c1$i = function (a0) { return { "govuk-input--error": a0 }; };
@@ -13627,7 +13638,7 @@ WriteEmailFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteEmailFieldC
13627
13638
  i0.ɵɵtemplate(2, WriteEmailFieldComponent_span_2_Template, 4, 5, "span", 2);
13628
13639
  i0.ɵɵelementEnd();
13629
13640
  i0.ɵɵtemplate(3, WriteEmailFieldComponent_span_3_Template, 3, 3, "span", 3);
13630
- i0.ɵɵtemplate(4, WriteEmailFieldComponent_span_4_Template, 4, 6, "span", 4);
13641
+ i0.ɵɵtemplate(4, WriteEmailFieldComponent_span_4_Template, 3, 4, "span", 4);
13631
13642
  i0.ɵɵelement(5, "input", 5);
13632
13643
  i0.ɵɵelementEnd();
13633
13644
  } if (rf & 2) {
@@ -13698,13 +13709,12 @@ function WriteFixedListFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
13698
13709
  function WriteFixedListFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
13699
13710
  i0.ɵɵelementStart(0, "span", 10);
13700
13711
  i0.ɵɵtext(1);
13701
- i0.ɵɵpipe(2, "rpxTranslate");
13702
- i0.ɵɵpipe(3, "ccdFirstError");
13712
+ i0.ɵɵpipe(2, "ccdFirstError");
13703
13713
  i0.ɵɵelementEnd();
13704
13714
  } if (rf & 2) {
13705
13715
  const ctx_r2 = i0.ɵɵnextContext();
13706
13716
  i0.ɵɵadvance(1);
13707
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.fixedListFormControl.errors, ctx_r2.caseField.label)), " ");
13717
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r2.fixedListFormControl.errors, ctx_r2.caseField.label), " ");
13708
13718
  } }
13709
13719
  function WriteFixedListFieldComponent_option_8_Template(rf, ctx) { if (rf & 1) {
13710
13720
  i0.ɵɵelementStart(0, "option", 6);
@@ -13746,7 +13756,7 @@ WriteFixedListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteFixedLi
13746
13756
  i0.ɵɵtemplate(2, WriteFixedListFieldComponent_span_2_Template, 4, 5, "span", 2);
13747
13757
  i0.ɵɵelementEnd();
13748
13758
  i0.ɵɵtemplate(3, WriteFixedListFieldComponent_span_3_Template, 3, 3, "span", 3);
13749
- i0.ɵɵtemplate(4, WriteFixedListFieldComponent_span_4_Template, 4, 6, "span", 4);
13759
+ i0.ɵɵtemplate(4, WriteFixedListFieldComponent_span_4_Template, 3, 4, "span", 4);
13750
13760
  i0.ɵɵelementStart(5, "select", 5);
13751
13761
  i0.ɵɵelementStart(6, "option", 6);
13752
13762
  i0.ɵɵtext(7, "--Select a value--");
@@ -13842,13 +13852,12 @@ function WriteFixedRadioListFieldComponent_span_5_Template(rf, ctx) { if (rf & 1
13842
13852
  function WriteFixedRadioListFieldComponent_span_6_Template(rf, ctx) { if (rf & 1) {
13843
13853
  i0.ɵɵelementStart(0, "span", 8);
13844
13854
  i0.ɵɵtext(1);
13845
- i0.ɵɵpipe(2, "rpxTranslate");
13846
- i0.ɵɵpipe(3, "ccdFirstError");
13855
+ i0.ɵɵpipe(2, "ccdFirstError");
13847
13856
  i0.ɵɵelementEnd();
13848
13857
  } if (rf & 2) {
13849
13858
  const ctx_r2 = i0.ɵɵnextContext();
13850
13859
  i0.ɵɵadvance(1);
13851
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.fixedRadioListControl.errors, ctx_r2.caseField.label)));
13860
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.fixedRadioListControl.errors, ctx_r2.caseField.label));
13852
13861
  } }
13853
13862
  const _c0$H = function (a0) { return { selected: a0 }; };
13854
13863
  function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) { if (rf & 1) {
@@ -13886,7 +13895,7 @@ WriteFixedRadioListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteFi
13886
13895
  i0.ɵɵtemplate(4, WriteFixedRadioListFieldComponent_span_4_Template, 4, 5, "span", 2);
13887
13896
  i0.ɵɵelementEnd();
13888
13897
  i0.ɵɵtemplate(5, WriteFixedRadioListFieldComponent_span_5_Template, 3, 3, "span", 3);
13889
- i0.ɵɵtemplate(6, WriteFixedRadioListFieldComponent_span_6_Template, 4, 6, "span", 4);
13898
+ i0.ɵɵtemplate(6, WriteFixedRadioListFieldComponent_span_6_Template, 3, 4, "span", 4);
13890
13899
  i0.ɵɵelementEnd();
13891
13900
  i0.ɵɵelementContainerStart(7);
13892
13901
  i0.ɵɵtemplate(8, WriteFixedRadioListFieldComponent_div_8_Template, 5, 11, "div", 5);
@@ -16707,13 +16716,12 @@ function WriteMoneyGbpFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
16707
16716
  function WriteMoneyGbpFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
16708
16717
  i0.ɵɵelementStart(0, "span", 10);
16709
16718
  i0.ɵɵtext(1);
16710
- i0.ɵɵpipe(2, "rpxTranslate");
16711
- i0.ɵɵpipe(3, "ccdFirstError");
16719
+ i0.ɵɵpipe(2, "ccdFirstError");
16712
16720
  i0.ɵɵelementEnd();
16713
16721
  } if (rf & 2) {
16714
16722
  const ctx_r2 = i0.ɵɵnextContext();
16715
16723
  i0.ɵɵadvance(1);
16716
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.moneyGbpControl.errors, ctx_r2.caseField.label)));
16724
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.moneyGbpControl.errors, ctx_r2.caseField.label));
16717
16725
  } }
16718
16726
  const _c0$D = function (a0) { return { "form-group-error": a0 }; };
16719
16727
  class WriteMoneyGbpFieldComponent extends AbstractFieldWriteComponent {
@@ -16728,7 +16736,7 @@ WriteMoneyGbpFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteMoneyGbp
16728
16736
  i0.ɵɵtemplate(2, WriteMoneyGbpFieldComponent_span_2_Template, 4, 5, "span", 2);
16729
16737
  i0.ɵɵelementEnd();
16730
16738
  i0.ɵɵtemplate(3, WriteMoneyGbpFieldComponent_span_3_Template, 3, 3, "span", 3);
16731
- i0.ɵɵtemplate(4, WriteMoneyGbpFieldComponent_span_4_Template, 4, 6, "span", 4);
16739
+ i0.ɵɵtemplate(4, WriteMoneyGbpFieldComponent_span_4_Template, 3, 4, "span", 4);
16732
16740
  i0.ɵɵelementStart(5, "div", 5);
16733
16741
  i0.ɵɵelementStart(6, "span", 6);
16734
16742
  i0.ɵɵtext(7, "\u00A3");
@@ -16831,13 +16839,12 @@ function WriteMultiSelectListFieldComponent_span_4_Template(rf, ctx) { if (rf &
16831
16839
  function WriteMultiSelectListFieldComponent_span_5_Template(rf, ctx) { if (rf & 1) {
16832
16840
  i0.ɵɵelementStart(0, "span", 7);
16833
16841
  i0.ɵɵtext(1);
16834
- i0.ɵɵpipe(2, "rpxTranslate");
16835
- i0.ɵɵpipe(3, "ccdFirstError");
16842
+ i0.ɵɵpipe(2, "ccdFirstError");
16836
16843
  i0.ɵɵelementEnd();
16837
16844
  } if (rf & 2) {
16838
16845
  const ctx_r2 = i0.ɵɵnextContext();
16839
16846
  i0.ɵɵadvance(1);
16840
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.checkboxes.errors, ctx_r2.caseField.label)));
16847
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.checkboxes.errors, ctx_r2.caseField.label));
16841
16848
  } }
16842
16849
  function WriteMultiSelectListFieldComponent_ng_container_6_Template(rf, ctx) { if (rf & 1) {
16843
16850
  const _r6 = i0.ɵɵgetCurrentView();
@@ -16912,7 +16919,7 @@ WriteMultiSelectListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteM
16912
16919
  i0.ɵɵtemplate(3, WriteMultiSelectListFieldComponent_span_3_Template, 4, 5, "span", 1);
16913
16920
  i0.ɵɵelementEnd();
16914
16921
  i0.ɵɵtemplate(4, WriteMultiSelectListFieldComponent_span_4_Template, 3, 3, "span", 2);
16915
- i0.ɵɵtemplate(5, WriteMultiSelectListFieldComponent_span_5_Template, 4, 6, "span", 3);
16922
+ i0.ɵɵtemplate(5, WriteMultiSelectListFieldComponent_span_5_Template, 3, 4, "span", 3);
16916
16923
  i0.ɵɵtemplate(6, WriteMultiSelectListFieldComponent_ng_container_6_Template, 6, 8, "ng-container", 4);
16917
16924
  i0.ɵɵelementEnd();
16918
16925
  i0.ɵɵelementEnd();
@@ -16981,13 +16988,12 @@ function WriteNumberFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
16981
16988
  function WriteNumberFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
16982
16989
  i0.ɵɵelementStart(0, "span", 8);
16983
16990
  i0.ɵɵtext(1);
16984
- i0.ɵɵpipe(2, "rpxTranslate");
16985
- i0.ɵɵpipe(3, "ccdFirstError");
16991
+ i0.ɵɵpipe(2, "ccdFirstError");
16986
16992
  i0.ɵɵelementEnd();
16987
16993
  } if (rf & 2) {
16988
16994
  const ctx_r2 = i0.ɵɵnextContext();
16989
16995
  i0.ɵɵadvance(1);
16990
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.numberControl.errors, ctx_r2.caseField.label)), " ");
16996
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r2.numberControl.errors, ctx_r2.caseField.label), " ");
16991
16997
  } }
16992
16998
  const _c0$B = function (a0) { return { "form-group-error": a0 }; };
16993
16999
  const _c1$e = function (a0) { return { "govuk-input--error": a0 }; };
@@ -17003,7 +17009,7 @@ WriteNumberFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteNumberFiel
17003
17009
  i0.ɵɵtemplate(2, WriteNumberFieldComponent_span_2_Template, 4, 5, "span", 2);
17004
17010
  i0.ɵɵelementEnd();
17005
17011
  i0.ɵɵtemplate(3, WriteNumberFieldComponent_span_3_Template, 3, 3, "span", 3);
17006
- i0.ɵɵtemplate(4, WriteNumberFieldComponent_span_4_Template, 4, 6, "span", 4);
17012
+ i0.ɵɵtemplate(4, WriteNumberFieldComponent_span_4_Template, 3, 4, "span", 4);
17007
17013
  i0.ɵɵelement(5, "input", 5);
17008
17014
  i0.ɵɵelementEnd();
17009
17015
  } if (rf & 2) {
@@ -17724,13 +17730,12 @@ function WritePhoneUKFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
17724
17730
  function WritePhoneUKFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
17725
17731
  i0.ɵɵelementStart(0, "span", 8);
17726
17732
  i0.ɵɵtext(1);
17727
- i0.ɵɵpipe(2, "rpxTranslate");
17728
- i0.ɵɵpipe(3, "ccdFirstError");
17733
+ i0.ɵɵpipe(2, "ccdFirstError");
17729
17734
  i0.ɵɵelementEnd();
17730
17735
  } if (rf & 2) {
17731
17736
  const ctx_r2 = i0.ɵɵnextContext();
17732
17737
  i0.ɵɵadvance(1);
17733
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.phoneUkControl.errors, ctx_r2.caseField.label)), " ");
17738
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r2.phoneUkControl.errors, ctx_r2.caseField.label), " ");
17734
17739
  } }
17735
17740
  const _c0$z = function (a0) { return { "form-group-error": a0 }; };
17736
17741
  const _c1$d = function (a0) { return { "govuk-input--error": a0 }; };
@@ -17746,7 +17751,7 @@ WritePhoneUKFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WritePhoneUKFi
17746
17751
  i0.ɵɵtemplate(2, WritePhoneUKFieldComponent_span_2_Template, 4, 5, "span", 2);
17747
17752
  i0.ɵɵelementEnd();
17748
17753
  i0.ɵɵtemplate(3, WritePhoneUKFieldComponent_span_3_Template, 3, 3, "span", 3);
17749
- i0.ɵɵtemplate(4, WritePhoneUKFieldComponent_span_4_Template, 4, 6, "span", 4);
17754
+ i0.ɵɵtemplate(4, WritePhoneUKFieldComponent_span_4_Template, 3, 4, "span", 4);
17750
17755
  i0.ɵɵelement(5, "input", 5);
17751
17756
  i0.ɵɵelementEnd();
17752
17757
  } if (rf & 2) {
@@ -17816,13 +17821,12 @@ function WriteTextAreaFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
17816
17821
  function WriteTextAreaFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
17817
17822
  i0.ɵɵelementStart(0, "span", 8);
17818
17823
  i0.ɵɵtext(1);
17819
- i0.ɵɵpipe(2, "rpxTranslate");
17820
- i0.ɵɵpipe(3, "ccdFirstError");
17824
+ i0.ɵɵpipe(2, "ccdFirstError");
17821
17825
  i0.ɵɵelementEnd();
17822
17826
  } if (rf & 2) {
17823
17827
  const ctx_r2 = i0.ɵɵnextContext();
17824
17828
  i0.ɵɵadvance(1);
17825
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.textareaControl.errors, ctx_r2.caseField.label)), " ");
17829
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r2.textareaControl.errors, ctx_r2.caseField.label), " ");
17826
17830
  } }
17827
17831
  const _c0$y = function (a0) { return { "form-group-error": a0 }; };
17828
17832
  const _c1$c = function (a0) { return { "govuk-textarea--error": a0 }; };
@@ -17849,7 +17853,7 @@ WriteTextAreaFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteTextArea
17849
17853
  i0.ɵɵtemplate(2, WriteTextAreaFieldComponent_span_2_Template, 4, 5, "span", 2);
17850
17854
  i0.ɵɵelementEnd();
17851
17855
  i0.ɵɵtemplate(3, WriteTextAreaFieldComponent_span_3_Template, 3, 3, "span", 3);
17852
- i0.ɵɵtemplate(4, WriteTextAreaFieldComponent_span_4_Template, 4, 6, "span", 4);
17856
+ i0.ɵɵtemplate(4, WriteTextAreaFieldComponent_span_4_Template, 3, 4, "span", 4);
17853
17857
  i0.ɵɵelementStart(5, "textarea", 5);
17854
17858
  i0.ɵɵlistener("input", function WriteTextAreaFieldComponent_Template_textarea_input_5_listener($event) { return ctx.autoGrow($event); });
17855
17859
  i0.ɵɵelementEnd();
@@ -17921,13 +17925,12 @@ function WriteTextFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
17921
17925
  function WriteTextFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
17922
17926
  i0.ɵɵelementStart(0, "span", 8);
17923
17927
  i0.ɵɵtext(1);
17924
- i0.ɵɵpipe(2, "rpxTranslate");
17925
- i0.ɵɵpipe(3, "ccdFirstError");
17928
+ i0.ɵɵpipe(2, "ccdFirstError");
17926
17929
  i0.ɵɵelementEnd();
17927
17930
  } if (rf & 2) {
17928
17931
  const ctx_r2 = i0.ɵɵnextContext();
17929
17932
  i0.ɵɵadvance(1);
17930
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.textControl.errors, ctx_r2.caseField.label)), " ");
17933
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r2.textControl.errors, ctx_r2.caseField.label), " ");
17931
17934
  } }
17932
17935
  const _c0$x = function (a0) { return { "form-group-error": a0 }; };
17933
17936
  const _c1$b = function (a0) { return { "govuk-input--error": a0 }; };
@@ -17946,7 +17949,7 @@ WriteTextFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteTextFieldCom
17946
17949
  i0.ɵɵtemplate(2, WriteTextFieldComponent_span_2_Template, 4, 5, "span", 2);
17947
17950
  i0.ɵɵelementEnd();
17948
17951
  i0.ɵɵtemplate(3, WriteTextFieldComponent_span_3_Template, 3, 3, "span", 3);
17949
- i0.ɵɵtemplate(4, WriteTextFieldComponent_span_4_Template, 4, 6, "span", 4);
17952
+ i0.ɵɵtemplate(4, WriteTextFieldComponent_span_4_Template, 3, 4, "span", 4);
17950
17953
  i0.ɵɵelementStart(5, "input", 5);
17951
17954
  i0.ɵɵlistener("blur", function WriteTextFieldComponent_Template_input_blur_5_listener($event) { return ctx.onBlur($event); });
17952
17955
  i0.ɵɵelementEnd();
@@ -18115,13 +18118,12 @@ function WriteYesNoFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
18115
18118
  function WriteYesNoFieldComponent_span_5_Template(rf, ctx) { if (rf & 1) {
18116
18119
  i0.ɵɵelementStart(0, "span", 9);
18117
18120
  i0.ɵɵtext(1);
18118
- i0.ɵɵpipe(2, "rpxTranslate");
18119
- i0.ɵɵpipe(3, "ccdFirstError");
18121
+ i0.ɵɵpipe(2, "ccdFirstError");
18120
18122
  i0.ɵɵelementEnd();
18121
18123
  } if (rf & 2) {
18122
18124
  const ctx_r2 = i0.ɵɵnextContext();
18123
18125
  i0.ɵɵadvance(1);
18124
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.yesNoControl.errors, ctx_r2.caseField.label)), " ");
18126
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r2.yesNoControl.errors, ctx_r2.caseField.label), " ");
18125
18127
  } }
18126
18128
  const _c0$w = function (a0) { return { selected: a0 }; };
18127
18129
  function WriteYesNoFieldComponent_div_7_Template(rf, ctx) { if (rf & 1) {
@@ -18162,7 +18164,7 @@ WriteYesNoFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteYesNoFieldC
18162
18164
  i0.ɵɵtemplate(3, WriteYesNoFieldComponent_span_3_Template, 4, 5, "span", 2);
18163
18165
  i0.ɵɵelementEnd();
18164
18166
  i0.ɵɵtemplate(4, WriteYesNoFieldComponent_span_4_Template, 3, 3, "span", 3);
18165
- i0.ɵɵtemplate(5, WriteYesNoFieldComponent_span_5_Template, 4, 6, "span", 4);
18167
+ i0.ɵɵtemplate(5, WriteYesNoFieldComponent_span_5_Template, 3, 4, "span", 4);
18166
18168
  i0.ɵɵelementStart(6, "div", 5);
18167
18169
  i0.ɵɵtemplate(7, WriteYesNoFieldComponent_div_7_Template, 4, 10, "div", 6);
18168
18170
  i0.ɵɵelementEnd();
@@ -21454,13 +21456,12 @@ function WriteDateFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
21454
21456
  function WriteDateFieldComponent_span_5_Template(rf, ctx) { if (rf & 1) {
21455
21457
  i0.ɵɵelementStart(0, "span", 7);
21456
21458
  i0.ɵɵtext(1);
21457
- i0.ɵɵpipe(2, "rpxTranslate");
21458
- i0.ɵɵpipe(3, "ccdFirstError");
21459
+ i0.ɵɵpipe(2, "ccdFirstError");
21459
21460
  i0.ɵɵelementEnd();
21460
21461
  } if (rf & 2) {
21461
21462
  const ctx_r2 = i0.ɵɵnextContext();
21462
21463
  i0.ɵɵadvance(1);
21463
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.dateControl.errors, ctx_r2.caseField.label)), " ");
21464
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r2.dateControl.errors, ctx_r2.caseField.label), " ");
21464
21465
  } }
21465
21466
  const _c0$j = function (a0) { return { "form-group-error": a0 }; };
21466
21467
  class WriteDateFieldComponent extends AbstractFieldWriteComponent {
@@ -21479,7 +21480,7 @@ WriteDateFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteDateFieldCom
21479
21480
  i0.ɵɵtemplate(3, WriteDateFieldComponent_span_3_Template, 4, 5, "span", 1);
21480
21481
  i0.ɵɵelementEnd();
21481
21482
  i0.ɵɵtemplate(4, WriteDateFieldComponent_span_4_Template, 3, 3, "span", 2);
21482
- i0.ɵɵtemplate(5, WriteDateFieldComponent_span_5_Template, 4, 6, "span", 3);
21483
+ i0.ɵɵtemplate(5, WriteDateFieldComponent_span_5_Template, 3, 4, "span", 3);
21483
21484
  i0.ɵɵelement(6, "cut-date-input", 4);
21484
21485
  i0.ɵɵpipe(7, "ccdIsMandatory");
21485
21486
  i0.ɵɵelementEnd();
@@ -21542,13 +21543,12 @@ function DatetimePickerComponent_span_4_Template(rf, ctx) { if (rf & 1) {
21542
21543
  function DatetimePickerComponent_span_5_Template(rf, ctx) { if (rf & 1) {
21543
21544
  i0.ɵɵelementStart(0, "span", 12);
21544
21545
  i0.ɵɵtext(1);
21545
- i0.ɵɵpipe(2, "rpxTranslate");
21546
- i0.ɵɵpipe(3, "ccdFirstError");
21546
+ i0.ɵɵpipe(2, "ccdFirstError");
21547
21547
  i0.ɵɵelementEnd();
21548
21548
  } if (rf & 2) {
21549
21549
  const ctx_r2 = i0.ɵɵnextContext();
21550
21550
  i0.ɵɵadvance(1);
21551
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.dateControl.errors, ctx_r2.caseField.label)));
21551
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.dateControl.errors, ctx_r2.caseField.label));
21552
21552
  } }
21553
21553
  function DatetimePickerComponent_span_6_Template(rf, ctx) { if (rf & 1) {
21554
21554
  i0.ɵɵelementStart(0, "span", 12);
@@ -21751,7 +21751,7 @@ DatetimePickerComponent.ɵcmp = i0.ɵɵdefineComponent({ type: DatetimePickerCom
21751
21751
  i0.ɵɵelementStart(2, "legend");
21752
21752
  i0.ɵɵtemplate(3, DatetimePickerComponent_span_3_Template, 4, 5, "span", 1);
21753
21753
  i0.ɵɵtemplate(4, DatetimePickerComponent_span_4_Template, 3, 3, "span", 2);
21754
- i0.ɵɵtemplate(5, DatetimePickerComponent_span_5_Template, 4, 6, "span", 3);
21754
+ i0.ɵɵtemplate(5, DatetimePickerComponent_span_5_Template, 3, 4, "span", 3);
21755
21755
  i0.ɵɵtemplate(6, DatetimePickerComponent_span_6_Template, 3, 3, "span", 3);
21756
21756
  i0.ɵɵtemplate(7, DatetimePickerComponent_span_7_Template, 3, 3, "span", 3);
21757
21757
  i0.ɵɵelementEnd();