@hmcts/ccd-case-ui-toolkit 6.19.15-welsh-translation-FirstErrorPipe-fix → 6.19.15-welsh-yes-no-fixes

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 (35) hide show
  1. package/bundles/hmcts-ccd-case-ui-toolkit.umd.js +97 -73
  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/case-flag/components/case-flag-summary-list/case-flag-summary-list.component.js +7 -2
  6. package/esm2015/lib/shared/components/palette/case-flag/components/case-flag-table/case-flag-table.component.js +3 -3
  7. package/esm2015/lib/shared/components/palette/case-flag/components/manage-case-flags/manage-case-flags.component.js +9 -3
  8. package/esm2015/lib/shared/components/palette/case-link/write-case-link-field.component.js +5 -4
  9. package/esm2015/lib/shared/components/palette/collection/write-collection-field.component.js +5 -4
  10. package/esm2015/lib/shared/components/palette/date/write-date-field.component.js +5 -4
  11. package/esm2015/lib/shared/components/palette/datetime-picker/datetime-picker.component.js +5 -4
  12. package/esm2015/lib/shared/components/palette/dynamic-list/write-dynamic-list-field.component.js +5 -4
  13. package/esm2015/lib/shared/components/palette/dynamic-radio-list/write-dynamic-radio-list-field.component.js +5 -4
  14. package/esm2015/lib/shared/components/palette/email/write-email-field.component.js +5 -4
  15. package/esm2015/lib/shared/components/palette/fixed-list/write-fixed-list-field.component.js +5 -4
  16. package/esm2015/lib/shared/components/palette/fixed-radio-list/write-fixed-radio-list-field.component.js +5 -4
  17. package/esm2015/lib/shared/components/palette/markdown/markdown.component.js +3 -3
  18. package/esm2015/lib/shared/components/palette/money-gbp/write-money-gbp-field.component.js +5 -4
  19. package/esm2015/lib/shared/components/palette/multi-select-list/write-multi-select-list-field.component.js +5 -4
  20. package/esm2015/lib/shared/components/palette/number/write-number-field.component.js +5 -4
  21. package/esm2015/lib/shared/components/palette/phone-uk/write-phone-uk-field.component.js +5 -4
  22. package/esm2015/lib/shared/components/palette/text/write-text-field.component.js +5 -4
  23. package/esm2015/lib/shared/components/palette/text-area/write-text-area-field.component.js +5 -4
  24. package/esm2015/lib/shared/components/palette/utils/first-error.pipe.js +9 -16
  25. package/esm2015/lib/shared/components/palette/yes-no/read-yes-no-field.component.js +7 -4
  26. package/esm2015/lib/shared/components/palette/yes-no/write-yes-no-field.component.js +8 -7
  27. package/fesm2015/hmcts-ccd-case-ui-toolkit.js +100 -75
  28. package/fesm2015/hmcts-ccd-case-ui-toolkit.js.map +1 -1
  29. package/lib/shared/components/palette/case-flag/components/case-flag-summary-list/case-flag-summary-list.component.d.ts +2 -0
  30. package/lib/shared/components/palette/case-flag/components/case-flag-summary-list/case-flag-summary-list.component.d.ts.map +1 -1
  31. package/lib/shared/components/palette/case-flag/components/manage-case-flags/manage-case-flags.component.d.ts.map +1 -1
  32. package/lib/shared/components/palette/utils/first-error.pipe.d.ts +5 -8
  33. package/lib/shared/components/palette/utils/first-error.pipe.d.ts.map +1 -1
  34. package/lib/shared/components/palette/yes-no/read-yes-no-field.component.d.ts.map +1 -1
  35. package/package.json +1 -1
@@ -3398,13 +3398,10 @@
3398
3398
  })();
3399
3399
 
3400
3400
  var FirstErrorPipe = /** @class */ (function () {
3401
- function FirstErrorPipe(rpxTranslationService, injector) {
3402
- this.rpxTranslationService = rpxTranslationService;
3403
- this.injector = injector;
3404
- this.asyncPipe = new i5.AsyncPipe(this.injector.get(i0.ChangeDetectorRef));
3401
+ function FirstErrorPipe(rpxTranslationPipe) {
3402
+ this.rpxTranslationPipe = rpxTranslationPipe;
3405
3403
  }
3406
3404
  FirstErrorPipe.prototype.transform = function (value, args) {
3407
- var _this = this;
3408
3405
  if (!value) {
3409
3406
  return '';
3410
3407
  }
@@ -3415,6 +3412,7 @@
3415
3412
  if (!keys.length) {
3416
3413
  return '';
3417
3414
  }
3415
+ var fieldLabel = this.rpxTranslationPipe.transform(args);
3418
3416
  var errorMessage;
3419
3417
  if (keys[0] === 'required') {
3420
3418
  errorMessage = '%FIELDLABEL% is required';
@@ -3434,15 +3432,11 @@
3434
3432
  else {
3435
3433
  errorMessage = value[keys[0]];
3436
3434
  }
3437
- var o = this.rpxTranslationService.getTranslation$(args).pipe(operators.switchMap(function (fieldLabel) { return _this.rpxTranslationService.getTranslationWithReplacements$(errorMessage, { FIELDLABEL: fieldLabel }); }));
3438
- return this.asyncPipe.transform(o);
3439
- };
3440
- FirstErrorPipe.prototype.ngOnDestroy = function () {
3441
- this.asyncPipe.ngOnDestroy();
3435
+ return this.rpxTranslationPipe.transform(errorMessage, { FIELDLABEL: fieldLabel });
3442
3436
  };
3443
3437
  return FirstErrorPipe;
3444
3438
  }());
3445
- FirstErrorPipe.ɵfac = function FirstErrorPipe_Factory(t) { return new (t || FirstErrorPipe)(i0__namespace.ɵɵdirectiveInject(i1__namespace.RpxTranslationService), i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector)); };
3439
+ FirstErrorPipe.ɵfac = function FirstErrorPipe_Factory(t) { return new (t || FirstErrorPipe)(i0__namespace.ɵɵdirectiveInject(i1__namespace.RpxTranslatePipe)); };
3446
3440
  FirstErrorPipe.ɵpipe = i0__namespace.ɵɵdefinePipe({ name: "ccdFirstError", type: FirstErrorPipe, pure: false });
3447
3441
  (function () {
3448
3442
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(FirstErrorPipe, [{
@@ -3451,7 +3445,7 @@
3451
3445
  name: 'ccdFirstError',
3452
3446
  pure: false
3453
3447
  }]
3454
- }], function () { return [{ type: i1__namespace.RpxTranslationService }, { type: i0__namespace.Injector }]; }, null);
3448
+ }], function () { return [{ type: i1__namespace.RpxTranslatePipe }]; }, null);
3455
3449
  })();
3456
3450
 
3457
3451
  var IsCompoundPipe = /** @class */ (function () {
@@ -14049,13 +14043,14 @@
14049
14043
  if (rf & 1) {
14050
14044
  i0__namespace.ɵɵelementStart(0, "span", 8);
14051
14045
  i0__namespace.ɵɵtext(1);
14052
- i0__namespace.ɵɵpipe(2, "ccdFirstError");
14046
+ i0__namespace.ɵɵpipe(2, "rpxTranslate");
14047
+ i0__namespace.ɵɵpipe(3, "ccdFirstError");
14053
14048
  i0__namespace.ɵɵelementEnd();
14054
14049
  }
14055
14050
  if (rf & 2) {
14056
14051
  var ctx_r2 = i0__namespace.ɵɵnextContext();
14057
14052
  i0__namespace.ɵɵadvance(1);
14058
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.caseReferenceControl.errors, ctx_r2.caseField.label), " ");
14053
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.caseReferenceControl.errors, ctx_r2.caseField.label)), " ");
14059
14054
  }
14060
14055
  }
14061
14056
  var _c1$m = function (a0) { return { "form-group-error": a0 }; };
@@ -14137,7 +14132,7 @@
14137
14132
  i0__namespace.ɵɵtemplate(2, WriteCaseLinkFieldComponent_span_2_Template, 4, 5, "span", 2);
14138
14133
  i0__namespace.ɵɵelementEnd();
14139
14134
  i0__namespace.ɵɵtemplate(3, WriteCaseLinkFieldComponent_span_3_Template, 3, 3, "span", 3);
14140
- i0__namespace.ɵɵtemplate(4, WriteCaseLinkFieldComponent_span_4_Template, 3, 4, "span", 4);
14135
+ i0__namespace.ɵɵtemplate(4, WriteCaseLinkFieldComponent_span_4_Template, 4, 6, "span", 4);
14141
14136
  i0__namespace.ɵɵelement(5, "input", 5);
14142
14137
  i0__namespace.ɵɵelementEnd();
14143
14138
  }
@@ -14367,20 +14362,21 @@
14367
14362
  if (rf & 1) {
14368
14363
  i0__namespace.ɵɵelementStart(0, "span", 10);
14369
14364
  i0__namespace.ɵɵtext(1);
14370
- i0__namespace.ɵɵpipe(2, "ccdFirstError");
14365
+ i0__namespace.ɵɵpipe(2, "rpxTranslate");
14366
+ i0__namespace.ɵɵpipe(3, "ccdFirstError");
14371
14367
  i0__namespace.ɵɵelementEnd();
14372
14368
  }
14373
14369
  if (rf & 2) {
14374
14370
  var ctx_r4 = i0__namespace.ɵɵnextContext(2);
14375
14371
  i0__namespace.ɵɵadvance(1);
14376
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(2, 1, ctx_r4.formArray.errors, ctx_r4.caseField.label), " ");
14372
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r4.formArray.errors, ctx_r4.caseField.label)), " ");
14377
14373
  }
14378
14374
  }
14379
14375
  function WriteCollectionFieldComponent_h2_9_Template(rf, ctx) {
14380
14376
  if (rf & 1) {
14381
14377
  i0__namespace.ɵɵelementStart(0, "h2", 2);
14382
14378
  i0__namespace.ɵɵtemplate(1, WriteCollectionFieldComponent_h2_9_span_1_Template, 3, 3, "span", 7);
14383
- i0__namespace.ɵɵtemplate(2, WriteCollectionFieldComponent_h2_9_span_2_Template, 3, 4, "span", 8);
14379
+ i0__namespace.ɵɵtemplate(2, WriteCollectionFieldComponent_h2_9_span_2_Template, 4, 6, "span", 8);
14384
14380
  i0__namespace.ɵɵelementEnd();
14385
14381
  }
14386
14382
  if (rf & 2) {
@@ -15982,13 +15978,14 @@
15982
15978
  if (rf & 1) {
15983
15979
  i0__namespace.ɵɵelementStart(0, "span", 10);
15984
15980
  i0__namespace.ɵɵtext(1);
15985
- i0__namespace.ɵɵpipe(2, "ccdFirstError");
15981
+ i0__namespace.ɵɵpipe(2, "rpxTranslate");
15982
+ i0__namespace.ɵɵpipe(3, "ccdFirstError");
15986
15983
  i0__namespace.ɵɵelementEnd();
15987
15984
  }
15988
15985
  if (rf & 2) {
15989
15986
  var ctx_r3 = i0__namespace.ɵɵnextContext();
15990
15987
  i0__namespace.ɵɵadvance(1);
15991
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r3.dynamicListFormControl.errors, ctx_r3.caseField.label));
15988
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r3.dynamicListFormControl.errors, ctx_r3.caseField.label)));
15992
15989
  }
15993
15990
  }
15994
15991
  function WriteDynamicListFieldComponent_option_10_Template(rf, ctx) {
@@ -16044,7 +16041,7 @@
16044
16041
  i0__namespace.ɵɵelementEnd();
16045
16042
  i0__namespace.ɵɵtemplate(3, WriteDynamicListFieldComponent_span_3_Template, 3, 3, "span", 3);
16046
16043
  i0__namespace.ɵɵtemplate(4, WriteDynamicListFieldComponent_span_4_Template, 3, 3, "span", 2);
16047
- i0__namespace.ɵɵtemplate(5, WriteDynamicListFieldComponent_span_5_Template, 3, 4, "span", 4);
16044
+ i0__namespace.ɵɵtemplate(5, WriteDynamicListFieldComponent_span_5_Template, 4, 6, "span", 4);
16048
16045
  i0__namespace.ɵɵelementStart(6, "select", 5);
16049
16046
  i0__namespace.ɵɵelementStart(7, "option", 6);
16050
16047
  i0__namespace.ɵɵtext(8);
@@ -16107,7 +16104,7 @@
16107
16104
  if (rf & 1) {
16108
16105
  i0__namespace.ɵɵlistener("click", function MarkdownComponent_click_HostBindingHandler($event) { return ctx.onMarkdownClick($event); });
16109
16106
  }
16110
- }, inputs: { content: "content", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink" }, decls: 3, vars: 3, consts: [[1, "markdown", 3, "innerHTML"]], template: function MarkdownComponent_Template(rf, ctx) {
16107
+ }, inputs: { content: "content", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink" }, decls: 3, vars: 3, consts: [[1, "markdown", 3, "data"]], template: function MarkdownComponent_Template(rf, ctx) {
16111
16108
  if (rf & 1) {
16112
16109
  i0__namespace.ɵɵelementStart(0, "div");
16113
16110
  i0__namespace.ɵɵelement(1, "markdown", 0);
@@ -16116,7 +16113,7 @@
16116
16113
  }
16117
16114
  if (rf & 2) {
16118
16115
  i0__namespace.ɵɵadvance(1);
16119
- i0__namespace.ɵɵproperty("innerHTML", i0__namespace.ɵɵpipeBind1(2, 1, ctx.content), i0__namespace.ɵɵsanitizeHtml);
16116
+ i0__namespace.ɵɵproperty("data", i0__namespace.ɵɵpipeBind1(2, 1, ctx.content));
16120
16117
  }
16121
16118
  }, directives: [i1__namespace$4.NgxMdComponent], pipes: [CaseReferencePipe], encapsulation: 2 });
16122
16119
  (function () {
@@ -16507,13 +16504,14 @@
16507
16504
  if (rf & 1) {
16508
16505
  i0__namespace.ɵɵelementStart(0, "span", 9);
16509
16506
  i0__namespace.ɵɵtext(1);
16510
- i0__namespace.ɵɵpipe(2, "ccdFirstError");
16507
+ i0__namespace.ɵɵpipe(2, "rpxTranslate");
16508
+ i0__namespace.ɵɵpipe(3, "ccdFirstError");
16511
16509
  i0__namespace.ɵɵelementEnd();
16512
16510
  }
16513
16511
  if (rf & 2) {
16514
16512
  var ctx_r3 = i0__namespace.ɵɵnextContext();
16515
16513
  i0__namespace.ɵɵadvance(1);
16516
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, ctx_r3.dynamicRadioListControl.errors));
16514
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind1(3, 3, ctx_r3.dynamicRadioListControl.errors)));
16517
16515
  }
16518
16516
  }
16519
16517
  var _c0$N = function (a0) { return { selected: a0 }; };
@@ -16577,7 +16575,7 @@
16577
16575
  i0__namespace.ɵɵtemplate(4, WriteDynamicRadioListFieldComponent_span_4_Template, 4, 5, "span", 3);
16578
16576
  i0__namespace.ɵɵtemplate(5, WriteDynamicRadioListFieldComponent_span_5_Template, 3, 3, "span", 4);
16579
16577
  i0__namespace.ɵɵtemplate(6, WriteDynamicRadioListFieldComponent_span_6_Template, 3, 3, "span", 3);
16580
- i0__namespace.ɵɵtemplate(7, WriteDynamicRadioListFieldComponent_span_7_Template, 3, 3, "span", 5);
16578
+ i0__namespace.ɵɵtemplate(7, WriteDynamicRadioListFieldComponent_span_7_Template, 4, 5, "span", 5);
16581
16579
  i0__namespace.ɵɵelementEnd();
16582
16580
  i0__namespace.ɵɵelementContainerStart(8);
16583
16581
  i0__namespace.ɵɵtemplate(9, WriteDynamicRadioListFieldComponent_div_9_Template, 5, 11, "div", 6);
@@ -16686,13 +16684,14 @@
16686
16684
  if (rf & 1) {
16687
16685
  i0__namespace.ɵɵelementStart(0, "span", 8);
16688
16686
  i0__namespace.ɵɵtext(1);
16689
- i0__namespace.ɵɵpipe(2, "ccdFirstError");
16687
+ i0__namespace.ɵɵpipe(2, "rpxTranslate");
16688
+ i0__namespace.ɵɵpipe(3, "ccdFirstError");
16690
16689
  i0__namespace.ɵɵelementEnd();
16691
16690
  }
16692
16691
  if (rf & 2) {
16693
16692
  var ctx_r2 = i0__namespace.ɵɵnextContext();
16694
16693
  i0__namespace.ɵɵadvance(1);
16695
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.emailControl.errors, ctx_r2.caseField.label));
16694
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.emailControl.errors, ctx_r2.caseField.label)));
16696
16695
  }
16697
16696
  }
16698
16697
  var _c0$M = function (a0) { return { "form-group-error": a0 }; };
@@ -16715,7 +16714,7 @@
16715
16714
  i0__namespace.ɵɵtemplate(2, WriteEmailFieldComponent_span_2_Template, 4, 5, "span", 2);
16716
16715
  i0__namespace.ɵɵelementEnd();
16717
16716
  i0__namespace.ɵɵtemplate(3, WriteEmailFieldComponent_span_3_Template, 3, 3, "span", 3);
16718
- i0__namespace.ɵɵtemplate(4, WriteEmailFieldComponent_span_4_Template, 3, 4, "span", 4);
16717
+ i0__namespace.ɵɵtemplate(4, WriteEmailFieldComponent_span_4_Template, 4, 6, "span", 4);
16719
16718
  i0__namespace.ɵɵelement(5, "input", 5);
16720
16719
  i0__namespace.ɵɵelementEnd();
16721
16720
  }
@@ -16807,13 +16806,14 @@
16807
16806
  if (rf & 1) {
16808
16807
  i0__namespace.ɵɵelementStart(0, "span", 10);
16809
16808
  i0__namespace.ɵɵtext(1);
16810
- i0__namespace.ɵɵpipe(2, "ccdFirstError");
16809
+ i0__namespace.ɵɵpipe(2, "rpxTranslate");
16810
+ i0__namespace.ɵɵpipe(3, "ccdFirstError");
16811
16811
  i0__namespace.ɵɵelementEnd();
16812
16812
  }
16813
16813
  if (rf & 2) {
16814
16814
  var ctx_r2 = i0__namespace.ɵɵnextContext();
16815
16815
  i0__namespace.ɵɵadvance(1);
16816
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.fixedListFormControl.errors, ctx_r2.caseField.label), " ");
16816
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.fixedListFormControl.errors, ctx_r2.caseField.label)), " ");
16817
16817
  }
16818
16818
  }
16819
16819
  function WriteFixedListFieldComponent_option_8_Template(rf, ctx) {
@@ -16869,7 +16869,7 @@
16869
16869
  i0__namespace.ɵɵtemplate(2, WriteFixedListFieldComponent_span_2_Template, 4, 5, "span", 2);
16870
16870
  i0__namespace.ɵɵelementEnd();
16871
16871
  i0__namespace.ɵɵtemplate(3, WriteFixedListFieldComponent_span_3_Template, 3, 3, "span", 3);
16872
- i0__namespace.ɵɵtemplate(4, WriteFixedListFieldComponent_span_4_Template, 3, 4, "span", 4);
16872
+ i0__namespace.ɵɵtemplate(4, WriteFixedListFieldComponent_span_4_Template, 4, 6, "span", 4);
16873
16873
  i0__namespace.ɵɵelementStart(5, "select", 5);
16874
16874
  i0__namespace.ɵɵelementStart(6, "option", 6);
16875
16875
  i0__namespace.ɵɵtext(7, "--Select a value--");
@@ -16991,13 +16991,14 @@
16991
16991
  if (rf & 1) {
16992
16992
  i0__namespace.ɵɵelementStart(0, "span", 8);
16993
16993
  i0__namespace.ɵɵtext(1);
16994
- i0__namespace.ɵɵpipe(2, "ccdFirstError");
16994
+ i0__namespace.ɵɵpipe(2, "rpxTranslate");
16995
+ i0__namespace.ɵɵpipe(3, "ccdFirstError");
16995
16996
  i0__namespace.ɵɵelementEnd();
16996
16997
  }
16997
16998
  if (rf & 2) {
16998
16999
  var ctx_r2 = i0__namespace.ɵɵnextContext();
16999
17000
  i0__namespace.ɵɵadvance(1);
17000
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.fixedRadioListControl.errors, ctx_r2.caseField.label));
17001
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.fixedRadioListControl.errors, ctx_r2.caseField.label)));
17001
17002
  }
17002
17003
  }
17003
17004
  var _c0$K = function (a0) { return { selected: a0 }; };
@@ -17045,7 +17046,7 @@
17045
17046
  i0__namespace.ɵɵtemplate(4, WriteFixedRadioListFieldComponent_span_4_Template, 4, 5, "span", 2);
17046
17047
  i0__namespace.ɵɵelementEnd();
17047
17048
  i0__namespace.ɵɵtemplate(5, WriteFixedRadioListFieldComponent_span_5_Template, 3, 3, "span", 3);
17048
- i0__namespace.ɵɵtemplate(6, WriteFixedRadioListFieldComponent_span_6_Template, 3, 4, "span", 4);
17049
+ i0__namespace.ɵɵtemplate(6, WriteFixedRadioListFieldComponent_span_6_Template, 4, 6, "span", 4);
17049
17050
  i0__namespace.ɵɵelementEnd();
17050
17051
  i0__namespace.ɵɵelementContainerStart(7);
17051
17052
  i0__namespace.ɵɵtemplate(8, WriteFixedRadioListFieldComponent_div_8_Template, 5, 11, "div", 5);
@@ -20247,13 +20248,14 @@
20247
20248
  if (rf & 1) {
20248
20249
  i0__namespace.ɵɵelementStart(0, "span", 10);
20249
20250
  i0__namespace.ɵɵtext(1);
20250
- i0__namespace.ɵɵpipe(2, "ccdFirstError");
20251
+ i0__namespace.ɵɵpipe(2, "rpxTranslate");
20252
+ i0__namespace.ɵɵpipe(3, "ccdFirstError");
20251
20253
  i0__namespace.ɵɵelementEnd();
20252
20254
  }
20253
20255
  if (rf & 2) {
20254
20256
  var ctx_r2 = i0__namespace.ɵɵnextContext();
20255
20257
  i0__namespace.ɵɵadvance(1);
20256
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.moneyGbpControl.errors, ctx_r2.caseField.label));
20258
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.moneyGbpControl.errors, ctx_r2.caseField.label)));
20257
20259
  }
20258
20260
  }
20259
20261
  var _c0$G = function (a0) { return { "form-group-error": a0 }; };
@@ -20275,7 +20277,7 @@
20275
20277
  i0__namespace.ɵɵtemplate(2, WriteMoneyGbpFieldComponent_span_2_Template, 4, 5, "span", 2);
20276
20278
  i0__namespace.ɵɵelementEnd();
20277
20279
  i0__namespace.ɵɵtemplate(3, WriteMoneyGbpFieldComponent_span_3_Template, 3, 3, "span", 3);
20278
- i0__namespace.ɵɵtemplate(4, WriteMoneyGbpFieldComponent_span_4_Template, 3, 4, "span", 4);
20280
+ i0__namespace.ɵɵtemplate(4, WriteMoneyGbpFieldComponent_span_4_Template, 4, 6, "span", 4);
20279
20281
  i0__namespace.ɵɵelementStart(5, "div", 5);
20280
20282
  i0__namespace.ɵɵelementStart(6, "span", 6);
20281
20283
  i0__namespace.ɵɵtext(7, "\u00A3");
@@ -20405,13 +20407,14 @@
20405
20407
  if (rf & 1) {
20406
20408
  i0__namespace.ɵɵelementStart(0, "span", 7);
20407
20409
  i0__namespace.ɵɵtext(1);
20408
- i0__namespace.ɵɵpipe(2, "ccdFirstError");
20410
+ i0__namespace.ɵɵpipe(2, "rpxTranslate");
20411
+ i0__namespace.ɵɵpipe(3, "ccdFirstError");
20409
20412
  i0__namespace.ɵɵelementEnd();
20410
20413
  }
20411
20414
  if (rf & 2) {
20412
20415
  var ctx_r2 = i0__namespace.ɵɵnextContext();
20413
20416
  i0__namespace.ɵɵadvance(1);
20414
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.checkboxes.errors, ctx_r2.caseField.label));
20417
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.checkboxes.errors, ctx_r2.caseField.label)));
20415
20418
  }
20416
20419
  }
20417
20420
  function WriteMultiSelectListFieldComponent_ng_container_6_Template(rf, ctx) {
@@ -20498,7 +20501,7 @@
20498
20501
  i0__namespace.ɵɵtemplate(3, WriteMultiSelectListFieldComponent_span_3_Template, 4, 5, "span", 1);
20499
20502
  i0__namespace.ɵɵelementEnd();
20500
20503
  i0__namespace.ɵɵtemplate(4, WriteMultiSelectListFieldComponent_span_4_Template, 3, 3, "span", 2);
20501
- i0__namespace.ɵɵtemplate(5, WriteMultiSelectListFieldComponent_span_5_Template, 3, 4, "span", 3);
20504
+ i0__namespace.ɵɵtemplate(5, WriteMultiSelectListFieldComponent_span_5_Template, 4, 6, "span", 3);
20502
20505
  i0__namespace.ɵɵtemplate(6, WriteMultiSelectListFieldComponent_ng_container_6_Template, 6, 8, "ng-container", 4);
20503
20506
  i0__namespace.ɵɵelementEnd();
20504
20507
  i0__namespace.ɵɵelementEnd();
@@ -20588,13 +20591,14 @@
20588
20591
  if (rf & 1) {
20589
20592
  i0__namespace.ɵɵelementStart(0, "span", 8);
20590
20593
  i0__namespace.ɵɵtext(1);
20591
- i0__namespace.ɵɵpipe(2, "ccdFirstError");
20594
+ i0__namespace.ɵɵpipe(2, "rpxTranslate");
20595
+ i0__namespace.ɵɵpipe(3, "ccdFirstError");
20592
20596
  i0__namespace.ɵɵelementEnd();
20593
20597
  }
20594
20598
  if (rf & 2) {
20595
20599
  var ctx_r2 = i0__namespace.ɵɵnextContext();
20596
20600
  i0__namespace.ɵɵadvance(1);
20597
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.numberControl.errors, ctx_r2.caseField.label), " ");
20601
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.numberControl.errors, ctx_r2.caseField.label)), " ");
20598
20602
  }
20599
20603
  }
20600
20604
  var _c0$E = function (a0) { return { "form-group-error": a0 }; };
@@ -20617,7 +20621,7 @@
20617
20621
  i0__namespace.ɵɵtemplate(2, WriteNumberFieldComponent_span_2_Template, 4, 5, "span", 2);
20618
20622
  i0__namespace.ɵɵelementEnd();
20619
20623
  i0__namespace.ɵɵtemplate(3, WriteNumberFieldComponent_span_3_Template, 3, 3, "span", 3);
20620
- i0__namespace.ɵɵtemplate(4, WriteNumberFieldComponent_span_4_Template, 3, 4, "span", 4);
20624
+ i0__namespace.ɵɵtemplate(4, WriteNumberFieldComponent_span_4_Template, 4, 6, "span", 4);
20621
20625
  i0__namespace.ɵɵelement(5, "input", 5);
20622
20626
  i0__namespace.ɵɵelementEnd();
20623
20627
  }
@@ -21465,13 +21469,14 @@
21465
21469
  if (rf & 1) {
21466
21470
  i0__namespace.ɵɵelementStart(0, "span", 8);
21467
21471
  i0__namespace.ɵɵtext(1);
21468
- i0__namespace.ɵɵpipe(2, "ccdFirstError");
21472
+ i0__namespace.ɵɵpipe(2, "rpxTranslate");
21473
+ i0__namespace.ɵɵpipe(3, "ccdFirstError");
21469
21474
  i0__namespace.ɵɵelementEnd();
21470
21475
  }
21471
21476
  if (rf & 2) {
21472
21477
  var ctx_r2 = i0__namespace.ɵɵnextContext();
21473
21478
  i0__namespace.ɵɵadvance(1);
21474
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.phoneUkControl.errors, ctx_r2.caseField.label), " ");
21479
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.phoneUkControl.errors, ctx_r2.caseField.label)), " ");
21475
21480
  }
21476
21481
  }
21477
21482
  var _c0$C = function (a0) { return { "form-group-error": a0 }; };
@@ -21494,7 +21499,7 @@
21494
21499
  i0__namespace.ɵɵtemplate(2, WritePhoneUKFieldComponent_span_2_Template, 4, 5, "span", 2);
21495
21500
  i0__namespace.ɵɵelementEnd();
21496
21501
  i0__namespace.ɵɵtemplate(3, WritePhoneUKFieldComponent_span_3_Template, 3, 3, "span", 3);
21497
- i0__namespace.ɵɵtemplate(4, WritePhoneUKFieldComponent_span_4_Template, 3, 4, "span", 4);
21502
+ i0__namespace.ɵɵtemplate(4, WritePhoneUKFieldComponent_span_4_Template, 4, 6, "span", 4);
21498
21503
  i0__namespace.ɵɵelement(5, "input", 5);
21499
21504
  i0__namespace.ɵɵelementEnd();
21500
21505
  }
@@ -24035,13 +24040,14 @@
24035
24040
  if (rf & 1) {
24036
24041
  i0__namespace.ɵɵelementStart(0, "span", 8);
24037
24042
  i0__namespace.ɵɵtext(1);
24038
- i0__namespace.ɵɵpipe(2, "ccdFirstError");
24043
+ i0__namespace.ɵɵpipe(2, "rpxTranslate");
24044
+ i0__namespace.ɵɵpipe(3, "ccdFirstError");
24039
24045
  i0__namespace.ɵɵelementEnd();
24040
24046
  }
24041
24047
  if (rf & 2) {
24042
24048
  var ctx_r2 = i0__namespace.ɵɵnextContext();
24043
24049
  i0__namespace.ɵɵadvance(1);
24044
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.textareaControl.errors, ctx_r2.caseField.label), " ");
24050
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.textareaControl.errors, ctx_r2.caseField.label)), " ");
24045
24051
  }
24046
24052
  }
24047
24053
  var _c0$z = function (a0) { return { "form-group-error": a0 }; };
@@ -24073,7 +24079,7 @@
24073
24079
  i0__namespace.ɵɵtemplate(2, WriteTextAreaFieldComponent_span_2_Template, 4, 5, "span", 2);
24074
24080
  i0__namespace.ɵɵelementEnd();
24075
24081
  i0__namespace.ɵɵtemplate(3, WriteTextAreaFieldComponent_span_3_Template, 3, 3, "span", 3);
24076
- i0__namespace.ɵɵtemplate(4, WriteTextAreaFieldComponent_span_4_Template, 3, 4, "span", 4);
24082
+ i0__namespace.ɵɵtemplate(4, WriteTextAreaFieldComponent_span_4_Template, 4, 6, "span", 4);
24077
24083
  i0__namespace.ɵɵelementStart(5, "textarea", 5);
24078
24084
  i0__namespace.ɵɵlistener("input", function WriteTextAreaFieldComponent_Template_textarea_input_5_listener($event) { return ctx.autoGrow($event); });
24079
24085
  i0__namespace.ɵɵelementEnd();
@@ -24166,13 +24172,14 @@
24166
24172
  if (rf & 1) {
24167
24173
  i0__namespace.ɵɵelementStart(0, "span", 8);
24168
24174
  i0__namespace.ɵɵtext(1);
24169
- i0__namespace.ɵɵpipe(2, "ccdFirstError");
24175
+ i0__namespace.ɵɵpipe(2, "rpxTranslate");
24176
+ i0__namespace.ɵɵpipe(3, "ccdFirstError");
24170
24177
  i0__namespace.ɵɵelementEnd();
24171
24178
  }
24172
24179
  if (rf & 2) {
24173
24180
  var ctx_r2 = i0__namespace.ɵɵnextContext();
24174
24181
  i0__namespace.ɵɵadvance(1);
24175
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.textControl.errors, ctx_r2.caseField.label), " ");
24182
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.textControl.errors, ctx_r2.caseField.label)), " ");
24176
24183
  }
24177
24184
  }
24178
24185
  var _c0$y = function (a0) { return { "form-group-error": a0 }; };
@@ -24198,7 +24205,7 @@
24198
24205
  i0__namespace.ɵɵtemplate(2, WriteTextFieldComponent_span_2_Template, 4, 5, "span", 2);
24199
24206
  i0__namespace.ɵɵelementEnd();
24200
24207
  i0__namespace.ɵɵtemplate(3, WriteTextFieldComponent_span_3_Template, 3, 3, "span", 3);
24201
- i0__namespace.ɵɵtemplate(4, WriteTextFieldComponent_span_4_Template, 3, 4, "span", 4);
24208
+ i0__namespace.ɵɵtemplate(4, WriteTextFieldComponent_span_4_Template, 4, 6, "span", 4);
24202
24209
  i0__namespace.ɵɵelementStart(5, "input", 5);
24203
24210
  i0__namespace.ɵɵlistener("blur", function WriteTextFieldComponent_Template_input_blur_5_listener($event) { return ctx.onBlur($event); });
24204
24211
  i0__namespace.ɵɵelementEnd();
@@ -24352,11 +24359,14 @@
24352
24359
  ReadYesNoFieldComponent.prototype.ngOnInit = function () {
24353
24360
  _super.prototype.ngOnInit.call(this);
24354
24361
  this.formattedValue = this.yesNoService.format(this.caseField.value);
24362
+ if (!this.caseField.label) {
24363
+ this.caseField.label = this.formattedValue;
24364
+ }
24355
24365
  };
24356
24366
  return ReadYesNoFieldComponent;
24357
24367
  }(AbstractFieldReadComponent));
24358
24368
  ReadYesNoFieldComponent.ɵfac = function ReadYesNoFieldComponent_Factory(t) { return new (t || ReadYesNoFieldComponent)(i0__namespace.ɵɵdirectiveInject(YesNoService)); };
24359
- ReadYesNoFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReadYesNoFieldComponent, selectors: [["ccd-read-yes-no-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 3, vars: 3, consts: [[1, "text-16"]], template: function ReadYesNoFieldComponent_Template(rf, ctx) {
24369
+ ReadYesNoFieldComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReadYesNoFieldComponent, selectors: [["ccd-read-yes-no-field"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 3, vars: 5, consts: [[1, "text-16"]], template: function ReadYesNoFieldComponent_Template(rf, ctx) {
24360
24370
  if (rf & 1) {
24361
24371
  i0__namespace.ɵɵelementStart(0, "span", 0);
24362
24372
  i0__namespace.ɵɵtext(1);
@@ -24365,7 +24375,7 @@
24365
24375
  }
24366
24376
  if (rf & 2) {
24367
24377
  i0__namespace.ɵɵadvance(1);
24368
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, ctx.formattedValue));
24378
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind3(2, 1, ctx.caseField.label, null, ctx.formattedValue));
24369
24379
  }
24370
24380
  }, pipes: [i1__namespace.RpxTranslatePipe], encapsulation: 2 });
24371
24381
  (function () {
@@ -24373,7 +24383,7 @@
24373
24383
  type: i0.Component,
24374
24384
  args: [{
24375
24385
  selector: 'ccd-read-yes-no-field',
24376
- template: "<span class=\"text-16\">{{formattedValue | rpxTranslate}}</span>"
24386
+ template: "<span class=\"text-16\">{{caseField.label | rpxTranslate : null : formattedValue}}</span>"
24377
24387
  }]
24378
24388
  }], function () { return [{ type: YesNoService }]; }, null);
24379
24389
  })();
@@ -24409,13 +24419,14 @@
24409
24419
  if (rf & 1) {
24410
24420
  i0__namespace.ɵɵelementStart(0, "span", 9);
24411
24421
  i0__namespace.ɵɵtext(1);
24412
- i0__namespace.ɵɵpipe(2, "ccdFirstError");
24422
+ i0__namespace.ɵɵpipe(2, "rpxTranslate");
24423
+ i0__namespace.ɵɵpipe(3, "ccdFirstError");
24413
24424
  i0__namespace.ɵɵelementEnd();
24414
24425
  }
24415
24426
  if (rf & 2) {
24416
24427
  var ctx_r2 = i0__namespace.ɵɵnextContext();
24417
24428
  i0__namespace.ɵɵadvance(1);
24418
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.yesNoControl.errors, ctx_r2.caseField.label), " ");
24429
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.yesNoControl.errors, ctx_r2.caseField.label)), " ");
24419
24430
  }
24420
24431
  }
24421
24432
  var _c0$x = function (a0) { return { selected: a0 }; };
@@ -24432,14 +24443,14 @@
24432
24443
  if (rf & 2) {
24433
24444
  var value_r4 = ctx.$implicit;
24434
24445
  var ctx_r3 = i0__namespace.ɵɵnextContext();
24435
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(10, _c0$x, ctx_r3.yesNoControl.value === value_r4));
24446
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(12, _c0$x, ctx_r3.yesNoControl.value === value_r4));
24436
24447
  i0__namespace.ɵɵadvance(1);
24437
24448
  i0__namespace.ɵɵproperty("id", ctx_r3.createElementId(value_r4))("name", ctx_r3.id())("formControl", ctx_r3.yesNoControl)("value", value_r4);
24438
24449
  i0__namespace.ɵɵattribute("name", ctx_r3.id());
24439
24450
  i0__namespace.ɵɵadvance(1);
24440
24451
  i0__namespace.ɵɵproperty("for", ctx_r3.createElementId(value_r4));
24441
24452
  i0__namespace.ɵɵadvance(1);
24442
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(4, 8, value_r4));
24453
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind3(4, 8, ctx_r3.caseField.label, null, value_r4));
24443
24454
  }
24444
24455
  }
24445
24456
  var _c1$a = function (a0) { return { "form-group-error": a0 }; };
@@ -24465,9 +24476,9 @@
24465
24476
  i0__namespace.ɵɵtemplate(3, WriteYesNoFieldComponent_span_3_Template, 4, 5, "span", 2);
24466
24477
  i0__namespace.ɵɵelementEnd();
24467
24478
  i0__namespace.ɵɵtemplate(4, WriteYesNoFieldComponent_span_4_Template, 3, 3, "span", 3);
24468
- i0__namespace.ɵɵtemplate(5, WriteYesNoFieldComponent_span_5_Template, 3, 4, "span", 4);
24479
+ i0__namespace.ɵɵtemplate(5, WriteYesNoFieldComponent_span_5_Template, 4, 6, "span", 4);
24469
24480
  i0__namespace.ɵɵelementStart(6, "div", 5);
24470
- i0__namespace.ɵɵtemplate(7, WriteYesNoFieldComponent_div_7_Template, 5, 12, "div", 6);
24481
+ i0__namespace.ɵɵtemplate(7, WriteYesNoFieldComponent_div_7_Template, 5, 14, "div", 6);
24471
24482
  i0__namespace.ɵɵelementEnd();
24472
24483
  i0__namespace.ɵɵelementEnd();
24473
24484
  i0__namespace.ɵɵelementEnd();
@@ -26120,7 +26131,7 @@
26120
26131
  i0__namespace.ɵɵadvance(2);
26121
26132
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(3, 4, "Comments"), " ");
26122
26133
  i0__namespace.ɵɵadvance(3);
26123
- i0__namespace.ɵɵtextInterpolate1(" ", ctx_r2.flagComments, " ");
26134
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx_r2.externalUserUpdate ? ctx_r2.flagUpdateComments : ctx_r2.flagComments, " ");
26124
26135
  i0__namespace.ɵɵadvance(3);
26125
26136
  i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(9, 6, "Change"), "");
26126
26137
  i0__namespace.ɵɵadvance(3);
@@ -26286,6 +26297,7 @@
26286
26297
  this.displayMode = exports.CaseFlagSummaryListDisplayMode;
26287
26298
  this.caseFlagCheckYourAnswersPageStep = exports.CaseFlagCheckYourAnswersPageStep;
26288
26299
  this.is2Point1Enabled = false;
26300
+ this.externalUserUpdate = false;
26289
26301
  }
26290
26302
  CaseFlagSummaryListComponent.prototype.ngOnInit = function () {
26291
26303
  if (this.flagForSummaryDisplay) {
@@ -26294,11 +26306,15 @@
26294
26306
  this.flagDescriptionWelsh = flagDetail.otherDescription_cy;
26295
26307
  this.flagComments = flagDetail.flagComment;
26296
26308
  this.flagCommentsWelsh = flagDetail.flagComment_cy;
26309
+ // Flag update comments will be coming from the flagStatusReasonChange property instead of flagUpdateComment
26310
+ // because these haven't been persisted yet
26311
+ this.flagUpdateComments = flagDetail['flagStatusReasonChange'];
26297
26312
  this.flagStatus = flagDetail.status;
26298
26313
  this.addUpdateFlagHeaderText = this.getAddUpdateFlagHeaderText();
26299
26314
  this.flagTypeHeaderText = this.getFlagTypeHeaderText();
26300
26315
  this.summaryListDisplayMode = this.getSummaryListDisplayMode();
26301
26316
  this.is2Point1Enabled = this.getDisplayContextParameter2Point1Enabled();
26317
+ this.externalUserUpdate = this.displayContextParameter === exports.CaseFlagDisplayContextParameter.UPDATE_EXTERNAL;
26302
26318
  }
26303
26319
  };
26304
26320
  CaseFlagSummaryListComponent.prototype.getFlagDescription = function (flagDetail) {
@@ -26423,7 +26439,7 @@
26423
26439
  if (rf & 2) {
26424
26440
  var flagDetail_r5 = i0__namespace.ɵɵnextContext().$implicit;
26425
26441
  i0__namespace.ɵɵadvance(2);
26426
- i0__namespace.ɵɵtextInterpolate1("Decision Reason: ", flagDetail_r5.flagUpdateComment, "");
26442
+ i0__namespace.ɵɵtextInterpolate1("Update Reason: ", flagDetail_r5.flagUpdateComment, "");
26427
26443
  }
26428
26444
  }
26429
26445
  function CaseFlagTableComponent_table_0_tbody_20_tr_1_strong_23_Template(rf, ctx) {
@@ -26526,7 +26542,7 @@
26526
26542
  i0__namespace.ɵɵadvance(4);
26527
26543
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(14, 20, flagDetail_r5, "flagComment"));
26528
26544
  i0__namespace.ɵɵadvance(2);
26529
- i0__namespace.ɵɵproperty("ngIf", !ctx_r4.caseFlagsExternalUser && flagDetail_r5.status === ctx_r4.caseFlagStatus.NOT_APPROVED && flagDetail_r5.flagUpdateComment);
26545
+ i0__namespace.ɵɵproperty("ngIf", !ctx_r4.caseFlagsExternalUser && (flagDetail_r5.status === ctx_r4.caseFlagStatus.NOT_APPROVED || flagDetail_r5.status === ctx_r4.caseFlagStatus.INACTIVE) && flagDetail_r5.flagUpdateComment);
26530
26546
  i0__namespace.ɵɵadvance(2);
26531
26547
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(18, 23, flagDetail_r5.dateTimeCreated, "dd LLL yyyy"));
26532
26548
  i0__namespace.ɵɵadvance(3);
@@ -26722,10 +26738,16 @@
26722
26738
  this.flagsDisplayData = this.flagsData.reduce(function (displayData, flagsInstance) {
26723
26739
  /* istanbul ignore else */
26724
26740
  if (flagsInstance.flags.details && flagsInstance.flags.details.length > 0) {
26725
- displayData = __spread(displayData, flagsInstance.flags.details.map(function (detail) { return _this.mapFlagDetailForDisplay(detail, flagsInstance); }));
26741
+ displayData = __spread(displayData, flagsInstance.flags.details.map(function (detail) {
26742
+ // Only map flags instances where the status is neither "Inactive" nor "Not approved"
26743
+ // This will result in some undefined mappings, which need to be filtered out after the reduce operation
26744
+ if (!_this.excludedFlagStatuses.includes(detail.status)) {
26745
+ return _this.mapFlagDetailForDisplay(detail, flagsInstance);
26746
+ }
26747
+ }));
26726
26748
  }
26727
26749
  return displayData;
26728
- }, []).filter(function (flagForDisplay) { return !_this.excludedFlagStatuses.includes(flagForDisplay.originalStatus); });
26750
+ }, []).filter(function (flagDetailDisplay) { return !!flagDetailDisplay; });
26729
26751
  }
26730
26752
  // Add a FormControl for the selected case flag if there is at least one flags instance remaining after mapping
26731
26753
  if (this.flagsDisplayData && this.flagsDisplayData.length > 0) {
@@ -30015,13 +30037,14 @@
30015
30037
  if (rf & 1) {
30016
30038
  i0__namespace.ɵɵelementStart(0, "span", 7);
30017
30039
  i0__namespace.ɵɵtext(1);
30018
- i0__namespace.ɵɵpipe(2, "ccdFirstError");
30040
+ i0__namespace.ɵɵpipe(2, "rpxTranslate");
30041
+ i0__namespace.ɵɵpipe(3, "ccdFirstError");
30019
30042
  i0__namespace.ɵɵelementEnd();
30020
30043
  }
30021
30044
  if (rf & 2) {
30022
30045
  var ctx_r2 = i0__namespace.ɵɵnextContext();
30023
30046
  i0__namespace.ɵɵadvance(1);
30024
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.dateControl.errors, ctx_r2.caseField.label), " ");
30047
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.dateControl.errors, ctx_r2.caseField.label)), " ");
30025
30048
  }
30026
30049
  }
30027
30050
  var _c0$h = function (a0) { return { "form-group-error": a0 }; };
@@ -30047,7 +30070,7 @@
30047
30070
  i0__namespace.ɵɵtemplate(3, WriteDateFieldComponent_span_3_Template, 4, 5, "span", 1);
30048
30071
  i0__namespace.ɵɵelementEnd();
30049
30072
  i0__namespace.ɵɵtemplate(4, WriteDateFieldComponent_span_4_Template, 3, 3, "span", 2);
30050
- i0__namespace.ɵɵtemplate(5, WriteDateFieldComponent_span_5_Template, 3, 4, "span", 3);
30073
+ i0__namespace.ɵɵtemplate(5, WriteDateFieldComponent_span_5_Template, 4, 6, "span", 3);
30051
30074
  i0__namespace.ɵɵelement(6, "cut-date-input", 4);
30052
30075
  i0__namespace.ɵɵpipe(7, "ccdIsMandatory");
30053
30076
  i0__namespace.ɵɵelementEnd();
@@ -30121,13 +30144,14 @@
30121
30144
  if (rf & 1) {
30122
30145
  i0__namespace.ɵɵelementStart(0, "span", 12);
30123
30146
  i0__namespace.ɵɵtext(1);
30124
- i0__namespace.ɵɵpipe(2, "ccdFirstError");
30147
+ i0__namespace.ɵɵpipe(2, "rpxTranslate");
30148
+ i0__namespace.ɵɵpipe(3, "ccdFirstError");
30125
30149
  i0__namespace.ɵɵelementEnd();
30126
30150
  }
30127
30151
  if (rf & 2) {
30128
30152
  var ctx_r2 = i0__namespace.ɵɵnextContext();
30129
30153
  i0__namespace.ɵɵadvance(1);
30130
- i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(2, 1, ctx_r2.dateControl.errors, ctx_r2.caseField.label));
30154
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(2, 1, i0__namespace.ɵɵpipeBind2(3, 3, ctx_r2.dateControl.errors, ctx_r2.caseField.label)));
30131
30155
  }
30132
30156
  }
30133
30157
  function DatetimePickerComponent_span_6_Template(rf, ctx) {
@@ -30345,7 +30369,7 @@
30345
30369
  i0__namespace.ɵɵelementStart(2, "legend");
30346
30370
  i0__namespace.ɵɵtemplate(3, DatetimePickerComponent_span_3_Template, 4, 5, "span", 1);
30347
30371
  i0__namespace.ɵɵtemplate(4, DatetimePickerComponent_span_4_Template, 3, 3, "span", 2);
30348
- i0__namespace.ɵɵtemplate(5, DatetimePickerComponent_span_5_Template, 3, 4, "span", 3);
30372
+ i0__namespace.ɵɵtemplate(5, DatetimePickerComponent_span_5_Template, 4, 6, "span", 3);
30349
30373
  i0__namespace.ɵɵtemplate(6, DatetimePickerComponent_span_6_Template, 3, 3, "span", 3);
30350
30374
  i0__namespace.ɵɵtemplate(7, DatetimePickerComponent_span_7_Template, 3, 3, "span", 3);
30351
30375
  i0__namespace.ɵɵelementEnd();