@hmcts/ccd-case-ui-toolkit 7.4.26-exui-5378-rc1 → 7.4.26-exui-5318
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.
|
@@ -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
|
|
33647
|
-
i0.ɵɵelementStart(0, "div",
|
|
33646
|
+
function UpdateFlagAddTranslationFormComponent_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
33647
|
+
i0.ɵɵelementStart(0, "div", 17)(1, "span", 18);
|
|
33648
33648
|
i0.ɵɵtext(2);
|
|
33649
33649
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
33650
33650
|
i0.ɵɵelementEnd();
|
|
@@ -33652,14 +33652,14 @@ function UpdateFlagAddTranslationFormComponent_div_10_div_5_Template(rf, ctx) {
|
|
|
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();
|
|
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
|
|
33662
|
-
i0.ɵɵelementStart(0, "div",
|
|
33661
|
+
function UpdateFlagAddTranslationFormComponent_div_24_Template(rf, ctx) { if (rf & 1) {
|
|
33662
|
+
i0.ɵɵelementStart(0, "div", 19)(1, "span", 18);
|
|
33663
33663
|
i0.ɵɵtext(2);
|
|
33664
33664
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
33665
33665
|
i0.ɵɵelementEnd();
|
|
@@ -33667,62 +33667,14 @@ function UpdateFlagAddTranslationFormComponent_div_10_div_15_Template(rf, ctx) {
|
|
|
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();
|
|
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
|
|
33677
|
-
i0.ɵɵelementStart(0, "div"
|
|
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);
|
|
33676
|
+
function UpdateFlagAddTranslationFormComponent_div_34_Template(rf, ctx) { if (rf & 1) {
|
|
33677
|
+
i0.ɵɵelementStart(0, "div", 20)(1, "span", 18);
|
|
33726
33678
|
i0.ɵɵtext(2);
|
|
33727
33679
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
33728
33680
|
i0.ɵɵelementEnd();
|
|
@@ -33736,8 +33688,8 @@ function UpdateFlagAddTranslationFormComponent_div_15_Template(rf, ctx) { if (rf
|
|
|
33736
33688
|
i0.ɵɵadvance(2);
|
|
33737
33689
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.flagCommentsCharLimitErrorMessage), " ");
|
|
33738
33690
|
} }
|
|
33739
|
-
function
|
|
33740
|
-
i0.ɵɵelementStart(0, "div",
|
|
33691
|
+
function UpdateFlagAddTranslationFormComponent_div_44_Template(rf, ctx) { if (rf & 1) {
|
|
33692
|
+
i0.ɵɵelementStart(0, "div", 21)(1, "span", 18);
|
|
33741
33693
|
i0.ɵɵtext(2);
|
|
33742
33694
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
33743
33695
|
i0.ɵɵelementEnd();
|
|
@@ -33757,7 +33709,6 @@ class UpdateFlagAddTranslationFormComponent extends AbstractJourneyComponent {
|
|
|
33757
33709
|
selectedFlag;
|
|
33758
33710
|
updateFlagAddTranslationTitle;
|
|
33759
33711
|
errorMessages = [];
|
|
33760
|
-
otherFlagType = false;
|
|
33761
33712
|
otherFlagDescriptionCharLimitErrorMessage = null;
|
|
33762
33713
|
otherFlagDescriptionWelshCharLimitErrorMessage = null;
|
|
33763
33714
|
flagCommentsCharLimitErrorMessage = null;
|
|
@@ -33765,12 +33716,10 @@ class UpdateFlagAddTranslationFormComponent extends AbstractJourneyComponent {
|
|
|
33765
33716
|
updateFlagAddTranslationStepEnum = UpdateFlagAddTranslationStep;
|
|
33766
33717
|
caseFlagFormFields = CaseFlagFormFields;
|
|
33767
33718
|
textMaxCharLimit = 200;
|
|
33768
|
-
otherFlagTypeCode = 'OT0001';
|
|
33769
33719
|
selectedManageCaseLocation = 'selectedManageCaseLocation';
|
|
33770
33720
|
ngOnInit() {
|
|
33771
33721
|
this.updateFlagAddTranslationTitle = CaseFlagWizardStepTitle.UPDATE_FLAG_ADD_TRANSLATION;
|
|
33772
33722
|
this.selectedFlag = this.formGroup.get(this.selectedManageCaseLocation).value;
|
|
33773
|
-
this.otherFlagType = this.selectedFlag?.flagDetailDisplay?.flagDetail?.flagCode === this.otherFlagTypeCode;
|
|
33774
33723
|
this.multipageComponentStateService.getJourneyCollectionMainObject().journeyEndPageNumber++;
|
|
33775
33724
|
const flagDetail = this.selectedFlag?.flagDetailDisplay?.flagDetail;
|
|
33776
33725
|
this.formGroup.addControl(CaseFlagFormFields.OTHER_FLAG_DESCRIPTION, new FormControl(flagDetail?.otherDescription));
|
|
@@ -33799,23 +33748,21 @@ class UpdateFlagAddTranslationFormComponent extends AbstractJourneyComponent {
|
|
|
33799
33748
|
this.flagCommentsCharLimitErrorMessage = null;
|
|
33800
33749
|
this.flagCommentsWelshCharLimitErrorMessage = null;
|
|
33801
33750
|
this.errorMessages = [];
|
|
33802
|
-
if (this.
|
|
33803
|
-
|
|
33804
|
-
|
|
33805
|
-
|
|
33806
|
-
|
|
33807
|
-
|
|
33808
|
-
|
|
33809
|
-
|
|
33810
|
-
|
|
33811
|
-
|
|
33812
|
-
|
|
33813
|
-
|
|
33814
|
-
|
|
33815
|
-
|
|
33816
|
-
|
|
33817
|
-
});
|
|
33818
|
-
}
|
|
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
|
+
});
|
|
33819
33766
|
}
|
|
33820
33767
|
if (this.formGroup.get(CaseFlagFormFields.COMMENTS)?.value?.length > this.textMaxCharLimit) {
|
|
33821
33768
|
this.flagCommentsCharLimitErrorMessage = UpdateFlagAddTranslationErrorMessage.COMMENTS_CHAR_LIMIT_EXCEEDED;
|
|
@@ -33841,7 +33788,7 @@ class UpdateFlagAddTranslationFormComponent extends AbstractJourneyComponent {
|
|
|
33841
33788
|
}
|
|
33842
33789
|
}
|
|
33843
33790
|
static ɵfac = /*@__PURE__*/ (() => { let ɵUpdateFlagAddTranslationFormComponent_BaseFactory; return function UpdateFlagAddTranslationFormComponent_Factory(__ngFactoryType__) { return (ɵUpdateFlagAddTranslationFormComponent_BaseFactory || (ɵUpdateFlagAddTranslationFormComponent_BaseFactory = i0.ɵɵgetInheritedFactory(UpdateFlagAddTranslationFormComponent)))(__ngFactoryType__ || UpdateFlagAddTranslationFormComponent); }; })();
|
|
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:
|
|
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) {
|
|
33845
33792
|
i0.ɵɵelementContainerStart(0, 0);
|
|
33846
33793
|
i0.ɵɵelementStart(1, "div", 1)(2, "div", 2)(3, "h1", 3)(4, "label", 4);
|
|
33847
33794
|
i0.ɵɵtext(5);
|
|
@@ -33851,67 +33798,108 @@ class UpdateFlagAddTranslationFormComponent extends AbstractJourneyComponent {
|
|
|
33851
33798
|
i0.ɵɵtext(8);
|
|
33852
33799
|
i0.ɵɵpipe(9, "rpxTranslate");
|
|
33853
33800
|
i0.ɵɵelementEnd();
|
|
33854
|
-
i0.ɵɵ
|
|
33855
|
-
i0.ɵɵ
|
|
33856
|
-
i0.ɵɵ
|
|
33857
|
-
i0.ɵɵpipe(14, "rpxTranslate");
|
|
33801
|
+
i0.ɵɵelementStart(10, "div", 6)(11, "label", 7);
|
|
33802
|
+
i0.ɵɵtext(12);
|
|
33803
|
+
i0.ɵɵpipe(13, "rpxTranslate");
|
|
33858
33804
|
i0.ɵɵelementEnd();
|
|
33859
|
-
i0.ɵɵtemplate(
|
|
33860
|
-
i0.ɵɵelementStart(
|
|
33861
|
-
i0.ɵɵtext(
|
|
33805
|
+
i0.ɵɵtemplate(14, UpdateFlagAddTranslationFormComponent_div_14_Template, 6, 6, "div", 8);
|
|
33806
|
+
i0.ɵɵelementStart(15, "textarea", 9);
|
|
33807
|
+
i0.ɵɵtext(16, " ");
|
|
33862
33808
|
i0.ɵɵelementEnd();
|
|
33863
|
-
i0.ɵɵelementStart(
|
|
33864
|
-
i0.ɵɵtext(
|
|
33865
|
-
i0.ɵɵpipe(
|
|
33809
|
+
i0.ɵɵelementStart(17, "div", 10);
|
|
33810
|
+
i0.ɵɵtext(18);
|
|
33811
|
+
i0.ɵɵpipe(19, "rpxTranslate");
|
|
33866
33812
|
i0.ɵɵelementEnd()();
|
|
33867
|
-
i0.ɵɵelementStart(
|
|
33868
|
-
i0.ɵɵtext(
|
|
33869
|
-
i0.ɵɵpipe(
|
|
33813
|
+
i0.ɵɵelementStart(20, "div", 6)(21, "label", 7);
|
|
33814
|
+
i0.ɵɵtext(22);
|
|
33815
|
+
i0.ɵɵpipe(23, "rpxTranslate");
|
|
33870
33816
|
i0.ɵɵelementEnd();
|
|
33871
|
-
i0.ɵɵtemplate(
|
|
33872
|
-
i0.ɵɵelementStart(
|
|
33873
|
-
i0.ɵɵtext(
|
|
33817
|
+
i0.ɵɵtemplate(24, UpdateFlagAddTranslationFormComponent_div_24_Template, 6, 6, "div", 11);
|
|
33818
|
+
i0.ɵɵelementStart(25, "textarea", 9);
|
|
33819
|
+
i0.ɵɵtext(26, " ");
|
|
33874
33820
|
i0.ɵɵelementEnd();
|
|
33875
|
-
i0.ɵɵelementStart(
|
|
33876
|
-
i0.ɵɵtext(
|
|
33877
|
-
i0.ɵɵpipe(
|
|
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");
|
|
33828
|
+
i0.ɵɵelementEnd();
|
|
33829
|
+
i0.ɵɵtemplate(34, UpdateFlagAddTranslationFormComponent_div_34_Template, 6, 6, "div", 13);
|
|
33830
|
+
i0.ɵɵelementStart(35, "textarea", 9);
|
|
33831
|
+
i0.ɵɵtext(36, " ");
|
|
33832
|
+
i0.ɵɵelementEnd();
|
|
33833
|
+
i0.ɵɵelementStart(37, "div", 14);
|
|
33834
|
+
i0.ɵɵtext(38);
|
|
33835
|
+
i0.ɵɵpipe(39, "rpxTranslate");
|
|
33836
|
+
i0.ɵɵelementEnd()();
|
|
33837
|
+
i0.ɵɵelementStart(40, "div", 6)(41, "label", 7);
|
|
33838
|
+
i0.ɵɵtext(42);
|
|
33839
|
+
i0.ɵɵpipe(43, "rpxTranslate");
|
|
33840
|
+
i0.ɵɵelementEnd();
|
|
33841
|
+
i0.ɵɵtemplate(44, UpdateFlagAddTranslationFormComponent_div_44_Template, 6, 6, "div", 15);
|
|
33842
|
+
i0.ɵɵelementStart(45, "textarea", 9);
|
|
33843
|
+
i0.ɵɵtext(46, " ");
|
|
33844
|
+
i0.ɵɵelementEnd();
|
|
33845
|
+
i0.ɵɵelementStart(47, "div", 16);
|
|
33846
|
+
i0.ɵɵtext(48);
|
|
33847
|
+
i0.ɵɵpipe(49, "rpxTranslate");
|
|
33878
33848
|
i0.ɵɵelementEnd()()()();
|
|
33879
33849
|
i0.ɵɵelementContainerEnd();
|
|
33880
33850
|
} if (rf & 2) {
|
|
33881
33851
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
33882
33852
|
i0.ɵɵadvance(2);
|
|
33883
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
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), " ");
|
|
33884
33856
|
i0.ɵɵadvance(3);
|
|
33885
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
33857
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 34, ctx.updateFlagAddTranslationStepEnum.HINT_TEXT), " ");
|
|
33886
33858
|
i0.ɵɵadvance(3);
|
|
33887
|
-
i0.ɵɵ
|
|
33859
|
+
i0.ɵɵproperty("for", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION);
|
|
33860
|
+
i0.ɵɵadvance();
|
|
33861
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(13, 36, "Other description"));
|
|
33888
33862
|
i0.ɵɵadvance(2);
|
|
33889
|
-
i0.ɵɵproperty("ngIf", ctx.
|
|
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)"));
|
|
33890
33872
|
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);
|
|
33891
33879
|
i0.ɵɵproperty("for", ctx.caseFlagFormFields.COMMENTS);
|
|
33892
33880
|
i0.ɵɵadvance();
|
|
33893
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
33881
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(33, 44, "Flag comments"));
|
|
33894
33882
|
i0.ɵɵadvance(2);
|
|
33895
33883
|
i0.ɵɵproperty("ngIf", ctx.flagCommentsCharLimitErrorMessage);
|
|
33896
33884
|
i0.ɵɵadvance();
|
|
33897
33885
|
i0.ɵɵproperty("id", ctx.caseFlagFormFields.COMMENTS)("name", ctx.caseFlagFormFields.COMMENTS)("formControlName", ctx.caseFlagFormFields.COMMENTS);
|
|
33898
33886
|
i0.ɵɵadvance(3);
|
|
33899
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
33887
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(39, 46, ctx.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
|
|
33900
33888
|
i0.ɵɵadvance(3);
|
|
33901
33889
|
i0.ɵɵproperty("for", ctx.caseFlagFormFields.COMMENTS_WELSH);
|
|
33902
33890
|
i0.ɵɵadvance();
|
|
33903
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
33891
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(43, 48, "Flag comments (Welsh)"));
|
|
33904
33892
|
i0.ɵɵadvance(2);
|
|
33905
33893
|
i0.ɵɵproperty("ngIf", ctx.flagCommentsWelshCharLimitErrorMessage);
|
|
33906
33894
|
i0.ɵɵadvance();
|
|
33907
33895
|
i0.ɵɵproperty("id", ctx.caseFlagFormFields.COMMENTS_WELSH)("name", ctx.caseFlagFormFields.COMMENTS_WELSH)("formControlName", ctx.caseFlagFormFields.COMMENTS_WELSH);
|
|
33908
33896
|
i0.ɵɵadvance(3);
|
|
33909
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
33897
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(49, 50, ctx.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
|
|
33910
33898
|
} }, dependencies: [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
33911
33899
|
}
|
|
33912
33900
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UpdateFlagAddTranslationFormComponent, [{
|
|
33913
33901
|
type: Component,
|
|
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
|
|
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>" }]
|
|
33915
33903
|
}], null, { formGroup: [{
|
|
33916
33904
|
type: Input
|
|
33917
33905
|
}], caseFlagStateEmitter: [{
|