@hmcts/ccd-case-ui-toolkit 7.4.15-EXUI-5378 → 7.4.15-accessibility-issue
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.
|
@@ -17781,6 +17781,30 @@ class WriteDynamicListFieldComponent extends AbstractFieldWriteComponent {
|
|
|
17781
17781
|
}], null, null); })();
|
|
17782
17782
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteDynamicListFieldComponent, { className: "WriteDynamicListFieldComponent", filePath: "lib/shared/components/palette/dynamic-list/write-dynamic-list-field.component.ts", lineNumber: 10 }); })();
|
|
17783
17783
|
|
|
17784
|
+
function MarkdownComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
17785
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
17786
|
+
i0.ɵɵelementContainerStart(0);
|
|
17787
|
+
i0.ɵɵelementStart(1, "markdown", 2);
|
|
17788
|
+
i0.ɵɵpipe(2, "ccdCaseReference");
|
|
17789
|
+
i0.ɵɵlistener("click", function MarkdownComponent_ng_container_0_Template_markdown_click_1_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.interceptClick($event)); });
|
|
17790
|
+
i0.ɵɵelementEnd();
|
|
17791
|
+
i0.ɵɵelementContainerEnd();
|
|
17792
|
+
} if (rf & 2) {
|
|
17793
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
17794
|
+
i0.ɵɵadvance();
|
|
17795
|
+
i0.ɵɵproperty("data", i0.ɵɵpipeBind1(2, 2, ctx_r1.content))("inline", true);
|
|
17796
|
+
} }
|
|
17797
|
+
function MarkdownComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
17798
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
17799
|
+
i0.ɵɵelementStart(0, "div")(1, "markdown", 3);
|
|
17800
|
+
i0.ɵɵpipe(2, "ccdCaseReference");
|
|
17801
|
+
i0.ɵɵlistener("click", function MarkdownComponent_ng_template_1_Template_markdown_click_1_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.interceptClick($event)); });
|
|
17802
|
+
i0.ɵɵelementEnd()();
|
|
17803
|
+
} if (rf & 2) {
|
|
17804
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
17805
|
+
i0.ɵɵadvance();
|
|
17806
|
+
i0.ɵɵproperty("data", i0.ɵɵpipeBind1(2, 1, ctx_r1.content));
|
|
17807
|
+
} }
|
|
17784
17808
|
class MarkdownComponent {
|
|
17785
17809
|
router;
|
|
17786
17810
|
renderer;
|
|
@@ -17788,6 +17812,7 @@ class MarkdownComponent {
|
|
|
17788
17812
|
cdr;
|
|
17789
17813
|
content;
|
|
17790
17814
|
renderUrlToTextFeature = true;
|
|
17815
|
+
inline = false;
|
|
17791
17816
|
constructor(router, renderer, ngZone, cdr) {
|
|
17792
17817
|
this.router = router;
|
|
17793
17818
|
this.renderer = renderer;
|
|
@@ -17854,23 +17879,22 @@ class MarkdownComponent {
|
|
|
17854
17879
|
return markdownLinkRegex.test(inputString);
|
|
17855
17880
|
}
|
|
17856
17881
|
static ɵfac = function MarkdownComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MarkdownComponent)(i0.ɵɵdirectiveInject(i1$2.Router), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
17857
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MarkdownComponent, selectors: [["ccd-markdown"]], inputs: { content: "content", renderUrlToTextFeature: "renderUrlToTextFeature" }, standalone: false, decls: 3, vars:
|
|
17858
|
-
i0.ɵɵ
|
|
17859
|
-
i0.ɵɵpipe(2, "ccdCaseReference");
|
|
17860
|
-
i0.ɵɵlistener("click", function MarkdownComponent_Template_markdown_click_1_listener($event) { return ctx.interceptClick($event); });
|
|
17861
|
-
i0.ɵɵelementEnd()();
|
|
17882
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MarkdownComponent, selectors: [["ccd-markdown"]], inputs: { content: "content", renderUrlToTextFeature: "renderUrlToTextFeature", inline: "inline" }, standalone: false, decls: 3, vars: 2, consts: [["blockMarkdown", ""], [4, "ngIf", "ngIfElse"], [1, "markdown", 3, "click", "data", "inline"], [1, "markdown", 3, "click", "data"]], template: function MarkdownComponent_Template(rf, ctx) { if (rf & 1) {
|
|
17883
|
+
i0.ɵɵtemplate(0, MarkdownComponent_ng_container_0_Template, 3, 4, "ng-container", 1)(1, MarkdownComponent_ng_template_1_Template, 3, 3, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
17862
17884
|
} if (rf & 2) {
|
|
17863
|
-
i0.ɵɵ
|
|
17864
|
-
i0.ɵɵproperty("
|
|
17865
|
-
} }, dependencies: [i1$4.MarkdownComponent, CaseReferencePipe], encapsulation: 2, changeDetection: 0 });
|
|
17885
|
+
const blockMarkdown_r4 = i0.ɵɵreference(2);
|
|
17886
|
+
i0.ɵɵproperty("ngIf", ctx.inline)("ngIfElse", blockMarkdown_r4);
|
|
17887
|
+
} }, dependencies: [i5.NgIf, i1$4.MarkdownComponent, CaseReferencePipe], encapsulation: 2, changeDetection: 0 });
|
|
17866
17888
|
}
|
|
17867
17889
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MarkdownComponent, [{
|
|
17868
17890
|
type: Component,
|
|
17869
|
-
args: [{ selector: 'ccd-markdown', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div><markdown class=\"markdown\" (click)=\"interceptClick($event)\" [data]=\"content | ccdCaseReference\"></markdown></div>\n" }]
|
|
17891
|
+
args: [{ selector: 'ccd-markdown', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<ng-container *ngIf=\"inline; else blockMarkdown\">\n <markdown class=\"markdown\" (click)=\"interceptClick($event)\" [data]=\"content | ccdCaseReference\" [inline]=\"true\"></markdown>\n</ng-container>\n<ng-template #blockMarkdown>\n <div><markdown class=\"markdown\" (click)=\"interceptClick($event)\" [data]=\"content | ccdCaseReference\"></markdown></div>\n</ng-template>\n" }]
|
|
17870
17892
|
}], () => [{ type: i1$2.Router }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }], { content: [{
|
|
17871
17893
|
type: Input
|
|
17872
17894
|
}], renderUrlToTextFeature: [{
|
|
17873
17895
|
type: Input
|
|
17896
|
+
}], inline: [{
|
|
17897
|
+
type: Input
|
|
17874
17898
|
}] }); })();
|
|
17875
17899
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MarkdownComponent, { className: "MarkdownComponent", filePath: "lib/shared/components/palette/markdown/markdown.component.ts", lineNumber: 12 }); })();
|
|
17876
17900
|
|
|
@@ -17971,10 +17995,10 @@ function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template(rf, c
|
|
|
17971
17995
|
i0.ɵɵelementStart(1, "div", 8)(2, "input", 9);
|
|
17972
17996
|
i0.ɵɵlistener("change", function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template_input_change_2_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.onCheckChange($event)); });
|
|
17973
17997
|
i0.ɵɵelementEnd();
|
|
17974
|
-
i0.ɵɵelementStart(3, "label", 10);
|
|
17975
|
-
i0.ɵɵelement(
|
|
17976
|
-
i0.ɵɵpipe(
|
|
17977
|
-
i0.ɵɵelementEnd()();
|
|
17998
|
+
i0.ɵɵelementStart(3, "label", 10)(4, "span", 5);
|
|
17999
|
+
i0.ɵɵelement(5, "ccd-markdown", 11);
|
|
18000
|
+
i0.ɵɵpipe(6, "rpxTranslate");
|
|
18001
|
+
i0.ɵɵelementEnd()()();
|
|
17978
18002
|
i0.ɵɵelementContainerEnd();
|
|
17979
18003
|
} if (rf & 2) {
|
|
17980
18004
|
const checkbox_r3 = ctx.$implicit;
|
|
@@ -17983,8 +18007,8 @@ function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template(rf, c
|
|
|
17983
18007
|
i0.ɵɵproperty("id", i0.ɵɵinterpolate(ctx_r0.createElementId(checkbox_r3.code)))("name", i0.ɵɵinterpolate(ctx_r0.id()))("value", checkbox_r3.code)("checked", ctx_r0.isSelected(checkbox_r3.code));
|
|
17984
18008
|
i0.ɵɵadvance();
|
|
17985
18009
|
i0.ɵɵproperty("for", i0.ɵɵinterpolate(ctx_r0.createElementId(checkbox_r3.code)));
|
|
17986
|
-
i0.ɵɵadvance();
|
|
17987
|
-
i0.ɵɵproperty("content", i0.ɵɵpipeBind1(
|
|
18010
|
+
i0.ɵɵadvance(2);
|
|
18011
|
+
i0.ɵɵproperty("content", i0.ɵɵpipeBind1(6, 11, checkbox_r3.label))("renderUrlToTextFeature", false)("inline", true);
|
|
17988
18012
|
} }
|
|
17989
18013
|
class WriteDynamicMultiSelectListFieldComponent extends AbstractFieldWriteComponent {
|
|
17990
18014
|
checkboxes;
|
|
@@ -18048,11 +18072,11 @@ class WriteDynamicMultiSelectListFieldComponent extends AbstractFieldWriteCompon
|
|
|
18048
18072
|
}
|
|
18049
18073
|
}
|
|
18050
18074
|
static ɵfac = /*@__PURE__*/ (() => { let ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory; return function WriteDynamicMultiSelectListFieldComponent_Factory(__ngFactoryType__) { return (ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory || (ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(WriteDynamicMultiSelectListFieldComponent)))(__ngFactoryType__ || WriteDynamicMultiSelectListFieldComponent); }; })();
|
|
18051
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteDynamicMultiSelectListFieldComponent, selectors: [["ccd-write-dynamic-multi-select-list-field"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 7, vars: 8, consts: [[1, "form-group", "bottom-30", 3, "ngClass", "id"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "form-label"], [1, "form-hint"], [1, "error-message"], [1, "multiple-choice"], ["type", "checkbox", 1, "form-control", 3, "change", "id", "name", "value", "checked"], [
|
|
18075
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteDynamicMultiSelectListFieldComponent, selectors: [["ccd-write-dynamic-multi-select-list-field"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 7, vars: 8, consts: [[1, "form-group", "bottom-30", 3, "ngClass", "id"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "form-label"], [1, "form-hint"], [1, "error-message"], [1, "multiple-choice"], ["type", "checkbox", 1, "form-control", 3, "change", "id", "name", "value", "checked"], [3, "for"], [3, "content", "renderUrlToTextFeature", "inline"]], template: function WriteDynamicMultiSelectListFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
18052
18076
|
i0.ɵɵelementStart(0, "div", 0)(1, "fieldset")(2, "legend");
|
|
18053
18077
|
i0.ɵɵtemplate(3, WriteDynamicMultiSelectListFieldComponent_span_3_Template, 3, 3, "span", 1)(4, WriteDynamicMultiSelectListFieldComponent_span_4_Template, 2, 1, "span", 2)(5, WriteDynamicMultiSelectListFieldComponent_span_5_Template, 3, 3, "span", 3);
|
|
18054
18078
|
i0.ɵɵelementEnd();
|
|
18055
|
-
i0.ɵɵtemplate(6, WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template,
|
|
18079
|
+
i0.ɵɵtemplate(6, WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template, 7, 13, "ng-container", 4);
|
|
18056
18080
|
i0.ɵɵelementEnd()();
|
|
18057
18081
|
} if (rf & 2) {
|
|
18058
18082
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$T, !ctx.checkboxes.valid && ctx.checkboxes.touched))("id", ctx.id());
|
|
@@ -18068,7 +18092,7 @@ class WriteDynamicMultiSelectListFieldComponent extends AbstractFieldWriteCompon
|
|
|
18068
18092
|
}
|
|
18069
18093
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteDynamicMultiSelectListFieldComponent, [{
|
|
18070
18094
|
type: Component,
|
|
18071
|
-
args: [{ selector: 'ccd-write-dynamic-multi-select-list-field', standalone: false, template: "<div class=\"form-group bottom-30\" [ngClass]=\"{'error': !checkboxes.valid && checkboxes.touched}\" [id]=\"id()\">\n\n <fieldset>\n\n <legend>\n <span *ngIf=\"caseField.label\" class=\"form-label\">{{caseField | ccdFieldLabel}}</span>\n <span *ngIf=\"caseField.hint_text\" class=\"form-hint\">{{caseField.hint_text}}</span>\n <span *ngIf=\"checkboxes.errors && checkboxes.touched\" class=\"error-message\">{{checkboxes.errors |\n ccdFirstError}}</span>\n </legend>\n\n <ng-container *ngFor=\"let checkbox of caseField.list_items\">\n\n <div class=\"multiple-choice\">\n <input class=\"form-control\" id=\"{{ createElementId(checkbox.code) }}\" name=\"{{ id() }}\" type=\"checkbox\"\n [value]=\"checkbox.code\" [checked]=\"isSelected(checkbox.code)\" (change)=\"onCheckChange($event)\">\n <label
|
|
18095
|
+
args: [{ selector: 'ccd-write-dynamic-multi-select-list-field', standalone: false, template: "<div class=\"form-group bottom-30\" [ngClass]=\"{'error': !checkboxes.valid && checkboxes.touched}\" [id]=\"id()\">\n\n <fieldset>\n\n <legend>\n <span *ngIf=\"caseField.label\" class=\"form-label\">{{caseField | ccdFieldLabel}}</span>\n <span *ngIf=\"caseField.hint_text\" class=\"form-hint\">{{caseField.hint_text}}</span>\n <span *ngIf=\"checkboxes.errors && checkboxes.touched\" class=\"error-message\">{{checkboxes.errors |\n ccdFirstError}}</span>\n </legend>\n\n <ng-container *ngFor=\"let checkbox of caseField.list_items\">\n\n <div class=\"multiple-choice\">\n <input class=\"form-control\" id=\"{{ createElementId(checkbox.code) }}\" name=\"{{ id() }}\" type=\"checkbox\"\n [value]=\"checkbox.code\" [checked]=\"isSelected(checkbox.code)\" (change)=\"onCheckChange($event)\">\n <label for=\"{{ createElementId(checkbox.code) }}\">\n <span class=\"form-label\">\n <ccd-markdown [content]=\"checkbox.label | rpxTranslate\" [renderUrlToTextFeature]=\"false\" [inline]=\"true\"></ccd-markdown>\n </span>\n </label>\n </div>\n\n </ng-container>\n\n </fieldset>\n\n</div>\n", styles: ["ccd-markdown{display:inline-block}\n"] }]
|
|
18072
18096
|
}], null, null); })();
|
|
18073
18097
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteDynamicMultiSelectListFieldComponent, { className: "WriteDynamicMultiSelectListFieldComponent", filePath: "lib/shared/components/palette/dynamic-multi-select-list/write-dynamic-multi-select-list-field.component.ts", lineNumber: 11 }); })();
|
|
18074
18098
|
|
|
@@ -33566,8 +33590,8 @@ class UpdateFlagComponent extends AbstractJourneyComponent {
|
|
|
33566
33590
|
(() => { (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 }); })();
|
|
33567
33591
|
|
|
33568
33592
|
const _c0$n = a0 => ({ "form-group-error": a0 });
|
|
33569
|
-
function
|
|
33570
|
-
i0.ɵɵelementStart(0, "div",
|
|
33593
|
+
function UpdateFlagAddTranslationFormComponent_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
33594
|
+
i0.ɵɵelementStart(0, "div", 17)(1, "span", 18);
|
|
33571
33595
|
i0.ɵɵtext(2);
|
|
33572
33596
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
33573
33597
|
i0.ɵɵelementEnd();
|
|
@@ -33575,14 +33599,14 @@ function UpdateFlagAddTranslationFormComponent_div_10_div_5_Template(rf, ctx) {
|
|
|
33575
33599
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
33576
33600
|
i0.ɵɵelementEnd();
|
|
33577
33601
|
} if (rf & 2) {
|
|
33578
|
-
const ctx_r0 = i0.ɵɵnextContext(
|
|
33602
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
33579
33603
|
i0.ɵɵadvance(2);
|
|
33580
33604
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Error:"));
|
|
33581
33605
|
i0.ɵɵadvance(2);
|
|
33582
33606
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.otherFlagDescriptionCharLimitErrorMessage), " ");
|
|
33583
33607
|
} }
|
|
33584
|
-
function
|
|
33585
|
-
i0.ɵɵelementStart(0, "div",
|
|
33608
|
+
function UpdateFlagAddTranslationFormComponent_div_24_Template(rf, ctx) { if (rf & 1) {
|
|
33609
|
+
i0.ɵɵelementStart(0, "div", 19)(1, "span", 18);
|
|
33586
33610
|
i0.ɵɵtext(2);
|
|
33587
33611
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
33588
33612
|
i0.ɵɵelementEnd();
|
|
@@ -33590,62 +33614,14 @@ function UpdateFlagAddTranslationFormComponent_div_10_div_15_Template(rf, ctx) {
|
|
|
33590
33614
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
33591
33615
|
i0.ɵɵelementEnd();
|
|
33592
33616
|
} if (rf & 2) {
|
|
33593
|
-
const ctx_r0 = i0.ɵɵnextContext(
|
|
33617
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
33594
33618
|
i0.ɵɵadvance(2);
|
|
33595
33619
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "Error:"));
|
|
33596
33620
|
i0.ɵɵadvance(2);
|
|
33597
33621
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.otherFlagDescriptionWelshCharLimitErrorMessage), " ");
|
|
33598
33622
|
} }
|
|
33599
|
-
function
|
|
33600
|
-
i0.ɵɵelementStart(0, "div"
|
|
33601
|
-
i0.ɵɵtext(3);
|
|
33602
|
-
i0.ɵɵpipe(4, "rpxTranslate");
|
|
33603
|
-
i0.ɵɵelementEnd();
|
|
33604
|
-
i0.ɵɵtemplate(5, UpdateFlagAddTranslationFormComponent_div_10_div_5_Template, 6, 6, "div", 14);
|
|
33605
|
-
i0.ɵɵelementStart(6, "textarea", 10);
|
|
33606
|
-
i0.ɵɵtext(7, " ");
|
|
33607
|
-
i0.ɵɵelementEnd();
|
|
33608
|
-
i0.ɵɵelementStart(8, "div", 15);
|
|
33609
|
-
i0.ɵɵtext(9);
|
|
33610
|
-
i0.ɵɵpipe(10, "rpxTranslate");
|
|
33611
|
-
i0.ɵɵelementEnd()();
|
|
33612
|
-
i0.ɵɵelementStart(11, "div", 7)(12, "label", 8);
|
|
33613
|
-
i0.ɵɵtext(13);
|
|
33614
|
-
i0.ɵɵpipe(14, "rpxTranslate");
|
|
33615
|
-
i0.ɵɵelementEnd();
|
|
33616
|
-
i0.ɵɵtemplate(15, UpdateFlagAddTranslationFormComponent_div_10_div_15_Template, 6, 6, "div", 16);
|
|
33617
|
-
i0.ɵɵelementStart(16, "textarea", 10);
|
|
33618
|
-
i0.ɵɵtext(17, " ");
|
|
33619
|
-
i0.ɵɵelementEnd();
|
|
33620
|
-
i0.ɵɵelementStart(18, "div", 17);
|
|
33621
|
-
i0.ɵɵtext(19);
|
|
33622
|
-
i0.ɵɵpipe(20, "rpxTranslate");
|
|
33623
|
-
i0.ɵɵelementEnd()()();
|
|
33624
|
-
} if (rf & 2) {
|
|
33625
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
33626
|
-
i0.ɵɵadvance(2);
|
|
33627
|
-
i0.ɵɵproperty("for", ctx_r0.caseFlagFormFields.OTHER_FLAG_DESCRIPTION);
|
|
33628
|
-
i0.ɵɵadvance();
|
|
33629
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 14, "Other description"));
|
|
33630
|
-
i0.ɵɵadvance(2);
|
|
33631
|
-
i0.ɵɵproperty("ngIf", ctx_r0.otherFlagDescriptionCharLimitErrorMessage);
|
|
33632
|
-
i0.ɵɵadvance();
|
|
33633
|
-
i0.ɵɵproperty("id", ctx_r0.caseFlagFormFields.OTHER_FLAG_DESCRIPTION)("name", ctx_r0.caseFlagFormFields.OTHER_FLAG_DESCRIPTION)("formControlName", ctx_r0.caseFlagFormFields.OTHER_FLAG_DESCRIPTION);
|
|
33634
|
-
i0.ɵɵadvance(3);
|
|
33635
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10, 16, ctx_r0.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
|
|
33636
|
-
i0.ɵɵadvance(3);
|
|
33637
|
-
i0.ɵɵproperty("for", ctx_r0.caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH);
|
|
33638
|
-
i0.ɵɵadvance();
|
|
33639
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(14, 18, "Other description (Welsh)"));
|
|
33640
|
-
i0.ɵɵadvance(2);
|
|
33641
|
-
i0.ɵɵproperty("ngIf", ctx_r0.otherFlagDescriptionWelshCharLimitErrorMessage);
|
|
33642
|
-
i0.ɵɵadvance();
|
|
33643
|
-
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);
|
|
33644
|
-
i0.ɵɵadvance(3);
|
|
33645
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(20, 20, ctx_r0.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
|
|
33646
|
-
} }
|
|
33647
|
-
function UpdateFlagAddTranslationFormComponent_div_15_Template(rf, ctx) { if (rf & 1) {
|
|
33648
|
-
i0.ɵɵelementStart(0, "div", 21)(1, "span", 19);
|
|
33623
|
+
function UpdateFlagAddTranslationFormComponent_div_34_Template(rf, ctx) { if (rf & 1) {
|
|
33624
|
+
i0.ɵɵelementStart(0, "div", 20)(1, "span", 18);
|
|
33649
33625
|
i0.ɵɵtext(2);
|
|
33650
33626
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
33651
33627
|
i0.ɵɵelementEnd();
|
|
@@ -33659,8 +33635,8 @@ function UpdateFlagAddTranslationFormComponent_div_15_Template(rf, ctx) { if (rf
|
|
|
33659
33635
|
i0.ɵɵadvance(2);
|
|
33660
33636
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r0.flagCommentsCharLimitErrorMessage), " ");
|
|
33661
33637
|
} }
|
|
33662
|
-
function
|
|
33663
|
-
i0.ɵɵelementStart(0, "div",
|
|
33638
|
+
function UpdateFlagAddTranslationFormComponent_div_44_Template(rf, ctx) { if (rf & 1) {
|
|
33639
|
+
i0.ɵɵelementStart(0, "div", 21)(1, "span", 18);
|
|
33664
33640
|
i0.ɵɵtext(2);
|
|
33665
33641
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
33666
33642
|
i0.ɵɵelementEnd();
|
|
@@ -33680,7 +33656,6 @@ class UpdateFlagAddTranslationFormComponent extends AbstractJourneyComponent {
|
|
|
33680
33656
|
selectedFlag;
|
|
33681
33657
|
updateFlagAddTranslationTitle;
|
|
33682
33658
|
errorMessages = [];
|
|
33683
|
-
otherFlagType = false;
|
|
33684
33659
|
otherFlagDescriptionCharLimitErrorMessage = null;
|
|
33685
33660
|
otherFlagDescriptionWelshCharLimitErrorMessage = null;
|
|
33686
33661
|
flagCommentsCharLimitErrorMessage = null;
|
|
@@ -33688,12 +33663,10 @@ class UpdateFlagAddTranslationFormComponent extends AbstractJourneyComponent {
|
|
|
33688
33663
|
updateFlagAddTranslationStepEnum = UpdateFlagAddTranslationStep;
|
|
33689
33664
|
caseFlagFormFields = CaseFlagFormFields;
|
|
33690
33665
|
textMaxCharLimit = 200;
|
|
33691
|
-
otherFlagTypeCode = 'OT0001';
|
|
33692
33666
|
selectedManageCaseLocation = 'selectedManageCaseLocation';
|
|
33693
33667
|
ngOnInit() {
|
|
33694
33668
|
this.updateFlagAddTranslationTitle = CaseFlagWizardStepTitle.UPDATE_FLAG_ADD_TRANSLATION;
|
|
33695
33669
|
this.selectedFlag = this.formGroup.get(this.selectedManageCaseLocation).value;
|
|
33696
|
-
this.otherFlagType = this.selectedFlag?.flagDetailDisplay?.flagDetail?.flagCode === this.otherFlagTypeCode;
|
|
33697
33670
|
this.multipageComponentStateService.getJourneyCollectionMainObject().journeyEndPageNumber++;
|
|
33698
33671
|
const flagDetail = this.selectedFlag?.flagDetailDisplay?.flagDetail;
|
|
33699
33672
|
this.formGroup.addControl(CaseFlagFormFields.OTHER_FLAG_DESCRIPTION, new FormControl(flagDetail?.otherDescription));
|
|
@@ -33722,23 +33695,21 @@ class UpdateFlagAddTranslationFormComponent extends AbstractJourneyComponent {
|
|
|
33722
33695
|
this.flagCommentsCharLimitErrorMessage = null;
|
|
33723
33696
|
this.flagCommentsWelshCharLimitErrorMessage = null;
|
|
33724
33697
|
this.errorMessages = [];
|
|
33725
|
-
if (this.
|
|
33726
|
-
|
|
33727
|
-
|
|
33728
|
-
|
|
33729
|
-
|
|
33730
|
-
|
|
33731
|
-
|
|
33732
|
-
|
|
33733
|
-
|
|
33734
|
-
|
|
33735
|
-
|
|
33736
|
-
|
|
33737
|
-
|
|
33738
|
-
|
|
33739
|
-
|
|
33740
|
-
});
|
|
33741
|
-
}
|
|
33698
|
+
if (this.formGroup.get(CaseFlagFormFields.OTHER_FLAG_DESCRIPTION)?.value?.length > this.textMaxCharLimit) {
|
|
33699
|
+
this.otherFlagDescriptionCharLimitErrorMessage = UpdateFlagAddTranslationErrorMessage.DESCRIPTION_CHAR_LIMIT_EXCEEDED;
|
|
33700
|
+
this.errorMessages.push({
|
|
33701
|
+
title: '',
|
|
33702
|
+
description: UpdateFlagAddTranslationErrorMessage.DESCRIPTION_CHAR_LIMIT_EXCEEDED,
|
|
33703
|
+
fieldId: CaseFlagFormFields.OTHER_FLAG_DESCRIPTION
|
|
33704
|
+
});
|
|
33705
|
+
}
|
|
33706
|
+
if (this.formGroup.get(CaseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH)?.value?.length > this.textMaxCharLimit) {
|
|
33707
|
+
this.otherFlagDescriptionWelshCharLimitErrorMessage = UpdateFlagAddTranslationErrorMessage.DESCRIPTION_CHAR_LIMIT_EXCEEDED;
|
|
33708
|
+
this.errorMessages.push({
|
|
33709
|
+
title: '',
|
|
33710
|
+
description: UpdateFlagAddTranslationErrorMessage.DESCRIPTION_CHAR_LIMIT_EXCEEDED,
|
|
33711
|
+
fieldId: CaseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH
|
|
33712
|
+
});
|
|
33742
33713
|
}
|
|
33743
33714
|
if (this.formGroup.get(CaseFlagFormFields.COMMENTS)?.value?.length > this.textMaxCharLimit) {
|
|
33744
33715
|
this.flagCommentsCharLimitErrorMessage = UpdateFlagAddTranslationErrorMessage.COMMENTS_CHAR_LIMIT_EXCEEDED;
|
|
@@ -33764,7 +33735,7 @@ class UpdateFlagAddTranslationFormComponent extends AbstractJourneyComponent {
|
|
|
33764
33735
|
}
|
|
33765
33736
|
}
|
|
33766
33737
|
static ɵfac = /*@__PURE__*/ (() => { let ɵUpdateFlagAddTranslationFormComponent_BaseFactory; return function UpdateFlagAddTranslationFormComponent_Factory(__ngFactoryType__) { return (ɵUpdateFlagAddTranslationFormComponent_BaseFactory || (ɵUpdateFlagAddTranslationFormComponent_BaseFactory = i0.ɵɵgetInheritedFactory(UpdateFlagAddTranslationFormComponent)))(__ngFactoryType__ || UpdateFlagAddTranslationFormComponent); }; })();
|
|
33767
|
-
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:
|
|
33738
|
+
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) {
|
|
33768
33739
|
i0.ɵɵelementContainerStart(0, 0);
|
|
33769
33740
|
i0.ɵɵelementStart(1, "div", 1)(2, "div", 2)(3, "h1", 3)(4, "label", 4);
|
|
33770
33741
|
i0.ɵɵtext(5);
|
|
@@ -33774,67 +33745,108 @@ class UpdateFlagAddTranslationFormComponent extends AbstractJourneyComponent {
|
|
|
33774
33745
|
i0.ɵɵtext(8);
|
|
33775
33746
|
i0.ɵɵpipe(9, "rpxTranslate");
|
|
33776
33747
|
i0.ɵɵelementEnd();
|
|
33777
|
-
i0.ɵɵ
|
|
33778
|
-
i0.ɵɵ
|
|
33779
|
-
i0.ɵɵ
|
|
33780
|
-
i0.ɵɵpipe(14, "rpxTranslate");
|
|
33748
|
+
i0.ɵɵelementStart(10, "div", 6)(11, "label", 7);
|
|
33749
|
+
i0.ɵɵtext(12);
|
|
33750
|
+
i0.ɵɵpipe(13, "rpxTranslate");
|
|
33781
33751
|
i0.ɵɵelementEnd();
|
|
33782
|
-
i0.ɵɵtemplate(
|
|
33783
|
-
i0.ɵɵelementStart(
|
|
33784
|
-
i0.ɵɵtext(
|
|
33752
|
+
i0.ɵɵtemplate(14, UpdateFlagAddTranslationFormComponent_div_14_Template, 6, 6, "div", 8);
|
|
33753
|
+
i0.ɵɵelementStart(15, "textarea", 9);
|
|
33754
|
+
i0.ɵɵtext(16, " ");
|
|
33785
33755
|
i0.ɵɵelementEnd();
|
|
33786
|
-
i0.ɵɵelementStart(
|
|
33787
|
-
i0.ɵɵtext(
|
|
33788
|
-
i0.ɵɵpipe(
|
|
33756
|
+
i0.ɵɵelementStart(17, "div", 10);
|
|
33757
|
+
i0.ɵɵtext(18);
|
|
33758
|
+
i0.ɵɵpipe(19, "rpxTranslate");
|
|
33789
33759
|
i0.ɵɵelementEnd()();
|
|
33790
|
-
i0.ɵɵelementStart(
|
|
33791
|
-
i0.ɵɵtext(
|
|
33792
|
-
i0.ɵɵpipe(
|
|
33760
|
+
i0.ɵɵelementStart(20, "div", 6)(21, "label", 7);
|
|
33761
|
+
i0.ɵɵtext(22);
|
|
33762
|
+
i0.ɵɵpipe(23, "rpxTranslate");
|
|
33793
33763
|
i0.ɵɵelementEnd();
|
|
33794
|
-
i0.ɵɵtemplate(
|
|
33795
|
-
i0.ɵɵelementStart(
|
|
33796
|
-
i0.ɵɵtext(
|
|
33764
|
+
i0.ɵɵtemplate(24, UpdateFlagAddTranslationFormComponent_div_24_Template, 6, 6, "div", 11);
|
|
33765
|
+
i0.ɵɵelementStart(25, "textarea", 9);
|
|
33766
|
+
i0.ɵɵtext(26, " ");
|
|
33797
33767
|
i0.ɵɵelementEnd();
|
|
33798
|
-
i0.ɵɵelementStart(
|
|
33799
|
-
i0.ɵɵtext(
|
|
33800
|
-
i0.ɵɵpipe(
|
|
33768
|
+
i0.ɵɵelementStart(27, "div", 12);
|
|
33769
|
+
i0.ɵɵtext(28);
|
|
33770
|
+
i0.ɵɵpipe(29, "rpxTranslate");
|
|
33771
|
+
i0.ɵɵelementEnd()();
|
|
33772
|
+
i0.ɵɵelementStart(30, "div", 6)(31, "label", 7);
|
|
33773
|
+
i0.ɵɵtext(32);
|
|
33774
|
+
i0.ɵɵpipe(33, "rpxTranslate");
|
|
33775
|
+
i0.ɵɵelementEnd();
|
|
33776
|
+
i0.ɵɵtemplate(34, UpdateFlagAddTranslationFormComponent_div_34_Template, 6, 6, "div", 13);
|
|
33777
|
+
i0.ɵɵelementStart(35, "textarea", 9);
|
|
33778
|
+
i0.ɵɵtext(36, " ");
|
|
33779
|
+
i0.ɵɵelementEnd();
|
|
33780
|
+
i0.ɵɵelementStart(37, "div", 14);
|
|
33781
|
+
i0.ɵɵtext(38);
|
|
33782
|
+
i0.ɵɵpipe(39, "rpxTranslate");
|
|
33783
|
+
i0.ɵɵelementEnd()();
|
|
33784
|
+
i0.ɵɵelementStart(40, "div", 6)(41, "label", 7);
|
|
33785
|
+
i0.ɵɵtext(42);
|
|
33786
|
+
i0.ɵɵpipe(43, "rpxTranslate");
|
|
33787
|
+
i0.ɵɵelementEnd();
|
|
33788
|
+
i0.ɵɵtemplate(44, UpdateFlagAddTranslationFormComponent_div_44_Template, 6, 6, "div", 15);
|
|
33789
|
+
i0.ɵɵelementStart(45, "textarea", 9);
|
|
33790
|
+
i0.ɵɵtext(46, " ");
|
|
33791
|
+
i0.ɵɵelementEnd();
|
|
33792
|
+
i0.ɵɵelementStart(47, "div", 16);
|
|
33793
|
+
i0.ɵɵtext(48);
|
|
33794
|
+
i0.ɵɵpipe(49, "rpxTranslate");
|
|
33801
33795
|
i0.ɵɵelementEnd()()()();
|
|
33802
33796
|
i0.ɵɵelementContainerEnd();
|
|
33803
33797
|
} if (rf & 2) {
|
|
33804
33798
|
i0.ɵɵproperty("formGroup", ctx.formGroup);
|
|
33805
33799
|
i0.ɵɵadvance(2);
|
|
33806
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
33800
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(52, _c0$n, ctx.errorMessages.length > 0));
|
|
33807
33801
|
i0.ɵɵadvance(3);
|
|
33808
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6,
|
|
33802
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 32, ctx.updateFlagAddTranslationTitle), " ");
|
|
33809
33803
|
i0.ɵɵadvance(3);
|
|
33810
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9,
|
|
33804
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 34, ctx.updateFlagAddTranslationStepEnum.HINT_TEXT), " ");
|
|
33805
|
+
i0.ɵɵadvance(3);
|
|
33806
|
+
i0.ɵɵproperty("for", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION);
|
|
33807
|
+
i0.ɵɵadvance();
|
|
33808
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(13, 36, "Other description"));
|
|
33811
33809
|
i0.ɵɵadvance(2);
|
|
33812
|
-
i0.ɵɵproperty("ngIf", ctx.
|
|
33810
|
+
i0.ɵɵproperty("ngIf", ctx.otherFlagDescriptionCharLimitErrorMessage);
|
|
33811
|
+
i0.ɵɵadvance();
|
|
33812
|
+
i0.ɵɵproperty("id", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION)("name", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION)("formControlName", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION);
|
|
33813
|
+
i0.ɵɵadvance(3);
|
|
33814
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(19, 38, ctx.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
|
|
33815
|
+
i0.ɵɵadvance(3);
|
|
33816
|
+
i0.ɵɵproperty("for", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH);
|
|
33817
|
+
i0.ɵɵadvance();
|
|
33818
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(23, 40, "Other description (Welsh)"));
|
|
33813
33819
|
i0.ɵɵadvance(2);
|
|
33820
|
+
i0.ɵɵproperty("ngIf", ctx.otherFlagDescriptionWelshCharLimitErrorMessage);
|
|
33821
|
+
i0.ɵɵadvance();
|
|
33822
|
+
i0.ɵɵproperty("id", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH)("name", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH)("formControlName", ctx.caseFlagFormFields.OTHER_FLAG_DESCRIPTION_WELSH);
|
|
33823
|
+
i0.ɵɵadvance(3);
|
|
33824
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(29, 42, ctx.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
|
|
33825
|
+
i0.ɵɵadvance(3);
|
|
33814
33826
|
i0.ɵɵproperty("for", ctx.caseFlagFormFields.COMMENTS);
|
|
33815
33827
|
i0.ɵɵadvance();
|
|
33816
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
33828
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(33, 44, "Flag comments"));
|
|
33817
33829
|
i0.ɵɵadvance(2);
|
|
33818
33830
|
i0.ɵɵproperty("ngIf", ctx.flagCommentsCharLimitErrorMessage);
|
|
33819
33831
|
i0.ɵɵadvance();
|
|
33820
33832
|
i0.ɵɵproperty("id", ctx.caseFlagFormFields.COMMENTS)("name", ctx.caseFlagFormFields.COMMENTS)("formControlName", ctx.caseFlagFormFields.COMMENTS);
|
|
33821
33833
|
i0.ɵɵadvance(3);
|
|
33822
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
33834
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(39, 46, ctx.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
|
|
33823
33835
|
i0.ɵɵadvance(3);
|
|
33824
33836
|
i0.ɵɵproperty("for", ctx.caseFlagFormFields.COMMENTS_WELSH);
|
|
33825
33837
|
i0.ɵɵadvance();
|
|
33826
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
33838
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(43, 48, "Flag comments (Welsh)"));
|
|
33827
33839
|
i0.ɵɵadvance(2);
|
|
33828
33840
|
i0.ɵɵproperty("ngIf", ctx.flagCommentsWelshCharLimitErrorMessage);
|
|
33829
33841
|
i0.ɵɵadvance();
|
|
33830
33842
|
i0.ɵɵproperty("id", ctx.caseFlagFormFields.COMMENTS_WELSH)("name", ctx.caseFlagFormFields.COMMENTS_WELSH)("formControlName", ctx.caseFlagFormFields.COMMENTS_WELSH);
|
|
33831
33843
|
i0.ɵɵadvance(3);
|
|
33832
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
33844
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(49, 50, ctx.updateFlagAddTranslationStepEnum.CHARACTER_LIMIT_INFO), " ");
|
|
33833
33845
|
} }, dependencies: [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.NgControlStatusGroup, i4.FormGroupDirective, i4.FormControlName, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
33834
33846
|
}
|
|
33835
33847
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UpdateFlagAddTranslationFormComponent, [{
|
|
33836
33848
|
type: Component,
|
|
33837
|
-
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
|
|
33849
|
+
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>" }]
|
|
33838
33850
|
}], null, { formGroup: [{
|
|
33839
33851
|
type: Input
|
|
33840
33852
|
}], caseFlagStateEmitter: [{
|
|
@@ -36316,7 +36328,7 @@ class ReadOrganisationFieldRawComponent extends AbstractFieldReadComponent {
|
|
|
36316
36328
|
}] }); })();
|
|
36317
36329
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadOrganisationFieldRawComponent, { className: "ReadOrganisationFieldRawComponent", filePath: "lib/shared/components/palette/organisation/read-organisation-field-raw.component.ts", lineNumber: 16 }); })();
|
|
36318
36330
|
|
|
36319
|
-
function
|
|
36331
|
+
function ReadOrganisationFieldTableComponent_table_13_Template(rf, ctx) { if (rf & 1) {
|
|
36320
36332
|
i0.ɵɵelementStart(0, "table", 1)(1, "tr", 6);
|
|
36321
36333
|
i0.ɵɵelement(2, "th", 7);
|
|
36322
36334
|
i0.ɵɵelementStart(3, "td", 8)(4, "span", 4);
|
|
@@ -36364,29 +36376,31 @@ class ReadOrganisationFieldTableComponent extends AbstractFieldReadComponent {
|
|
|
36364
36376
|
}
|
|
36365
36377
|
}
|
|
36366
36378
|
static ɵfac = function ReadOrganisationFieldTableComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ReadOrganisationFieldTableComponent)(i0.ɵɵdirectiveInject(OrganisationService), i0.ɵɵdirectiveInject(OrganisationConverter)); };
|
|
36367
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadOrganisationFieldTableComponent, selectors: [["ccd-read-organisation-field-table"]], inputs: { caseFields: "caseFields" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls:
|
|
36379
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadOrganisationFieldTableComponent, selectors: [["ccd-read-organisation-field-table"]], inputs: { caseFields: "caseFields" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 15, vars: 9, consts: [[1, "complex-panel"], [1, "complex-field-table"], [1, "complex-field-title"], [1, "complex-panel-title"], [1, "text-16"], ["class", "complex-field-table", 4, "ngIf"], [1, "complex-panel-compound-field"], [2, "display", "none"], [1, "label-width-medium"], [3, "content"]], template: function ReadOrganisationFieldTableComponent_Template(rf, ctx) { if (rf & 1) {
|
|
36368
36380
|
i0.ɵɵelementStart(0, "div", 0)(1, "table", 1);
|
|
36369
36381
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
36370
36382
|
i0.ɵɵelementStart(3, "tbody")(4, "tr")(5, "th", 2)(6, "dl", 3)(7, "dt")(8, "span", 4);
|
|
36371
36383
|
i0.ɵɵtext(9);
|
|
36372
36384
|
i0.ɵɵpipe(10, "rpxTranslate");
|
|
36373
|
-
i0.ɵɵelementEnd()()
|
|
36374
|
-
i0.ɵɵ
|
|
36375
|
-
i0.ɵɵ
|
|
36376
|
-
i0.ɵɵ
|
|
36385
|
+
i0.ɵɵelementEnd()();
|
|
36386
|
+
i0.ɵɵelement(11, "dd");
|
|
36387
|
+
i0.ɵɵelementEnd()();
|
|
36388
|
+
i0.ɵɵelementStart(12, "td");
|
|
36389
|
+
i0.ɵɵtemplate(13, ReadOrganisationFieldTableComponent_table_13_Template, 16, 5, "table", 5);
|
|
36390
|
+
i0.ɵɵpipe(14, "async");
|
|
36377
36391
|
i0.ɵɵelementEnd()()()()();
|
|
36378
36392
|
} if (rf & 2) {
|
|
36379
36393
|
i0.ɵɵadvance();
|
|
36380
36394
|
i0.ɵɵattribute("aria-describedby", i0.ɵɵpipeBind1(2, 3, "complex organisation field table"));
|
|
36381
36395
|
i0.ɵɵadvance(8);
|
|
36382
36396
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10, 5, ctx.caseField.label));
|
|
36383
|
-
i0.ɵɵadvance(
|
|
36384
|
-
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(
|
|
36397
|
+
i0.ɵɵadvance(4);
|
|
36398
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(14, 7, ctx.selectedOrg$));
|
|
36385
36399
|
} }, dependencies: [i5.NgIf, MarkdownComponent, i5.AsyncPipe, i1.RpxTranslatePipe], styles: [".govuk-js-link[_ngcontent-%COMP%]{appearance:none;background:none;border:none;color:#005ea5;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-decoration:underline}.govuk-js-link[_ngcontent-%COMP%]:hover{color:#2b8cc4;text-decoration-thickness:max(3px,.1875rem,.12em)}.govuk-js-link[_ngcontent-%COMP%]:focus{background-color:#ffbf47;color:#000;outline:3px solid transparent;text-decoration:none;box-shadow:0 -2px #ffbf47,0 4px #000}.govuk-js-link[_ngcontent-%COMP%]:visited{color:#4c2c92}.hmcts-banner[_ngcontent-%COMP%]{border:0 solid;margin-bottom:10px;color:#000}.hmcts-banner[_ngcontent-%COMP%] .warning-message[_ngcontent-%COMP%]{font-weight:700}.govuk-hint[_ngcontent-%COMP%]{font-size:1.1rem}.name-header[_ngcontent-%COMP%]{font-weight:700;margin-top:10px;font-size:18px}.td-address[_ngcontent-%COMP%]{width:90%;padding-top:2px}.td-select[_ngcontent-%COMP%]{width:10%}.warning-panel[_ngcontent-%COMP%]{background-color:#e7ebef;height:40px;margin-bottom:0;align-items:center;display:flex}.warning-panel[_ngcontent-%COMP%] .warning-message[_ngcontent-%COMP%]{padding-left:15px}.complex-field-table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > th[_ngcontent-%COMP%]{border:none}.complex-field-table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]:last-child > th[_ngcontent-%COMP%], .complex-field-table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]:last-child > td[_ngcontent-%COMP%]{border-bottom:none}.complex-field-title[_ngcontent-%COMP%]{width:300px}.label-width-small[_ngcontent-%COMP%]{width:100px}.label-width-medium[_ngcontent-%COMP%]{width:150px}.scroll-container[_ngcontent-%COMP%]{height:600px;overflow-y:scroll}.no-result-message[_ngcontent-%COMP%]{margin-top:15px}"] });
|
|
36386
36400
|
}
|
|
36387
36401
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadOrganisationFieldTableComponent, [{
|
|
36388
36402
|
type: Component,
|
|
36389
|
-
args: [{ selector: 'ccd-read-organisation-field-table', standalone: false, template: "<div class=\"complex-panel\">\n <table class=\"complex-field-table\" [attr.aria-describedby]=\"'complex organisation field table' | rpxTranslate\">\n <tbody>\n <tr>\n <th class=\"complex-field-title\">\n <dl class=\"complex-panel-title\">\n <dt><span class=\"text-16\">{{caseField.label | rpxTranslate}}</span></dt>\n </dl>\n </th>\n <td>\n <table class=\"complex-field-table\" *ngIf=\"(selectedOrg$ | async) as selectedOrg\"\n [attr.aria-describedby]=\"'selected organisation field table'\">\n <tr class=\"complex-panel-compound-field\">\n <th style=\"display: none;\"></th>\n <td class=\"label-width-medium\"><span class=\"text-16\">{{'Name:'}}</span></td>\n <td><span class=\"text-16\">{{selectedOrg.name}}</span></td>\n </tr>\n <tr class=\"complex-panel-compound-field\">\n <th style=\"display: none;\"></th>\n <td class=\"label-width-medium\"><span class=\"text-16\">{{'Address:'}}</span></td>\n <td>\n <ccd-markdown [content]=\"selectedOrg.address\"></ccd-markdown>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n</div>\n", styles: [".govuk-js-link{appearance:none;background:none;border:none;color:#005ea5;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-decoration:underline}.govuk-js-link:hover{color:#2b8cc4;text-decoration-thickness:max(3px,.1875rem,.12em)}.govuk-js-link:focus{background-color:#ffbf47;color:#000;outline:3px solid transparent;text-decoration:none;box-shadow:0 -2px #ffbf47,0 4px #000}.govuk-js-link:visited{color:#4c2c92}.hmcts-banner{border:0 solid;margin-bottom:10px;color:#000}.hmcts-banner .warning-message{font-weight:700}.govuk-hint{font-size:1.1rem}.name-header{font-weight:700;margin-top:10px;font-size:18px}.td-address{width:90%;padding-top:2px}.td-select{width:10%}.warning-panel{background-color:#e7ebef;height:40px;margin-bottom:0;align-items:center;display:flex}.warning-panel .warning-message{padding-left:15px}.complex-field-table>tbody>tr>th{border:none}.complex-field-table>tbody>tr:last-child>th,.complex-field-table>tbody>tr:last-child>td{border-bottom:none}.complex-field-title{width:300px}.label-width-small{width:100px}.label-width-medium{width:150px}.scroll-container{height:600px;overflow-y:scroll}.no-result-message{margin-top:15px}\n"] }]
|
|
36403
|
+
args: [{ selector: 'ccd-read-organisation-field-table', standalone: false, template: "<div class=\"complex-panel\">\n <table class=\"complex-field-table\" [attr.aria-describedby]=\"'complex organisation field table' | rpxTranslate\">\n <tbody>\n <tr>\n <th class=\"complex-field-title\">\n <dl class=\"complex-panel-title\">\n <dt><span class=\"text-16\">{{caseField.label | rpxTranslate}}</span></dt>\n <dd></dd>\n </dl>\n </th>\n <td>\n <table class=\"complex-field-table\" *ngIf=\"(selectedOrg$ | async) as selectedOrg\"\n [attr.aria-describedby]=\"'selected organisation field table'\">\n <tr class=\"complex-panel-compound-field\">\n <th style=\"display: none;\"></th>\n <td class=\"label-width-medium\"><span class=\"text-16\">{{'Name:'}}</span></td>\n <td><span class=\"text-16\">{{selectedOrg.name}}</span></td>\n </tr>\n <tr class=\"complex-panel-compound-field\">\n <th style=\"display: none;\"></th>\n <td class=\"label-width-medium\"><span class=\"text-16\">{{'Address:'}}</span></td>\n <td>\n <ccd-markdown [content]=\"selectedOrg.address\"></ccd-markdown>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n</div>\n", styles: [".govuk-js-link{appearance:none;background:none;border:none;color:#005ea5;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-decoration:underline}.govuk-js-link:hover{color:#2b8cc4;text-decoration-thickness:max(3px,.1875rem,.12em)}.govuk-js-link:focus{background-color:#ffbf47;color:#000;outline:3px solid transparent;text-decoration:none;box-shadow:0 -2px #ffbf47,0 4px #000}.govuk-js-link:visited{color:#4c2c92}.hmcts-banner{border:0 solid;margin-bottom:10px;color:#000}.hmcts-banner .warning-message{font-weight:700}.govuk-hint{font-size:1.1rem}.name-header{font-weight:700;margin-top:10px;font-size:18px}.td-address{width:90%;padding-top:2px}.td-select{width:10%}.warning-panel{background-color:#e7ebef;height:40px;margin-bottom:0;align-items:center;display:flex}.warning-panel .warning-message{padding-left:15px}.complex-field-table>tbody>tr>th{border:none}.complex-field-table>tbody>tr:last-child>th,.complex-field-table>tbody>tr:last-child>td{border-bottom:none}.complex-field-title{width:300px}.label-width-small{width:100px}.label-width-medium{width:150px}.scroll-container{height:600px;overflow-y:scroll}.no-result-message{margin-top:15px}\n"] }]
|
|
36390
36404
|
}], () => [{ type: OrganisationService }, { type: OrganisationConverter }], { caseFields: [{
|
|
36391
36405
|
type: Input
|
|
36392
36406
|
}] }); })();
|