@hmcts/ccd-case-ui-toolkit 7.4.15-accessibility-issue → 7.4.15-default-focus
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.
|
@@ -4055,6 +4055,7 @@ class CaseTab {
|
|
|
4055
4055
|
order;
|
|
4056
4056
|
fields;
|
|
4057
4057
|
show_condition;
|
|
4058
|
+
defaultFocus;
|
|
4058
4059
|
}
|
|
4059
4060
|
__decorate([
|
|
4060
4061
|
Type(() => CaseField),
|
|
@@ -17781,30 +17782,6 @@ class WriteDynamicListFieldComponent extends AbstractFieldWriteComponent {
|
|
|
17781
17782
|
}], null, null); })();
|
|
17782
17783
|
(() => { (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
17784
|
|
|
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
|
-
} }
|
|
17808
17785
|
class MarkdownComponent {
|
|
17809
17786
|
router;
|
|
17810
17787
|
renderer;
|
|
@@ -17812,7 +17789,6 @@ class MarkdownComponent {
|
|
|
17812
17789
|
cdr;
|
|
17813
17790
|
content;
|
|
17814
17791
|
renderUrlToTextFeature = true;
|
|
17815
|
-
inline = false;
|
|
17816
17792
|
constructor(router, renderer, ngZone, cdr) {
|
|
17817
17793
|
this.router = router;
|
|
17818
17794
|
this.renderer = renderer;
|
|
@@ -17879,22 +17855,23 @@ class MarkdownComponent {
|
|
|
17879
17855
|
return markdownLinkRegex.test(inputString);
|
|
17880
17856
|
}
|
|
17881
17857
|
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)); };
|
|
17882
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MarkdownComponent, selectors: [["ccd-markdown"]], inputs: { content: "content", renderUrlToTextFeature: "renderUrlToTextFeature"
|
|
17883
|
-
i0.ɵɵ
|
|
17858
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MarkdownComponent, selectors: [["ccd-markdown"]], inputs: { content: "content", renderUrlToTextFeature: "renderUrlToTextFeature" }, standalone: false, decls: 3, vars: 3, consts: [[1, "markdown", 3, "click", "data"]], template: function MarkdownComponent_Template(rf, ctx) { if (rf & 1) {
|
|
17859
|
+
i0.ɵɵelementStart(0, "div")(1, "markdown", 0);
|
|
17860
|
+
i0.ɵɵpipe(2, "ccdCaseReference");
|
|
17861
|
+
i0.ɵɵlistener("click", function MarkdownComponent_Template_markdown_click_1_listener($event) { return ctx.interceptClick($event); });
|
|
17862
|
+
i0.ɵɵelementEnd()();
|
|
17884
17863
|
} if (rf & 2) {
|
|
17885
|
-
|
|
17886
|
-
i0.ɵɵproperty("
|
|
17887
|
-
} }, dependencies: [
|
|
17864
|
+
i0.ɵɵadvance();
|
|
17865
|
+
i0.ɵɵproperty("data", i0.ɵɵpipeBind1(2, 1, ctx.content));
|
|
17866
|
+
} }, dependencies: [i1$4.MarkdownComponent, CaseReferencePipe], encapsulation: 2, changeDetection: 0 });
|
|
17888
17867
|
}
|
|
17889
17868
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MarkdownComponent, [{
|
|
17890
17869
|
type: Component,
|
|
17891
|
-
args: [{ selector: 'ccd-markdown', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<
|
|
17870
|
+
args: [{ selector: 'ccd-markdown', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div><markdown class=\"markdown\" (click)=\"interceptClick($event)\" [data]=\"content | ccdCaseReference\"></markdown></div>\n" }]
|
|
17892
17871
|
}], () => [{ type: i1$2.Router }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }], { content: [{
|
|
17893
17872
|
type: Input
|
|
17894
17873
|
}], renderUrlToTextFeature: [{
|
|
17895
17874
|
type: Input
|
|
17896
|
-
}], inline: [{
|
|
17897
|
-
type: Input
|
|
17898
17875
|
}] }); })();
|
|
17899
17876
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MarkdownComponent, { className: "MarkdownComponent", filePath: "lib/shared/components/palette/markdown/markdown.component.ts", lineNumber: 12 }); })();
|
|
17900
17877
|
|
|
@@ -17995,10 +17972,10 @@ function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template(rf, c
|
|
|
17995
17972
|
i0.ɵɵelementStart(1, "div", 8)(2, "input", 9);
|
|
17996
17973
|
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)); });
|
|
17997
17974
|
i0.ɵɵelementEnd();
|
|
17998
|
-
i0.ɵɵelementStart(3, "label", 10)
|
|
17999
|
-
i0.ɵɵelement(
|
|
18000
|
-
i0.ɵɵpipe(
|
|
18001
|
-
i0.ɵɵelementEnd()()
|
|
17975
|
+
i0.ɵɵelementStart(3, "label", 10);
|
|
17976
|
+
i0.ɵɵelement(4, "ccd-markdown", 11);
|
|
17977
|
+
i0.ɵɵpipe(5, "rpxTranslate");
|
|
17978
|
+
i0.ɵɵelementEnd()();
|
|
18002
17979
|
i0.ɵɵelementContainerEnd();
|
|
18003
17980
|
} if (rf & 2) {
|
|
18004
17981
|
const checkbox_r3 = ctx.$implicit;
|
|
@@ -18007,8 +17984,8 @@ function WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template(rf, c
|
|
|
18007
17984
|
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));
|
|
18008
17985
|
i0.ɵɵadvance();
|
|
18009
17986
|
i0.ɵɵproperty("for", i0.ɵɵinterpolate(ctx_r0.createElementId(checkbox_r3.code)));
|
|
18010
|
-
i0.ɵɵadvance(
|
|
18011
|
-
i0.ɵɵproperty("content", i0.ɵɵpipeBind1(
|
|
17987
|
+
i0.ɵɵadvance();
|
|
17988
|
+
i0.ɵɵproperty("content", i0.ɵɵpipeBind1(5, 10, checkbox_r3.label))("renderUrlToTextFeature", false);
|
|
18012
17989
|
} }
|
|
18013
17990
|
class WriteDynamicMultiSelectListFieldComponent extends AbstractFieldWriteComponent {
|
|
18014
17991
|
checkboxes;
|
|
@@ -18072,11 +18049,11 @@ class WriteDynamicMultiSelectListFieldComponent extends AbstractFieldWriteCompon
|
|
|
18072
18049
|
}
|
|
18073
18050
|
}
|
|
18074
18051
|
static ɵfac = /*@__PURE__*/ (() => { let ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory; return function WriteDynamicMultiSelectListFieldComponent_Factory(__ngFactoryType__) { return (ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory || (ɵWriteDynamicMultiSelectListFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(WriteDynamicMultiSelectListFieldComponent)))(__ngFactoryType__ || WriteDynamicMultiSelectListFieldComponent); }; })();
|
|
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"
|
|
18052
|
+
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"], [1, "form-label", 3, "for"], [3, "content", "renderUrlToTextFeature"]], template: function WriteDynamicMultiSelectListFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
18076
18053
|
i0.ɵɵelementStart(0, "div", 0)(1, "fieldset")(2, "legend");
|
|
18077
18054
|
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);
|
|
18078
18055
|
i0.ɵɵelementEnd();
|
|
18079
|
-
i0.ɵɵtemplate(6, WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template,
|
|
18056
|
+
i0.ɵɵtemplate(6, WriteDynamicMultiSelectListFieldComponent_ng_container_6_Template, 6, 12, "ng-container", 4);
|
|
18080
18057
|
i0.ɵɵelementEnd()();
|
|
18081
18058
|
} if (rf & 2) {
|
|
18082
18059
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c0$T, !ctx.checkboxes.valid && ctx.checkboxes.touched))("id", ctx.id());
|
|
@@ -18092,7 +18069,7 @@ class WriteDynamicMultiSelectListFieldComponent extends AbstractFieldWriteCompon
|
|
|
18092
18069
|
}
|
|
18093
18070
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteDynamicMultiSelectListFieldComponent, [{
|
|
18094
18071
|
type: Component,
|
|
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 <
|
|
18072
|
+
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 class=\"form-label\" for=\"{{ createElementId(checkbox.code) }}\">\n <ccd-markdown [content]=\"checkbox.label | rpxTranslate\" [renderUrlToTextFeature]=\"false\"></ccd-markdown>\n </label>\n </div>\n\n </ng-container>\n\n </fieldset>\n\n</div>\n", styles: ["ccd-markdown{display:inline-block}\n"] }]
|
|
18096
18073
|
}], null, null); })();
|
|
18097
18074
|
(() => { (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 }); })();
|
|
18098
18075
|
|
|
@@ -36328,7 +36305,7 @@ class ReadOrganisationFieldRawComponent extends AbstractFieldReadComponent {
|
|
|
36328
36305
|
}] }); })();
|
|
36329
36306
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ReadOrganisationFieldRawComponent, { className: "ReadOrganisationFieldRawComponent", filePath: "lib/shared/components/palette/organisation/read-organisation-field-raw.component.ts", lineNumber: 16 }); })();
|
|
36330
36307
|
|
|
36331
|
-
function
|
|
36308
|
+
function ReadOrganisationFieldTableComponent_table_12_Template(rf, ctx) { if (rf & 1) {
|
|
36332
36309
|
i0.ɵɵelementStart(0, "table", 1)(1, "tr", 6);
|
|
36333
36310
|
i0.ɵɵelement(2, "th", 7);
|
|
36334
36311
|
i0.ɵɵelementStart(3, "td", 8)(4, "span", 4);
|
|
@@ -36376,31 +36353,29 @@ class ReadOrganisationFieldTableComponent extends AbstractFieldReadComponent {
|
|
|
36376
36353
|
}
|
|
36377
36354
|
}
|
|
36378
36355
|
static ɵfac = function ReadOrganisationFieldTableComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ReadOrganisationFieldTableComponent)(i0.ɵɵdirectiveInject(OrganisationService), i0.ɵɵdirectiveInject(OrganisationConverter)); };
|
|
36379
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadOrganisationFieldTableComponent, selectors: [["ccd-read-organisation-field-table"]], inputs: { caseFields: "caseFields" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls:
|
|
36356
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadOrganisationFieldTableComponent, selectors: [["ccd-read-organisation-field-table"]], inputs: { caseFields: "caseFields" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 14, 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) {
|
|
36380
36357
|
i0.ɵɵelementStart(0, "div", 0)(1, "table", 1);
|
|
36381
36358
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
36382
36359
|
i0.ɵɵelementStart(3, "tbody")(4, "tr")(5, "th", 2)(6, "dl", 3)(7, "dt")(8, "span", 4);
|
|
36383
36360
|
i0.ɵɵtext(9);
|
|
36384
36361
|
i0.ɵɵpipe(10, "rpxTranslate");
|
|
36385
|
-
i0.ɵɵelementEnd()();
|
|
36386
|
-
i0.ɵɵ
|
|
36387
|
-
i0.ɵɵ
|
|
36388
|
-
i0.ɵɵ
|
|
36389
|
-
i0.ɵɵtemplate(13, ReadOrganisationFieldTableComponent_table_13_Template, 16, 5, "table", 5);
|
|
36390
|
-
i0.ɵɵpipe(14, "async");
|
|
36362
|
+
i0.ɵɵelementEnd()()()();
|
|
36363
|
+
i0.ɵɵelementStart(11, "td");
|
|
36364
|
+
i0.ɵɵtemplate(12, ReadOrganisationFieldTableComponent_table_12_Template, 16, 5, "table", 5);
|
|
36365
|
+
i0.ɵɵpipe(13, "async");
|
|
36391
36366
|
i0.ɵɵelementEnd()()()()();
|
|
36392
36367
|
} if (rf & 2) {
|
|
36393
36368
|
i0.ɵɵadvance();
|
|
36394
36369
|
i0.ɵɵattribute("aria-describedby", i0.ɵɵpipeBind1(2, 3, "complex organisation field table"));
|
|
36395
36370
|
i0.ɵɵadvance(8);
|
|
36396
36371
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10, 5, ctx.caseField.label));
|
|
36397
|
-
i0.ɵɵadvance(
|
|
36398
|
-
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(
|
|
36372
|
+
i0.ɵɵadvance(3);
|
|
36373
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(13, 7, ctx.selectedOrg$));
|
|
36399
36374
|
} }, 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}"] });
|
|
36400
36375
|
}
|
|
36401
36376
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadOrganisationFieldTableComponent, [{
|
|
36402
36377
|
type: Component,
|
|
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
|
|
36378
|
+
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"] }]
|
|
36404
36379
|
}], () => [{ type: OrganisationService }, { type: OrganisationConverter }], { caseFields: [{
|
|
36405
36380
|
type: Input
|
|
36406
36381
|
}] }); })();
|
|
@@ -41658,7 +41633,12 @@ class CaseFullAccessViewComponent {
|
|
|
41658
41633
|
let hashValue = url.substring(url.indexOf('#') + 1);
|
|
41659
41634
|
const hasHash = url.includes('#');
|
|
41660
41635
|
const isSpecialTabPath = url.includes('roles-and-access') || url.includes('tasks') || url.includes('hearings');
|
|
41661
|
-
|
|
41636
|
+
// TODO: Remove defaultFocusDemo once QA'd
|
|
41637
|
+
const defaultFocusDemo = url.includes('default-focus-demo');
|
|
41638
|
+
if (defaultFocusDemo) {
|
|
41639
|
+
this.caseDetails.tabs[Number(url.substring(url.indexOf('default-focus-demo-') + 19))].defaultFocus = true;
|
|
41640
|
+
}
|
|
41641
|
+
if (defaultFocusDemo || (!hasHash && !isSpecialTabPath)) {
|
|
41662
41642
|
const paths = url.split('/');
|
|
41663
41643
|
const lastPath = decodeURIComponent(paths[paths.length - 1]);
|
|
41664
41644
|
let foundTab = null;
|
|
@@ -41682,10 +41662,13 @@ class CaseFullAccessViewComponent {
|
|
|
41682
41662
|
});
|
|
41683
41663
|
}
|
|
41684
41664
|
else {
|
|
41685
|
-
this.caseDetails.tabs
|
|
41665
|
+
this.caseDetails.tabs = this.orderService.sort(this.caseDetails.tabs);
|
|
41666
|
+
// Presuming default focus only set for one tab here - multiple tabs with default focus are not handled as is a contradiction
|
|
41667
|
+
let preSelectTab = this.caseDetails.tabs.find((tab) => tab.defaultFocus === true) ?? null;
|
|
41668
|
+
// Attempt to pre-select the tab based on the preferred label for the current case type
|
|
41686
41669
|
const preferredLabel = FieldsUtils.defaultTabList?.[this.caseDetails?.case_type?.id];
|
|
41687
|
-
|
|
41688
|
-
if (preferredLabel) {
|
|
41670
|
+
// If no tab has default focus, attempt to use the preferred label for the current case type
|
|
41671
|
+
if (!preSelectTab && preferredLabel) {
|
|
41689
41672
|
preSelectTab = this.caseDetails.tabs.find((tab) => (tab.label === preferredLabel) || (tab.id === preferredLabel)) ?? null;
|
|
41690
41673
|
}
|
|
41691
41674
|
if (!preSelectTab) {
|