@hmcts/ccd-case-ui-toolkit 6.13.11-welsh-release-v8 → 6.13.11-welsh-form-validation-errors

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 (40) hide show
  1. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +84 -87
  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/commons/case-edit-data/case-edit-validation.model.js +1 -1
  6. package/esm2015/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.js +13 -8
  7. package/esm2015/lib/shared/components/palette/case-flag/write-case-flag-field.component.js +1 -1
  8. package/esm2015/lib/shared/components/palette/case-link/write-case-link-field.component.js +4 -5
  9. package/esm2015/lib/shared/components/palette/collection/write-collection-field.component.js +4 -5
  10. package/esm2015/lib/shared/components/palette/date/write-date-field.component.js +4 -5
  11. package/esm2015/lib/shared/components/palette/datetime-picker/datetime-picker.component.js +4 -5
  12. package/esm2015/lib/shared/components/palette/dynamic-multi-select-list/write-dynamic-multi-select-list-field.component.js +2 -2
  13. package/esm2015/lib/shared/components/palette/dynamic-radio-list/write-dynamic-radio-list-field.component.js +4 -5
  14. package/esm2015/lib/shared/components/palette/email/write-email-field.component.js +4 -5
  15. package/esm2015/lib/shared/components/palette/fixed-list/write-fixed-list-field.component.js +4 -5
  16. package/esm2015/lib/shared/components/palette/fixed-radio-list/write-fixed-radio-list-field.component.js +4 -5
  17. package/esm2015/lib/shared/components/palette/markdown/markdown.component.js +4 -4
  18. package/esm2015/lib/shared/components/palette/money-gbp/write-money-gbp-field.component.js +4 -5
  19. package/esm2015/lib/shared/components/palette/multi-select-list/write-multi-select-list-field.component.js +4 -5
  20. package/esm2015/lib/shared/components/palette/number/write-number-field.component.js +4 -5
  21. package/esm2015/lib/shared/components/palette/phone-uk/write-phone-uk-field.component.js +4 -5
  22. package/esm2015/lib/shared/components/palette/text/write-text-field.component.js +4 -5
  23. package/esm2015/lib/shared/components/palette/text-area/write-text-area-field.component.js +4 -5
  24. package/esm2015/lib/shared/components/palette/utils/first-error.pipe.js +17 -10
  25. package/esm2015/lib/shared/components/palette/utils/utils.module.js +12 -6
  26. package/esm2015/lib/shared/components/palette/yes-no/write-yes-no-field.component.js +5 -6
  27. package/fesm2015/hmcts-ccd-case-ui-toolkit.js +86 -87
  28. package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
  29. package/lib/shared/commons/case-edit-data/case-edit-validation.model.d.ts +1 -0
  30. package/lib/shared/commons/case-edit-data/case-edit-validation.model.d.ts.map +1 -1
  31. package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts +5 -5
  32. package/lib/shared/components/case-editor/case-edit-page/case-edit-page.component.d.ts.map +1 -1
  33. package/lib/shared/components/palette/case-flag/write-case-flag-field.component.d.ts.map +1 -1
  34. package/lib/shared/components/palette/markdown/markdown.component.d.ts +3 -3
  35. package/lib/shared/components/palette/markdown/markdown.component.d.ts.map +1 -1
  36. package/lib/shared/components/palette/utils/first-error.pipe.d.ts +3 -0
  37. package/lib/shared/components/palette/utils/first-error.pipe.d.ts.map +1 -1
  38. package/lib/shared/components/palette/utils/utils.module.d.ts +2 -1
  39. package/lib/shared/components/palette/utils/utils.module.d.ts.map +1 -1
  40. package/package.json +1 -1
@@ -3,7 +3,7 @@ import { Component, Input, EventEmitter, Output, NgModule, ViewEncapsulation, fo
3
3
  import * as i2 from '@angular/common';
4
4
  import { CommonModule, DOCUMENT, CurrencyPipe, formatDate } from '@angular/common';
5
5
  import * as i1 from 'rpx-xui-translation';
6
- import { RpxTranslationModule } from 'rpx-xui-translation';
6
+ import { RpxTranslationModule, RpxTranslatePipe } from 'rpx-xui-translation';
7
7
  import * as i1$1 from '@angular/router';
8
8
  import { RouterModule, NavigationStart, NavigationEnd } from '@angular/router';
9
9
  import * as i2$1 from '@angular/forms';
@@ -2647,6 +2647,9 @@ FieldLabelPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "ccdFieldLabel", type: FieldLa
2647
2647
  }], null, null); })();
2648
2648
 
2649
2649
  class FirstErrorPipe {
2650
+ constructor(rpxTranslationPipe) {
2651
+ this.rpxTranslationPipe = rpxTranslationPipe;
2652
+ }
2650
2653
  transform(value, args) {
2651
2654
  if (!value) {
2652
2655
  return '';
@@ -2658,32 +2661,34 @@ class FirstErrorPipe {
2658
2661
  if (!keys.length) {
2659
2662
  return '';
2660
2663
  }
2664
+ const fieldLabel = this.rpxTranslationPipe.transform(args);
2661
2665
  if (keys[0] === 'required') {
2662
- return `${args} is required`;
2666
+ return this.rpxTranslationPipe.transform('%FIELDLABEL% is required', { FIELDLABEL: fieldLabel });
2663
2667
  }
2664
2668
  else if (keys[0] === 'pattern') {
2665
- return `The data entered is not valid for ${args}`;
2669
+ return this.rpxTranslationPipe.transform('The data entered is not valid for %FIELDLABEL%', { FIELDLABEL: fieldLabel });
2666
2670
  }
2667
2671
  else if (keys[0] === 'minlength') {
2668
- return `${args} is below the minimum length`;
2672
+ return this.rpxTranslationPipe.transform('%FIELDLABEL% is below the minimum length', { FIELDLABEL: fieldLabel });
2669
2673
  }
2670
2674
  else if (keys[0] === 'maxlength') {
2671
- return `${args} exceeds the maximum length`;
2675
+ return this.rpxTranslationPipe.transform('%FIELDLABEL% exceeds the maximum length', { FIELDLABEL: fieldLabel });
2672
2676
  }
2673
2677
  else if (value.hasOwnProperty('matDatetimePickerParse')) {
2674
- return 'The date entered is not valid. Please provide a valid date';
2678
+ return this.rpxTranslationPipe.transform('The date entered is not valid. Please provide a valid date');
2675
2679
  }
2676
2680
  return value[keys[0]];
2677
2681
  }
2678
2682
  }
2679
- FirstErrorPipe.ɵfac = function FirstErrorPipe_Factory(t) { return new (t || FirstErrorPipe)(); };
2680
- FirstErrorPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "ccdFirstError", type: FirstErrorPipe, pure: true });
2683
+ FirstErrorPipe.ɵfac = function FirstErrorPipe_Factory(t) { return new (t || FirstErrorPipe)(i0.ɵɵdirectiveInject(i1.RpxTranslatePipe)); };
2684
+ FirstErrorPipe.ɵpipe = i0.ɵɵdefinePipe({ name: "ccdFirstError", type: FirstErrorPipe, pure: false });
2681
2685
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FirstErrorPipe, [{
2682
2686
  type: Pipe,
2683
2687
  args: [{
2684
- name: 'ccdFirstError'
2688
+ name: 'ccdFirstError',
2689
+ pure: false
2685
2690
  }]
2686
- }], null, null); })();
2691
+ }], function () { return [{ type: i1.RpxTranslatePipe }]; }, null); })();
2687
2692
 
2688
2693
  class IsCompoundPipe {
2689
2694
  transform(field) {
@@ -2824,9 +2829,11 @@ class PaletteUtilsModule {
2824
2829
  PaletteUtilsModule.ɵfac = function PaletteUtilsModule_Factory(t) { return new (t || PaletteUtilsModule)(); };
2825
2830
  PaletteUtilsModule.ɵmod = i0.ɵɵdefineNgModule({ type: PaletteUtilsModule });
2826
2831
  PaletteUtilsModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
2827
- IsCompoundPipe
2832
+ IsCompoundPipe,
2833
+ RpxTranslatePipe
2828
2834
  ], imports: [[
2829
- CommonModule
2835
+ CommonModule,
2836
+ RpxTranslationModule.forChild()
2830
2837
  ]] });
2831
2838
  (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(PaletteUtilsModule, { declarations: [DatePipe,
2832
2839
  FieldLabelPipe,
@@ -2835,7 +2842,7 @@ PaletteUtilsModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
2835
2842
  IsMandatoryPipe,
2836
2843
  IsReadOnlyPipe,
2837
2844
  IsReadOnlyAndNotCollectionPipe,
2838
- DashPipe], imports: [CommonModule], exports: [DatePipe,
2845
+ DashPipe], imports: [CommonModule, i1.RpxTranslationModule], exports: [DatePipe,
2839
2846
  FieldLabelPipe,
2840
2847
  FirstErrorPipe,
2841
2848
  IsCompoundPipe,
@@ -2847,7 +2854,8 @@ PaletteUtilsModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
2847
2854
  type: NgModule,
2848
2855
  args: [{
2849
2856
  imports: [
2850
- CommonModule
2857
+ CommonModule,
2858
+ RpxTranslationModule.forChild()
2851
2859
  ],
2852
2860
  declarations: [
2853
2861
  DatePipe,
@@ -2870,7 +2878,8 @@ PaletteUtilsModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
2870
2878
  DashPipe
2871
2879
  ],
2872
2880
  providers: [
2873
- IsCompoundPipe
2881
+ IsCompoundPipe,
2882
+ RpxTranslatePipe
2874
2883
  ]
2875
2884
  }]
2876
2885
  }], null, null); })();
@@ -8931,14 +8940,16 @@ function CaseEditPageComponent_div_7_div_4_Template(rf, ctx) { if (rf & 1) {
8931
8940
  i0.ɵɵlistener("click", function CaseEditPageComponent_div_7_div_4_Template_a_click_3_listener() { i0.ɵɵrestoreView(_r17); const validationError_r15 = ctx.$implicit; const ctx_r16 = i0.ɵɵnextContext(2); return ctx_r16.navigateToErrorElement(validationError_r15.id); });
8932
8941
  i0.ɵɵtext(4);
8933
8942
  i0.ɵɵpipe(5, "rpxTranslate");
8943
+ i0.ɵɵpipe(6, "rpxTranslate");
8934
8944
  i0.ɵɵelementEnd();
8935
8945
  i0.ɵɵelementEnd();
8936
8946
  i0.ɵɵelementEnd();
8937
8947
  i0.ɵɵelementEnd();
8938
8948
  } if (rf & 2) {
8939
8949
  const validationError_r15 = ctx.$implicit;
8950
+ const ctx_r14 = i0.ɵɵnextContext(2);
8940
8951
  i0.ɵɵadvance(4);
8941
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 1, validationError_r15.message));
8952
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind3(5, 1, validationError_r15.message, ctx_r14.getRpxTranslatePipeArgs(i0.ɵɵpipeBind1(6, 5, validationError_r15.label)), null), " ");
8942
8953
  } }
8943
8954
  function CaseEditPageComponent_div_7_Template(rf, ctx) { if (rf & 1) {
8944
8955
  i0.ɵɵelementStart(0, "div", 15);
@@ -8946,7 +8957,7 @@ function CaseEditPageComponent_div_7_Template(rf, ctx) { if (rf & 1) {
8946
8957
  i0.ɵɵtext(2);
8947
8958
  i0.ɵɵpipe(3, "rpxTranslate");
8948
8959
  i0.ɵɵelementEnd();
8949
- i0.ɵɵtemplate(4, CaseEditPageComponent_div_7_div_4_Template, 6, 3, "div", 17);
8960
+ i0.ɵɵtemplate(4, CaseEditPageComponent_div_7_div_4_Template, 7, 7, "div", 17);
8950
8961
  i0.ɵɵelementEnd();
8951
8962
  } if (rf & 2) {
8952
8963
  const ctx_r7 = i0.ɵɵnextContext();
@@ -9217,19 +9228,19 @@ class CaseEditPageComponent {
9217
9228
  }
9218
9229
  }
9219
9230
  if (fieldElement.hasError('required')) {
9220
- this.caseEditDataService.addFormValidationError({ id, message: `${label} is required` });
9231
+ this.caseEditDataService.addFormValidationError({ id, message: `%FIELDLABEL% is required`, label });
9221
9232
  fieldElement.markAsDirty();
9222
9233
  }
9223
9234
  else if (fieldElement.hasError('pattern')) {
9224
- this.caseEditDataService.addFormValidationError({ id, message: `${label} is not valid` });
9235
+ this.caseEditDataService.addFormValidationError({ id, message: `%FIELDLABEL% is not valid`, label });
9225
9236
  fieldElement.markAsDirty();
9226
9237
  }
9227
9238
  else if (fieldElement.hasError('minlength')) {
9228
- this.caseEditDataService.addFormValidationError({ id, message: `${label} is below the minimum length` });
9239
+ this.caseEditDataService.addFormValidationError({ id, message: `%FIELDLABEL% is below the minimum length`, label });
9229
9240
  fieldElement.markAsDirty();
9230
9241
  }
9231
9242
  else if (fieldElement.hasError('maxlength')) {
9232
- this.caseEditDataService.addFormValidationError({ id, message: `${label} exceeds the maximum length` });
9243
+ this.caseEditDataService.addFormValidationError({ id, message: `%FIELDLABEL% exceeds the maximum length`, label });
9233
9244
  fieldElement.markAsDirty();
9234
9245
  }
9235
9246
  else if (fieldElement.invalid) {
@@ -9507,6 +9518,9 @@ class CaseEditPageComponent {
9507
9518
  next: (validationErrors) => this.validationErrors = validationErrors
9508
9519
  });
9509
9520
  }
9521
+ getRpxTranslatePipeArgs(fieldLabel) {
9522
+ return fieldLabel ? ({ FIELDLABEL: fieldLabel }) : null;
9523
+ }
9510
9524
  }
9511
9525
  CaseEditPageComponent.RESUMED_FORM_DISCARD = 'RESUMED_FORM_DISCARD';
9512
9526
  CaseEditPageComponent.NEW_FORM_DISCARD = 'NEW_FORM_DISCARD';
@@ -9555,7 +9569,7 @@ CaseEditPageComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CaseEditPageCompone
9555
9569
  args: [{
9556
9570
  selector: 'ccd-case-edit-page',
9557
9571
  templateUrl: 'case-edit-page.html',
9558
- styleUrls: ['./case-edit-page.scss']
9572
+ styleUrls: ['./case-edit-page.scss'],
9559
9573
  }]
9560
9574
  }], function () { return [{ type: CaseEditComponent }, { type: i1$1.ActivatedRoute }, { type: FormValueService }, { type: FormErrorService }, { type: i0.ChangeDetectorRef }, { type: PageValidationService }, { type: i1$3.MatDialog }, { type: CaseFieldService }, { type: CaseEditDataService }]; }, null); })();
9561
9575
 
@@ -11221,13 +11235,12 @@ function WriteCaseLinkFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
11221
11235
  function WriteCaseLinkFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
11222
11236
  i0.ɵɵelementStart(0, "span", 8);
11223
11237
  i0.ɵɵtext(1);
11224
- i0.ɵɵpipe(2, "rpxTranslate");
11225
- i0.ɵɵpipe(3, "ccdFirstError");
11238
+ i0.ɵɵpipe(2, "ccdFirstError");
11226
11239
  i0.ɵɵelementEnd();
11227
11240
  } if (rf & 2) {
11228
11241
  const ctx_r2 = i0.ɵɵnextContext();
11229
11242
  i0.ɵɵadvance(1);
11230
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.caseReferenceControl.errors, ctx_r2.caseField.label)));
11243
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r2.caseReferenceControl.errors, ctx_r2.caseField.label), " ");
11231
11244
  } }
11232
11245
  const _c1$l = function (a0) { return { "form-group-error": a0 }; };
11233
11246
  class WriteCaseLinkFieldComponent extends AbstractFieldWriteComponent {
@@ -11287,7 +11300,7 @@ WriteCaseLinkFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteCaseLink
11287
11300
  i0.ɵɵtemplate(2, WriteCaseLinkFieldComponent_span_2_Template, 4, 5, "span", 2);
11288
11301
  i0.ɵɵelementEnd();
11289
11302
  i0.ɵɵtemplate(3, WriteCaseLinkFieldComponent_span_3_Template, 3, 3, "span", 3);
11290
- i0.ɵɵtemplate(4, WriteCaseLinkFieldComponent_span_4_Template, 4, 6, "span", 4);
11303
+ i0.ɵɵtemplate(4, WriteCaseLinkFieldComponent_span_4_Template, 3, 4, "span", 4);
11291
11304
  i0.ɵɵelement(5, "input", 5);
11292
11305
  i0.ɵɵelementEnd();
11293
11306
  } if (rf & 2) {
@@ -11483,18 +11496,17 @@ function WriteCollectionFieldComponent_h2_9_span_1_Template(rf, ctx) { if (rf &
11483
11496
  function WriteCollectionFieldComponent_h2_9_span_2_Template(rf, ctx) { if (rf & 1) {
11484
11497
  i0.ɵɵelementStart(0, "span", 10);
11485
11498
  i0.ɵɵtext(1);
11486
- i0.ɵɵpipe(2, "rpxTranslate");
11487
- i0.ɵɵpipe(3, "ccdFirstError");
11499
+ i0.ɵɵpipe(2, "ccdFirstError");
11488
11500
  i0.ɵɵelementEnd();
11489
11501
  } if (rf & 2) {
11490
11502
  const ctx_r4 = i0.ɵɵnextContext(2);
11491
11503
  i0.ɵɵadvance(1);
11492
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r4.formArray.errors, ctx_r4.caseField.label)));
11504
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r4.formArray.errors, ctx_r4.caseField.label), " ");
11493
11505
  } }
11494
11506
  function WriteCollectionFieldComponent_h2_9_Template(rf, ctx) { if (rf & 1) {
11495
11507
  i0.ɵɵelementStart(0, "h2", 2);
11496
11508
  i0.ɵɵtemplate(1, WriteCollectionFieldComponent_h2_9_span_1_Template, 3, 3, "span", 7);
11497
- i0.ɵɵtemplate(2, WriteCollectionFieldComponent_h2_9_span_2_Template, 4, 6, "span", 8);
11509
+ i0.ɵɵtemplate(2, WriteCollectionFieldComponent_h2_9_span_2_Template, 3, 4, "span", 8);
11498
11510
  i0.ɵɵelementEnd();
11499
11511
  } if (rf & 2) {
11500
11512
  const ctx_r0 = i0.ɵɵnextContext();
@@ -12817,7 +12829,7 @@ function WriteDynamicMultiSelectListFieldComponent_span_5_Template(rf, ctx) { if
12817
12829
  } if (rf & 2) {
12818
12830
  const ctx_r2 = i0.ɵɵnextContext();
12819
12831
  i0.ɵɵadvance(1);
12820
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r2.checkboxes.errors));
12832
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, ctx_r2.checkboxes.errors), "");
12821
12833
  } }
12822
12834
  function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template(rf, ctx) { if (rf & 1) {
12823
12835
  const _r6 = i0.ɵɵgetCurrentView();
@@ -13030,13 +13042,12 @@ function WriteDynamicRadioListFieldComponent_span_6_Template(rf, ctx) { if (rf &
13030
13042
  function WriteDynamicRadioListFieldComponent_span_7_Template(rf, ctx) { if (rf & 1) {
13031
13043
  i0.ɵɵelementStart(0, "span", 9);
13032
13044
  i0.ɵɵtext(1);
13033
- i0.ɵɵpipe(2, "rpxTranslate");
13034
- i0.ɵɵpipe(3, "ccdFirstError");
13045
+ i0.ɵɵpipe(2, "ccdFirstError");
13035
13046
  i0.ɵɵelementEnd();
13036
13047
  } if (rf & 2) {
13037
13048
  const ctx_r3 = i0.ɵɵnextContext();
13038
13049
  i0.ɵɵadvance(1);
13039
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind1(3, 3, ctx_r3.dynamicRadioListControl.errors)));
13050
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, ctx_r3.dynamicRadioListControl.errors), " ");
13040
13051
  } }
13041
13052
  const _c0$K = function (a0) { return { selected: a0 }; };
13042
13053
  function WriteDynamicRadioListFieldComponent_div_9_Template(rf, ctx) { if (rf & 1) {
@@ -13091,7 +13102,7 @@ WriteDynamicRadioListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: Write
13091
13102
  i0.ɵɵtemplate(4, WriteDynamicRadioListFieldComponent_span_4_Template, 4, 5, "span", 3);
13092
13103
  i0.ɵɵtemplate(5, WriteDynamicRadioListFieldComponent_span_5_Template, 3, 3, "span", 4);
13093
13104
  i0.ɵɵtemplate(6, WriteDynamicRadioListFieldComponent_span_6_Template, 3, 3, "span", 3);
13094
- i0.ɵɵtemplate(7, WriteDynamicRadioListFieldComponent_span_7_Template, 4, 5, "span", 5);
13105
+ i0.ɵɵtemplate(7, WriteDynamicRadioListFieldComponent_span_7_Template, 3, 3, "span", 5);
13095
13106
  i0.ɵɵelementEnd();
13096
13107
  i0.ɵɵelementContainerStart(8);
13097
13108
  i0.ɵɵtemplate(9, WriteDynamicRadioListFieldComponent_div_9_Template, 5, 11, "div", 6);
@@ -13178,13 +13189,12 @@ function WriteEmailFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
13178
13189
  function WriteEmailFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
13179
13190
  i0.ɵɵelementStart(0, "span", 8);
13180
13191
  i0.ɵɵtext(1);
13181
- i0.ɵɵpipe(2, "rpxTranslate");
13182
- i0.ɵɵpipe(3, "ccdFirstError");
13192
+ i0.ɵɵpipe(2, "ccdFirstError");
13183
13193
  i0.ɵɵelementEnd();
13184
13194
  } if (rf & 2) {
13185
13195
  const ctx_r2 = i0.ɵɵnextContext();
13186
13196
  i0.ɵɵadvance(1);
13187
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.emailControl.errors, ctx_r2.caseField.label)));
13197
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r2.emailControl.errors, ctx_r2.caseField.label), "");
13188
13198
  } }
13189
13199
  const _c0$J = function (a0) { return { "form-group-error": a0 }; };
13190
13200
  const _c1$h = function (a0) { return { "govuk-input--error": a0 }; };
@@ -13200,7 +13210,7 @@ WriteEmailFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteEmailFieldC
13200
13210
  i0.ɵɵtemplate(2, WriteEmailFieldComponent_span_2_Template, 4, 5, "span", 2);
13201
13211
  i0.ɵɵelementEnd();
13202
13212
  i0.ɵɵtemplate(3, WriteEmailFieldComponent_span_3_Template, 3, 3, "span", 3);
13203
- i0.ɵɵtemplate(4, WriteEmailFieldComponent_span_4_Template, 4, 6, "span", 4);
13213
+ i0.ɵɵtemplate(4, WriteEmailFieldComponent_span_4_Template, 3, 4, "span", 4);
13204
13214
  i0.ɵɵelement(5, "input", 5);
13205
13215
  i0.ɵɵelementEnd();
13206
13216
  } if (rf & 2) {
@@ -13271,13 +13281,12 @@ function WriteFixedListFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
13271
13281
  function WriteFixedListFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
13272
13282
  i0.ɵɵelementStart(0, "span", 10);
13273
13283
  i0.ɵɵtext(1);
13274
- i0.ɵɵpipe(2, "rpxTranslate");
13275
- i0.ɵɵpipe(3, "ccdFirstError");
13284
+ i0.ɵɵpipe(2, "ccdFirstError");
13276
13285
  i0.ɵɵelementEnd();
13277
13286
  } if (rf & 2) {
13278
13287
  const ctx_r2 = i0.ɵɵnextContext();
13279
13288
  i0.ɵɵadvance(1);
13280
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.fixedListFormControl.errors, ctx_r2.caseField.label)));
13289
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r2.fixedListFormControl.errors, ctx_r2.caseField.label), " ");
13281
13290
  } }
13282
13291
  function WriteFixedListFieldComponent_option_8_Template(rf, ctx) { if (rf & 1) {
13283
13292
  i0.ɵɵelementStart(0, "option", 6);
@@ -13319,7 +13328,7 @@ WriteFixedListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteFixedLi
13319
13328
  i0.ɵɵtemplate(2, WriteFixedListFieldComponent_span_2_Template, 4, 5, "span", 2);
13320
13329
  i0.ɵɵelementEnd();
13321
13330
  i0.ɵɵtemplate(3, WriteFixedListFieldComponent_span_3_Template, 3, 3, "span", 3);
13322
- i0.ɵɵtemplate(4, WriteFixedListFieldComponent_span_4_Template, 4, 6, "span", 4);
13331
+ i0.ɵɵtemplate(4, WriteFixedListFieldComponent_span_4_Template, 3, 4, "span", 4);
13323
13332
  i0.ɵɵelementStart(5, "select", 5);
13324
13333
  i0.ɵɵelementStart(6, "option", 6);
13325
13334
  i0.ɵɵtext(7, "--Select a value--");
@@ -13415,13 +13424,12 @@ function WriteFixedRadioListFieldComponent_span_5_Template(rf, ctx) { if (rf & 1
13415
13424
  function WriteFixedRadioListFieldComponent_span_6_Template(rf, ctx) { if (rf & 1) {
13416
13425
  i0.ɵɵelementStart(0, "span", 8);
13417
13426
  i0.ɵɵtext(1);
13418
- i0.ɵɵpipe(2, "rpxTranslate");
13419
- i0.ɵɵpipe(3, "ccdFirstError");
13427
+ i0.ɵɵpipe(2, "ccdFirstError");
13420
13428
  i0.ɵɵelementEnd();
13421
13429
  } if (rf & 2) {
13422
13430
  const ctx_r2 = i0.ɵɵnextContext();
13423
13431
  i0.ɵɵadvance(1);
13424
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.fixedRadioListControl.errors, ctx_r2.caseField.label)));
13432
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r2.fixedRadioListControl.errors, ctx_r2.caseField.label), " ");
13425
13433
  } }
13426
13434
  const _c0$H = function (a0) { return { selected: a0 }; };
13427
13435
  function WriteFixedRadioListFieldComponent_div_8_Template(rf, ctx) { if (rf & 1) {
@@ -13459,7 +13467,7 @@ WriteFixedRadioListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteFi
13459
13467
  i0.ɵɵtemplate(4, WriteFixedRadioListFieldComponent_span_4_Template, 4, 5, "span", 2);
13460
13468
  i0.ɵɵelementEnd();
13461
13469
  i0.ɵɵtemplate(5, WriteFixedRadioListFieldComponent_span_5_Template, 3, 3, "span", 3);
13462
- i0.ɵɵtemplate(6, WriteFixedRadioListFieldComponent_span_6_Template, 4, 6, "span", 4);
13470
+ i0.ɵɵtemplate(6, WriteFixedRadioListFieldComponent_span_6_Template, 3, 4, "span", 4);
13463
13471
  i0.ɵɵelementEnd();
13464
13472
  i0.ɵɵelementContainerStart(7);
13465
13473
  i0.ɵɵtemplate(8, WriteFixedRadioListFieldComponent_div_8_Template, 5, 11, "div", 5);
@@ -16179,13 +16187,12 @@ function WriteMoneyGbpFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
16179
16187
  function WriteMoneyGbpFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
16180
16188
  i0.ɵɵelementStart(0, "span", 10);
16181
16189
  i0.ɵɵtext(1);
16182
- i0.ɵɵpipe(2, "rpxTranslate");
16183
- i0.ɵɵpipe(3, "ccdFirstError");
16190
+ i0.ɵɵpipe(2, "ccdFirstError");
16184
16191
  i0.ɵɵelementEnd();
16185
16192
  } if (rf & 2) {
16186
16193
  const ctx_r2 = i0.ɵɵnextContext();
16187
16194
  i0.ɵɵadvance(1);
16188
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.moneyGbpControl.errors, ctx_r2.caseField.label)));
16195
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r2.moneyGbpControl.errors, ctx_r2.caseField.label), "");
16189
16196
  } }
16190
16197
  const _c0$D = function (a0) { return { "form-group-error": a0 }; };
16191
16198
  class WriteMoneyGbpFieldComponent extends AbstractFieldWriteComponent {
@@ -16200,7 +16207,7 @@ WriteMoneyGbpFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteMoneyGbp
16200
16207
  i0.ɵɵtemplate(2, WriteMoneyGbpFieldComponent_span_2_Template, 4, 5, "span", 2);
16201
16208
  i0.ɵɵelementEnd();
16202
16209
  i0.ɵɵtemplate(3, WriteMoneyGbpFieldComponent_span_3_Template, 3, 3, "span", 3);
16203
- i0.ɵɵtemplate(4, WriteMoneyGbpFieldComponent_span_4_Template, 4, 6, "span", 4);
16210
+ i0.ɵɵtemplate(4, WriteMoneyGbpFieldComponent_span_4_Template, 3, 4, "span", 4);
16204
16211
  i0.ɵɵelementStart(5, "div", 5);
16205
16212
  i0.ɵɵelementStart(6, "span", 6);
16206
16213
  i0.ɵɵtext(7, "\u00A3");
@@ -16303,13 +16310,12 @@ function WriteMultiSelectListFieldComponent_span_4_Template(rf, ctx) { if (rf &
16303
16310
  function WriteMultiSelectListFieldComponent_span_5_Template(rf, ctx) { if (rf & 1) {
16304
16311
  i0.ɵɵelementStart(0, "span", 7);
16305
16312
  i0.ɵɵtext(1);
16306
- i0.ɵɵpipe(2, "rpxTranslate");
16307
- i0.ɵɵpipe(3, "ccdFirstError");
16313
+ i0.ɵɵpipe(2, "ccdFirstError");
16308
16314
  i0.ɵɵelementEnd();
16309
16315
  } if (rf & 2) {
16310
16316
  const ctx_r2 = i0.ɵɵnextContext();
16311
16317
  i0.ɵɵadvance(1);
16312
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.checkboxes.errors, ctx_r2.caseField.label)));
16318
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r2.checkboxes.errors, ctx_r2.caseField.label), " ");
16313
16319
  } }
16314
16320
  function WriteMultiSelectListFieldComponent_ng_container_6_Template(rf, ctx) { if (rf & 1) {
16315
16321
  const _r6 = i0.ɵɵgetCurrentView();
@@ -16384,7 +16390,7 @@ WriteMultiSelectListFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteM
16384
16390
  i0.ɵɵtemplate(3, WriteMultiSelectListFieldComponent_span_3_Template, 4, 5, "span", 1);
16385
16391
  i0.ɵɵelementEnd();
16386
16392
  i0.ɵɵtemplate(4, WriteMultiSelectListFieldComponent_span_4_Template, 3, 3, "span", 2);
16387
- i0.ɵɵtemplate(5, WriteMultiSelectListFieldComponent_span_5_Template, 4, 6, "span", 3);
16393
+ i0.ɵɵtemplate(5, WriteMultiSelectListFieldComponent_span_5_Template, 3, 4, "span", 3);
16388
16394
  i0.ɵɵtemplate(6, WriteMultiSelectListFieldComponent_ng_container_6_Template, 6, 8, "ng-container", 4);
16389
16395
  i0.ɵɵelementEnd();
16390
16396
  i0.ɵɵelementEnd();
@@ -16453,13 +16459,12 @@ function WriteNumberFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
16453
16459
  function WriteNumberFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
16454
16460
  i0.ɵɵelementStart(0, "span", 8);
16455
16461
  i0.ɵɵtext(1);
16456
- i0.ɵɵpipe(2, "rpxTranslate");
16457
- i0.ɵɵpipe(3, "ccdFirstError");
16462
+ i0.ɵɵpipe(2, "ccdFirstError");
16458
16463
  i0.ɵɵelementEnd();
16459
16464
  } if (rf & 2) {
16460
16465
  const ctx_r2 = i0.ɵɵnextContext();
16461
16466
  i0.ɵɵadvance(1);
16462
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.numberControl.errors, ctx_r2.caseField.label)));
16467
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r2.numberControl.errors, ctx_r2.caseField.label), " ");
16463
16468
  } }
16464
16469
  const _c0$B = function (a0) { return { "form-group-error": a0 }; };
16465
16470
  const _c1$e = function (a0) { return { "govuk-input--error": a0 }; };
@@ -16475,7 +16480,7 @@ WriteNumberFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteNumberFiel
16475
16480
  i0.ɵɵtemplate(2, WriteNumberFieldComponent_span_2_Template, 4, 5, "span", 2);
16476
16481
  i0.ɵɵelementEnd();
16477
16482
  i0.ɵɵtemplate(3, WriteNumberFieldComponent_span_3_Template, 3, 3, "span", 3);
16478
- i0.ɵɵtemplate(4, WriteNumberFieldComponent_span_4_Template, 4, 6, "span", 4);
16483
+ i0.ɵɵtemplate(4, WriteNumberFieldComponent_span_4_Template, 3, 4, "span", 4);
16479
16484
  i0.ɵɵelement(5, "input", 5);
16480
16485
  i0.ɵɵelementEnd();
16481
16486
  } if (rf & 2) {
@@ -17196,13 +17201,12 @@ function WritePhoneUKFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
17196
17201
  function WritePhoneUKFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
17197
17202
  i0.ɵɵelementStart(0, "span", 8);
17198
17203
  i0.ɵɵtext(1);
17199
- i0.ɵɵpipe(2, "rpxTranslate");
17200
- i0.ɵɵpipe(3, "ccdFirstError");
17204
+ i0.ɵɵpipe(2, "ccdFirstError");
17201
17205
  i0.ɵɵelementEnd();
17202
17206
  } if (rf & 2) {
17203
17207
  const ctx_r2 = i0.ɵɵnextContext();
17204
17208
  i0.ɵɵadvance(1);
17205
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.phoneUkControl.errors, ctx_r2.caseField.label)), " ");
17209
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r2.phoneUkControl.errors, ctx_r2.caseField.label), " ");
17206
17210
  } }
17207
17211
  const _c0$z = function (a0) { return { "form-group-error": a0 }; };
17208
17212
  const _c1$d = function (a0) { return { "govuk-input--error": a0 }; };
@@ -17218,7 +17222,7 @@ WritePhoneUKFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WritePhoneUKFi
17218
17222
  i0.ɵɵtemplate(2, WritePhoneUKFieldComponent_span_2_Template, 4, 5, "span", 2);
17219
17223
  i0.ɵɵelementEnd();
17220
17224
  i0.ɵɵtemplate(3, WritePhoneUKFieldComponent_span_3_Template, 3, 3, "span", 3);
17221
- i0.ɵɵtemplate(4, WritePhoneUKFieldComponent_span_4_Template, 4, 6, "span", 4);
17225
+ i0.ɵɵtemplate(4, WritePhoneUKFieldComponent_span_4_Template, 3, 4, "span", 4);
17222
17226
  i0.ɵɵelement(5, "input", 5);
17223
17227
  i0.ɵɵelementEnd();
17224
17228
  } if (rf & 2) {
@@ -17288,13 +17292,12 @@ function WriteTextAreaFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
17288
17292
  function WriteTextAreaFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
17289
17293
  i0.ɵɵelementStart(0, "span", 8);
17290
17294
  i0.ɵɵtext(1);
17291
- i0.ɵɵpipe(2, "rpxTranslate");
17292
- i0.ɵɵpipe(3, "ccdFirstError");
17295
+ i0.ɵɵpipe(2, "ccdFirstError");
17293
17296
  i0.ɵɵelementEnd();
17294
17297
  } if (rf & 2) {
17295
17298
  const ctx_r2 = i0.ɵɵnextContext();
17296
17299
  i0.ɵɵadvance(1);
17297
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.textareaControl.errors, ctx_r2.caseField.label)), " ");
17300
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r2.textareaControl.errors, ctx_r2.caseField.label), " ");
17298
17301
  } }
17299
17302
  const _c0$y = function (a0) { return { "form-group-error": a0 }; };
17300
17303
  const _c1$c = function (a0) { return { "govuk-textarea--error": a0 }; };
@@ -17321,7 +17324,7 @@ WriteTextAreaFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteTextArea
17321
17324
  i0.ɵɵtemplate(2, WriteTextAreaFieldComponent_span_2_Template, 4, 5, "span", 2);
17322
17325
  i0.ɵɵelementEnd();
17323
17326
  i0.ɵɵtemplate(3, WriteTextAreaFieldComponent_span_3_Template, 3, 3, "span", 3);
17324
- i0.ɵɵtemplate(4, WriteTextAreaFieldComponent_span_4_Template, 4, 6, "span", 4);
17327
+ i0.ɵɵtemplate(4, WriteTextAreaFieldComponent_span_4_Template, 3, 4, "span", 4);
17325
17328
  i0.ɵɵelementStart(5, "textarea", 5);
17326
17329
  i0.ɵɵlistener("input", function WriteTextAreaFieldComponent_Template_textarea_input_5_listener($event) { return ctx.autoGrow($event); });
17327
17330
  i0.ɵɵelementEnd();
@@ -17393,13 +17396,12 @@ function WriteTextFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
17393
17396
  function WriteTextFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
17394
17397
  i0.ɵɵelementStart(0, "span", 8);
17395
17398
  i0.ɵɵtext(1);
17396
- i0.ɵɵpipe(2, "rpxTranslate");
17397
- i0.ɵɵpipe(3, "ccdFirstError");
17399
+ i0.ɵɵpipe(2, "ccdFirstError");
17398
17400
  i0.ɵɵelementEnd();
17399
17401
  } if (rf & 2) {
17400
17402
  const ctx_r2 = i0.ɵɵnextContext();
17401
17403
  i0.ɵɵadvance(1);
17402
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.textControl.errors, ctx_r2.caseField.label)), " ");
17404
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r2.textControl.errors, ctx_r2.caseField.label), " ");
17403
17405
  } }
17404
17406
  const _c0$x = function (a0) { return { "form-group-error": a0 }; };
17405
17407
  const _c1$b = function (a0) { return { "govuk-input--error": a0 }; };
@@ -17418,7 +17420,7 @@ WriteTextFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteTextFieldCom
17418
17420
  i0.ɵɵtemplate(2, WriteTextFieldComponent_span_2_Template, 4, 5, "span", 2);
17419
17421
  i0.ɵɵelementEnd();
17420
17422
  i0.ɵɵtemplate(3, WriteTextFieldComponent_span_3_Template, 3, 3, "span", 3);
17421
- i0.ɵɵtemplate(4, WriteTextFieldComponent_span_4_Template, 4, 6, "span", 4);
17423
+ i0.ɵɵtemplate(4, WriteTextFieldComponent_span_4_Template, 3, 4, "span", 4);
17422
17424
  i0.ɵɵelementStart(5, "input", 5);
17423
17425
  i0.ɵɵlistener("blur", function WriteTextFieldComponent_Template_input_blur_5_listener($event) { return ctx.onBlur($event); });
17424
17426
  i0.ɵɵelementEnd();
@@ -17573,7 +17575,7 @@ function WriteYesNoFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
17573
17575
  } if (rf & 2) {
17574
17576
  const ctx_r0 = i0.ɵɵnextContext();
17575
17577
  i0.ɵɵadvance(1);
17576
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind1(3, 3, ctx_r0.caseField)));
17578
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind1(3, 3, ctx_r0.caseField)), " ");
17577
17579
  } }
17578
17580
  function WriteYesNoFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
17579
17581
  i0.ɵɵelementStart(0, "span", 8);
@@ -17588,13 +17590,12 @@ function WriteYesNoFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
17588
17590
  function WriteYesNoFieldComponent_span_5_Template(rf, ctx) { if (rf & 1) {
17589
17591
  i0.ɵɵelementStart(0, "span", 9);
17590
17592
  i0.ɵɵtext(1);
17591
- i0.ɵɵpipe(2, "rpxTranslate");
17592
- i0.ɵɵpipe(3, "ccdFirstError");
17593
+ i0.ɵɵpipe(2, "ccdFirstError");
17593
17594
  i0.ɵɵelementEnd();
17594
17595
  } if (rf & 2) {
17595
17596
  const ctx_r2 = i0.ɵɵnextContext();
17596
17597
  i0.ɵɵadvance(1);
17597
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.yesNoControl.errors, ctx_r2.caseField.label)), " ");
17598
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r2.yesNoControl.errors, ctx_r2.caseField.label), " ");
17598
17599
  } }
17599
17600
  const _c0$w = function (a0) { return { selected: a0 }; };
17600
17601
  function WriteYesNoFieldComponent_div_7_Template(rf, ctx) { if (rf & 1) {
@@ -17636,7 +17637,7 @@ WriteYesNoFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteYesNoFieldC
17636
17637
  i0.ɵɵtemplate(3, WriteYesNoFieldComponent_span_3_Template, 4, 5, "span", 2);
17637
17638
  i0.ɵɵelementEnd();
17638
17639
  i0.ɵɵtemplate(4, WriteYesNoFieldComponent_span_4_Template, 3, 3, "span", 3);
17639
- i0.ɵɵtemplate(5, WriteYesNoFieldComponent_span_5_Template, 4, 6, "span", 4);
17640
+ i0.ɵɵtemplate(5, WriteYesNoFieldComponent_span_5_Template, 3, 4, "span", 4);
17640
17641
  i0.ɵɵelementStart(6, "div", 5);
17641
17642
  i0.ɵɵtemplate(7, WriteYesNoFieldComponent_div_7_Template, 5, 12, "div", 6);
17642
17643
  i0.ɵɵelementEnd();
@@ -20895,13 +20896,12 @@ function WriteDateFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
20895
20896
  function WriteDateFieldComponent_span_5_Template(rf, ctx) { if (rf & 1) {
20896
20897
  i0.ɵɵelementStart(0, "span", 7);
20897
20898
  i0.ɵɵtext(1);
20898
- i0.ɵɵpipe(2, "rpxTranslate");
20899
- i0.ɵɵpipe(3, "ccdFirstError");
20899
+ i0.ɵɵpipe(2, "ccdFirstError");
20900
20900
  i0.ɵɵelementEnd();
20901
20901
  } if (rf & 2) {
20902
20902
  const ctx_r2 = i0.ɵɵnextContext();
20903
20903
  i0.ɵɵadvance(1);
20904
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.dateControl.errors, ctx_r2.caseField.label)));
20904
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r2.dateControl.errors, ctx_r2.caseField.label), " ");
20905
20905
  } }
20906
20906
  const _c0$j = function (a0) { return { "form-group-error": a0 }; };
20907
20907
  class WriteDateFieldComponent extends AbstractFieldWriteComponent {
@@ -20920,7 +20920,7 @@ WriteDateFieldComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WriteDateFieldCom
20920
20920
  i0.ɵɵtemplate(3, WriteDateFieldComponent_span_3_Template, 4, 5, "span", 1);
20921
20921
  i0.ɵɵelementEnd();
20922
20922
  i0.ɵɵtemplate(4, WriteDateFieldComponent_span_4_Template, 3, 3, "span", 2);
20923
- i0.ɵɵtemplate(5, WriteDateFieldComponent_span_5_Template, 4, 6, "span", 3);
20923
+ i0.ɵɵtemplate(5, WriteDateFieldComponent_span_5_Template, 3, 4, "span", 3);
20924
20924
  i0.ɵɵelement(6, "cut-date-input", 4);
20925
20925
  i0.ɵɵpipe(7, "ccdIsMandatory");
20926
20926
  i0.ɵɵelementEnd();
@@ -20983,13 +20983,12 @@ function DatetimePickerComponent_span_4_Template(rf, ctx) { if (rf & 1) {
20983
20983
  function DatetimePickerComponent_span_5_Template(rf, ctx) { if (rf & 1) {
20984
20984
  i0.ɵɵelementStart(0, "span", 12);
20985
20985
  i0.ɵɵtext(1);
20986
- i0.ɵɵpipe(2, "rpxTranslate");
20987
- i0.ɵɵpipe(3, "ccdFirstError");
20986
+ i0.ɵɵpipe(2, "ccdFirstError");
20988
20987
  i0.ɵɵelementEnd();
20989
20988
  } if (rf & 2) {
20990
20989
  const ctx_r2 = i0.ɵɵnextContext();
20991
20990
  i0.ɵɵadvance(1);
20992
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind2(3, 3, ctx_r2.dateControl.errors, ctx_r2.caseField.label)));
20991
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, ctx_r2.dateControl.errors, ctx_r2.caseField.label));
20993
20992
  } }
20994
20993
  function DatetimePickerComponent_span_6_Template(rf, ctx) { if (rf & 1) {
20995
20994
  i0.ɵɵelementStart(0, "span", 12);
@@ -21192,7 +21191,7 @@ DatetimePickerComponent.ɵcmp = i0.ɵɵdefineComponent({ type: DatetimePickerCom
21192
21191
  i0.ɵɵelementStart(2, "legend");
21193
21192
  i0.ɵɵtemplate(3, DatetimePickerComponent_span_3_Template, 4, 5, "span", 1);
21194
21193
  i0.ɵɵtemplate(4, DatetimePickerComponent_span_4_Template, 3, 3, "span", 2);
21195
- i0.ɵɵtemplate(5, DatetimePickerComponent_span_5_Template, 4, 6, "span", 3);
21194
+ i0.ɵɵtemplate(5, DatetimePickerComponent_span_5_Template, 3, 4, "span", 3);
21196
21195
  i0.ɵɵtemplate(6, DatetimePickerComponent_span_6_Template, 3, 3, "span", 3);
21197
21196
  i0.ɵɵtemplate(7, DatetimePickerComponent_span_7_Template, 3, 3, "span", 3);
21198
21197
  i0.ɵɵelementEnd();
@@ -21733,7 +21732,7 @@ EventLogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: EventLogComponent, sele
21733
21732
 
21734
21733
  class MarkdownComponent {
21735
21734
  constructor() { }
21736
- ngOnChanges() {
21735
+ ngOnInit() {
21737
21736
  this.content = this.content.replace(/ \n/g, '<br>');
21738
21737
  }
21739
21738
  onMarkdownClick(event) {
@@ -21747,14 +21746,14 @@ class MarkdownComponent {
21747
21746
  MarkdownComponent.ɵfac = function MarkdownComponent_Factory(t) { return new (t || MarkdownComponent)(); };
21748
21747
  MarkdownComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MarkdownComponent, selectors: [["ccd-markdown"]], hostBindings: function MarkdownComponent_HostBindings(rf, ctx) { if (rf & 1) {
21749
21748
  i0.ɵɵlistener("click", function MarkdownComponent_click_HostBindingHandler($event) { return ctx.onMarkdownClick($event); });
21750
- } }, inputs: { content: "content", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink" }, features: [i0.ɵɵNgOnChangesFeature], decls: 3, vars: 3, consts: [[1, "markdown", 3, "data"]], template: function MarkdownComponent_Template(rf, ctx) { if (rf & 1) {
21749
+ } }, inputs: { content: "content", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink" }, decls: 3, vars: 3, consts: [[1, "markdown", 3, "innerHTML"]], template: function MarkdownComponent_Template(rf, ctx) { if (rf & 1) {
21751
21750
  i0.ɵɵelementStart(0, "div");
21752
21751
  i0.ɵɵelement(1, "markdown", 0);
21753
21752
  i0.ɵɵpipe(2, "ccdCaseReference");
21754
21753
  i0.ɵɵelementEnd();
21755
21754
  } if (rf & 2) {
21756
21755
  i0.ɵɵadvance(1);
21757
- i0.ɵɵproperty("data", i0.ɵɵpipeBind1(2, 1, ctx.content));
21756
+ i0.ɵɵproperty("innerHTML", i0.ɵɵpipeBind1(2, 1, ctx.content), i0.ɵɵsanitizeHtml);
21758
21757
  } }, directives: [i1$5.NgxMdComponent], pipes: [CaseReferencePipe], encapsulation: 2 });
21759
21758
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MarkdownComponent, [{
21760
21759
  type: Component,