@hmcts/ccd-case-ui-toolkit 7.4.26-exceljs-update → 7.4.26-exui-5378-rc1

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.
package/README.md CHANGED
@@ -26,7 +26,7 @@ The published package name is:
26
26
  Prerequisites
27
27
  -------------
28
28
 
29
- - Node.js 24.18.0 or a later version accepted by package.json.
29
+ - Node.js 24.22.2 or a later version accepted by package.json.
30
30
  - Yarn 4.5.0, managed through the repository's Yarn configuration.
31
31
  - A Git checkout with the repository files available.
32
32
  - Chromium if you are running the Playwright browser tests.
@@ -33643,8 +33643,8 @@ class UpdateFlagComponent extends AbstractJourneyComponent {
33643
33643
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UpdateFlagComponent, { className: "UpdateFlagComponent", filePath: "lib/shared/components/palette/case-flag/components/update-flag/update-flag.component.ts", lineNumber: 23 }); })();
33644
33644
 
33645
33645
  const _c0$n = a0 => ({ "form-group-error": a0 });
33646
- function UpdateFlagAddTranslationFormComponent_div_14_Template(rf, ctx) { if (rf & 1) {
33647
- i0.ɵɵelementStart(0, "div", 17)(1, "span", 18);
33646
+ function UpdateFlagAddTranslationFormComponent_div_10_div_5_Template(rf, ctx) { if (rf & 1) {
33647
+ i0.ɵɵelementStart(0, "div", 18)(1, "span", 19);
33648
33648
  i0.ɵɵtext(2);
33649
33649
  i0.ɵɵpipe(3, "rpxTranslate");
33650
33650
  i0.ɵɵelementEnd();
@@ -33652,14 +33652,14 @@ function UpdateFlagAddTranslationFormComponent_div_14_Template(rf, ctx) { if (rf
33652
33652
  i0.ɵɵpipe(5, "rpxTranslate");
33653
33653
  i0.ɵɵelementEnd();
33654
33654
  } if (rf & 2) {
33655
- const ctx_r0 = i0.ɵɵnextContext();
33655
+ const ctx_r0 = i0.ɵɵnextContext(2);
33656
33656
  i0.ɵɵadvance(2);
33657
33657
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Error:"));
33658
33658
  i0.ɵɵadvance(2);
33659
33659
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.otherFlagDescriptionCharLimitErrorMessage), " ");
33660
33660
  } }
33661
- function UpdateFlagAddTranslationFormComponent_div_24_Template(rf, ctx) { if (rf & 1) {
33662
- i0.ɵɵelementStart(0, "div", 19)(1, "span", 18);
33661
+ function UpdateFlagAddTranslationFormComponent_div_10_div_15_Template(rf, ctx) { if (rf & 1) {
33662
+ i0.ɵɵelementStart(0, "div", 20)(1, "span", 19);
33663
33663
  i0.ɵɵtext(2);
33664
33664
  i0.ɵɵpipe(3, "rpxTranslate");
33665
33665
  i0.ɵɵelementEnd();
@@ -33667,14 +33667,62 @@ function UpdateFlagAddTranslationFormComponent_div_24_Template(rf, ctx) { if (rf
33667
33667
  i0.ɵɵpipe(5, "rpxTranslate");
33668
33668
  i0.ɵɵelementEnd();
33669
33669
  } if (rf & 2) {
33670
- const ctx_r0 = i0.ɵɵnextContext();
33670
+ const ctx_r0 = i0.ɵɵnextContext(2);
33671
33671
  i0.ɵɵadvance(2);
33672
33672
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Error:"));
33673
33673
  i0.ɵɵadvance(2);
33674
33674
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.otherFlagDescriptionWelshCharLimitErrorMessage), " ");
33675
33675
  } }
33676
- function UpdateFlagAddTranslationFormComponent_div_34_Template(rf, ctx) { if (rf & 1) {
33677
- i0.ɵɵelementStart(0, "div", 20)(1, "span", 18);
33676
+ function UpdateFlagAddTranslationFormComponent_div_10_Template(rf, ctx) { if (rf & 1) {
33677
+ i0.ɵɵelementStart(0, "div")(1, "div", 7)(2, "label", 8);
33678
+ i0.ɵɵtext(3);
33679
+ i0.ɵɵpipe(4, "rpxTranslate");
33680
+ i0.ɵɵelementEnd();
33681
+ i0.ɵɵtemplate(5, UpdateFlagAddTranslationFormComponent_div_10_div_5_Template, 6, 6, "div", 14);
33682
+ i0.ɵɵelementStart(6, "textarea", 10);
33683
+ i0.ɵɵtext(7, " ");
33684
+ i0.ɵɵelementEnd();
33685
+ i0.ɵɵelementStart(8, "div", 15);
33686
+ i0.ɵɵtext(9);
33687
+ i0.ɵɵpipe(10, "rpxTranslate");
33688
+ i0.ɵɵelementEnd()();
33689
+ i0.ɵɵelementStart(11, "div", 7)(12, "label", 8);
33690
+ i0.ɵɵtext(13);
33691
+ i0.ɵɵpipe(14, "rpxTranslate");
33692
+ i0.ɵɵelementEnd();
33693
+ i0.ɵɵtemplate(15, UpdateFlagAddTranslationFormComponent_div_10_div_15_Template, 6, 6, "div", 16);
33694
+ i0.ɵɵelementStart(16, "textarea", 10);
33695
+ i0.ɵɵtext(17, " ");
33696
+ i0.ɵɵelementEnd();
33697
+ i0.ɵɵelementStart(18, "div", 17);
33698
+ i0.ɵɵtext(19);
33699
+ i0.ɵɵpipe(20, "rpxTranslate");
33700
+ i0.ɵɵelementEnd()()();
33701
+ } if (rf & 2) {
33702
+ const ctx_r0 = i0.ɵɵnextContext();
33703
+ i0.ɵɵadvance(2);
33704
+ i0.ɵɵproperty("for", ctx_r0.caseFlagFormFields.OTHER_FLAG_DESCRIPTION);
33705
+ i0.ɵɵadvance();
33706
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 14, "Other description"));
33707
+ i0.ɵɵadvance(2);
33708
+ i0.ɵɵproperty("ngIf", ctx_r0.otherFlagDescriptionCharLimitErrorMessage);
33709
+ i0.ɵɵadvance();
33710
+ i0.ɵɵproperty("id", ctx_r0.caseFlagFormFields.OTHER_FLAG_DESCRIPTION)("name", ctx_r0.caseFlagFormFields.OTHER_FLAG_DESCRIPTION)("formControlName", ctx_r0.caseFlagFormFields.OTHER_FLAG_DESCRIPTION);
33711
+ i0.ɵɵadvance(3);
33712
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10, 16, ctx_r0.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
33713
+ i0.ɵɵadvance(3);
33714
+ i0.ɵɵproperty("for", ctx_r0.caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH);
33715
+ i0.ɵɵadvance();
33716
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(14, 18, "Other description (Welsh)"));
33717
+ i0.ɵɵadvance(2);
33718
+ i0.ɵɵproperty("ngIf", ctx_r0.otherFlagDescriptionWelshCharLimitErrorMessage);
33719
+ i0.ɵɵadvance();
33720
+ i0.ɵɵproperty("id", ctx_r0.caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH)("name", ctx_r0.caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH)("formControlName", ctx_r0.caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH);
33721
+ i0.ɵɵadvance(3);
33722
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(20, 20, ctx_r0.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
33723
+ } }
33724
+ function UpdateFlagAddTranslationFormComponent_div_15_Template(rf, ctx) { if (rf & 1) {
33725
+ i0.ɵɵelementStart(0, "div", 21)(1, "span", 19);
33678
33726
  i0.ɵɵtext(2);
33679
33727
  i0.ɵɵpipe(3, "rpxTranslate");
33680
33728
  i0.ɵɵelementEnd();
@@ -33688,8 +33736,8 @@ function UpdateFlagAddTranslationFormComponent_div_34_Template(rf, ctx) { if (rf
33688
33736
  i0.ɵɵadvance(2);
33689
33737
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.flagCommentsCharLimitErrorMessage), " ");
33690
33738
  } }
33691
- function UpdateFlagAddTranslationFormComponent_div_44_Template(rf, ctx) { if (rf & 1) {
33692
- i0.ɵɵelementStart(0, "div", 21)(1, "span", 18);
33739
+ function UpdateFlagAddTranslationFormComponent_div_25_Template(rf, ctx) { if (rf & 1) {
33740
+ i0.ɵɵelementStart(0, "div", 22)(1, "span", 19);
33693
33741
  i0.ɵɵtext(2);
33694
33742
  i0.ɵɵpipe(3, "rpxTranslate");
33695
33743
  i0.ɵɵelementEnd();
@@ -33709,6 +33757,7 @@ class UpdateFlagAddTranslationFormComponent extends AbstractJourneyComponent {
33709
33757
  selectedFlag;
33710
33758
  updateFlagAddTranslationTitle;
33711
33759
  errorMessages = [];
33760
+ otherFlagType = false;
33712
33761
  otherFlagDescriptionCharLimitErrorMessage = null;
33713
33762
  otherFlagDescriptionWelshCharLimitErrorMessage = null;
33714
33763
  flagCommentsCharLimitErrorMessage = null;
@@ -33716,10 +33765,12 @@ class UpdateFlagAddTranslationFormComponent extends AbstractJourneyComponent {
33716
33765
  updateFlagAddTranslationStepEnum = UpdateFlagAddTranslationStep;
33717
33766
  caseFlagFormFields = CaseFlagFormFields;
33718
33767
  textMaxCharLimit = 200;
33768
+ otherFlagTypeCode = 'OT0001';
33719
33769
  selectedManageCaseLocation = 'selectedManageCaseLocation';
33720
33770
  ngOnInit() {
33721
33771
  this.updateFlagAddTranslationTitle = CaseFlagWizardStepTitle.UPDATE_FLAG_ADD_TRANSLATION;
33722
33772
  this.selectedFlag = this.formGroup.get(this.selectedManageCaseLocation).value;
33773
+ this.otherFlagType = this.selectedFlag?.flagDetailDisplay?.flagDetail?.flagCode === this.otherFlagTypeCode;
33723
33774
  this.multipageComponentStateService.getJourneyCollectionMainObject().journeyEndPageNumber++;
33724
33775
  const flagDetail = this.selectedFlag?.flagDetailDisplay?.flagDetail;
33725
33776
  this.formGroup.addControl(CaseFlagFormFields.OTHER_FLAG_DESCRIPTION, new FormControl(flagDetail?.otherDescription));
@@ -33748,21 +33799,23 @@ class UpdateFlagAddTranslationFormComponent extends AbstractJourneyComponent {
33748
33799
  this.flagCommentsCharLimitErrorMessage = null;
33749
33800
  this.flagCommentsWelshCharLimitErrorMessage = null;
33750
33801
  this.errorMessages = [];
33751
- if (this.formGroup.get(CaseFlagFormFields.OTHER_FLAG_DESCRIPTION)?.value?.length > this.textMaxCharLimit) {
33752
- this.otherFlagDescriptionCharLimitErrorMessage = UpdateFlagAddTranslationErrorMessage.DESCRIPTION_CHAR_LIMIT_EXCEEDED;
33753
- this.errorMessages.push({
33754
- title: '',
33755
- description: UpdateFlagAddTranslationErrorMessage.DESCRIPTION_CHAR_LIMIT_EXCEEDED,
33756
- fieldId: CaseFlagFormFields.OTHER_FLAG_DESCRIPTION
33757
- });
33758
- }
33759
- if (this.formGroup.get(CaseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH)?.value?.length > this.textMaxCharLimit) {
33760
- this.otherFlagDescriptionWelshCharLimitErrorMessage = UpdateFlagAddTranslationErrorMessage.DESCRIPTION_CHAR_LIMIT_EXCEEDED;
33761
- this.errorMessages.push({
33762
- title: '',
33763
- description: UpdateFlagAddTranslationErrorMessage.DESCRIPTION_CHAR_LIMIT_EXCEEDED,
33764
- fieldId: CaseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH
33765
- });
33802
+ if (this.otherFlagType) {
33803
+ if (this.formGroup.get(CaseFlagFormFields.OTHER_FLAG_DESCRIPTION)?.value?.length > this.textMaxCharLimit) {
33804
+ this.otherFlagDescriptionCharLimitErrorMessage = UpdateFlagAddTranslationErrorMessage.DESCRIPTION_CHAR_LIMIT_EXCEEDED;
33805
+ this.errorMessages.push({
33806
+ title: '',
33807
+ description: UpdateFlagAddTranslationErrorMessage.DESCRIPTION_CHAR_LIMIT_EXCEEDED,
33808
+ fieldId: CaseFlagFormFields.OTHER_FLAG_DESCRIPTION
33809
+ });
33810
+ }
33811
+ if (this.formGroup.get(CaseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH)?.value?.length > this.textMaxCharLimit) {
33812
+ this.otherFlagDescriptionWelshCharLimitErrorMessage = UpdateFlagAddTranslationErrorMessage.DESCRIPTION_CHAR_LIMIT_EXCEEDED;
33813
+ this.errorMessages.push({
33814
+ title: '',
33815
+ description: UpdateFlagAddTranslationErrorMessage.DESCRIPTION_CHAR_LIMIT_EXCEEDED,
33816
+ fieldId: CaseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH
33817
+ });
33818
+ }
33766
33819
  }
33767
33820
  if (this.formGroup.get(CaseFlagFormFields.COMMENTS)?.value?.length > this.textMaxCharLimit) {
33768
33821
  this.flagCommentsCharLimitErrorMessage = UpdateFlagAddTranslationErrorMessage.COMMENTS_CHAR_LIMIT_EXCEEDED;
@@ -33788,7 +33841,7 @@ class UpdateFlagAddTranslationFormComponent extends AbstractJourneyComponent {
33788
33841
  }
33789
33842
  }
33790
33843
  static ɵfac = /*@__PURE__*/ (() => { let ɵUpdateFlagAddTranslationFormComponent_BaseFactory; return function UpdateFlagAddTranslationFormComponent_Factory(__ngFactoryType__) { return (ɵUpdateFlagAddTranslationFormComponent_BaseFactory || (ɵUpdateFlagAddTranslationFormComponent_BaseFactory = i0.ɵɵgetInheritedFactory(UpdateFlagAddTranslationFormComponent)))(__ngFactoryType__ || UpdateFlagAddTranslationFormComponent); }; })();
33791
- static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UpdateFlagAddTranslationFormComponent, selectors: [["ccd-update-flag-add-translation-form"]], inputs: { formGroup: "formGroup" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 50, vars: 54, consts: [[3, "formGroup"], ["data-module", "govuk-character-count", "data-maxlength", "200", 1, "govuk-character-count"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-label-wrapper", "govuk-!-margin-bottom-6"], [1, "govuk-label", "govuk-label--m"], ["id", "add-translation-form-hint", 1, "govuk-hint"], [1, "govuk-!-margin-bottom-4"], [1, "govuk-label", "govuk-label--s", 3, "for"], ["id", "add-translation-other-flag-description-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["rows", "5", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["id", "add-translation-other-flag-description-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], ["id", "add-translation-other-flag-description-welsh-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "add-translation-other-flag-description-welsh-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], ["id", "add-translation-flag-comments-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "add-translation-flag-comments-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], ["id", "add-translation-flag-comments-welsh-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "add-translation-flag-comments-welsh-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], ["id", "add-translation-other-flag-description-char-limit-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "add-translation-other-flag-description-welsh-char-limit-error", 1, "govuk-error-message"], ["id", "add-translation-flag-comments-char-limit-error", 1, "govuk-error-message"], ["id", "add-translation-flag-comments-welsh-char-limit-error", 1, "govuk-error-message"]], template: function UpdateFlagAddTranslationFormComponent_Template(rf, ctx) { if (rf & 1) {
33844
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UpdateFlagAddTranslationFormComponent, selectors: [["ccd-update-flag-add-translation-form"]], inputs: { formGroup: "formGroup" }, outputs: { caseFlagStateEmitter: "caseFlagStateEmitter" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 31, vars: 33, consts: [[3, "formGroup"], ["data-module", "govuk-character-count", "data-maxlength", "200", 1, "govuk-character-count"], [1, "govuk-form-group", 3, "ngClass"], [1, "govuk-label-wrapper", "govuk-!-margin-bottom-6"], [1, "govuk-label", "govuk-label--m"], ["id", "add-translation-form-hint", 1, "govuk-hint"], [4, "ngIf"], [1, "govuk-!-margin-bottom-4"], [1, "govuk-label", "govuk-label--s", 3, "for"], ["id", "add-translation-flag-comments-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["rows", "5", 1, "govuk-textarea", 3, "id", "name", "formControlName"], ["id", "add-translation-flag-comments-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], ["id", "add-translation-flag-comments-welsh-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "add-translation-flag-comments-welsh-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], ["id", "add-translation-other-flag-description-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "add-translation-other-flag-description-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], ["id", "add-translation-other-flag-description-welsh-char-limit-error", "class", "govuk-error-message", 4, "ngIf"], ["id", "add-translation-other-flag-description-welsh-char-limit-info", "aria-live", "polite", 1, "govuk-hint", "govuk-character-count__message"], ["id", "add-translation-other-flag-description-char-limit-error", 1, "govuk-error-message"], [1, "govuk-visually-hidden"], ["id", "add-translation-other-flag-description-welsh-char-limit-error", 1, "govuk-error-message"], ["id", "add-translation-flag-comments-char-limit-error", 1, "govuk-error-message"], ["id", "add-translation-flag-comments-welsh-char-limit-error", 1, "govuk-error-message"]], template: function UpdateFlagAddTranslationFormComponent_Template(rf, ctx) { if (rf & 1) {
33792
33845
  i0.ɵɵelementContainerStart(0, 0);
33793
33846
  i0.ɵɵelementStart(1, "div", 1)(2, "div", 2)(3, "h1", 3)(4, "label", 4);
33794
33847
  i0.ɵɵtext(5);
@@ -33798,108 +33851,67 @@ class UpdateFlagAddTranslationFormComponent extends AbstractJourneyComponent {
33798
33851
  i0.ɵɵtext(8);
33799
33852
  i0.ɵɵpipe(9, "rpxTranslate");
33800
33853
  i0.ɵɵelementEnd();
33801
- i0.ɵɵelementStart(10, "div", 6)(11, "label", 7);
33802
- i0.ɵɵtext(12);
33803
- i0.ɵɵpipe(13, "rpxTranslate");
33804
- i0.ɵɵelementEnd();
33805
- i0.ɵɵtemplate(14, UpdateFlagAddTranslationFormComponent_div_14_Template, 6, 6, "div", 8);
33806
- i0.ɵɵelementStart(15, "textarea", 9);
33807
- i0.ɵɵtext(16, " ");
33808
- i0.ɵɵelementEnd();
33809
- i0.ɵɵelementStart(17, "div", 10);
33810
- i0.ɵɵtext(18);
33811
- i0.ɵɵpipe(19, "rpxTranslate");
33812
- i0.ɵɵelementEnd()();
33813
- i0.ɵɵelementStart(20, "div", 6)(21, "label", 7);
33814
- i0.ɵɵtext(22);
33815
- i0.ɵɵpipe(23, "rpxTranslate");
33816
- i0.ɵɵelementEnd();
33817
- i0.ɵɵtemplate(24, UpdateFlagAddTranslationFormComponent_div_24_Template, 6, 6, "div", 11);
33818
- i0.ɵɵelementStart(25, "textarea", 9);
33819
- i0.ɵɵtext(26, " ");
33820
- i0.ɵɵelementEnd();
33821
- i0.ɵɵelementStart(27, "div", 12);
33822
- i0.ɵɵtext(28);
33823
- i0.ɵɵpipe(29, "rpxTranslate");
33824
- i0.ɵɵelementEnd()();
33825
- i0.ɵɵelementStart(30, "div", 6)(31, "label", 7);
33826
- i0.ɵɵtext(32);
33827
- i0.ɵɵpipe(33, "rpxTranslate");
33854
+ i0.ɵɵtemplate(10, UpdateFlagAddTranslationFormComponent_div_10_Template, 21, 22, "div", 6);
33855
+ i0.ɵɵelementStart(11, "div", 7)(12, "label", 8);
33856
+ i0.ɵɵtext(13);
33857
+ i0.ɵɵpipe(14, "rpxTranslate");
33828
33858
  i0.ɵɵelementEnd();
33829
- i0.ɵɵtemplate(34, UpdateFlagAddTranslationFormComponent_div_34_Template, 6, 6, "div", 13);
33830
- i0.ɵɵelementStart(35, "textarea", 9);
33831
- i0.ɵɵtext(36, " ");
33859
+ i0.ɵɵtemplate(15, UpdateFlagAddTranslationFormComponent_div_15_Template, 6, 6, "div", 9);
33860
+ i0.ɵɵelementStart(16, "textarea", 10);
33861
+ i0.ɵɵtext(17, " ");
33832
33862
  i0.ɵɵelementEnd();
33833
- i0.ɵɵelementStart(37, "div", 14);
33834
- i0.ɵɵtext(38);
33835
- i0.ɵɵpipe(39, "rpxTranslate");
33863
+ i0.ɵɵelementStart(18, "div", 11);
33864
+ i0.ɵɵtext(19);
33865
+ i0.ɵɵpipe(20, "rpxTranslate");
33836
33866
  i0.ɵɵelementEnd()();
33837
- i0.ɵɵelementStart(40, "div", 6)(41, "label", 7);
33838
- i0.ɵɵtext(42);
33839
- i0.ɵɵpipe(43, "rpxTranslate");
33867
+ i0.ɵɵelementStart(21, "div", 7)(22, "label", 8);
33868
+ i0.ɵɵtext(23);
33869
+ i0.ɵɵpipe(24, "rpxTranslate");
33840
33870
  i0.ɵɵelementEnd();
33841
- i0.ɵɵtemplate(44, UpdateFlagAddTranslationFormComponent_div_44_Template, 6, 6, "div", 15);
33842
- i0.ɵɵelementStart(45, "textarea", 9);
33843
- i0.ɵɵtext(46, " ");
33871
+ i0.ɵɵtemplate(25, UpdateFlagAddTranslationFormComponent_div_25_Template, 6, 6, "div", 12);
33872
+ i0.ɵɵelementStart(26, "textarea", 10);
33873
+ i0.ɵɵtext(27, " ");
33844
33874
  i0.ɵɵelementEnd();
33845
- i0.ɵɵelementStart(47, "div", 16);
33846
- i0.ɵɵtext(48);
33847
- i0.ɵɵpipe(49, "rpxTranslate");
33875
+ i0.ɵɵelementStart(28, "div", 13);
33876
+ i0.ɵɵtext(29);
33877
+ i0.ɵɵpipe(30, "rpxTranslate");
33848
33878
  i0.ɵɵelementEnd()()()();
33849
33879
  i0.ɵɵelementContainerEnd();
33850
33880
  } if (rf & 2) {
33851
33881
  i0.ɵɵproperty("formGroup", ctx.formGroup);
33852
33882
  i0.ɵɵadvance(2);
33853
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(52, _c0$n, ctx.errorMessages.length > 0));
33854
- i0.ɵɵadvance(3);
33855
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 32, ctx.updateFlagAddTranslationTitle), " ");
33883
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(31, _c0$n, ctx.errorMessages.length > 0));
33856
33884
  i0.ɵɵadvance(3);
33857
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 34, ctx.updateFlagAddTranslationStepEnum.HINT_TEXT), " ");
33885
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 19, ctx.updateFlagAddTranslationTitle), " ");
33858
33886
  i0.ɵɵadvance(3);
33859
- i0.ɵɵproperty("for", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION);
33860
- i0.ɵɵadvance();
33861
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(13, 36, "Other description"));
33887
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 21, ctx.updateFlagAddTranslationStepEnum.HINT_TEXT), " ");
33862
33888
  i0.ɵɵadvance(2);
33863
- i0.ɵɵproperty("ngIf", ctx.otherFlagDescriptionCharLimitErrorMessage);
33864
- i0.ɵɵadvance();
33865
- i0.ɵɵproperty("id", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION)("name", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION)("formControlName", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION);
33866
- i0.ɵɵadvance(3);
33867
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(19, 38, ctx.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
33868
- i0.ɵɵadvance(3);
33869
- i0.ɵɵproperty("for", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH);
33870
- i0.ɵɵadvance();
33871
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(23, 40, "Other description (Welsh)"));
33889
+ i0.ɵɵproperty("ngIf", ctx.otherFlagType);
33872
33890
  i0.ɵɵadvance(2);
33873
- i0.ɵɵproperty("ngIf", ctx.otherFlagDescriptionWelshCharLimitErrorMessage);
33874
- i0.ɵɵadvance();
33875
- i0.ɵɵproperty("id", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH)("name", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH)("formControlName", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH);
33876
- i0.ɵɵadvance(3);
33877
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(29, 42, ctx.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
33878
- i0.ɵɵadvance(3);
33879
33891
  i0.ɵɵproperty("for", ctx.caseFlagFormFields.COMMENTS);
33880
33892
  i0.ɵɵadvance();
33881
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(33, 44, "Flag comments"));
33893
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(14, 23, "Flag comments"));
33882
33894
  i0.ɵɵadvance(2);
33883
33895
  i0.ɵɵproperty("ngIf", ctx.flagCommentsCharLimitErrorMessage);
33884
33896
  i0.ɵɵadvance();
33885
33897
  i0.ɵɵproperty("id", ctx.caseFlagFormFields.COMMENTS)("name", ctx.caseFlagFormFields.COMMENTS)("formControlName", ctx.caseFlagFormFields.COMMENTS);
33886
33898
  i0.ɵɵadvance(3);
33887
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(39, 46, ctx.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
33899
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(20, 25, ctx.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
33888
33900
  i0.ɵɵadvance(3);
33889
33901
  i0.ɵɵproperty("for", ctx.caseFlagFormFields.COMMENTS_WELSH);
33890
33902
  i0.ɵɵadvance();
33891
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(43, 48, "Flag comments (Welsh)"));
33903
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(24, 27, "Flag comments (Welsh)"));
33892
33904
  i0.ɵɵadvance(2);
33893
33905
  i0.ɵɵproperty("ngIf", ctx.flagCommentsWelshCharLimitErrorMessage);
33894
33906
  i0.ɵɵadvance();
33895
33907
  i0.ɵɵproperty("id", ctx.caseFlagFormFields.COMMENTS_WELSH)("name", ctx.caseFlagFormFields.COMMENTS_WELSH)("formControlName", ctx.caseFlagFormFields.COMMENTS_WELSH);
33896
33908
  i0.ɵɵadvance(3);
33897
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(49, 50, ctx.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
33909
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(30, 29, ctx.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
33898
33910
  } }, dependencies: [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, i1.RpxTranslatePipe], encapsulation: 2 });
33899
33911
  }
33900
33912
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UpdateFlagAddTranslationFormComponent, [{
33901
33913
  type: Component,
33902
- args: [{ selector: 'ccd-update-flag-add-translation-form', standalone: false, template: "<ng-container [formGroup]=\"formGroup\">\n <div class=\"govuk-character-count\" data-module=\"govuk-character-count\" data-maxlength=\"200\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': errorMessages.length > 0}\">\n <h1 class=\"govuk-label-wrapper govuk-!-margin-bottom-6\">\n <label class=\"govuk-label govuk-label--m\">\n {{ updateFlagAddTranslationTitle | rpxTranslate}}\n </label>\n </h1>\n <div id=\"add-translation-form-hint\" class=\"govuk-hint\">\n {{ updateFlagAddTranslationStepEnum.HINT_TEXT | rpxTranslate}}\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <label [for]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION\" class=\"govuk-label govuk-label--s\">{{'Other description' | rpxTranslate}}</label>\n <div id=\"add-translation-other-flag-description-char-limit-error\" class=\"govuk-error-message\"\n *ngIf=\"otherFlagDescriptionCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{otherFlagDescriptionCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea\n class=\"govuk-textarea\" rows=\"5\"\n [id]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION\"\n [name]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION\"\n [formControlName]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION\">\n </textarea>\n <div id=\"add-translation-other-flag-description-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <label [for]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH\" class=\"govuk-label govuk-label--s\">{{'Other description (Welsh)' | rpxTranslate}}</label>\n <div id=\"add-translation-other-flag-description-welsh-char-limit-error\" class=\"govuk-error-message\"\n *ngIf=\"otherFlagDescriptionWelshCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{otherFlagDescriptionWelshCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea\n class=\"govuk-textarea\" rows=\"5\"\n [id]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH\"\n [name]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH\"\n [formControlName]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH\">\n </textarea>\n <div id=\"add-translation-other-flag-description-welsh-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <label [for]=\"caseFlagFormFields.COMMENTS\" class=\"govuk-label govuk-label--s\">{{'Flag comments' | rpxTranslate}}</label>\n <div id=\"add-translation-flag-comments-char-limit-error\" class=\"govuk-error-message\"\n *ngIf=\"flagCommentsCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{flagCommentsCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea\n class=\"govuk-textarea\" rows=\"5\"\n [id]=\"caseFlagFormFields.COMMENTS\"\n [name]=\"caseFlagFormFields.COMMENTS\"\n [formControlName]=\"caseFlagFormFields.COMMENTS\">\n </textarea>\n <div id=\"add-translation-flag-comments-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <label [for]=\"caseFlagFormFields.COMMENTS_WELSH\" class=\"govuk-label govuk-label--s\">{{'Flag comments (Welsh)' | rpxTranslate}}</label>\n <div id=\"add-translation-flag-comments-welsh-char-limit-error\" class=\"govuk-error-message\"\n *ngIf=\"flagCommentsWelshCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{flagCommentsWelshCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea\n class=\"govuk-textarea\" rows=\"5\"\n [id]=\"caseFlagFormFields.COMMENTS_WELSH\"\n [name]=\"caseFlagFormFields.COMMENTS_WELSH\"\n [formControlName]=\"caseFlagFormFields.COMMENTS_WELSH\">\n </textarea>\n <div id=\"add-translation-flag-comments-welsh-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </div>\n </div>\n </div>\n</ng-container>" }]
33914
+ args: [{ selector: 'ccd-update-flag-add-translation-form', standalone: false, template: "<ng-container [formGroup]=\"formGroup\">\n <div class=\"govuk-character-count\" data-module=\"govuk-character-count\" data-maxlength=\"200\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'form-group-error': errorMessages.length > 0}\">\n <h1 class=\"govuk-label-wrapper govuk-!-margin-bottom-6\">\n <label class=\"govuk-label govuk-label--m\">\n {{ updateFlagAddTranslationTitle | rpxTranslate}}\n </label>\n </h1>\n <div id=\"add-translation-form-hint\" class=\"govuk-hint\">\n {{ updateFlagAddTranslationStepEnum.HINT_TEXT | rpxTranslate}}\n </div>\n\n <div *ngIf=\"otherFlagType\">\n <div class=\"govuk-!-margin-bottom-4\">\n <label [for]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION\" class=\"govuk-label govuk-label--s\">{{'Other description' | rpxTranslate}}</label>\n <div id=\"add-translation-other-flag-description-char-limit-error\" class=\"govuk-error-message\"\n *ngIf=\"otherFlagDescriptionCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{otherFlagDescriptionCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea\n class=\"govuk-textarea\" rows=\"5\"\n [id]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION\"\n [name]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION\"\n [formControlName]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION\">\n </textarea>\n <div id=\"add-translation-other-flag-description-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <label [for]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH\" class=\"govuk-label govuk-label--s\">{{'Other description (Welsh)' | rpxTranslate}}</label>\n <div id=\"add-translation-other-flag-description-welsh-char-limit-error\" class=\"govuk-error-message\"\n *ngIf=\"otherFlagDescriptionWelshCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{otherFlagDescriptionWelshCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea\n class=\"govuk-textarea\" rows=\"5\"\n [id]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH\"\n [name]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH\"\n [formControlName]=\"caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH\">\n </textarea>\n <div id=\"add-translation-other-flag-description-welsh-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </div>\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <label [for]=\"caseFlagFormFields.COMMENTS\" class=\"govuk-label govuk-label--s\">{{'Flag comments' | rpxTranslate}}</label>\n <div id=\"add-translation-flag-comments-char-limit-error\" class=\"govuk-error-message\"\n *ngIf=\"flagCommentsCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{flagCommentsCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea\n class=\"govuk-textarea\" rows=\"5\"\n [id]=\"caseFlagFormFields.COMMENTS\"\n [name]=\"caseFlagFormFields.COMMENTS\"\n [formControlName]=\"caseFlagFormFields.COMMENTS\">\n </textarea>\n <div id=\"add-translation-flag-comments-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </div>\n\n <div class=\"govuk-!-margin-bottom-4\">\n <label [for]=\"caseFlagFormFields.COMMENTS_WELSH\" class=\"govuk-label govuk-label--s\">{{'Flag comments (Welsh)' | rpxTranslate}}</label>\n <div id=\"add-translation-flag-comments-welsh-char-limit-error\" class=\"govuk-error-message\"\n *ngIf=\"flagCommentsWelshCharLimitErrorMessage\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{flagCommentsWelshCharLimitErrorMessage | rpxTranslate}}\n </div>\n <textarea\n class=\"govuk-textarea\" rows=\"5\"\n [id]=\"caseFlagFormFields.COMMENTS_WELSH\"\n [name]=\"caseFlagFormFields.COMMENTS_WELSH\"\n [formControlName]=\"caseFlagFormFields.COMMENTS_WELSH\">\n </textarea>\n <div id=\"add-translation-flag-comments-welsh-char-limit-info\" class=\"govuk-hint govuk-character-count__message\" aria-live=\"polite\">\n {{updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO | rpxTranslate}}\n </div>\n </div>\n </div>\n </div>\n</ng-container>\n" }]
33903
33915
  }], null, { formGroup: [{
33904
33916
  type: Input
33905
33917
  }], caseFlagStateEmitter: [{