@hmcts/rpx-xui-common-lib 3.2.21-govuk6 → 3.2.22-exui-1660
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.
|
@@ -1094,13 +1094,13 @@ function ContactDetailsComponent_Conditional_0_Conditional_1_Template(rf, ctx) {
|
|
|
1094
1094
|
i0.ɵɵtextInterpolate(ctx_r0.data.title);
|
|
1095
1095
|
} }
|
|
1096
1096
|
function ContactDetailsComponent_Conditional_0_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
1097
|
-
i0.ɵɵelementStart(0, "p")(1, "
|
|
1097
|
+
i0.ɵɵelementStart(0, "p")(1, "span", 6);
|
|
1098
1098
|
i0.ɵɵtext(2);
|
|
1099
1099
|
i0.ɵɵelementEnd()();
|
|
1100
1100
|
} if (rf & 2) {
|
|
1101
1101
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
1102
1102
|
i0.ɵɵadvance();
|
|
1103
|
-
i0.ɵɵproperty("className", "
|
|
1103
|
+
i0.ɵɵproperty("className", "hmcts-badge " + ctx_r0.data.badgeColour);
|
|
1104
1104
|
i0.ɵɵadvance();
|
|
1105
1105
|
i0.ɵɵtextInterpolate(ctx_r0.data.badgeText);
|
|
1106
1106
|
} }
|
|
@@ -1202,7 +1202,7 @@ class ContactDetailsComponent {
|
|
|
1202
1202
|
}
|
|
1203
1203
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContactDetailsComponent, [{
|
|
1204
1204
|
type: Component,
|
|
1205
|
-
args: [{ selector: 'xuilib-contact-details', standalone: false, template: "@if (data) {\n <div class=\"contact-details\">\n @if (data.title) {\n <h3 class=\"govuk-heading-m\">{{ data.title }}</h3>\n }\n @if (data.badgeText) {\n <p><
|
|
1205
|
+
args: [{ selector: 'xuilib-contact-details', standalone: false, template: "@if (data) {\n <div class=\"contact-details\">\n @if (data.title) {\n <h3 class=\"govuk-heading-m\">{{ data.title }}</h3>\n }\n @if (data.badgeText) {\n <p><span [className]=\"'hmcts-badge ' + data.badgeColour\">{{ data.badgeText }}</span></p>\n }\n @if (data.email) {\n <div class=\"email\"><span class=\"govuk-!-font-weight-bold\">{{'Email:' | rpxTranslate}} </span> <a href=\"mailto:{{ data.email }}\">{{ data.email }}</a></div>\n }\n @if (data.contactDetails) {\n <div class=\"contactDetails\"><span class=\"govuk-!-font-weight-bold\">{{'Contact:' | rpxTranslate}} </span> <a rel=\"external\" href=\"{{ data.contactDetails.contactLink }}\">{{ data.contactDetails.name }}</a></div>\n }\n @if (data.phone) {\n <div class=\"phone\"><span class=\"govuk-!-font-weight-bold\">{{'Phone:' | rpxTranslate}} </span>{{ data.phone }}</div>\n }\n @if (data.openingTimes) {\n <div class=\"opening-times\"><span class=\"govuk-!-font-weight-bold\">{{'Opening times:' | rpxTranslate }} </span>{{ data.openingTimes}}</div>\n }\n </div>\n}", styles: [".contact-details{margin-top:30px}.contact-details h3,.contact-details p{margin-bottom:10px}\n"] }]
|
|
1206
1206
|
}], () => [], { data: [{
|
|
1207
1207
|
type: Input
|
|
1208
1208
|
}] }); })();
|
|
@@ -1210,14 +1210,14 @@ class ContactDetailsComponent {
|
|
|
1210
1210
|
|
|
1211
1211
|
var DateBadgeColour;
|
|
1212
1212
|
(function (DateBadgeColour) {
|
|
1213
|
-
DateBadgeColour["RED"] = "
|
|
1214
|
-
DateBadgeColour["ORANGE"] = "
|
|
1215
|
-
DateBadgeColour["GREEN"] = "
|
|
1213
|
+
DateBadgeColour["RED"] = "hmcts-badge--red";
|
|
1214
|
+
DateBadgeColour["ORANGE"] = "hmcts-badge--orange";
|
|
1215
|
+
DateBadgeColour["GREEN"] = "hmcts-badge--green";
|
|
1216
1216
|
})(DateBadgeColour || (DateBadgeColour = {}));
|
|
1217
1217
|
const SECONDS_IN_A_DAY = 60 * 60 * 24;
|
|
1218
1218
|
|
|
1219
1219
|
function DueDateComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
1220
|
-
i0.ɵɵelementStart(0, "
|
|
1220
|
+
i0.ɵɵelementStart(0, "span", 0);
|
|
1221
1221
|
i0.ɵɵpipe(1, "rpxTranslate");
|
|
1222
1222
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
1223
1223
|
i0.ɵɵtext(3);
|
|
@@ -1333,15 +1333,15 @@ class DueDateComponent {
|
|
|
1333
1333
|
return Math.floor(diffSecs / SECONDS_IN_A_DAY);
|
|
1334
1334
|
}
|
|
1335
1335
|
static { this.ɵfac = function DueDateComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || DueDateComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
|
|
1336
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DueDateComponent, selectors: [["xuilib-due-date"]], inputs: { dueDate: "dueDate", highUrgencyCutoff: "highUrgencyCutoff", mediumUrgencyCutoff: "mediumUrgencyCutoff" }, standalone: false, features: [i0.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [[1, "due-date", "
|
|
1337
|
-
i0.ɵɵconditionalCreate(0, DueDateComponent_Conditional_0_Template, 5, 10, "
|
|
1336
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DueDateComponent, selectors: [["xuilib-due-date"]], inputs: { dueDate: "dueDate", highUrgencyCutoff: "highUrgencyCutoff", mediumUrgencyCutoff: "mediumUrgencyCutoff" }, standalone: false, features: [i0.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [[1, "due-date", "hmcts-badge", 3, "ngClass", "title"]], template: function DueDateComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1337
|
+
i0.ɵɵconditionalCreate(0, DueDateComponent_Conditional_0_Template, 5, 10, "span", 0);
|
|
1338
1338
|
} if (rf & 2) {
|
|
1339
1339
|
i0.ɵɵconditional(ctx.dueDate ? 0 : -1);
|
|
1340
|
-
} }, dependencies: [i1.NgClass, i2.RpxTranslatePipe], styles: [".due-date{white-space:nowrap}\n"], encapsulation: 2 }); }
|
|
1340
|
+
} }, dependencies: [i1.NgClass, i2.RpxTranslatePipe], styles: [".due-date{white-space:nowrap}.due-date.hmcts-badge--orange{color:#f47738;border-color:#f47738}\n"], encapsulation: 2 }); }
|
|
1341
1341
|
}
|
|
1342
1342
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DueDateComponent, [{
|
|
1343
1343
|
type: Component,
|
|
1344
|
-
args: [{ selector: 'xuilib-due-date', encapsulation: ViewEncapsulation.None, standalone: false, template: "@if (dueDate) {\n <
|
|
1344
|
+
args: [{ selector: 'xuilib-due-date', encapsulation: ViewEncapsulation.None, standalone: false, template: "@if (dueDate) {\n <span class=\"due-date hmcts-badge\" [ngClass]=\"badge\"\n [title]=\"accessibleLabel | rpxTranslate\" [attr.aria-label]=\"accessibleLabel | rpxTranslate\">\n {{label | rpxTranslate}}\n </span>\n}", styles: [".due-date{white-space:nowrap}.due-date.hmcts-badge--orange{color:#f47738;border-color:#f47738}\n"] }]
|
|
1345
1345
|
}], () => [{ type: i0.ChangeDetectorRef }], { dueDate: [{
|
|
1346
1346
|
type: Input
|
|
1347
1347
|
}], highUrgencyCutoff: [{
|
|
@@ -1521,9 +1521,9 @@ var SharedCaseErrorMessages;
|
|
|
1521
1521
|
|
|
1522
1522
|
var BadgeColour;
|
|
1523
1523
|
(function (BadgeColour) {
|
|
1524
|
-
BadgeColour["BADGE_RED"] = "
|
|
1525
|
-
BadgeColour["BADGE_BLUE"] = "
|
|
1526
|
-
BadgeColour["BADGE_GREEN"] = "
|
|
1524
|
+
BadgeColour["BADGE_RED"] = "hmcts-badge--red";
|
|
1525
|
+
BadgeColour["BADGE_BLUE"] = "hmcts-badge--blue";
|
|
1526
|
+
BadgeColour["BADGE_GREEN"] = "hmcts-badge--green";
|
|
1527
1527
|
})(BadgeColour || (BadgeColour = {}));
|
|
1528
1528
|
|
|
1529
1529
|
class AnonymousFeatureUser {
|
|
@@ -2495,26 +2495,27 @@ class FindAPersonService {
|
|
|
2495
2495
|
}]
|
|
2496
2496
|
}], () => [{ type: i1$2.HttpClient }, { type: SessionStorageService }], null); })();
|
|
2497
2497
|
|
|
2498
|
-
const _c0$n = a0 => ({ "
|
|
2498
|
+
const _c0$n = a0 => ({ "form-group-error": a0 });
|
|
2499
2499
|
const _c1$d = (a0, a1) => ({ "hide-autocomplete": a0, "select-option": a1 });
|
|
2500
2500
|
const _c2$5 = a0 => ({ "select-option": a0 });
|
|
2501
2501
|
function FindPersonComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
2502
|
-
i0.ɵɵelementStart(0, "
|
|
2503
|
-
i0.ɵɵtext(
|
|
2504
|
-
i0.ɵɵpipe(
|
|
2502
|
+
i0.ɵɵelementStart(0, "span", 10);
|
|
2503
|
+
i0.ɵɵtext(1);
|
|
2504
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
2505
2505
|
i0.ɵɵelementEnd();
|
|
2506
|
+
i0.ɵɵelementStart(3, "h1", 11);
|
|
2506
2507
|
i0.ɵɵtext(4);
|
|
2507
2508
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
2508
2509
|
i0.ɵɵelementEnd();
|
|
2509
2510
|
} if (rf & 2) {
|
|
2510
2511
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
2511
|
-
i0.ɵɵadvance(
|
|
2512
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
2513
|
-
i0.ɵɵadvance(
|
|
2512
|
+
i0.ɵɵadvance();
|
|
2513
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 2, ctx_r1.title));
|
|
2514
|
+
i0.ɵɵadvance(3);
|
|
2514
2515
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, ctx_r1.boldTitle), " ");
|
|
2515
2516
|
} }
|
|
2516
2517
|
function FindPersonComponent_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
2517
|
-
i0.ɵɵelementStart(0, "div",
|
|
2518
|
+
i0.ɵɵelementStart(0, "div", 4);
|
|
2518
2519
|
i0.ɵɵtext(1);
|
|
2519
2520
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
2520
2521
|
i0.ɵɵelementEnd();
|
|
@@ -2524,7 +2525,7 @@ function FindPersonComponent_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
|
2524
2525
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, ctx_r1.subTitle), " ");
|
|
2525
2526
|
} }
|
|
2526
2527
|
function FindPersonComponent_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
2527
|
-
i0.ɵɵelementStart(0, "span",
|
|
2528
|
+
i0.ɵɵelementStart(0, "span", 5)(1, "span", 3);
|
|
2528
2529
|
i0.ɵɵtext(2);
|
|
2529
2530
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
2530
2531
|
i0.ɵɵelementEnd();
|
|
@@ -2538,7 +2539,7 @@ function FindPersonComponent_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
2538
2539
|
i0.ɵɵtextInterpolate1("", ctx_r1.findPersonGroup.errors.error ? ctx_r1.findPersonGroup.errors.error : ctx_r1.errorMessage, " ");
|
|
2539
2540
|
} }
|
|
2540
2541
|
function FindPersonComponent_For_12_Template(rf, ctx) { if (rf & 1) {
|
|
2541
|
-
i0.ɵɵelementStart(0, "mat-option",
|
|
2542
|
+
i0.ɵɵelementStart(0, "mat-option", 8);
|
|
2542
2543
|
i0.ɵɵtext(1);
|
|
2543
2544
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
2544
2545
|
i0.ɵɵelementEnd();
|
|
@@ -2550,7 +2551,7 @@ function FindPersonComponent_For_12_Template(rf, ctx) { if (rf & 1) {
|
|
|
2550
2551
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 3, ctx_r1.getDisplayName(option_r3)), " ");
|
|
2551
2552
|
} }
|
|
2552
2553
|
function FindPersonComponent_Conditional_13_Template(rf, ctx) { if (rf & 1) {
|
|
2553
|
-
i0.ɵɵelementStart(0, "mat-option",
|
|
2554
|
+
i0.ɵɵelementStart(0, "mat-option", 9);
|
|
2554
2555
|
i0.ɵɵtext(1);
|
|
2555
2556
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
2556
2557
|
i0.ɵɵelementEnd();
|
|
@@ -2644,22 +2645,22 @@ class FindPersonComponent {
|
|
|
2644
2645
|
this.personFieldChanged.emit();
|
|
2645
2646
|
}
|
|
2646
2647
|
static { this.ɵfac = function FindPersonComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || FindPersonComponent)(i0.ɵɵdirectiveInject(FindAPersonService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
|
|
2647
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FindPersonComponent, selectors: [["xuilib-find-person"]], inputs: { title: "title", boldTitle: "boldTitle", subTitle: "subTitle", domain: "domain", findPersonGroup: "findPersonGroup", selectedPerson: "selectedPerson", submitted: "submitted", userIncluded: "userIncluded", assignedUser: "assignedUser", placeholderContent: "placeholderContent", isNoResultsShown: "isNoResultsShown", showUpdatedColor: "showUpdatedColor", selectedPersons: "selectedPersons", errorMessage: "errorMessage", idValue: "idValue", services: "services", disabled: "disabled" }, outputs: { personSelected: "personSelected", personFieldChanged: "personFieldChanged" }, standalone: false, decls: 14, vars: 17, consts: [["auto", "matAutocomplete"], [1, "govuk-
|
|
2648
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FindPersonComponent, selectors: [["xuilib-find-person"]], inputs: { title: "title", boldTitle: "boldTitle", subTitle: "subTitle", domain: "domain", findPersonGroup: "findPersonGroup", selectedPerson: "selectedPerson", submitted: "submitted", userIncluded: "userIncluded", assignedUser: "assignedUser", placeholderContent: "placeholderContent", isNoResultsShown: "isNoResultsShown", showUpdatedColor: "showUpdatedColor", selectedPersons: "selectedPersons", errorMessage: "errorMessage", idValue: "idValue", services: "services", disabled: "disabled" }, outputs: { personSelected: "personSelected", personFieldChanged: "personFieldChanged" }, standalone: false, decls: 14, vars: 17, consts: [["auto", "matAutocomplete"], [1, "govuk-form-group", 3, "formGroup", "ngClass"], [1, "govuk-fieldset"], [1, "govuk-visually-hidden"], ["id", "sub-title-hint", 1, "govuk-hint"], ["id", "validation-error", 1, "govuk-error-message"], ["type", "text", "aria-label", "select a person", "formControlName", "findPersonControl", 1, "govuk-input", "govuk-!-width-one-third", 3, "input", "id", "matAutocomplete", "placeholder"], ["autoActiveFirstOption", "", 3, "optionSelected"], [3, "value", "ngClass"], [3, "ngClass"], [1, "govuk-caption-l"], [1, "govuk-heading-l"]], template: function FindPersonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2648
2649
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
2649
|
-
i0.ɵɵconditionalCreate(0, FindPersonComponent_Conditional_0_Template, 6, 6
|
|
2650
|
-
i0.ɵɵelementStart(1, "div",
|
|
2650
|
+
i0.ɵɵconditionalCreate(0, FindPersonComponent_Conditional_0_Template, 6, 6);
|
|
2651
|
+
i0.ɵɵelementStart(1, "div", 1)(2, "fieldset", 2)(3, "legend", 3);
|
|
2651
2652
|
i0.ɵɵtext(4);
|
|
2652
2653
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
2653
2654
|
i0.ɵɵelementEnd();
|
|
2654
|
-
i0.ɵɵconditionalCreate(6, FindPersonComponent_Conditional_6_Template, 3, 3, "div",
|
|
2655
|
-
i0.ɵɵconditionalCreate(7, FindPersonComponent_Conditional_7_Template, 5, 4, "span",
|
|
2656
|
-
i0.ɵɵelementStart(8, "input",
|
|
2655
|
+
i0.ɵɵconditionalCreate(6, FindPersonComponent_Conditional_6_Template, 3, 3, "div", 4);
|
|
2656
|
+
i0.ɵɵconditionalCreate(7, FindPersonComponent_Conditional_7_Template, 5, 4, "span", 5);
|
|
2657
|
+
i0.ɵɵelementStart(8, "input", 6);
|
|
2657
2658
|
i0.ɵɵlistener("input", function FindPersonComponent_Template_input_input_8_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onInput()); });
|
|
2658
2659
|
i0.ɵɵelementEnd();
|
|
2659
|
-
i0.ɵɵelementStart(9, "mat-autocomplete",
|
|
2660
|
+
i0.ɵɵelementStart(9, "mat-autocomplete", 7, 0);
|
|
2660
2661
|
i0.ɵɵlistener("optionSelected", function FindPersonComponent_Template_mat_autocomplete_optionSelected_9_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onSelectionChange($event.option.value)); });
|
|
2661
|
-
i0.ɵɵrepeaterCreate(11, FindPersonComponent_For_12_Template, 3, 8, "mat-option",
|
|
2662
|
-
i0.ɵɵconditionalCreate(13, FindPersonComponent_Conditional_13_Template, 3, 6, "mat-option",
|
|
2662
|
+
i0.ɵɵrepeaterCreate(11, FindPersonComponent_For_12_Template, 3, 8, "mat-option", 8, i0.ɵɵrepeaterTrackByIdentity);
|
|
2663
|
+
i0.ɵɵconditionalCreate(13, FindPersonComponent_Conditional_13_Template, 3, 6, "mat-option", 9);
|
|
2663
2664
|
i0.ɵɵelementEnd()()();
|
|
2664
2665
|
} if (rf & 2) {
|
|
2665
2666
|
const auto_r4 = i0.ɵɵreference(10);
|
|
@@ -2685,7 +2686,7 @@ class FindPersonComponent {
|
|
|
2685
2686
|
}
|
|
2686
2687
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FindPersonComponent, [{
|
|
2687
2688
|
type: Component,
|
|
2688
|
-
args: [{ selector: 'xuilib-find-person', standalone: false, template: "@if (title && title.length) {\n <
|
|
2689
|
+
args: [{ selector: 'xuilib-find-person', standalone: false, template: "@if (title && title.length) {\n <span class=\"govuk-caption-l\">{{title | rpxTranslate}}</span>\n <h1 class=\"govuk-heading-l\">\n {{boldTitle | rpxTranslate}}\n </h1>\n}\n<div class=\"govuk-form-group\" [formGroup]=\"findPersonGroup\"\n [ngClass]=\"{'form-group-error': findPersonGroup.get('findPersonControl').invalid && submitted}\">\n <fieldset class=\"govuk-fieldset\" [attr.aria-describedby]=\"subTitle && subTitle.length ? 'sub-title-hint' : null\">\n <legend class=\"govuk-visually-hidden\">{{boldTitle | rpxTranslate}}</legend>\n @if (subTitle && subTitle.length) {\n <div id=\"sub-title-hint\" class=\"govuk-hint\">\n {{subTitle | rpxTranslate}}\n </div>\n }\n @if (findPersonGroup && findPersonGroup.errors) {\n <span id=\"validation-error\" class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span>{{findPersonGroup.errors.error ? findPersonGroup.errors.error : errorMessage}}\n </span>\n }\n <input id=\"inputSelectPerson{{idValue}}\" type=\"text\" aria-label=\"select a person\"\n formControlName=\"findPersonControl\"\n [matAutocomplete]=\"auto\"\n class=\"govuk-input govuk-!-width-one-third\"\n [placeholder]=\"placeholderContent\"\n [attr.disabled]=\"disabled\"\n (input)=\"onInput()\">\n <mat-autocomplete autoActiveFirstOption #auto=\"matAutocomplete\" (optionSelected)=\"onSelectionChange($event.option.value)\">\n @for (option of filteredOptions; track option) {\n <mat-option\n [value]=\"option\"\n [ngClass]=\"{'hide-autocomplete': !showAutocomplete, 'select-option': showUpdatedColor}\">\n {{getDisplayName(option) | rpxTranslate}}\n </mat-option>\n }\n @if (isNoResultsShown && !filteredOptions.length && showAutocomplete) {\n <mat-option [ngClass]=\"{'select-option': showUpdatedColor}\">{{'No results found' | rpxTranslate}}</mat-option>\n }\n </mat-autocomplete>\n </fieldset>\n</div>\n", styles: [".mat-option:hover{background:#2596be}.mat-option.select-option:hover{background:#1d70b8;color:#fff}.hide-autocomplete{display:none}\n"] }]
|
|
2689
2690
|
}], () => [{ type: FindAPersonService }, { type: i0.ChangeDetectorRef }], { personSelected: [{
|
|
2690
2691
|
type: Output
|
|
2691
2692
|
}], personFieldChanged: [{
|
|
@@ -3152,24 +3153,25 @@ class FindLocationComponent {
|
|
|
3152
3153
|
}] }); })();
|
|
3153
3154
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FindLocationComponent, { className: "FindLocationComponent", filePath: "lib/components/find-location/find-location.component.ts", lineNumber: 14 }); })();
|
|
3154
3155
|
|
|
3155
|
-
const _c0$m = a0 => ({ "
|
|
3156
|
+
const _c0$m = a0 => ({ "form-group-error": a0 });
|
|
3156
3157
|
const _c1$c = (a0, a1) => ({ "hide-autocomplete": a0, "select-option": a1 });
|
|
3157
3158
|
const _c2$4 = a0 => ({ "select-option": a0 });
|
|
3158
3159
|
function FindTaskNameComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
3159
|
-
i0.ɵɵelementStart(0, "
|
|
3160
|
-
i0.ɵɵtext(
|
|
3160
|
+
i0.ɵɵelementStart(0, "span", 10);
|
|
3161
|
+
i0.ɵɵtext(1);
|
|
3161
3162
|
i0.ɵɵelementEnd();
|
|
3163
|
+
i0.ɵɵelementStart(2, "h1", 11);
|
|
3162
3164
|
i0.ɵɵtext(3);
|
|
3163
3165
|
i0.ɵɵelementEnd();
|
|
3164
3166
|
} if (rf & 2) {
|
|
3165
3167
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
3166
|
-
i0.ɵɵadvance(2);
|
|
3167
|
-
i0.ɵɵtextInterpolate(ctx_r1.title);
|
|
3168
3168
|
i0.ɵɵadvance();
|
|
3169
|
+
i0.ɵɵtextInterpolate(ctx_r1.title);
|
|
3170
|
+
i0.ɵɵadvance(2);
|
|
3169
3171
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.boldTitle, " ");
|
|
3170
3172
|
} }
|
|
3171
3173
|
function FindTaskNameComponent_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
3172
|
-
i0.ɵɵelementStart(0, "div",
|
|
3174
|
+
i0.ɵɵelementStart(0, "div", 4);
|
|
3173
3175
|
i0.ɵɵtext(1);
|
|
3174
3176
|
i0.ɵɵelementEnd();
|
|
3175
3177
|
} if (rf & 2) {
|
|
@@ -3178,7 +3180,7 @@ function FindTaskNameComponent_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
3178
3180
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.subTitle, " ");
|
|
3179
3181
|
} }
|
|
3180
3182
|
function FindTaskNameComponent_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
3181
|
-
i0.ɵɵelementStart(0, "span",
|
|
3183
|
+
i0.ɵɵelementStart(0, "span", 5)(1, "span", 3);
|
|
3182
3184
|
i0.ɵɵtext(2, "Error:");
|
|
3183
3185
|
i0.ɵɵelementEnd();
|
|
3184
3186
|
i0.ɵɵtext(3);
|
|
@@ -3189,7 +3191,7 @@ function FindTaskNameComponent_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
|
3189
3191
|
i0.ɵɵtextInterpolate1("", ctx_r1.findTaskNameGroup.errors.error ? ctx_r1.findTaskNameGroup.errors.error : ctx_r1.errorMessage, " ");
|
|
3190
3192
|
} }
|
|
3191
3193
|
function FindTaskNameComponent_For_11_Template(rf, ctx) { if (rf & 1) {
|
|
3192
|
-
i0.ɵɵelementStart(0, "mat-option",
|
|
3194
|
+
i0.ɵɵelementStart(0, "mat-option", 8);
|
|
3193
3195
|
i0.ɵɵtext(1);
|
|
3194
3196
|
i0.ɵɵelementEnd();
|
|
3195
3197
|
} if (rf & 2) {
|
|
@@ -3200,7 +3202,7 @@ function FindTaskNameComponent_For_11_Template(rf, ctx) { if (rf & 1) {
|
|
|
3200
3202
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.getTaskTypeName(option_r3), " ");
|
|
3201
3203
|
} }
|
|
3202
3204
|
function FindTaskNameComponent_Conditional_12_Template(rf, ctx) { if (rf & 1) {
|
|
3203
|
-
i0.ɵɵelementStart(0, "mat-option",
|
|
3205
|
+
i0.ɵɵelementStart(0, "mat-option", 9);
|
|
3204
3206
|
i0.ɵɵtext(1, "No results found");
|
|
3205
3207
|
i0.ɵɵelementEnd();
|
|
3206
3208
|
} if (rf & 2) {
|
|
@@ -3267,21 +3269,21 @@ class FindTaskNameComponent {
|
|
|
3267
3269
|
this.taskNameFieldChanged.emit();
|
|
3268
3270
|
}
|
|
3269
3271
|
static { this.ɵfac = function FindTaskNameComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || FindTaskNameComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(TaskService)); }; }
|
|
3270
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FindTaskNameComponent, selectors: [["xuilib-find-task-name"]], inputs: { title: "title", boldTitle: "boldTitle", subTitle: "subTitle", domain: "domain", findTaskNameGroup: "findTaskNameGroup", selectedTaskName: "selectedTaskName", submitted: "submitted", assignedUser: "assignedUser", placeholderContent: "placeholderContent", isNoResultsShown: "isNoResultsShown", showUpdatedColor: "showUpdatedColor", selectedTaskNames: "selectedTaskNames", errorMessage: "errorMessage", idValue: "idValue", services: "services", disabled: "disabled" }, outputs: { taskNameSelected: "taskNameSelected", taskNameFieldChanged: "taskNameFieldChanged" }, standalone: false, decls: 13, vars: 15, consts: [["auto", "matAutocomplete"], [1, "govuk-
|
|
3272
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FindTaskNameComponent, selectors: [["xuilib-find-task-name"]], inputs: { title: "title", boldTitle: "boldTitle", subTitle: "subTitle", domain: "domain", findTaskNameGroup: "findTaskNameGroup", selectedTaskName: "selectedTaskName", submitted: "submitted", assignedUser: "assignedUser", placeholderContent: "placeholderContent", isNoResultsShown: "isNoResultsShown", showUpdatedColor: "showUpdatedColor", selectedTaskNames: "selectedTaskNames", errorMessage: "errorMessage", idValue: "idValue", services: "services", disabled: "disabled" }, outputs: { taskNameSelected: "taskNameSelected", taskNameFieldChanged: "taskNameFieldChanged" }, standalone: false, decls: 13, vars: 15, consts: [["auto", "matAutocomplete"], [1, "govuk-form-group", 3, "formGroup", "ngClass"], [1, "govuk-fieldset"], [1, "govuk-visually-hidden"], ["id", "sub-title-hint", 1, "govuk-hint"], ["id", "validation-error", 1, "govuk-error-message"], ["type", "text", "aria-label", "select a task name", "formControlName", "findTaskNameControl", 1, "govuk-input", "govuk-!-width-one-third", 3, "input", "id", "matAutocomplete", "placeholder"], ["autoActiveFirstOption", "", 3, "optionSelected"], [3, "value", "ngClass"], [3, "ngClass"], [1, "govuk-caption-l"], [1, "govuk-heading-l"]], template: function FindTaskNameComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3271
3273
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
3272
|
-
i0.ɵɵconditionalCreate(0, FindTaskNameComponent_Conditional_0_Template, 4, 2
|
|
3273
|
-
i0.ɵɵelementStart(1, "div",
|
|
3274
|
+
i0.ɵɵconditionalCreate(0, FindTaskNameComponent_Conditional_0_Template, 4, 2);
|
|
3275
|
+
i0.ɵɵelementStart(1, "div", 1)(2, "fieldset", 2)(3, "legend", 3);
|
|
3274
3276
|
i0.ɵɵtext(4);
|
|
3275
3277
|
i0.ɵɵelementEnd();
|
|
3276
|
-
i0.ɵɵconditionalCreate(5, FindTaskNameComponent_Conditional_5_Template, 2, 1, "div",
|
|
3277
|
-
i0.ɵɵconditionalCreate(6, FindTaskNameComponent_Conditional_6_Template, 4, 1, "span",
|
|
3278
|
-
i0.ɵɵelementStart(7, "input",
|
|
3278
|
+
i0.ɵɵconditionalCreate(5, FindTaskNameComponent_Conditional_5_Template, 2, 1, "div", 4);
|
|
3279
|
+
i0.ɵɵconditionalCreate(6, FindTaskNameComponent_Conditional_6_Template, 4, 1, "span", 5);
|
|
3280
|
+
i0.ɵɵelementStart(7, "input", 6);
|
|
3279
3281
|
i0.ɵɵlistener("input", function FindTaskNameComponent_Template_input_input_7_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onInput()); });
|
|
3280
3282
|
i0.ɵɵelementEnd();
|
|
3281
|
-
i0.ɵɵelementStart(8, "mat-autocomplete",
|
|
3283
|
+
i0.ɵɵelementStart(8, "mat-autocomplete", 7, 0);
|
|
3282
3284
|
i0.ɵɵlistener("optionSelected", function FindTaskNameComponent_Template_mat_autocomplete_optionSelected_8_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onSelectionChange($event.option.value)); });
|
|
3283
|
-
i0.ɵɵrepeaterCreate(10, FindTaskNameComponent_For_11_Template, 2, 6, "mat-option",
|
|
3284
|
-
i0.ɵɵconditionalCreate(12, FindTaskNameComponent_Conditional_12_Template, 2, 3, "mat-option",
|
|
3285
|
+
i0.ɵɵrepeaterCreate(10, FindTaskNameComponent_For_11_Template, 2, 6, "mat-option", 8, i0.ɵɵrepeaterTrackByIdentity);
|
|
3286
|
+
i0.ɵɵconditionalCreate(12, FindTaskNameComponent_Conditional_12_Template, 2, 3, "mat-option", 9);
|
|
3285
3287
|
i0.ɵɵelementEnd()()();
|
|
3286
3288
|
} if (rf & 2) {
|
|
3287
3289
|
let tmp_3_0;
|
|
@@ -3308,7 +3310,7 @@ class FindTaskNameComponent {
|
|
|
3308
3310
|
}
|
|
3309
3311
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FindTaskNameComponent, [{
|
|
3310
3312
|
type: Component,
|
|
3311
|
-
args: [{ selector: 'xuilib-find-task-name', standalone: false, template: "@if (title && title.length) {\n <
|
|
3313
|
+
args: [{ selector: 'xuilib-find-task-name', standalone: false, template: "@if (title && title.length) {\n <span class=\"govuk-caption-l\">{{title}}</span>\n <h1 class=\"govuk-heading-l\">\n {{boldTitle}}\n </h1>\n}\n<div class=\"govuk-form-group\" [formGroup]=\"findTaskNameGroup\"\n [ngClass]=\"{'form-group-error': findTaskNameGroup.get('findTaskNameControl')?.invalid && submitted}\">\n <fieldset class=\"govuk-fieldset\" [attr.aria-describedby]=\"subTitle && subTitle.length ? 'sub-title-hint' : null\">\n <legend class=\"govuk-visually-hidden\">{{ boldTitle }}</legend>\n @if (subTitle && subTitle.length) {\n <div id=\"sub-title-hint\" class=\"govuk-hint\">\n {{subTitle}}\n </div>\n }\n @if (findTaskNameGroup && findTaskNameGroup.errors) {\n <span id=\"validation-error\" class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">Error:</span>{{findTaskNameGroup.errors.error ? findTaskNameGroup.errors.error : errorMessage}}\n </span>\n }\n <input id=\"inputSelectTaskName{{idValue}}\" type=\"text\" aria-label=\"select a task name\"\n formControlName=\"findTaskNameControl\"\n [matAutocomplete]=\"auto\"\n class=\"govuk-input govuk-!-width-one-third\"\n [placeholder]=\"placeholderContent\"\n [attr.disabled]=\"disabled\"\n (input)=\"onInput()\">\n <mat-autocomplete autoActiveFirstOption #auto=\"matAutocomplete\" (optionSelected)=\"onSelectionChange($event.option.value)\">\n @for (option of filteredOptions; track option) {\n <mat-option\n [value]=\"option\"\n [ngClass]=\"{'hide-autocomplete': !showAutocomplete, 'select-option': showUpdatedColor}\">\n {{ getTaskTypeName(option) }}\n </mat-option>\n }\n @if (isNoResultsShown && !filteredOptions.length && showAutocomplete) {\n <mat-option [ngClass]=\"{'select-option': showUpdatedColor}\">No results found</mat-option>\n }\n </mat-autocomplete>\n </fieldset>\n</div>\n" }]
|
|
3312
3314
|
}], () => [{ type: i0.ChangeDetectorRef }, { type: TaskService }], { taskNameSelected: [{
|
|
3313
3315
|
type: Output
|
|
3314
3316
|
}], taskNameFieldChanged: [{
|
|
@@ -4033,7 +4035,7 @@ class CapitalizePipe {
|
|
|
4033
4035
|
}]
|
|
4034
4036
|
}], null, null); })();
|
|
4035
4037
|
|
|
4036
|
-
const _c0$l = a0 => ({ "
|
|
4038
|
+
const _c0$l = a0 => ({ "form-group-error": a0 });
|
|
4037
4039
|
const _c1$b = a0 => ({ "govuk-!-font-weight-bold": a0 });
|
|
4038
4040
|
function GenericFilterComponent_For_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
4039
4041
|
i0.ɵɵelement(0, "hr", 7);
|
|
@@ -5192,7 +5194,7 @@ class GenericFilterComponent {
|
|
|
5192
5194
|
}
|
|
5193
5195
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GenericFilterComponent, [{
|
|
5194
5196
|
type: Component,
|
|
5195
|
-
args: [{ selector: 'xuilib-generic-filter', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: false, template: "<form [formGroup]=\"form\" (ngSubmit)=\"applyFilter(form)\">\n @for (field of config.fields; track field) {\n <div class=\"contain-classes\">\n @if (field.lineBreakBefore) {\n <hr class=\"govuk-section-break govuk-section-break--visible elevated-break\">\n }\n @switch (field.type) {\n @case ('group-title') {\n <div [class]=\"field.titleClasses ? field.titleClasses: 'govuk-label govuk-label--m govuk-!-margin-bottom-4'\">\n {{ field.name | capitalize }}\n </div>\n }\n @default {\n <div class=\"govuk-form-group xui-generic-filter\"\n [hidden]=\"hidden(field, form)\"\n [id]=\"field.name\"\n [ngClass]=\"{'govuk-form-group--error': submitted && (form.get(field.name).errors?.required || form.get(field.name).errors?.minlength || form.get(field.name).errors?.maxLength)}\">\n @if (field.title) {\n <div class=\"xui-generic-filter__field-title\">\n <h3 [id]=\"field.name + '-label'\" [class]=\"field.titleClasses ? field.titleClasses : 'govuk-heading-s'\" style=\"margin-bottom: 0!important\">\n {{field.title | capitalize}}\n </h3>\n @if (field?.titleHint) {\n <div class=\"govuk-!-margin-left-2\">\n {{ field.titleHint }}\n </div>\n }\n </div>\n }\n @if (field.subTitle) {\n <p class=\"govuk-body\">{{field.subTitle}}</p>\n }\n @if (field.hintText) {\n <div\n [id]=\"field.hintText + '-hint'\" class=\"govuk-hint\">\n {{ field.hintText | rpxTranslate }}\n </div>\n }\n @if (field.displayMinSelectedError && submitted && (form.get(field.name).errors?.required || form.get(field.name).errors?.minlength)) {\n <span [id]=\"field.name + '-error'\" class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate}}</span> {{field.minSelectedError | rpxTranslate }}\n </span>\n }\n @if (field.displayMaxSelectedError && submitted && form.get(field.name).errors?.maxLength) {\n <span [id]=\"field.name + '-error'\" class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate}}</span> {{field.maxSelectedError | rpxTranslate }}\n </span>\n }\n @if (field.emailError && submitted && form.get(field.name).errors?.email) {\n <span [id]=\"field.name + '-error'\" class=\"govuk-error-message\"\n >\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }}</span> {{field.emailError | rpxTranslate }}\n </span>\n }\n <div class=\"govuk-body\" [class.govuk-body--maxWidth480px]=\"field.maxWidth480px\">\n @switch (field.type) {\n @case ('select') {\n <select class=\"govuk-select\" (change)=\"fieldChanged(field, form)\" [attr.disabled]=\"disabled(field, form)\" [name]=\"'select_' + field.name\" [id]=\"'select_' + field.name\" [attr.aria-labelledby]=\"field.name + '-label'\" [formControlName]=\"field.name\">\n <option disabled selected hidden value=\"\">{{field.disabledText}}</option>\n @if (field.defaultOption) {\n <option [attr.selected]=\"true\" [value]=\"field.defaultOption.key\">{{field.defaultOption.label}}</option>\n }\n @for (item of field.options; track item) {\n <option class=\"govuk-radios__item\" [value]=\"item.key\">{{item.label}}</option>\n }\n </select>\n }\n @case ('group-select') {\n <select class=\"govuk-select\" (change)=\"fieldChanged(field, form)\" [attr.disabled]=\"disabled(field, form)\" [name]=\"'select_' + field.name\" [id]=\"'select_' + field.name\" [attr.aria-labelledby]=\"field.name + '-label'\" [formControlName]=\"field.name\">\n <option disabled selected hidden value=\"\">{{field.disabledText}}</option>\n @if (field.defaultOption) {\n <option selected [value]=\"field.defaultOption.key\">{{field.defaultOption.label}}</option>\n }\n @for (grp of filteredSkillsByServices; track grp) {\n <optgroup label=\"{{grp.group | titlecase}}\">\n @for (item of grp.options; track item) {\n <option [value]=\"item.key\">{{item.label}}</option>\n }\n </optgroup>\n }\n </select>\n }\n @case ('checkbox') {\n <div class=\"govuk-checkboxes govuk-checkboxes--small\" role=\"group\" [attr.aria-labelledby]=\"field.name + '-label'\" [formGroupName]=\"field.name\" [attr.field]=\"field.name\" [id]=\"'checkbox_' + field.name\">\n @for (item of field.options; track item; let i = $index) {\n <div class=\"govuk-checkboxes__item\">\n <input type=\"checkbox\" class=\"govuk-checkboxes__input\"\n [attr.disabled]=\"disabled(field, form)\"\n [formControlName]=\"i\"\n (change)=\"toggleSelectAll($event, form, item, field)\"\n [value]=\"item.key\" [id]=\"'checkbox_' + field.name + item.key\"\n [name]=\"'checkbox_' + field.name + item.key\"\n />\n <label\n [for]=\"'checkbox_' + field.name + item.key\"\n class=\"govuk-label govuk-checkboxes__label\"\n [ngClass]=\"{'govuk-!-font-weight-bold': item.selectAll}\"\n >{{item.label}}</label>\n </div>\n }\n </div>\n }\n @case ('nested-checkbox') {\n <div class=\"govuk-checkboxes govuk-checkboxes--small\" role=\"group\" [attr.aria-labelledby]=\"field.name + '-label'\" [formGroupName]=\"field.name\" [attr.field]=\"field.name\" [id]=\"'checkbox_' + field.name\">\n @for (item of filteredSkillsByServicesCheckbox; track item; let i = $index) {\n <div class=\"govuk-checkboxes__item\">\n <input type=\"checkbox\" class=\"govuk-checkboxes__input\"\n [attr.disabled]=\"disabled(field, form)\"\n [formControlName]=\"i\"\n (change)=\"toggleSelectAll($event, form, item, field)\"\n [value]=\"item.key\" [id]=\"'checkbox_' + field.name + item.key\"\n [name]=\"'checkbox_' + field.name + item.key\"\n />\n <label\n [for]=\"'checkbox_' + field.name + item.key\"\n class=\"govuk-label govuk-checkboxes__label\"\n [ngClass]=\"{'govuk-!-font-weight-bold': item.selectAll}\"\n >{{item.label | rpxTranslate}}</label>\n </div>\n }\n </div>\n }\n @case ('checkbox-large') {\n <div class=\"govuk-checkboxes\" role=\"group\" [attr.aria-labelledby]=\"field.name + '-label'\" [formGroupName]=\"field.name\" [attr.field]=\"field.name\" [id]=\"'checkbox_' + field.name\">\n @for (item of field.options; track item; let i = $index) {\n <div class=\"govuk-checkboxes__item\">\n <input type=\"checkbox\" class=\"govuk-checkboxes__input\"\n [attr.disabled]=\"disabled(field, form)\"\n [formControlName]=\"i\"\n (change)=\"toggleSelectAll($event, form, item, field)\"\n [value]=\"item.key\" [id]=\"'checkbox_' + field.name + item.key\"\n [name]=\"'checkbox_' + field.name + item.key\"\n />\n <label\n [for]=\"'checkbox_' + field.name + item.key\"\n class=\"govuk-label govuk-checkboxes__label\"\n [ngClass]=\"{'govuk-!-font-weight-bold': item.selectAll}\"\n >{{item.label | rpxTranslate}}</label>\n </div>\n }\n </div>\n }\n @case ('radio') {\n <div class=\"govuk-radios\" role=\"group\" [attr.aria-labelledby]=\"field.name + '-label'\">\n @for (item of field.options; track item) {\n <div class=\"govuk-radios__item\">\n <input type=\"radio\"\n [formControlName]=\"field.name\"\n [id]=\"'radio_' + item.key\"\n [attr.disabled]=\"disabled(field, form)\"\n [checked]=\"item.key === form.get(field.name).value\"\n class=\"govuk-radios__input\"\n [value]=\"item.key\"\n (change)=\"fieldChanged(field, form)\"\n />\n <label [for]=\"'radio_' + item.key\" class=\"govuk-label govuk-radios__label\">{{item.label | rpxTranslate}}</label>\n </div>\n }\n </div>\n }\n @case ('find-person') {\n <xuilib-find-person subTitle=\"\" (personSelected)=\"updatePersonControls($event, field)\"\n (personFieldChanged)=\"inputChanged(field)\"\n [submitted]=\"submitted\"\n [disabled]=\"disabled(field, form)\"\n [domain]=\"form.get(field.domainField)?.value\"\n [findPersonGroup]=\"form\"\n [selectedPerson]=\"form.get(field.name)?.value?.email\"\n [userIncluded]=\"false\"\n [placeholderContent]=\"field.placeholderContent ? field.placeholderContent : ''\"\n [services]=\"form.get(field.servicesField)?.value\"\n ></xuilib-find-person>\n }\n @case ('find-location') {\n <xuilib-find-location (locationFieldChanged)=\"inputChanged(field)\"\n [form]=\"form\"\n [fields]=\"config.fields\"\n [locationTitle]=\"field.locationTitle || 'Search for a location by name'\"\n [enableAddLocationButton]=\"field.enableAddButton\"\n [disabled]=\"disabled(field, form)\"\n [disableInputField]=\"field.disable\"\n [submitted]=\"submitted\"\n [field]=\"field\"\n [services]=\"form.get(field.findLocationField)?.value\"\n [formSubmissionEvent$]=\"formSubmissionEvent$\"\n ></xuilib-find-location>\n }\n @case ('find-task-name') {\n <xuilib-find-task-name subTitle=\"\" (taskNameSelected)=\"updateTaskNameControls($event, field)\"\n (taskNameFieldChanged)=\"inputChanged(field)\"\n [submitted]=\"submitted\"\n [disabled]=\"disabled(field, form)\"\n [domain]=\"form.get(field.domainField)?.value\"\n [findTaskNameGroup]=\"form\"\n [selectedTaskName]=\"form.get(field.name)?.value?.task_type_name\"\n [placeholderContent]=\"field.placeholderContent ? field.placeholderContent : ''\"\n [services]=\"form.get(field.servicesField)?.value\"\n ></xuilib-find-task-name>\n }\n @case ('find-service') {\n @if (isServiceSelected) {\n <span class=\"govuk-error-message\">{{serviceErrorMsg | rpxTranslate}}</span>\n }\n <xuilib-find-service (serviceFieldChanged)=\"inputServiceChanged(field)\"\n [field]=\"field\"\n [form]=\"form\"\n [formSubmissionEvent$]=\"formSubmissionEvent$\"\n [disabled]=\"disabled(field, form)\">\n </xuilib-find-service>\n }\n @case ('find-work-type') {\n <xuilib-find-work-type (workTypeFieldChanged)=\"inputChanged(field)\"\n [form]=\"form\"\n [fields]=\"config.fields\"\n [workTypeTitle]=\"field.workTypeTitle || 'Search for a work type by name'\"\n [enableAddWorkTypeButton]=\"field.enableAddButton\"\n [disabled]=\"disabled(field, form)\"\n [disableInputField]=\"field.disable\"\n [submitted]=\"submitted\"\n [field]=\"field\"\n [services]=\"form.get(field.findWorkTypeField)?.value\"\n [formSubmissionEvent$]=\"formSubmissionEvent$\"\n ></xuilib-find-work-type>\n }\n @case ('text-input') {\n <input class=\"govuk-input\" type=\"text\"\n [formControlName]=\"field.name\"\n [id]=\"field.name\"\n [attr.aria-labelledby]=\"field.name + '-label'\"\n [attr.disabled]=\"disabled(field, form)\"\n (change)=\"fieldChanged(field, form)\"\n [attr.maxlength]=\"field.maxlength ? field.maxlength : null\"\n [readonly]=\"field.readonly\"\n />\n }\n @case ('email-input') {\n <input class=\"govuk-input\" type=\"email\"\n [formControlName]=\"field.name\"\n [id]=\"field.name\"\n [attr.aria-labelledby]=\"field.name + '-label'\"\n [attr.disabled]=\"disabled(field, form)\"\n (change)=\"fieldChanged(field, form)\"\n [readonly]=\"field.readonly\"\n />\n }\n }\n </div>\n </div>\n }\n }\n </div>\n }\n <hr class=\"govuk-section-break govuk-section-break--m govuk-section-break--visible\"/>\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <button\n class=\"govuk-button govuk-!-margin-right-1 govuk-!-margin-bottom-0\"\n type=\"submit\"\n id=\"applyFilter\"\n [disabled]=\"config.enableDisabledButton && form.invalid\"\n >{{(config.applyButtonText || 'Apply') | rpxTranslate}}</button>\n @if (config.showCancelFilterButton) {\n <button\n class=\"govuk-button govuk-button--secondary govuk-!-margin-bottom-0\"\n type=\"button\"\n id=\"cancelFilter\"\n (click)=\"cancelFilter()\">{{ (config.cancelButtonText || 'Cancel') | rpxTranslate}}</button>\n }\n </div>\n </div>\n</form>\n", styles: [".contain-classes .elevated-break{margin-bottom:20px}@media (min-width: 40.0625em){.contain-classes .elevated-break{margin-bottom:30px}}.contain-classes .govuk-body--maxWidth480px{max-width:480px}.contain-classes .xui-generic-filter .select-all{margin-bottom:10px}.contain-classes .xui-generic-filter .govuk-checkboxes{display:flex;flex-direction:column;flex-wrap:wrap}.contain-classes .xui-generic-filter .govuk-checkboxes>div{flex-grow:1;flex-shrink:0}.contain-classes .xui-generic-filter__field-title{display:flex;align-items:center;margin-bottom:10px}.contain-classes .govuk-select{width:100%}\n"] }]
|
|
5197
|
+
args: [{ selector: 'xuilib-generic-filter', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: false, template: "<form [formGroup]=\"form\" (ngSubmit)=\"applyFilter(form)\">\n @for (field of config.fields; track field) {\n <div class=\"contain-classes\">\n @if (field.lineBreakBefore) {\n <hr class=\"govuk-section-break govuk-section-break--visible elevated-break\">\n }\n @switch (field.type) {\n @case ('group-title') {\n <div [class]=\"field.titleClasses ? field.titleClasses: 'govuk-label govuk-label--m govuk-!-margin-bottom-4'\">\n {{ field.name | capitalize }}\n </div>\n }\n @default {\n <div class=\"govuk-form-group xui-generic-filter\"\n [hidden]=\"hidden(field, form)\"\n [id]=\"field.name\"\n [ngClass]=\"{'form-group-error': submitted && (form.get(field.name).errors?.required || form.get(field.name).errors?.minlength || form.get(field.name).errors?.maxLength)}\">\n @if (field.title) {\n <div class=\"xui-generic-filter__field-title\">\n <h3 [id]=\"field.name + '-label'\" [class]=\"field.titleClasses ? field.titleClasses : 'govuk-heading-s'\" style=\"margin-bottom: 0!important\">\n {{field.title | capitalize}}\n </h3>\n @if (field?.titleHint) {\n <div class=\"govuk-!-margin-left-2\">\n {{ field.titleHint }}\n </div>\n }\n </div>\n }\n @if (field.subTitle) {\n <p class=\"govuk-body\">{{field.subTitle}}</p>\n }\n @if (field.hintText) {\n <div\n [id]=\"field.hintText + '-hint'\" class=\"govuk-hint\">\n {{ field.hintText | rpxTranslate }}\n </div>\n }\n @if (field.displayMinSelectedError && submitted && (form.get(field.name).errors?.required || form.get(field.name).errors?.minlength)) {\n <span [id]=\"field.name + '-error'\" class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate}}</span> {{field.minSelectedError | rpxTranslate }}\n </span>\n }\n @if (field.displayMaxSelectedError && submitted && form.get(field.name).errors?.maxLength) {\n <span [id]=\"field.name + '-error'\" class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate}}</span> {{field.maxSelectedError | rpxTranslate }}\n </span>\n }\n @if (field.emailError && submitted && form.get(field.name).errors?.email) {\n <span [id]=\"field.name + '-error'\" class=\"govuk-error-message\"\n >\n <span class=\"govuk-visually-hidden\">{{ 'Error:' | rpxTranslate }}</span> {{field.emailError | rpxTranslate }}\n </span>\n }\n <div class=\"govuk-body\" [class.govuk-body--maxWidth480px]=\"field.maxWidth480px\">\n @switch (field.type) {\n @case ('select') {\n <select class=\"govuk-select\" (change)=\"fieldChanged(field, form)\" [attr.disabled]=\"disabled(field, form)\" [name]=\"'select_' + field.name\" [id]=\"'select_' + field.name\" [attr.aria-labelledby]=\"field.name + '-label'\" [formControlName]=\"field.name\">\n <option disabled selected hidden value=\"\">{{field.disabledText}}</option>\n @if (field.defaultOption) {\n <option [attr.selected]=\"true\" [value]=\"field.defaultOption.key\">{{field.defaultOption.label}}</option>\n }\n @for (item of field.options; track item) {\n <option class=\"govuk-radios__item\" [value]=\"item.key\">{{item.label}}</option>\n }\n </select>\n }\n @case ('group-select') {\n <select class=\"govuk-select\" (change)=\"fieldChanged(field, form)\" [attr.disabled]=\"disabled(field, form)\" [name]=\"'select_' + field.name\" [id]=\"'select_' + field.name\" [attr.aria-labelledby]=\"field.name + '-label'\" [formControlName]=\"field.name\">\n <option disabled selected hidden value=\"\">{{field.disabledText}}</option>\n @if (field.defaultOption) {\n <option selected [value]=\"field.defaultOption.key\">{{field.defaultOption.label}}</option>\n }\n @for (grp of filteredSkillsByServices; track grp) {\n <optgroup label=\"{{grp.group | titlecase}}\">\n @for (item of grp.options; track item) {\n <option [value]=\"item.key\">{{item.label}}</option>\n }\n </optgroup>\n }\n </select>\n }\n @case ('checkbox') {\n <div class=\"govuk-checkboxes govuk-checkboxes--small\" role=\"group\" [attr.aria-labelledby]=\"field.name + '-label'\" [formGroupName]=\"field.name\" [attr.field]=\"field.name\" [id]=\"'checkbox_' + field.name\">\n @for (item of field.options; track item; let i = $index) {\n <div class=\"govuk-checkboxes__item\">\n <input type=\"checkbox\" class=\"govuk-checkboxes__input\"\n [attr.disabled]=\"disabled(field, form)\"\n [formControlName]=\"i\"\n (change)=\"toggleSelectAll($event, form, item, field)\"\n [value]=\"item.key\" [id]=\"'checkbox_' + field.name + item.key\"\n [name]=\"'checkbox_' + field.name + item.key\"\n />\n <label\n [for]=\"'checkbox_' + field.name + item.key\"\n class=\"govuk-label govuk-checkboxes__label\"\n [ngClass]=\"{'govuk-!-font-weight-bold': item.selectAll}\"\n >{{item.label}}</label>\n </div>\n }\n </div>\n }\n @case ('nested-checkbox') {\n <div class=\"govuk-checkboxes govuk-checkboxes--small\" role=\"group\" [attr.aria-labelledby]=\"field.name + '-label'\" [formGroupName]=\"field.name\" [attr.field]=\"field.name\" [id]=\"'checkbox_' + field.name\">\n @for (item of filteredSkillsByServicesCheckbox; track item; let i = $index) {\n <div class=\"govuk-checkboxes__item\">\n <input type=\"checkbox\" class=\"govuk-checkboxes__input\"\n [attr.disabled]=\"disabled(field, form)\"\n [formControlName]=\"i\"\n (change)=\"toggleSelectAll($event, form, item, field)\"\n [value]=\"item.key\" [id]=\"'checkbox_' + field.name + item.key\"\n [name]=\"'checkbox_' + field.name + item.key\"\n />\n <label\n [for]=\"'checkbox_' + field.name + item.key\"\n class=\"govuk-label govuk-checkboxes__label\"\n [ngClass]=\"{'govuk-!-font-weight-bold': item.selectAll}\"\n >{{item.label | rpxTranslate}}</label>\n </div>\n }\n </div>\n }\n @case ('checkbox-large') {\n <div class=\"govuk-checkboxes\" role=\"group\" [attr.aria-labelledby]=\"field.name + '-label'\" [formGroupName]=\"field.name\" [attr.field]=\"field.name\" [id]=\"'checkbox_' + field.name\">\n @for (item of field.options; track item; let i = $index) {\n <div class=\"govuk-checkboxes__item\">\n <input type=\"checkbox\" class=\"govuk-checkboxes__input\"\n [attr.disabled]=\"disabled(field, form)\"\n [formControlName]=\"i\"\n (change)=\"toggleSelectAll($event, form, item, field)\"\n [value]=\"item.key\" [id]=\"'checkbox_' + field.name + item.key\"\n [name]=\"'checkbox_' + field.name + item.key\"\n />\n <label\n [for]=\"'checkbox_' + field.name + item.key\"\n class=\"govuk-label govuk-checkboxes__label\"\n [ngClass]=\"{'govuk-!-font-weight-bold': item.selectAll}\"\n >{{item.label | rpxTranslate}}</label>\n </div>\n }\n </div>\n }\n @case ('radio') {\n <div class=\"govuk-radios\" role=\"group\" [attr.aria-labelledby]=\"field.name + '-label'\">\n @for (item of field.options; track item) {\n <div class=\"govuk-radios__item\">\n <input type=\"radio\"\n [formControlName]=\"field.name\"\n [id]=\"'radio_' + item.key\"\n [attr.disabled]=\"disabled(field, form)\"\n [checked]=\"item.key === form.get(field.name).value\"\n class=\"govuk-radios__input\"\n [value]=\"item.key\"\n (change)=\"fieldChanged(field, form)\"\n />\n <label [for]=\"'radio_' + item.key\" class=\"govuk-label govuk-radios__label\">{{item.label | rpxTranslate}}</label>\n </div>\n }\n </div>\n }\n @case ('find-person') {\n <xuilib-find-person subTitle=\"\" (personSelected)=\"updatePersonControls($event, field)\"\n (personFieldChanged)=\"inputChanged(field)\"\n [submitted]=\"submitted\"\n [disabled]=\"disabled(field, form)\"\n [domain]=\"form.get(field.domainField)?.value\"\n [findPersonGroup]=\"form\"\n [selectedPerson]=\"form.get(field.name)?.value?.email\"\n [userIncluded]=\"false\"\n [placeholderContent]=\"field.placeholderContent ? field.placeholderContent : ''\"\n [services]=\"form.get(field.servicesField)?.value\"\n ></xuilib-find-person>\n }\n @case ('find-location') {\n <xuilib-find-location (locationFieldChanged)=\"inputChanged(field)\"\n [form]=\"form\"\n [fields]=\"config.fields\"\n [locationTitle]=\"field.locationTitle || 'Search for a location by name'\"\n [enableAddLocationButton]=\"field.enableAddButton\"\n [disabled]=\"disabled(field, form)\"\n [disableInputField]=\"field.disable\"\n [submitted]=\"submitted\"\n [field]=\"field\"\n [services]=\"form.get(field.findLocationField)?.value\"\n [formSubmissionEvent$]=\"formSubmissionEvent$\"\n ></xuilib-find-location>\n }\n @case ('find-task-name') {\n <xuilib-find-task-name subTitle=\"\" (taskNameSelected)=\"updateTaskNameControls($event, field)\"\n (taskNameFieldChanged)=\"inputChanged(field)\"\n [submitted]=\"submitted\"\n [disabled]=\"disabled(field, form)\"\n [domain]=\"form.get(field.domainField)?.value\"\n [findTaskNameGroup]=\"form\"\n [selectedTaskName]=\"form.get(field.name)?.value?.task_type_name\"\n [placeholderContent]=\"field.placeholderContent ? field.placeholderContent : ''\"\n [services]=\"form.get(field.servicesField)?.value\"\n ></xuilib-find-task-name>\n }\n @case ('find-service') {\n @if (isServiceSelected) {\n <span class=\"govuk-error-message\">{{serviceErrorMsg | rpxTranslate}}</span>\n }\n <xuilib-find-service (serviceFieldChanged)=\"inputServiceChanged(field)\"\n [field]=\"field\"\n [form]=\"form\"\n [formSubmissionEvent$]=\"formSubmissionEvent$\"\n [disabled]=\"disabled(field, form)\">\n </xuilib-find-service>\n }\n @case ('find-work-type') {\n <xuilib-find-work-type (workTypeFieldChanged)=\"inputChanged(field)\"\n [form]=\"form\"\n [fields]=\"config.fields\"\n [workTypeTitle]=\"field.workTypeTitle || 'Search for a work type by name'\"\n [enableAddWorkTypeButton]=\"field.enableAddButton\"\n [disabled]=\"disabled(field, form)\"\n [disableInputField]=\"field.disable\"\n [submitted]=\"submitted\"\n [field]=\"field\"\n [services]=\"form.get(field.findWorkTypeField)?.value\"\n [formSubmissionEvent$]=\"formSubmissionEvent$\"\n ></xuilib-find-work-type>\n }\n @case ('text-input') {\n <input class=\"govuk-input\" type=\"text\"\n [formControlName]=\"field.name\"\n [id]=\"field.name\"\n [attr.aria-labelledby]=\"field.name + '-label'\"\n [attr.disabled]=\"disabled(field, form)\"\n (change)=\"fieldChanged(field, form)\"\n [attr.maxlength]=\"field.maxlength ? field.maxlength : null\"\n [readonly]=\"field.readonly\"\n />\n }\n @case ('email-input') {\n <input class=\"govuk-input\" type=\"email\"\n [formControlName]=\"field.name\"\n [id]=\"field.name\"\n [attr.aria-labelledby]=\"field.name + '-label'\"\n [attr.disabled]=\"disabled(field, form)\"\n (change)=\"fieldChanged(field, form)\"\n [readonly]=\"field.readonly\"\n />\n }\n }\n </div>\n </div>\n }\n }\n </div>\n }\n <hr class=\"govuk-section-break govuk-section-break--m govuk-section-break--visible\"/>\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-full\">\n <button\n class=\"govuk-button govuk-!-margin-right-1 govuk-!-margin-bottom-0\"\n type=\"submit\"\n id=\"applyFilter\"\n [disabled]=\"config.enableDisabledButton && form.invalid\"\n >{{(config.applyButtonText || 'Apply') | rpxTranslate}}</button>\n @if (config.showCancelFilterButton) {\n <button\n class=\"govuk-button govuk-button--secondary govuk-!-margin-bottom-0\"\n type=\"button\"\n id=\"cancelFilter\"\n (click)=\"cancelFilter()\">{{ (config.cancelButtonText || 'Cancel') | rpxTranslate}}</button>\n }\n </div>\n </div>\n</form>\n", styles: [".contain-classes .elevated-break{margin-bottom:20px}@media (min-width: 40.0625em){.contain-classes .elevated-break{margin-bottom:30px}}.contain-classes .govuk-body--maxWidth480px{max-width:480px}.contain-classes .xui-generic-filter .select-all{margin-bottom:10px}.contain-classes .xui-generic-filter .govuk-checkboxes{display:flex;flex-direction:column;flex-wrap:wrap}.contain-classes .xui-generic-filter .govuk-checkboxes>div{flex-grow:1;flex-shrink:0}.contain-classes .xui-generic-filter__field-title{display:flex;align-items:center;margin-bottom:10px}.contain-classes .govuk-select{width:100%}\n"] }]
|
|
5196
5198
|
}], () => [{ type: FilterService }, { type: i2$3.FormBuilder }, { type: i0.ChangeDetectorRef }], { config: [{
|
|
5197
5199
|
type: Input
|
|
5198
5200
|
}], settings: [{
|
|
@@ -5948,14 +5950,14 @@ class CaseSharingStateService {
|
|
|
5948
5950
|
}], () => [], null); })();
|
|
5949
5951
|
|
|
5950
5952
|
function _forTrack0$2($index, $item) { return this.trackByUserId($item); }
|
|
5951
|
-
function
|
|
5952
|
-
i0.ɵɵelementStart(0, "tr",
|
|
5953
|
+
function SelectedCaseConfirmComponent_Conditional_0_For_26_Template(rf, ctx) { if (rf & 1) {
|
|
5954
|
+
i0.ɵɵelementStart(0, "tr", 8)(1, "td", 12);
|
|
5953
5955
|
i0.ɵɵtext(2);
|
|
5954
5956
|
i0.ɵɵelementEnd();
|
|
5955
|
-
i0.ɵɵelementStart(3, "td",
|
|
5957
|
+
i0.ɵɵelementStart(3, "td", 12);
|
|
5956
5958
|
i0.ɵɵtext(4);
|
|
5957
5959
|
i0.ɵɵelementEnd();
|
|
5958
|
-
i0.ɵɵelementStart(5, "td",
|
|
5960
|
+
i0.ɵɵelementStart(5, "td", 12)(6, "span", 13);
|
|
5959
5961
|
i0.ɵɵtext(7);
|
|
5960
5962
|
i0.ɵɵpipe(8, "rpxTranslate");
|
|
5961
5963
|
i0.ɵɵelementEnd()()();
|
|
@@ -5968,14 +5970,14 @@ function SelectedCaseConfirmComponent_Conditional_0_For_29_Template(rf, ctx) { i
|
|
|
5968
5970
|
i0.ɵɵadvance(3);
|
|
5969
5971
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(8, 3, "To be added"));
|
|
5970
5972
|
} }
|
|
5971
|
-
function
|
|
5972
|
-
i0.ɵɵelementStart(0, "tr",
|
|
5973
|
+
function SelectedCaseConfirmComponent_Conditional_0_For_28_Template(rf, ctx) { if (rf & 1) {
|
|
5974
|
+
i0.ɵɵelementStart(0, "tr", 8)(1, "td", 12);
|
|
5973
5975
|
i0.ɵɵtext(2);
|
|
5974
5976
|
i0.ɵɵelementEnd();
|
|
5975
|
-
i0.ɵɵelementStart(3, "td",
|
|
5977
|
+
i0.ɵɵelementStart(3, "td", 12);
|
|
5976
5978
|
i0.ɵɵtext(4);
|
|
5977
5979
|
i0.ɵɵelementEnd();
|
|
5978
|
-
i0.ɵɵelementStart(5, "td",
|
|
5980
|
+
i0.ɵɵelementStart(5, "td", 12)(6, "span", 14);
|
|
5979
5981
|
i0.ɵɵtext(7);
|
|
5980
5982
|
i0.ɵɵpipe(8, "rpxTranslate");
|
|
5981
5983
|
i0.ɵɵelementEnd()()();
|
|
@@ -6002,26 +6004,21 @@ function SelectedCaseConfirmComponent_Conditional_0_Template(rf, ctx) { if (rf &
|
|
|
6002
6004
|
i0.ɵɵtext(10);
|
|
6003
6005
|
i0.ɵɵpipe(11, "rpxTranslate");
|
|
6004
6006
|
i0.ɵɵelementEnd()()();
|
|
6005
|
-
i0.ɵɵelementStart(12, "table", 6)(13, "
|
|
6006
|
-
i0.ɵɵtext(
|
|
6007
|
-
i0.ɵɵpipe(
|
|
6007
|
+
i0.ɵɵelementStart(12, "table", 6)(13, "thead", 7)(14, "tr", 8)(15, "th", 9);
|
|
6008
|
+
i0.ɵɵtext(16);
|
|
6009
|
+
i0.ɵɵpipe(17, "rpxTranslate");
|
|
6008
6010
|
i0.ɵɵelementEnd();
|
|
6009
|
-
i0.ɵɵelementStart(
|
|
6011
|
+
i0.ɵɵelementStart(18, "th", 9);
|
|
6010
6012
|
i0.ɵɵtext(19);
|
|
6011
6013
|
i0.ɵɵpipe(20, "rpxTranslate");
|
|
6012
6014
|
i0.ɵɵelementEnd();
|
|
6013
6015
|
i0.ɵɵelementStart(21, "th", 10);
|
|
6014
6016
|
i0.ɵɵtext(22);
|
|
6015
6017
|
i0.ɵɵpipe(23, "rpxTranslate");
|
|
6016
|
-
i0.ɵɵelementEnd();
|
|
6017
|
-
i0.ɵɵelementStart(24, "th", 11);
|
|
6018
|
-
i0.ɵɵtext(25);
|
|
6019
|
-
i0.ɵɵpipe(26, "rpxTranslate");
|
|
6020
6018
|
i0.ɵɵelementEnd()()();
|
|
6021
|
-
i0.ɵɵelementStart(
|
|
6022
|
-
i0.ɵɵrepeaterCreate(
|
|
6023
|
-
i0.ɵɵ
|
|
6024
|
-
i0.ɵɵrepeaterCreate(31, SelectedCaseConfirmComponent_Conditional_0_For_32_Template, 9, 5, "tr", 9, _forTrack0$2, true);
|
|
6019
|
+
i0.ɵɵelementStart(24, "tbody", 11);
|
|
6020
|
+
i0.ɵɵrepeaterCreate(25, SelectedCaseConfirmComponent_Conditional_0_For_26_Template, 9, 5, "tr", 8, _forTrack0$2, true);
|
|
6021
|
+
i0.ɵɵrepeaterCreate(27, SelectedCaseConfirmComponent_Conditional_0_For_28_Template, 9, 5, "tr", 8, _forTrack0$2, true);
|
|
6025
6022
|
i0.ɵɵelementEnd()()();
|
|
6026
6023
|
} if (rf & 2) {
|
|
6027
6024
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
@@ -6033,20 +6030,18 @@ function SelectedCaseConfirmComponent_Conditional_0_Template(rf, ctx) { if (rf &
|
|
|
6033
6030
|
i0.ɵɵadvance();
|
|
6034
6031
|
i0.ɵɵproperty("routerLink", ctx_r2.changeLink);
|
|
6035
6032
|
i0.ɵɵadvance();
|
|
6036
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8,
|
|
6033
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 10, "Change"), " ");
|
|
6037
6034
|
i0.ɵɵadvance(3);
|
|
6038
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(11,
|
|
6039
|
-
i0.ɵɵadvance(
|
|
6040
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
6041
|
-
i0.ɵɵadvance(5);
|
|
6042
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(20, 17, "Name"));
|
|
6035
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(11, 12, "selected case"));
|
|
6036
|
+
i0.ɵɵadvance(6);
|
|
6037
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(17, 14, "Name"));
|
|
6043
6038
|
i0.ɵɵadvance(3);
|
|
6044
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
6039
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(20, 16, "Email address"));
|
|
6045
6040
|
i0.ɵɵadvance(3);
|
|
6046
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
6041
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(23, 18, "Actions"));
|
|
6047
6042
|
i0.ɵɵadvance(3);
|
|
6048
6043
|
i0.ɵɵrepeater(ctx_r2.sharedCase.pendingShares);
|
|
6049
|
-
i0.ɵɵadvance(
|
|
6044
|
+
i0.ɵɵadvance(2);
|
|
6050
6045
|
i0.ɵɵrepeater(ctx_r2.sharedCase.pendingUnshares);
|
|
6051
6046
|
} }
|
|
6052
6047
|
class SelectedCaseConfirmComponent {
|
|
@@ -6068,15 +6063,15 @@ class SelectedCaseConfirmComponent {
|
|
|
6068
6063
|
return this.sharedCase.pendingUnshares && this.sharedCase.pendingUnshares.length > 0;
|
|
6069
6064
|
}
|
|
6070
6065
|
static { this.ɵfac = function SelectedCaseConfirmComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SelectedCaseConfirmComponent)(i0.ɵɵdirectiveInject(CaseSharingStateService)); }; }
|
|
6071
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SelectedCaseConfirmComponent, selectors: [["xuilib-selected-case-confirm"]], inputs: { sharedCase: "sharedCase", changeLink: "changeLink" }, standalone: false, decls: 1, vars: 1, consts: [[3, "id"], [1, "govuk-heading-m", "case-share-confirm__title"], [1, "case-share-confirm__caption-area"], [1, "govuk-caption-m", "case-share-confirm__caption"], [1, "case-share-confirm__change-link", "govuk-link", "govuk-!-font-size-19", 3, "routerLink"], [1, "govuk-visually-hidden"], [1, "govuk-table"], [1, "govuk-
|
|
6072
|
-
i0.ɵɵconditionalCreate(0, SelectedCaseConfirmComponent_Conditional_0_Template,
|
|
6066
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SelectedCaseConfirmComponent, selectors: [["xuilib-selected-case-confirm"]], inputs: { sharedCase: "sharedCase", changeLink: "changeLink" }, standalone: false, decls: 1, vars: 1, consts: [[3, "id"], [1, "govuk-heading-m", "case-share-confirm__title"], [1, "case-share-confirm__caption-area"], [1, "govuk-caption-m", "case-share-confirm__caption"], [1, "case-share-confirm__change-link", "govuk-link", "govuk-!-font-size-19", 3, "routerLink"], [1, "govuk-visually-hidden"], [1, "govuk-table"], [1, "govuk-table__head"], [1, "govuk-table__row"], ["scope", "col", 1, "govuk-table__header", "govuk-table-column-header"], ["scope", "col", 1, "govuk-table__header", "govuk-table-column-actions"], [1, "govuk-table__body"], [1, "govuk-table__cell"], [1, "hmcts-badge"], [1, "hmcts-badge", "hmcts-badge--red"]], template: function SelectedCaseConfirmComponent_Template(rf, ctx) { if (rf & 1) {
|
|
6067
|
+
i0.ɵɵconditionalCreate(0, SelectedCaseConfirmComponent_Conditional_0_Template, 29, 20, "div", 0);
|
|
6073
6068
|
} if (rf & 2) {
|
|
6074
6069
|
i0.ɵɵconditional(ctx.showUserAccessBlock() ? 0 : -1);
|
|
6075
|
-
} }, dependencies: [i1$1.RouterLink, i2.RpxTranslatePipe], styles: [".case-share-confirm__title[_ngcontent-%COMP%]{margin-bottom:0}.case-share-confirm__caption-area[_ngcontent-%COMP%]{border-bottom:1px solid
|
|
6070
|
+
} }, dependencies: [i1$1.RouterLink, i2.RpxTranslatePipe], styles: [".case-share-confirm__title[_ngcontent-%COMP%]{margin-bottom:0}.case-share-confirm__caption-area[_ngcontent-%COMP%]{border-bottom:1px solid #b1b4b6;padding-bottom:10px;display:inline-block;width:100%;clear:both}.case-share-confirm__caption[_ngcontent-%COMP%]{float:left}.case-share-confirm__change-link[_ngcontent-%COMP%]{float:right}.govuk-table-column-header[_ngcontent-%COMP%]{width:45%}.govuk-table-column-actions[_ngcontent-%COMP%]{width:10%}"] }); }
|
|
6076
6071
|
}
|
|
6077
6072
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectedCaseConfirmComponent, [{
|
|
6078
6073
|
type: Component,
|
|
6079
|
-
args: [{ selector: 'xuilib-selected-case-confirm', standalone: false, template: "@if (showUserAccessBlock()) {\n <div id=\"user-access-block-{{ sharedCase.caseId }}\">\n <h2 class=\"govuk-heading-m case-share-confirm__title\">{{ sharedCase.caseTitle }}</h2>\n <div class=\"case-share-confirm__caption-area\">\n <div class=\"govuk-caption-m case-share-confirm__caption\">\n {{ sharedCase.caseId }}\n </div>\n <a [routerLink]=\"changeLink\" class=\"case-share-confirm__change-link govuk-link govuk-!-font-size-19\">\n {{'Change' | rpxTranslate}}\n <span class=\"govuk-visually-hidden\">{{'selected case' | rpxTranslate}}</span>\n </a>\n </div>\n <table class=\"govuk-table\">\n <
|
|
6074
|
+
args: [{ selector: 'xuilib-selected-case-confirm', standalone: false, template: "@if (showUserAccessBlock()) {\n <div id=\"user-access-block-{{ sharedCase.caseId }}\">\n <h2 class=\"govuk-heading-m case-share-confirm__title\">{{ sharedCase.caseTitle }}</h2>\n <div class=\"case-share-confirm__caption-area\">\n <div class=\"govuk-caption-m case-share-confirm__caption\">\n {{ sharedCase.caseId }}\n </div>\n <a [routerLink]=\"changeLink\" class=\"case-share-confirm__change-link govuk-link govuk-!-font-size-19\">\n {{'Change' | rpxTranslate}}\n <span class=\"govuk-visually-hidden\">{{'selected case' | rpxTranslate}}</span>\n </a>\n </div>\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <th class=\"govuk-table__header govuk-table-column-header\" scope=\"col\">{{'Name' | rpxTranslate}}</th>\n <th class=\"govuk-table__header govuk-table-column-header\" scope=\"col\">{{'Email address' | rpxTranslate}}</th>\n <th class=\"govuk-table__header govuk-table-column-actions\" scope=\"col\">{{'Actions' | rpxTranslate}}</th>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n @for (user of sharedCase.pendingShares; track trackByUserId(user)) {\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell\">{{ user.firstName + ' ' + user.lastName }}</td>\n <td class=\"govuk-table__cell\">{{ user.email }}</td>\n <td class=\"govuk-table__cell\">\n <span class=\"hmcts-badge\">{{'To be added' | rpxTranslate}}</span>\n </td>\n </tr>\n }\n @for (user of sharedCase.pendingUnshares; track trackByUserId(user)) {\n <tr class=\"govuk-table__row\">\n <td class=\"govuk-table__cell\">{{ user.firstName + ' ' + user.lastName }}</td>\n <td class=\"govuk-table__cell\">{{ user.email }}</td>\n <td class=\"govuk-table__cell\">\n <span class=\"hmcts-badge hmcts-badge--red\">\n {{'To be removed' | rpxTranslate}}\n </span>\n </td>\n </tr>\n }\n </tbody>\n </table>\n </div>\n}\n", styles: [".case-share-confirm__title{margin-bottom:0}.case-share-confirm__caption-area{border-bottom:1px solid #b1b4b6;padding-bottom:10px;display:inline-block;width:100%;clear:both}.case-share-confirm__caption{float:left}.case-share-confirm__change-link{float:right}.govuk-table-column-header{width:45%}.govuk-table-column-actions{width:10%}\n"] }]
|
|
6080
6075
|
}], () => [{ type: CaseSharingStateService }], { sharedCase: [{
|
|
6081
6076
|
type: Input
|
|
6082
6077
|
}], changeLink: [{
|
|
@@ -6085,10 +6080,10 @@ class SelectedCaseConfirmComponent {
|
|
|
6085
6080
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SelectedCaseConfirmComponent, { className: "SelectedCaseConfirmComponent", filePath: "lib/components/selected-case-confirm/selected-case-confirm.component.ts", lineNumber: 13 }); })();
|
|
6086
6081
|
|
|
6087
6082
|
function _forTrack0$1($index, $item) { return this.trackByUserId($item); }
|
|
6088
|
-
function
|
|
6083
|
+
function SelectedCaseComponent_Conditional_11_Template(rf, ctx) { if (rf & 1) {
|
|
6089
6084
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
6090
6085
|
i0.ɵɵelementStart(0, "button", 14);
|
|
6091
|
-
i0.ɵɵlistener("click", function
|
|
6086
|
+
i0.ɵɵlistener("click", function SelectedCaseComponent_Conditional_11_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onDeselect(ctx_r1.sharedCase)); });
|
|
6092
6087
|
i0.ɵɵtext(1);
|
|
6093
6088
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
6094
6089
|
i0.ɵɵelementEnd();
|
|
@@ -6098,7 +6093,7 @@ function SelectedCaseComponent_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
|
6098
6093
|
i0.ɵɵadvance();
|
|
6099
6094
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 3, "Deselect case"), " ");
|
|
6100
6095
|
} }
|
|
6101
|
-
function
|
|
6096
|
+
function SelectedCaseComponent_Conditional_18_Template(rf, ctx) { if (rf & 1) {
|
|
6102
6097
|
i0.ɵɵelementStart(0, "div", 12)(1, "span", 15);
|
|
6103
6098
|
i0.ɵɵtext(2);
|
|
6104
6099
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
@@ -6110,7 +6105,7 @@ function SelectedCaseComponent_Conditional_17_Template(rf, ctx) { if (rf & 1) {
|
|
|
6110
6105
|
i0.ɵɵadvance();
|
|
6111
6106
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 3, "No users from your organisation currently have access to this case."), " ");
|
|
6112
6107
|
} }
|
|
6113
|
-
function
|
|
6108
|
+
function SelectedCaseComponent_Conditional_19_Template(rf, ctx) { if (rf & 1) {
|
|
6114
6109
|
i0.ɵɵelementStart(0, "div", 12)(1, "span", 15);
|
|
6115
6110
|
i0.ɵɵtext(2);
|
|
6116
6111
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
@@ -6122,13 +6117,13 @@ function SelectedCaseComponent_Conditional_18_Template(rf, ctx) { if (rf & 1) {
|
|
|
6122
6117
|
i0.ɵɵadvance();
|
|
6123
6118
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 3, "Users from your organisation with access to this case."), " ");
|
|
6124
6119
|
} }
|
|
6125
|
-
function
|
|
6120
|
+
function SelectedCaseComponent_Conditional_20_For_17_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
6126
6121
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
6127
|
-
i0.ɵɵelementStart(0, "a",
|
|
6128
|
-
i0.ɵɵlistener("click", function
|
|
6122
|
+
i0.ɵɵelementStart(0, "a", 27);
|
|
6123
|
+
i0.ɵɵlistener("click", function SelectedCaseComponent_Conditional_20_For_17_Conditional_8_Template_a_click_0_listener($event) { i0.ɵɵrestoreView(_r3); const user_r4 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(2); ctx_r1.onRemove(user_r4, ctx_r1.sharedCase); return i0.ɵɵresetView($event.preventDefault()); });
|
|
6129
6124
|
i0.ɵɵtext(1);
|
|
6130
6125
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
6131
|
-
i0.ɵɵelementStart(3, "span",
|
|
6126
|
+
i0.ɵɵelementStart(3, "span", 28);
|
|
6132
6127
|
i0.ɵɵtext(4);
|
|
6133
6128
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
6134
6129
|
i0.ɵɵelementEnd()();
|
|
@@ -6139,13 +6134,13 @@ function SelectedCaseComponent_Conditional_19_For_20_Conditional_8_Template(rf,
|
|
|
6139
6134
|
i0.ɵɵadvance(3);
|
|
6140
6135
|
i0.ɵɵtextInterpolate2("", user_r4.firstName + " " + user_r4.lastName, " ", i0.ɵɵpipeBind1(5, 5, "from case"));
|
|
6141
6136
|
} }
|
|
6142
|
-
function
|
|
6137
|
+
function SelectedCaseComponent_Conditional_20_For_17_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
6143
6138
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
6144
|
-
i0.ɵɵelementStart(0, "a",
|
|
6145
|
-
i0.ɵɵlistener("click", function
|
|
6139
|
+
i0.ɵɵelementStart(0, "a", 27);
|
|
6140
|
+
i0.ɵɵlistener("click", function SelectedCaseComponent_Conditional_20_For_17_Conditional_10_Template_a_click_0_listener($event) { i0.ɵɵrestoreView(_r5); const user_r4 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(2); ctx_r1.onCancel(user_r4, ctx_r1.sharedCase); return i0.ɵɵresetView($event.preventDefault()); });
|
|
6146
6141
|
i0.ɵɵtext(1);
|
|
6147
6142
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
6148
|
-
i0.ɵɵelementStart(3, "span",
|
|
6143
|
+
i0.ɵɵelementStart(3, "span", 28);
|
|
6149
6144
|
i0.ɵɵtext(4);
|
|
6150
6145
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
6151
6146
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
@@ -6157,8 +6152,8 @@ function SelectedCaseComponent_Conditional_19_For_20_Conditional_10_Template(rf,
|
|
|
6157
6152
|
i0.ɵɵadvance(3);
|
|
6158
6153
|
i0.ɵɵtextInterpolate3("", i0.ɵɵpipeBind1(5, 6, "adding"), " ", user_r4.firstName + " " + user_r4.lastName, " ", i0.ɵɵpipeBind1(6, 8, "to case"));
|
|
6159
6154
|
} }
|
|
6160
|
-
function
|
|
6161
|
-
i0.ɵɵelementStart(0, "
|
|
6155
|
+
function SelectedCaseComponent_Conditional_20_For_17_Conditional_13_Template(rf, ctx) { if (rf & 1) {
|
|
6156
|
+
i0.ɵɵelementStart(0, "span", 25);
|
|
6162
6157
|
i0.ɵɵtext(1);
|
|
6163
6158
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
6164
6159
|
i0.ɵɵelementEnd();
|
|
@@ -6166,8 +6161,8 @@ function SelectedCaseComponent_Conditional_19_For_20_Conditional_13_Template(rf,
|
|
|
6166
6161
|
i0.ɵɵadvance();
|
|
6167
6162
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "To be removed"));
|
|
6168
6163
|
} }
|
|
6169
|
-
function
|
|
6170
|
-
i0.ɵɵelementStart(0, "
|
|
6164
|
+
function SelectedCaseComponent_Conditional_20_For_17_Conditional_15_Template(rf, ctx) { if (rf & 1) {
|
|
6165
|
+
i0.ɵɵelementStart(0, "span", 26);
|
|
6171
6166
|
i0.ɵɵtext(1);
|
|
6172
6167
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
6173
6168
|
i0.ɵɵelementEnd();
|
|
@@ -6175,37 +6170,37 @@ function SelectedCaseComponent_Conditional_19_For_20_Conditional_15_Template(rf,
|
|
|
6175
6170
|
i0.ɵɵadvance();
|
|
6176
6171
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "To be added"));
|
|
6177
6172
|
} }
|
|
6178
|
-
function
|
|
6179
|
-
i0.ɵɵelementStart(0, "tr",
|
|
6173
|
+
function SelectedCaseComponent_Conditional_20_For_17_Template(rf, ctx) { if (rf & 1) {
|
|
6174
|
+
i0.ɵɵelementStart(0, "tr", 17)(1, "td", 22);
|
|
6180
6175
|
i0.ɵɵpipe(2, "async");
|
|
6181
6176
|
i0.ɵɵtext(3);
|
|
6182
6177
|
i0.ɵɵelementEnd();
|
|
6183
|
-
i0.ɵɵelementStart(4, "td",
|
|
6178
|
+
i0.ɵɵelementStart(4, "td", 22);
|
|
6184
6179
|
i0.ɵɵpipe(5, "async");
|
|
6185
6180
|
i0.ɵɵtext(6);
|
|
6186
6181
|
i0.ɵɵelementEnd();
|
|
6187
|
-
i0.ɵɵelementStart(7, "td",
|
|
6188
|
-
i0.ɵɵconditionalCreate(8,
|
|
6182
|
+
i0.ɵɵelementStart(7, "td", 23);
|
|
6183
|
+
i0.ɵɵconditionalCreate(8, SelectedCaseComponent_Conditional_20_For_17_Conditional_8_Template, 6, 7, "a", 24);
|
|
6189
6184
|
i0.ɵɵpipe(9, "async");
|
|
6190
|
-
i0.ɵɵconditionalCreate(10,
|
|
6185
|
+
i0.ɵɵconditionalCreate(10, SelectedCaseComponent_Conditional_20_For_17_Conditional_10_Template, 7, 10, "a", 24);
|
|
6191
6186
|
i0.ɵɵpipe(11, "async");
|
|
6192
6187
|
i0.ɵɵelementEnd();
|
|
6193
|
-
i0.ɵɵelementStart(12, "td",
|
|
6194
|
-
i0.ɵɵconditionalCreate(13,
|
|
6188
|
+
i0.ɵɵelementStart(12, "td", 23);
|
|
6189
|
+
i0.ɵɵconditionalCreate(13, SelectedCaseComponent_Conditional_20_For_17_Conditional_13_Template, 3, 3, "span", 25);
|
|
6195
6190
|
i0.ɵɵpipe(14, "async");
|
|
6196
|
-
i0.ɵɵconditionalCreate(15,
|
|
6191
|
+
i0.ɵɵconditionalCreate(15, SelectedCaseComponent_Conditional_20_For_17_Conditional_15_Template, 3, 3, "span", 26);
|
|
6197
6192
|
i0.ɵɵpipe(16, "async");
|
|
6198
6193
|
i0.ɵɵelementEnd()();
|
|
6199
6194
|
} if (rf & 2) {
|
|
6200
6195
|
const user_r4 = ctx.$implicit;
|
|
6201
|
-
const ɵ$
|
|
6196
|
+
const ɵ$index_73_r6 = ctx.$index;
|
|
6202
6197
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
6203
6198
|
i0.ɵɵadvance();
|
|
6204
|
-
i0.ɵɵproperty("id", i0.ɵɵinterpolate1("user-full-name-", ctx_r1.userIdSetter(i0.ɵɵpipeBind1(2, 10, ctx_r1.canCancel(ctx_r1.sharedCase.caseId, user_r4)), ɵ$
|
|
6199
|
+
i0.ɵɵproperty("id", i0.ɵɵinterpolate1("user-full-name-", ctx_r1.userIdSetter(i0.ɵɵpipeBind1(2, 10, ctx_r1.canCancel(ctx_r1.sharedCase.caseId, user_r4)), ɵ$index_73_r6)));
|
|
6205
6200
|
i0.ɵɵadvance(2);
|
|
6206
6201
|
i0.ɵɵtextInterpolate(user_r4.firstName + " " + user_r4.lastName);
|
|
6207
6202
|
i0.ɵɵadvance();
|
|
6208
|
-
i0.ɵɵproperty("id", i0.ɵɵinterpolate1("user-email-", ctx_r1.userIdSetter(i0.ɵɵpipeBind1(5, 12, ctx_r1.canCancel(ctx_r1.sharedCase.caseId, user_r4)), ɵ$
|
|
6203
|
+
i0.ɵɵproperty("id", i0.ɵɵinterpolate1("user-email-", ctx_r1.userIdSetter(i0.ɵɵpipeBind1(5, 12, ctx_r1.canCancel(ctx_r1.sharedCase.caseId, user_r4)), ɵ$index_73_r6)));
|
|
6209
6204
|
i0.ɵɵadvance(2);
|
|
6210
6205
|
i0.ɵɵtextInterpolate(user_r4.email);
|
|
6211
6206
|
i0.ɵɵadvance(2);
|
|
@@ -6217,12 +6212,12 @@ function SelectedCaseComponent_Conditional_19_For_20_Template(rf, ctx) { if (rf
|
|
|
6217
6212
|
i0.ɵɵadvance(2);
|
|
6218
6213
|
i0.ɵɵconditional(i0.ɵɵpipeBind1(16, 20, ctx_r1.isToBeAdded(ctx_r1.sharedCase.caseId, user_r4)) ? 15 : -1);
|
|
6219
6214
|
} }
|
|
6220
|
-
function
|
|
6221
|
-
i0.ɵɵelementStart(0, "table", 13)(1, "
|
|
6222
|
-
i0.ɵɵtext(
|
|
6223
|
-
i0.ɵɵpipe(
|
|
6215
|
+
function SelectedCaseComponent_Conditional_20_Template(rf, ctx) { if (rf & 1) {
|
|
6216
|
+
i0.ɵɵelementStart(0, "table", 13)(1, "thead", 16)(2, "tr", 17)(3, "th", 18);
|
|
6217
|
+
i0.ɵɵtext(4);
|
|
6218
|
+
i0.ɵɵpipe(5, "rpxTranslate");
|
|
6224
6219
|
i0.ɵɵelementEnd();
|
|
6225
|
-
i0.ɵɵelementStart(
|
|
6220
|
+
i0.ɵɵelementStart(6, "th", 18);
|
|
6226
6221
|
i0.ɵɵtext(7);
|
|
6227
6222
|
i0.ɵɵpipe(8, "rpxTranslate");
|
|
6228
6223
|
i0.ɵɵelementEnd();
|
|
@@ -6233,34 +6228,28 @@ function SelectedCaseComponent_Conditional_19_Template(rf, ctx) { if (rf & 1) {
|
|
|
6233
6228
|
i0.ɵɵelementStart(12, "th", 20);
|
|
6234
6229
|
i0.ɵɵtext(13);
|
|
6235
6230
|
i0.ɵɵpipe(14, "rpxTranslate");
|
|
6236
|
-
i0.ɵɵelementEnd();
|
|
6237
|
-
i0.ɵɵelementStart(15, "th", 21);
|
|
6238
|
-
i0.ɵɵtext(16);
|
|
6239
|
-
i0.ɵɵpipe(17, "rpxTranslate");
|
|
6240
6231
|
i0.ɵɵelementEnd()()();
|
|
6241
|
-
i0.ɵɵelementStart(
|
|
6242
|
-
i0.ɵɵrepeaterCreate(
|
|
6232
|
+
i0.ɵɵelementStart(15, "tbody", 21);
|
|
6233
|
+
i0.ɵɵrepeaterCreate(16, SelectedCaseComponent_Conditional_20_For_17_Template, 17, 22, "tr", 17, _forTrack0$1, true);
|
|
6243
6234
|
i0.ɵɵelementEnd()();
|
|
6244
6235
|
} if (rf & 2) {
|
|
6245
6236
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
6246
|
-
i0.ɵɵadvance(
|
|
6247
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 13, "Users with access to this case"));
|
|
6248
|
-
i0.ɵɵadvance(4);
|
|
6237
|
+
i0.ɵɵadvance(3);
|
|
6249
6238
|
i0.ɵɵproperty("id", i0.ɵɵinterpolate(ctx_r1.buildElementId("name-heading")));
|
|
6250
6239
|
i0.ɵɵadvance();
|
|
6251
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
6240
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 12, "Name"));
|
|
6252
6241
|
i0.ɵɵadvance(2);
|
|
6253
6242
|
i0.ɵɵproperty("id", i0.ɵɵinterpolate(ctx_r1.buildElementId("email-heading")));
|
|
6254
6243
|
i0.ɵɵadvance();
|
|
6255
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
6244
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(8, 14, "Email address"));
|
|
6256
6245
|
i0.ɵɵadvance(2);
|
|
6257
6246
|
i0.ɵɵproperty("id", i0.ɵɵinterpolate(ctx_r1.buildElementId("action-heading")));
|
|
6258
6247
|
i0.ɵɵadvance();
|
|
6259
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
6248
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(11, 16, "Actions"));
|
|
6260
6249
|
i0.ɵɵadvance(2);
|
|
6261
6250
|
i0.ɵɵproperty("id", i0.ɵɵinterpolate(ctx_r1.buildElementId("label-heading")));
|
|
6262
6251
|
i0.ɵɵadvance();
|
|
6263
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
6252
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(14, 18, "Status"));
|
|
6264
6253
|
i0.ɵɵadvance(3);
|
|
6265
6254
|
i0.ɵɵrepeater(ctx_r1.combinedSortedShares);
|
|
6266
6255
|
} }
|
|
@@ -6399,56 +6388,57 @@ class SelectedCaseComponent {
|
|
|
6399
6388
|
return `${elementName}-${this.sharedCase.caseId}`;
|
|
6400
6389
|
}
|
|
6401
6390
|
static { this.ɵfac = function SelectedCaseComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SelectedCaseComponent)(i0.ɵɵdirectiveInject(CaseSharingStateService)); }; }
|
|
6402
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SelectedCaseComponent, selectors: [["xuilib-selected-case"]], inputs: { sharedCase: "sharedCase", selectedUser: "selectedUser", opened: "opened", removeUserFromCaseToggleOn: "removeUserFromCaseToggleOn", caseCount: "caseCount" }, outputs: { unselect: "unselect", synchronizeStore: "synchronizeStore" }, standalone: false, features: [i0.ɵɵNgOnChangesFeature], decls:
|
|
6391
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SelectedCaseComponent, selectors: [["xuilib-selected-case"]], inputs: { sharedCase: "sharedCase", selectedUser: "selectedUser", opened: "opened", removeUserFromCaseToggleOn: "removeUserFromCaseToggleOn", caseCount: "caseCount" }, outputs: { unselect: "unselect", synchronizeStore: "synchronizeStore" }, standalone: false, features: [i0.ɵɵNgOnChangesFeature], decls: 21, vars: 28, consts: [[1, "govuk-accordion__section", 3, "id"], [1, "govuk-grid-row", "govuk-case-header"], [1, "govuk-grid-column-three-quarters"], [1, "govuk-case-title", 3, "id"], [1, "govuk-case-sub-title", 3, "id"], [1, "govuk-grid-column-ten-percent"], ["title", "Deselect case", 1, "govuk-button", "hmcts-button--secondary", 3, "id"], [1, "govuk-accordion__section-header", "govuk-grid-column-ten-percent"], [1, "govuk-accordion__section-heading"], ["type", "button", "aria-expanded", "false", 1, "govuk-accordion__section-button", 3, "id", "title"], ["aria-hidden", "true", 1, "govuk-accordion__icon"], [1, "govuk-accordion__section-content", 3, "id"], [1, "govuk-grid-row"], [1, "govuk-table"], ["title", "Deselect case", 1, "govuk-button", "hmcts-button--secondary", 3, "click", "id"], [1, "govuk-div-align-left", 3, "id"], [1, "govuk-table__head"], [1, "govuk-table__row"], ["scope", "col", 1, "govuk-table__header", "govuk-table-column-header", 3, "id"], ["scope", "col", 1, "govuk-table__header", "govuk-table-column-actions", 3, "id"], ["scope", "col", 1, "govuk-table__header", "govuk-table-column-label", 3, "id"], [1, "govuk-table__body"], [1, "govuk-table__cell", 3, "id"], [1, "govuk-table__cell"], ["href", "#"], [1, "hmcts-badge", "hmcts-badge--red"], [1, "hmcts-badge"], ["href", "#", 3, "click"], [1, "govuk-visually-hidden"]], template: function SelectedCaseComponent_Template(rf, ctx) { if (rf & 1) {
|
|
6403
6392
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "h3", 3);
|
|
6404
6393
|
i0.ɵɵtext(4);
|
|
6405
6394
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
6395
|
+
i0.ɵɵpipe(6, "rpxTranslate");
|
|
6406
6396
|
i0.ɵɵelementEnd();
|
|
6407
|
-
i0.ɵɵelementStart(
|
|
6408
|
-
i0.ɵɵtext(
|
|
6409
|
-
i0.ɵɵpipe(
|
|
6397
|
+
i0.ɵɵelementStart(7, "h3", 4);
|
|
6398
|
+
i0.ɵɵtext(8);
|
|
6399
|
+
i0.ɵɵpipe(9, "rpxTranslate");
|
|
6410
6400
|
i0.ɵɵelementEnd()();
|
|
6411
|
-
i0.ɵɵelementStart(
|
|
6412
|
-
i0.ɵɵconditionalCreate(
|
|
6401
|
+
i0.ɵɵelementStart(10, "div", 5);
|
|
6402
|
+
i0.ɵɵconditionalCreate(11, SelectedCaseComponent_Conditional_11_Template, 3, 5, "button", 6);
|
|
6413
6403
|
i0.ɵɵelementEnd();
|
|
6414
|
-
i0.ɵɵelementStart(
|
|
6415
|
-
i0.ɵɵpipe(
|
|
6416
|
-
i0.ɵɵelement(
|
|
6404
|
+
i0.ɵɵelementStart(12, "div", 7)(13, "div", 8)(14, "button", 9);
|
|
6405
|
+
i0.ɵɵpipe(15, "rpxTranslate");
|
|
6406
|
+
i0.ɵɵelement(16, "span", 10);
|
|
6417
6407
|
i0.ɵɵelementEnd()()()();
|
|
6418
|
-
i0.ɵɵelementStart(
|
|
6419
|
-
i0.ɵɵconditionalCreate(17, SelectedCaseComponent_Conditional_17_Template, 4, 5, "div", 12);
|
|
6408
|
+
i0.ɵɵelementStart(17, "div", 11);
|
|
6420
6409
|
i0.ɵɵconditionalCreate(18, SelectedCaseComponent_Conditional_18_Template, 4, 5, "div", 12);
|
|
6421
|
-
i0.ɵɵconditionalCreate(19, SelectedCaseComponent_Conditional_19_Template,
|
|
6410
|
+
i0.ɵɵconditionalCreate(19, SelectedCaseComponent_Conditional_19_Template, 4, 5, "div", 12);
|
|
6411
|
+
i0.ɵɵconditionalCreate(20, SelectedCaseComponent_Conditional_20_Template, 18, 20, "table", 13);
|
|
6422
6412
|
i0.ɵɵelementEnd()();
|
|
6423
6413
|
} if (rf & 2) {
|
|
6424
6414
|
i0.ɵɵproperty("id", i0.ɵɵinterpolate(ctx.buildElementId("govuk-accordion__section")));
|
|
6425
6415
|
i0.ɵɵadvance(3);
|
|
6426
6416
|
i0.ɵɵproperty("id", i0.ɵɵinterpolate(ctx.buildElementId("case-title")));
|
|
6427
6417
|
i0.ɵɵadvance();
|
|
6428
|
-
i0.ɵɵ
|
|
6429
|
-
i0.ɵɵadvance(
|
|
6418
|
+
i0.ɵɵtextInterpolate2(" ", i0.ɵɵpipeBind1(5, 20, "Case"), ": ", i0.ɵɵpipeBind1(6, 22, ctx.sharedCase.caseTitle), " ");
|
|
6419
|
+
i0.ɵɵadvance(3);
|
|
6430
6420
|
i0.ɵɵproperty("id", i0.ɵɵinterpolate(ctx.buildElementId("case-id")));
|
|
6431
6421
|
i0.ɵɵadvance();
|
|
6432
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
6422
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(9, 24, ctx.sharedCase.caseId));
|
|
6433
6423
|
i0.ɵɵadvance(3);
|
|
6434
|
-
i0.ɵɵconditional(ctx.caseCount > 1 ?
|
|
6424
|
+
i0.ɵɵconditional(ctx.caseCount > 1 ? 11 : -1);
|
|
6435
6425
|
i0.ɵɵadvance(3);
|
|
6436
|
-
i0.ɵɵproperty("id", i0.ɵɵinterpolate(ctx.buildElementId("accordion-with-summary-sections-heading")))("title", i0.ɵɵpipeBind1(
|
|
6426
|
+
i0.ɵɵproperty("id", i0.ɵɵinterpolate(ctx.buildElementId("accordion-with-summary-sections-heading")))("title", i0.ɵɵpipeBind1(15, 26, "Expand or Collapse"));
|
|
6437
6427
|
i0.ɵɵattribute("aria-controls", "accordion-with-summary-sections-content" + ctx.buildElementId("accordion-with-summary-sections-heading"));
|
|
6438
6428
|
i0.ɵɵadvance(3);
|
|
6439
6429
|
i0.ɵɵproperty("id", i0.ɵɵinterpolate(ctx.buildElementId("accordion-with-summary-sections-content")));
|
|
6440
6430
|
i0.ɵɵattribute("aria-labelledby", ctx.buildElementId("accordion-with-summary-sections-heading"));
|
|
6441
6431
|
i0.ɵɵadvance();
|
|
6442
|
-
i0.ɵɵconditional(ctx.showNoUsersAccessInfo() ?
|
|
6432
|
+
i0.ɵɵconditional(ctx.showNoUsersAccessInfo() ? 18 : -1);
|
|
6443
6433
|
i0.ɵɵadvance();
|
|
6444
|
-
i0.ɵɵconditional(ctx.showUserHasAccessInfo() ?
|
|
6434
|
+
i0.ɵɵconditional(ctx.showUserHasAccessInfo() ? 19 : -1);
|
|
6445
6435
|
i0.ɵɵadvance();
|
|
6446
|
-
i0.ɵɵconditional(ctx.showUserAccessTable() ?
|
|
6447
|
-
} }, dependencies: [i1.AsyncPipe, i2.RpxTranslatePipe], styles: [".govuk-case-header[_ngcontent-%COMP%]{border-top:1px solid #
|
|
6436
|
+
i0.ɵɵconditional(ctx.showUserAccessTable() ? 20 : -1);
|
|
6437
|
+
} }, dependencies: [i1.AsyncPipe, i2.RpxTranslatePipe], styles: [".govuk-case-header[_ngcontent-%COMP%]{border-top:1px solid #bfc1c3}.govuk-case-title[_ngcontent-%COMP%]{font-family:nta,Arial,sans-serif;font-size:24px;color:#005ea5;font-weight:700;padding-left:0}.govuk-case-sub-title[_ngcontent-%COMP%]{font-family:nta,Arial,sans-serif;font-size:1rem!important;color:#6f777b;font-weight:400;padding-left:0}.govuk-grid-row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.govuk-grid-column-three-quarters[_ngcontent-%COMP%]{padding-top:5px;padding-left:0}.govuk-grid-column-twenty-percent[_ngcontent-%COMP%]{box-sizing:border-box;padding-top:10px;width:20%;float:left}.govuk-grid-column-ten-percent[_ngcontent-%COMP%]{box-sizing:border-box;padding-top:10px;width:10%;float:left}.govuk-grid-column-five-percent[_ngcontent-%COMP%]{box-sizing:border-box;padding-top:15px;width:5%;float:left}.govuk-table-column-header[_ngcontent-%COMP%]{width:38%}.govuk-table-column-actions[_ngcontent-%COMP%], .govuk-table-column-label[_ngcontent-%COMP%]{width:12%}.govuk-div-align-left[_ngcontent-%COMP%]{font-family:nta,Arial,sans-serif;font-size:1.1875rem!important;line-height:1.31579!important;text-align:left;margin-bottom:20px;padding-left:0;color:#0b0c0c}.govuk-accordion__section-header[_ngcontent-%COMP%]{border-top:0}.govuk-accordion__section-content[_ngcontent-%COMP%]{padding-top:0}.govuk-accordion__section-heading[_ngcontent-%COMP%], .govuk-accordion__section-button[_ngcontent-%COMP%]{border-top:0}"] }); }
|
|
6448
6438
|
}
|
|
6449
6439
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectedCaseComponent, [{
|
|
6450
6440
|
type: Component,
|
|
6451
|
-
args: [{ selector: 'xuilib-selected-case', standalone: false, template: "<div id=\"{{buildElementId('govuk-accordion__section')}}\" class=\"govuk-accordion__section\">\n <div class=\"govuk-grid-row govuk-case-header\">\n <div class=\"govuk-grid-column-three-quarters\">\n <h3 id=\"{{buildElementId('case-title')}}\" class=\"govuk-case-title\"
|
|
6441
|
+
args: [{ selector: 'xuilib-selected-case', standalone: false, template: "<div id=\"{{buildElementId('govuk-accordion__section')}}\" class=\"govuk-accordion__section\">\n <div class=\"govuk-grid-row govuk-case-header\">\n <div class=\"govuk-grid-column-three-quarters\">\n <h3 id=\"{{buildElementId('case-title')}}\" class=\"govuk-case-title\">\n {{'Case' | rpxTranslate}}: {{ sharedCase.caseTitle | rpxTranslate }}\n </h3>\n <h3 id=\"{{buildElementId('case-id')}}\" class=\"govuk-case-sub-title\">{{ sharedCase.caseId | rpxTranslate }}</h3>\n </div>\n <div class=\"govuk-grid-column-ten-percent\">\n @if (caseCount > 1) {\n <button\n id=\"{{buildElementId('btn-deselect-case')}}\"\n class=\"govuk-button hmcts-button--secondary\"\n (click)=\"onDeselect(sharedCase)\" title=\"Deselect case\">\n {{'Deselect case' | rpxTranslate}}\n </button>\n }\n </div>\n <div class=\"govuk-accordion__section-header govuk-grid-column-ten-percent\">\n <div class=\"govuk-accordion__section-heading\">\n <button type=\"button\" id=\"{{buildElementId('accordion-with-summary-sections-heading')}}\"\n [attr.aria-controls]=\"'accordion-with-summary-sections-content' + buildElementId('accordion-with-summary-sections-heading')\" class=\"govuk-accordion__section-button\"\n aria-expanded=\"false\" [title]=\"'Expand or Collapse' | rpxTranslate\">\n <span class=\"govuk-accordion__icon\" aria-hidden=\"true\"></span></button>\n </div>\n </div>\n </div>\n <div id=\"{{buildElementId('accordion-with-summary-sections-content')}}\" class=\"govuk-accordion__section-content\"\n [attr.aria-labelledby]=\"buildElementId('accordion-with-summary-sections-heading')\" >\n @if (showNoUsersAccessInfo()) {\n <div class=\"govuk-grid-row\">\n <span id=\"{{buildElementId('access-info-no-user')}}\" class=\"govuk-div-align-left\">\n {{'No users from your organisation currently have access to this case.' | rpxTranslate}}\n </span>\n </div>\n }\n @if (showUserHasAccessInfo()) {\n <div class=\"govuk-grid-row\">\n <span id=\"{{buildElementId('access-info-has-users')}}\" class=\"govuk-div-align-left\">\n {{'Users from your organisation with access to this case.' | rpxTranslate}}\n </span>\n </div>\n }\n @if (showUserAccessTable()) {\n <table class=\"govuk-table\">\n <thead class=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <th id=\"{{buildElementId('name-heading')}}\" class=\"govuk-table__header govuk-table-column-header\" scope=\"col\">{{'Name' | rpxTranslate}}</th>\n <th id=\"{{buildElementId('email-heading')}}\" class=\"govuk-table__header govuk-table-column-header\" scope=\"col\">{{'Email address' | rpxTranslate}}</th>\n <th id=\"{{buildElementId('action-heading')}}\" class=\"govuk-table__header govuk-table-column-actions\" scope=\"col\">{{'Actions' | rpxTranslate}}</th>\n <th id=\"{{buildElementId('label-heading')}}\" class=\"govuk-table__header govuk-table-column-label\" scope=\"col\">{{ 'Status' | rpxTranslate }}</th>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n @for (user of combinedSortedShares; track trackByUserId(user); let idx = $index) {\n <tr class=\"govuk-table__row\">\n <td id=\"user-full-name-{{ userIdSetter(canCancel(sharedCase.caseId, user) | async, idx) }}\" class=\"govuk-table__cell\">{{ user.firstName + ' ' + user.lastName }}</td>\n <td id=\"user-email-{{ userIdSetter(canCancel(sharedCase.caseId, user) | async, idx) }}\" class=\"govuk-table__cell\">{{ user.email }}</td>\n <td class=\"govuk-table__cell\">\n @if (canRemove(sharedCase.caseId, user) | async) {\n <a (click)=\"onRemove(user, sharedCase); $event.preventDefault()\" href=\"#\">{{'Remove' | rpxTranslate}} <span class=\"govuk-visually-hidden\">{{ user.firstName + ' ' + user.lastName }} {{'from case' | rpxTranslate}}</span></a>\n }\n @if (canCancel(sharedCase.caseId, user) | async) {\n <a (click)=\"onCancel(user, sharedCase); $event.preventDefault()\" href=\"#\">{{'Cancel' | rpxTranslate}} <span class=\"govuk-visually-hidden\">{{'adding' | rpxTranslate}} {{ user.firstName + ' ' + user.lastName }} {{'to case' | rpxTranslate}}</span></a>\n }\n </td>\n <td class=\"govuk-table__cell\">\n @if (isToBeRemoved(sharedCase.caseId, user) | async) {\n <span class=\"hmcts-badge hmcts-badge--red\">{{'To be removed' | rpxTranslate}}</span>\n }\n @if (isToBeAdded(sharedCase.caseId, user) | async) {\n <span class=\"hmcts-badge\">{{'To be added' | rpxTranslate}}</span>\n }\n </td>\n </tr>\n }\n </tbody>\n </table>\n }\n </div>\n </div>\n", styles: [".govuk-case-header{border-top:1px solid #bfc1c3}.govuk-case-title{font-family:nta,Arial,sans-serif;font-size:24px;color:#005ea5;font-weight:700;padding-left:0}.govuk-case-sub-title{font-family:nta,Arial,sans-serif;font-size:1rem!important;color:#6f777b;font-weight:400;padding-left:0}.govuk-grid-row{margin-left:0;margin-right:0}.govuk-grid-column-three-quarters{padding-top:5px;padding-left:0}.govuk-grid-column-twenty-percent{box-sizing:border-box;padding-top:10px;width:20%;float:left}.govuk-grid-column-ten-percent{box-sizing:border-box;padding-top:10px;width:10%;float:left}.govuk-grid-column-five-percent{box-sizing:border-box;padding-top:15px;width:5%;float:left}.govuk-table-column-header{width:38%}.govuk-table-column-actions,.govuk-table-column-label{width:12%}.govuk-div-align-left{font-family:nta,Arial,sans-serif;font-size:1.1875rem!important;line-height:1.31579!important;text-align:left;margin-bottom:20px;padding-left:0;color:#0b0c0c}.govuk-accordion__section-header{border-top:0}.govuk-accordion__section-content{padding-top:0}.govuk-accordion__section-heading,.govuk-accordion__section-button{border-top:0}\n"] }]
|
|
6452
6442
|
}], () => [{ type: CaseSharingStateService }], { sharedCase: [{
|
|
6453
6443
|
type: Input
|
|
6454
6444
|
}], selectedUser: [{
|
|
@@ -7086,8 +7076,8 @@ class HmctsErrorSummaryComponent {
|
|
|
7086
7076
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(HmctsErrorSummaryComponent, { className: "HmctsErrorSummaryComponent", filePath: "lib/gov-ui/components/hmcts-error-summary/hmcts-error-summary.component.ts", lineNumber: 19 }); })();
|
|
7087
7077
|
|
|
7088
7078
|
const _c0$e = a0 => ({ "govuk-form-group--error": a0 });
|
|
7089
|
-
function
|
|
7090
|
-
i0.ɵɵelementStart(0, "span",
|
|
7079
|
+
function ShareCaseComponent_Conditional_1_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
7080
|
+
i0.ɵɵelementStart(0, "span", 23);
|
|
7091
7081
|
i0.ɵɵtext(1);
|
|
7092
7082
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
7093
7083
|
i0.ɵɵelementEnd();
|
|
@@ -7097,16 +7087,15 @@ function ShareCaseComponent_Conditional_1_Conditional_1_Template(rf, ctx) { if (
|
|
|
7097
7087
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.fnTitle));
|
|
7098
7088
|
} }
|
|
7099
7089
|
function ShareCaseComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
7100
|
-
i0.ɵɵ
|
|
7101
|
-
i0.ɵɵ
|
|
7090
|
+
i0.ɵɵconditionalCreate(0, ShareCaseComponent_Conditional_1_Conditional_0_Template, 3, 3, "span", 23);
|
|
7091
|
+
i0.ɵɵelementStart(1, "h1", 24);
|
|
7102
7092
|
i0.ɵɵtext(2);
|
|
7103
7093
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
7104
7094
|
i0.ɵɵelementEnd();
|
|
7105
7095
|
} if (rf & 2) {
|
|
7106
7096
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
7107
|
-
i0.ɵɵ
|
|
7108
|
-
i0.ɵɵ
|
|
7109
|
-
i0.ɵɵadvance();
|
|
7097
|
+
i0.ɵɵconditional(ctx_r0.fnTitle ? 0 : -1);
|
|
7098
|
+
i0.ɵɵadvance(2);
|
|
7110
7099
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2, ctx_r0.title), " ");
|
|
7111
7100
|
} }
|
|
7112
7101
|
function ShareCaseComponent_Conditional_29_For_13_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -7121,7 +7110,7 @@ function ShareCaseComponent_Conditional_29_For_13_Template(rf, ctx) { if (rf & 1
|
|
|
7121
7110
|
} }
|
|
7122
7111
|
function ShareCaseComponent_Conditional_29_Template(rf, ctx) { if (rf & 1) {
|
|
7123
7112
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
7124
|
-
i0.ɵɵelementStart(0, "div",
|
|
7113
|
+
i0.ɵɵelementStart(0, "div", 2)(1, "label", 25);
|
|
7125
7114
|
i0.ɵɵtext(2);
|
|
7126
7115
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
7127
7116
|
i0.ɵɵelementEnd();
|
|
@@ -7129,19 +7118,19 @@ function ShareCaseComponent_Conditional_29_Template(rf, ctx) { if (rf & 1) {
|
|
|
7129
7118
|
i0.ɵɵtext(5);
|
|
7130
7119
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
7131
7120
|
i0.ɵɵelementEnd();
|
|
7132
|
-
i0.ɵɵelementStart(7, "div",
|
|
7121
|
+
i0.ɵɵelementStart(7, "div", 5)(8, "div", 6)(9, "select", 27);
|
|
7133
7122
|
i0.ɵɵlistener("change", function ShareCaseComponent_Conditional_29_Template_select_change_9_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.onSelectedUserToRemoveChanged($event.target.value)); });
|
|
7134
7123
|
i0.ɵɵelementStart(10, "option", 28);
|
|
7135
7124
|
i0.ɵɵtext(11, "Select a person");
|
|
7136
7125
|
i0.ɵɵelementEnd();
|
|
7137
7126
|
i0.ɵɵrepeaterCreate(12, ShareCaseComponent_Conditional_29_For_13_Template, 2, 4, "option", 29, i0.ɵɵrepeaterTrackByIdentity);
|
|
7138
7127
|
i0.ɵɵelementEnd()();
|
|
7139
|
-
i0.ɵɵelementStart(14, "div",
|
|
7128
|
+
i0.ɵɵelementStart(14, "div", 8)(15, "button", 30);
|
|
7140
7129
|
i0.ɵɵpipe(16, "rpxTranslate");
|
|
7141
7130
|
i0.ɵɵlistener("click", function ShareCaseComponent_Conditional_29_Template_button_click_15_listener() { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.removeUser()); });
|
|
7142
7131
|
i0.ɵɵtext(17);
|
|
7143
7132
|
i0.ɵɵpipe(18, "rpxTranslate");
|
|
7144
|
-
i0.ɵɵelementStart(19, "span",
|
|
7133
|
+
i0.ɵɵelementStart(19, "span", 10);
|
|
7145
7134
|
i0.ɵɵtext(20);
|
|
7146
7135
|
i0.ɵɵpipe(21, "rpxTranslate");
|
|
7147
7136
|
i0.ɵɵelementEnd()()()()();
|
|
@@ -7166,7 +7155,7 @@ function ShareCaseComponent_Conditional_29_Template(rf, ctx) { if (rf & 1) {
|
|
|
7166
7155
|
} }
|
|
7167
7156
|
function ShareCaseComponent_Conditional_35_Template(rf, ctx) { if (rf & 1) {
|
|
7168
7157
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
7169
|
-
i0.ɵɵelementStart(0, "div",
|
|
7158
|
+
i0.ɵɵelementStart(0, "div", 18)(1, "xuilib-selected-case-list", 31);
|
|
7170
7159
|
i0.ɵɵlistener("unselect", function ShareCaseComponent_Conditional_35_Template_xuilib_selected_case_list_unselect_1_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.onUnselect($event)); })("synchronizeStore", function ShareCaseComponent_Conditional_35_Template_xuilib_selected_case_list_synchronizeStore_1_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.onSynchronizeStore($event)); });
|
|
7171
7160
|
i0.ɵɵelementEnd()();
|
|
7172
7161
|
} if (rf & 2) {
|
|
@@ -7175,7 +7164,7 @@ function ShareCaseComponent_Conditional_35_Template(rf, ctx) { if (rf & 1) {
|
|
|
7175
7164
|
i0.ɵɵproperty("shareCases$", ctx_r0.shareCases$)("removeUserFromCaseToggleOn", ctx_r0.removeUserFromCaseToggleOn);
|
|
7176
7165
|
} }
|
|
7177
7166
|
function ShareCaseComponent_Conditional_36_Template(rf, ctx) { if (rf & 1) {
|
|
7178
|
-
i0.ɵɵelementStart(0, "div",
|
|
7167
|
+
i0.ɵɵelementStart(0, "div", 19);
|
|
7179
7168
|
i0.ɵɵtext(1);
|
|
7180
7169
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
7181
7170
|
i0.ɵɵelementEnd();
|
|
@@ -7367,54 +7356,54 @@ class ShareCaseComponent {
|
|
|
7367
7356
|
} if (rf & 2) {
|
|
7368
7357
|
let _t;
|
|
7369
7358
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.userSelect = _t.first);
|
|
7370
|
-
} }, inputs: { removeUserFromCaseToggleOn: "removeUserFromCaseToggleOn", shareCases$: "shareCases$", users: "users", confirmLink: "confirmLink", cancelLink: "cancelLink", addUserLabel: "addUserLabel", showRemoveUsers: "showRemoveUsers", fnTitle: "fnTitle", title: "title" }, outputs: { unselect: "unselect", synchronizeStore: "synchronizeStore" }, standalone: false, decls: 46, vars: 53, consts: [[3, "errorMessages", "header"], [
|
|
7359
|
+
} }, inputs: { removeUserFromCaseToggleOn: "removeUserFromCaseToggleOn", shareCases$: "shareCases$", users: "users", confirmLink: "confirmLink", cancelLink: "cancelLink", addUserLabel: "addUserLabel", showRemoveUsers: "showRemoveUsers", fnTitle: "fnTitle", title: "title" }, outputs: { unselect: "unselect", synchronizeStore: "synchronizeStore" }, standalone: false, decls: 46, vars: 53, consts: [[3, "errorMessages", "header"], ["id", "add-user"], [1, "govuk-form-group"], ["for", "add-user-input", 1, "govuk-label", "govuk-!-font-weight-bold"], ["id", "add-user-hint", 1, "govuk-hint"], [1, "govuk-grid-row"], [1, "govuk-grid-column-two-thirds"], ["id", "add-user-input", "aria-describedby", "add-user-hint", 3, "selected", "users"], [1, "govuk-grid-column-one-thirds"], ["id", "btn-add-user", 1, "govuk-button", "govuk-button--secondary", 3, "click", "disabled", "title"], [1, "govuk-visually-hidden"], ["id", "add-user-help", 1, "govuk-details"], [1, "govuk-details__summary"], ["id", "content-why-can-not-find-email", 1, "govuk-details__summary-text"], ["id", "content-reason-can-not-find-email", 1, "govuk-details__text"], ["id", "cases", 3, "ngClass"], ["id", "title-selected-cases", 1, "govuk-heading-m"], [3, "config", "errorMessage"], ["data-module", "govuk-accordion", "id", "accordion-with-summary-sections", 1, "govuk-accordion"], ["id", "noCaseDisplay", 1, "govuk-hint"], ["id", "share-case-nav", 1, "govuk-button-group"], ["id", "btn-continue", "data-module", "govuk-button", 1, "govuk-button", 3, "click", "title"], ["id", "btn-cancel", "data-module", "govuk-button", 1, "govuk-button", "govuk-button--secondary", 3, "title", "routerLink"], [1, "govuk-caption-xl"], [1, "govuk-heading-xl", "govuk-!-margin-top-2"], ["for", "remove-user-input", 1, "govuk-label", "govuk-!-font-weight-bold"], ["id", "remove-user-hint", 1, "govuk-hint"], ["id", "remove-user-input", "aria-describedby", "remove-user-hint", 1, "govuk-select", 3, "change", "value"], ["selected", "", 3, "ngValue"], [3, "ngValue"], ["id", "btn-remove-user", 1, "govuk-button", "govuk-button--secondary", 3, "click", "title"], [3, "unselect", "synchronizeStore", "shareCases$", "removeUserFromCaseToggleOn"]], template: function ShareCaseComponent_Template(rf, ctx) { if (rf & 1) {
|
|
7371
7360
|
i0.ɵɵelement(0, "xuilib-hmcts-error-summary", 0);
|
|
7372
|
-
i0.ɵɵconditionalCreate(1, ShareCaseComponent_Conditional_1_Template, 4, 4
|
|
7373
|
-
i0.ɵɵelementStart(2, "div",
|
|
7361
|
+
i0.ɵɵconditionalCreate(1, ShareCaseComponent_Conditional_1_Template, 4, 4);
|
|
7362
|
+
i0.ɵɵelementStart(2, "div", 1)(3, "div", 2)(4, "label", 3);
|
|
7374
7363
|
i0.ɵɵtext(5);
|
|
7375
7364
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
7376
7365
|
i0.ɵɵelementEnd();
|
|
7377
|
-
i0.ɵɵelementStart(7, "span",
|
|
7366
|
+
i0.ɵɵelementStart(7, "span", 4);
|
|
7378
7367
|
i0.ɵɵtext(8);
|
|
7379
7368
|
i0.ɵɵpipe(9, "rpxTranslate");
|
|
7380
7369
|
i0.ɵɵelementEnd();
|
|
7381
|
-
i0.ɵɵelementStart(10, "div",
|
|
7370
|
+
i0.ɵɵelementStart(10, "div", 5)(11, "div", 6)(12, "xuilib-user-select", 7);
|
|
7382
7371
|
i0.ɵɵlistener("selected", function ShareCaseComponent_Template_xuilib_user_select_selected_12_listener($event) { return ctx.onSelectedUser($event); });
|
|
7383
7372
|
i0.ɵɵelementEnd()();
|
|
7384
|
-
i0.ɵɵelementStart(13, "div",
|
|
7373
|
+
i0.ɵɵelementStart(13, "div", 8)(14, "button", 9);
|
|
7385
7374
|
i0.ɵɵpipe(15, "rpxTranslate");
|
|
7386
7375
|
i0.ɵɵlistener("click", function ShareCaseComponent_Template_button_click_14_listener() { return ctx.addUser(); });
|
|
7387
7376
|
i0.ɵɵtext(16);
|
|
7388
7377
|
i0.ɵɵpipe(17, "rpxTranslate");
|
|
7389
|
-
i0.ɵɵelementStart(18, "span",
|
|
7378
|
+
i0.ɵɵelementStart(18, "span", 10);
|
|
7390
7379
|
i0.ɵɵtext(19);
|
|
7391
7380
|
i0.ɵɵpipe(20, "rpxTranslate");
|
|
7392
7381
|
i0.ɵɵelementEnd()()()();
|
|
7393
|
-
i0.ɵɵelementStart(21, "details",
|
|
7382
|
+
i0.ɵɵelementStart(21, "details", 11)(22, "summary", 12)(23, "span", 13);
|
|
7394
7383
|
i0.ɵɵtext(24);
|
|
7395
7384
|
i0.ɵɵpipe(25, "rpxTranslate");
|
|
7396
7385
|
i0.ɵɵelementEnd()();
|
|
7397
|
-
i0.ɵɵelementStart(26, "div",
|
|
7386
|
+
i0.ɵɵelementStart(26, "div", 14);
|
|
7398
7387
|
i0.ɵɵtext(27);
|
|
7399
7388
|
i0.ɵɵpipe(28, "rpxTranslate");
|
|
7400
7389
|
i0.ɵɵelementEnd()()();
|
|
7401
|
-
i0.ɵɵconditionalCreate(29, ShareCaseComponent_Conditional_29_Template, 22, 18, "div",
|
|
7390
|
+
i0.ɵɵconditionalCreate(29, ShareCaseComponent_Conditional_29_Template, 22, 18, "div", 2);
|
|
7402
7391
|
i0.ɵɵelementEnd();
|
|
7403
|
-
i0.ɵɵelementStart(30, "div",
|
|
7392
|
+
i0.ɵɵelementStart(30, "div", 15)(31, "h3", 16);
|
|
7404
7393
|
i0.ɵɵtext(32);
|
|
7405
7394
|
i0.ɵɵpipe(33, "rpxTranslate");
|
|
7406
7395
|
i0.ɵɵelementEnd();
|
|
7407
|
-
i0.ɵɵelement(34, "xuilib-gov-uk-error-message",
|
|
7408
|
-
i0.ɵɵconditionalCreate(35, ShareCaseComponent_Conditional_35_Template, 2, 2, "div",
|
|
7409
|
-
i0.ɵɵconditionalCreate(36, ShareCaseComponent_Conditional_36_Template, 3, 3, "div",
|
|
7396
|
+
i0.ɵɵelement(34, "xuilib-gov-uk-error-message", 17);
|
|
7397
|
+
i0.ɵɵconditionalCreate(35, ShareCaseComponent_Conditional_35_Template, 2, 2, "div", 18);
|
|
7398
|
+
i0.ɵɵconditionalCreate(36, ShareCaseComponent_Conditional_36_Template, 3, 3, "div", 19);
|
|
7410
7399
|
i0.ɵɵelementEnd();
|
|
7411
|
-
i0.ɵɵelementStart(37, "div",
|
|
7400
|
+
i0.ɵɵelementStart(37, "div", 20)(38, "button", 21);
|
|
7412
7401
|
i0.ɵɵpipe(39, "rpxTranslate");
|
|
7413
7402
|
i0.ɵɵlistener("click", function ShareCaseComponent_Template_button_click_38_listener() { return ctx.onContinue(); });
|
|
7414
7403
|
i0.ɵɵtext(40);
|
|
7415
7404
|
i0.ɵɵpipe(41, "rpxTranslate");
|
|
7416
7405
|
i0.ɵɵelementEnd();
|
|
7417
|
-
i0.ɵɵelementStart(42, "button",
|
|
7406
|
+
i0.ɵɵelementStart(42, "button", 22);
|
|
7418
7407
|
i0.ɵɵpipe(43, "rpxTranslate");
|
|
7419
7408
|
i0.ɵɵtext(44);
|
|
7420
7409
|
i0.ɵɵpipe(45, "rpxTranslate");
|
|
@@ -7463,7 +7452,7 @@ class ShareCaseComponent {
|
|
|
7463
7452
|
}
|
|
7464
7453
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ShareCaseComponent, [{
|
|
7465
7454
|
type: Component,
|
|
7466
|
-
args: [{ selector: 'xuilib-share-case', standalone: false, template: "<xuilib-hmcts-error-summary\n [errorMessages]=\"validationErrors\"\n [header]=\"'There is a problem'\"\n></xuilib-hmcts-error-summary>\n@if (title) {\n
|
|
7455
|
+
args: [{ selector: 'xuilib-share-case', standalone: false, template: "<xuilib-hmcts-error-summary\n [errorMessages]=\"validationErrors\"\n [header]=\"'There is a problem'\"\n></xuilib-hmcts-error-summary>\n@if (title) {\n @if (fnTitle) {\n <span class=\"govuk-caption-xl\">{{fnTitle | rpxTranslate}}</span>\n }\n <h1 class=\"govuk-heading-xl govuk-!-margin-top-2\">\n {{title | rpxTranslate}}\n </h1>\n}\n<div id=\"add-user\">\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-!-font-weight-bold\" for=\"add-user-input\">{{addUserLabel | rpxTranslate}}</label>\n <span id=\"add-user-hint\" class=\"govuk-hint\">\n {{'Search by name or email address. You can share access with as many people as you need.' | rpxTranslate}}\n </span>\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <xuilib-user-select\n id=\"add-user-input\"\n aria-describedby=\"add-user-hint\"\n [users]=\"users\"\n (selected)=\"onSelectedUser($event)\">\n </xuilib-user-select>\n </div>\n <div class=\"govuk-grid-column-one-thirds\">\n <button id=\"btn-add-user\" (click)=\"addUser()\"\n class=\"govuk-button govuk-button--secondary\" [disabled]=\"isDisabledAdd()\"\n title=\"{{'Add user to selected cases' | rpxTranslate}}\">\n {{'Add' | rpxTranslate}}\n <span class=\"govuk-visually-hidden\">{{'user' | rpxTranslate}}</span>\n </button>\n </div>\n </div>\n <details id=\"add-user-help\" class=\"govuk-details\">\n <summary class=\"govuk-details__summary\">\n <span id=\"content-why-can-not-find-email\" class=\"govuk-details__summary-text\">\n {{\"Can't find an email address?\" | rpxTranslate}}\n </span>\n </summary>\n <div id=\"content-reason-can-not-find-email\" class=\"govuk-details__text\">\n {{\"If you can't find your colleague's email address, they will need to complete their registration. Contact your administrator for help.\" | rpxTranslate}}\n </div>\n </details>\n </div>\n @if (showRemoveUsers) {\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label govuk-!-font-weight-bold\" for=\"remove-user-input\">\n {{'Remove a person from all cases' | rpxTranslate}}\n </label>\n <span id=\"remove-user-hint\" class=\"govuk-hint\">\n {{'Select a person to remove them from all selected cases.' | rpxTranslate}}\n </span>\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <select [value]=\"selectedUserToRemove\" (change)=\"onSelectedUserToRemoveChanged($event.target.value)\" class=\"govuk-select\" id=\"remove-user-input\" aria-describedby=\"remove-user-hint\">\n <option [ngValue]=\"null\" selected>Select a person</option>\n @for (user of assignedUsers; track user) {\n <option [ngValue]=\"user\">{{user.firstName}} {{user.lastName}} - {{user.email}}</option>\n }\n </select>\n </div>\n <div class=\"govuk-grid-column-one-thirds\">\n <button id=\"btn-remove-user\" (click)=\"removeUser()\" class=\"govuk-button govuk-button--secondary\" title=\"{{'Remove user from selected cases' | rpxTranslate}}\">\n {{'Remove' | rpxTranslate}}\n <span class=\"govuk-visually-hidden\"> {{'user' | rpxTranslate}}</span>\n </button>\n </div>\n </div>\n </div>\n }\n</div>\n\n<div id=\"cases\" [ngClass]=\"{'govuk-form-group--error': shareCaseErrorMessage.messages && shareCaseErrorMessage.messages.length > 0}\">\n <h3 id=\"title-selected-cases\" class=\"govuk-heading-m\">\n {{'Selected cases' | rpxTranslate}}\n </h3>\n <xuilib-gov-uk-error-message [config]=\"selectedCasesErrorMessageConfig\" [errorMessage]=\"shareCaseErrorMessage\"></xuilib-gov-uk-error-message>\n @if (shareCases && shareCases.length > 0) {\n <div class=\"govuk-accordion\" data-module=\"govuk-accordion\" id=\"accordion-with-summary-sections\">\n <xuilib-selected-case-list\n [shareCases$]=\"shareCases$\"\n [removeUserFromCaseToggleOn]=\"removeUserFromCaseToggleOn\"\n (unselect)=\"onUnselect($event)\"\n (synchronizeStore)=\"onSynchronizeStore($event)\"\n >\n </xuilib-selected-case-list>\n </div>\n }\n\n @if (shareCases && shareCases.length === 0) {\n <div id=\"noCaseDisplay\" class=\"govuk-hint\">\n {{'No cases to display.' | rpxTranslate}}\n </div>\n }\n\n</div>\n\n<div id=\"share-case-nav\" class=\"govuk-button-group\">\n <button id=\"btn-continue\" class=\"govuk-button\" data-module=\"govuk-button\" (click)=\"onContinue()\" title=\"{{'Continue' | rpxTranslate}}\">\n {{'Continue' | rpxTranslate}}\n </button>\n <button id=\"btn-cancel\" class=\"govuk-button govuk-button--secondary\" data-module=\"govuk-button\" title=\"{{'Cancel' | rpxTranslate}}\" [routerLink]=\"cancelLink\">\n {{'Cancel' | rpxTranslate}}\n </button>\n</div>\n", styles: ["select{width:100%}\n"] }]
|
|
7467
7456
|
}], () => [{ type: CaseSharingStateService }, { type: i1$1.Router }], { removeUserFromCaseToggleOn: [{
|
|
7468
7457
|
type: Input
|
|
7469
7458
|
}], shareCases$: [{
|
|
@@ -7535,51 +7524,53 @@ class TcConfirmComponent {
|
|
|
7535
7524
|
this.confirm.emit();
|
|
7536
7525
|
}
|
|
7537
7526
|
static { this.ɵfac = function TcConfirmComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TcConfirmComponent)(); }; }
|
|
7538
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TcConfirmComponent, selectors: [["xuilib-tc-confirm"]], inputs: { buttonText: "buttonText" }, outputs: { confirm: "confirm" }, standalone: false, decls:
|
|
7539
|
-
i0.ɵɵelementStart(0, "div", 0)(1, "main", 1)(2, "div", 2)(3, "div", 3)(4, "
|
|
7540
|
-
i0.ɵɵtext(
|
|
7541
|
-
i0.ɵɵpipe(
|
|
7527
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TcConfirmComponent, selectors: [["xuilib-tc-confirm"]], inputs: { buttonText: "buttonText" }, outputs: { confirm: "confirm" }, standalone: false, decls: 26, vars: 18, consts: [[1, "govuk-width-container"], ["role", "main", "id", "content", 1, "govuk-main-wrapper"], [1, "govuk-grid-row"], [1, "govuk-grid-column-two-thirds"], [1, "column-two-thirds"], [1, "govuk-heading-xl"], [1, "govuk-heading-m"], ["routerLink", "/terms-and-conditions", "rel", "noopener noreferrer", "target", "_blank"], [1, "govuk-button", 3, "click"], [1, "govuk-grid-column-one-third"]], template: function TcConfirmComponent_Template(rf, ctx) { if (rf & 1) {
|
|
7528
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "main", 1)(2, "div", 2)(3, "div", 3)(4, "div", 4)(5, "h1", 5);
|
|
7529
|
+
i0.ɵɵtext(6);
|
|
7530
|
+
i0.ɵɵpipe(7, "rpxTranslate");
|
|
7542
7531
|
i0.ɵɵelementEnd();
|
|
7543
|
-
i0.ɵɵelementStart(
|
|
7544
|
-
i0.ɵɵtext(
|
|
7545
|
-
i0.ɵɵpipe(
|
|
7532
|
+
i0.ɵɵelementStart(8, "h2", 6);
|
|
7533
|
+
i0.ɵɵtext(9);
|
|
7534
|
+
i0.ɵɵpipe(10, "rpxTranslate");
|
|
7546
7535
|
i0.ɵɵelementEnd();
|
|
7547
|
-
i0.ɵɵelementStart(
|
|
7548
|
-
i0.ɵɵtext(
|
|
7549
|
-
i0.ɵɵpipe(
|
|
7550
|
-
i0.ɵɵelementStart(
|
|
7551
|
-
i0.ɵɵtext(
|
|
7552
|
-
i0.ɵɵpipe(
|
|
7536
|
+
i0.ɵɵelementStart(11, "p");
|
|
7537
|
+
i0.ɵɵtext(12);
|
|
7538
|
+
i0.ɵɵpipe(13, "rpxTranslate");
|
|
7539
|
+
i0.ɵɵelementStart(14, "a", 7);
|
|
7540
|
+
i0.ɵɵtext(15);
|
|
7541
|
+
i0.ɵɵpipe(16, "rpxTranslate");
|
|
7553
7542
|
i0.ɵɵelementEnd();
|
|
7554
|
-
i0.ɵɵtext(
|
|
7543
|
+
i0.ɵɵtext(17, ". ");
|
|
7555
7544
|
i0.ɵɵelementEnd();
|
|
7556
|
-
i0.ɵɵelementStart(
|
|
7557
|
-
i0.ɵɵtext(
|
|
7558
|
-
i0.ɵɵpipe(
|
|
7545
|
+
i0.ɵɵelementStart(18, "p");
|
|
7546
|
+
i0.ɵɵtext(19);
|
|
7547
|
+
i0.ɵɵpipe(20, "rpxTranslate");
|
|
7559
7548
|
i0.ɵɵelementEnd();
|
|
7560
|
-
i0.ɵɵelementStart(
|
|
7561
|
-
i0.ɵɵlistener("click", function
|
|
7562
|
-
i0.ɵɵtext(
|
|
7563
|
-
i0.ɵɵpipe(
|
|
7564
|
-
i0.ɵɵelementEnd()()()()()
|
|
7549
|
+
i0.ɵɵelementStart(21, "p")(22, "button", 8);
|
|
7550
|
+
i0.ɵɵlistener("click", function TcConfirmComponent_Template_button_click_22_listener() { return ctx.onClick(); });
|
|
7551
|
+
i0.ɵɵtext(23);
|
|
7552
|
+
i0.ɵɵpipe(24, "rpxTranslate");
|
|
7553
|
+
i0.ɵɵelementEnd()()()()();
|
|
7554
|
+
i0.ɵɵelement(25, "div", 9);
|
|
7555
|
+
i0.ɵɵelementEnd()();
|
|
7565
7556
|
} if (rf & 2) {
|
|
7566
|
-
i0.ɵɵadvance(
|
|
7567
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
7557
|
+
i0.ɵɵadvance(6);
|
|
7558
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 6, "Using this service"));
|
|
7568
7559
|
i0.ɵɵadvance(3);
|
|
7569
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
7560
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10, 8, "Terms and conditions"));
|
|
7570
7561
|
i0.ɵɵadvance(3);
|
|
7571
|
-
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(
|
|
7562
|
+
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(13, 10, "We've recently updated the"), " ");
|
|
7572
7563
|
i0.ɵɵadvance(3);
|
|
7573
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
7564
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(16, 12, "terms and conditions"));
|
|
7574
7565
|
i0.ɵɵadvance(4);
|
|
7575
|
-
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(
|
|
7566
|
+
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(20, 14, "You must review and accept them."), " ");
|
|
7576
7567
|
i0.ɵɵadvance(4);
|
|
7577
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
7568
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(24, 16, ctx.buttonText), " ");
|
|
7578
7569
|
} }, dependencies: [i1$1.RouterLink, i2.RpxTranslatePipe], encapsulation: 2 }); }
|
|
7579
7570
|
}
|
|
7580
7571
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TcConfirmComponent, [{
|
|
7581
7572
|
type: Component,
|
|
7582
|
-
args: [{ selector: 'xuilib-tc-confirm', standalone: false, template: "<div class=\"govuk-width-container\">\n <main role=\"main\" class=\"govuk-main-wrapper\" id=\"content\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <h1 class=\"govuk-heading-xl\">{{'Using this service' | rpxTranslate}}</h1>\n
|
|
7573
|
+
args: [{ selector: 'xuilib-tc-confirm', standalone: false, template: "<div class=\"govuk-width-container\">\n <main role=\"main\" class=\"govuk-main-wrapper\" id=\"content\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-grid-column-two-thirds\">\n <div class=\"column-two-thirds\">\n <h1 class=\"govuk-heading-xl\">{{'Using this service' | rpxTranslate}}</h1>\n <h2 class=\"govuk-heading-m\">{{'Terms and conditions' | rpxTranslate}}</h2>\n <p>{{'We\\'ve recently updated the' | rpxTranslate}}\n <a\n routerLink=\"/terms-and-conditions\"\n rel=\"noopener noreferrer\"\n target=\"_blank\"\n >{{'terms and conditions' | rpxTranslate}}</a\n >.\n </p>\n <p>{{'You must review and accept them.' | rpxTranslate}}\n </p>\n <p>\n <button class=\"govuk-button\" (click)=\"onClick()\">\n {{ buttonText | rpxTranslate }}\n </button>\n </p>\n </div>\n </div>\n </div>\n <div class=\"govuk-grid-column-one-third\"></div>\n </main>\n</div>\n" }]
|
|
7583
7574
|
}], () => [], { buttonText: [{
|
|
7584
7575
|
type: Input
|
|
7585
7576
|
}], confirm: [{
|
|
@@ -8123,11 +8114,11 @@ class HmctsPaginationComponent {
|
|
|
8123
8114
|
i0.ɵɵconditional(!(p_r3.pages.length <= 1) ? 6 : -1);
|
|
8124
8115
|
i0.ɵɵadvance();
|
|
8125
8116
|
i0.ɵɵconditional(ctx.showResultCount ? 7 : -1);
|
|
8126
|
-
} }, dependencies: [i1$1.RouterLink, i2$4.PaginationControlsDirective, i1.DecimalPipe, i2.RpxTranslatePipe], styles: ["@media (min-width: 48.0625em){.hmcts-pagination[_ngcontent-%COMP%]{margin-left:-govuk-spacing(1);margin-right:-govuk-spacing(1);font-size:0;text-align:justify}.hmcts-pagination[_ngcontent-%COMP%]:after{content:\"\";display:inline-block;width:100%}}.hmcts-pagination__list[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0}@media (min-width: 48.0625em){.hmcts-pagination__list[_ngcontent-%COMP%]{display:inline-block;margin-bottom:0;vertical-align:middle}}.hmcts-pagination__item[_ngcontent-%COMP%]{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@font-face{font-family:GDS Transport;font-style:normal;font-weight:400;
|
|
8117
|
+
} }, dependencies: [i1$1.RouterLink, i2$4.PaginationControlsDirective, i1.DecimalPipe, i2.RpxTranslatePipe], styles: ["@media (min-width: 48.0625em){.hmcts-pagination[_ngcontent-%COMP%]{margin-left:-govuk-spacing(1);margin-right:-govuk-spacing(1);font-size:0;text-align:justify}.hmcts-pagination[_ngcontent-%COMP%]:after{content:\"\";display:inline-block;width:100%}}.hmcts-pagination__list[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0}@media (min-width: 48.0625em){.hmcts-pagination__list[_ngcontent-%COMP%]{display:inline-block;margin-bottom:0;vertical-align:middle}}.hmcts-pagination__item[_ngcontent-%COMP%]{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@font-face{font-family:GDS Transport;font-style:normal;font-weight:400;src:url(/assets/fonts/light-94a07e06a1-v2.woff2) format(\"woff2\"),url(/assets/fonts/light-f591b13f7d-v2.woff) format(\"woff\");font-display:fallback}@font-face{font-family:GDS Transport;font-style:normal;font-weight:700;src:url(/assets/fonts/bold-b542beb274-v2.woff2) format(\"woff2\"),url(/assets/fonts/bold-affa96571d-v2.woff) format(\"woff\");font-display:fallback}@media print{.hmcts-pagination__item[_ngcontent-%COMP%]{font-family:sans-serif}}.hmcts-pagination__item[_ngcontent-%COMP%]{font-weight:400;font-size:1rem;line-height:1.25}@media (min-width: 40.0625em){.hmcts-pagination__item[_ngcontent-%COMP%]{font-size:1.1875rem;line-height:1.3157894737}}@media print{.hmcts-pagination__item[_ngcontent-%COMP%]{font-size:14pt;line-height:1.15}}.hmcts-pagination__item[_ngcontent-%COMP%]{display:inline-block}.hmcts-pagination__item--active[_ngcontent-%COMP%], .hmcts-pagination__item--dots[_ngcontent-%COMP%]{font-weight:700;height:25px;padding:5px 10px;text-align:center}.hmcts-pagination__item--dots[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.hmcts-pagination__item--prev[_ngcontent-%COMP%] .hmcts-pagination__link[_ngcontent-%COMP%]:before, .hmcts-pagination__item--prev[_ngcontent-%COMP%] .hmcts-pagination__link[_ngcontent-%COMP%]:after, .hmcts-pagination__item--next[_ngcontent-%COMP%] .hmcts-pagination__link[_ngcontent-%COMP%]:before, .hmcts-pagination__item--next[_ngcontent-%COMP%] .hmcts-pagination__link[_ngcontent-%COMP%]:after{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 36'%3E%3Cpath fill='%231d70b8' fill-rule='evenodd' clip-rule='evenodd' d='M8.9 18L0 9l8.9-9L11 2.1 4.2 9l6.8 6.9L8.9 18zM11 33.9l6.8-6.9-6.8-6.9 2.1-2.1 8.9 9-8.9 9-2.1-2.1z'/%3E%3C/svg%3E\");background-repeat:no-repeat;background-size:22px 36px;background-position:0 0;display:inline-block;height:18px;vertical-align:middle;position:relative;top:-1px;width:11px}.hmcts-pagination__item--prev[_ngcontent-%COMP%] .hmcts-pagination__link[_ngcontent-%COMP%]:before{background-position:0 0;content:\"\";margin-right:10px}.hmcts-pagination__item--next[_ngcontent-%COMP%] .hmcts-pagination__link[_ngcontent-%COMP%]:after{background-position:-11px -18px;content:\"\";margin-left:10px}.hmcts-pagination__link[_ngcontent-%COMP%]{display:block;padding:5px;text-align:center;text-decoration:none;min-width:25px}.hmcts-pagination__link[_ngcontent-%COMP%]:link, .hmcts-pagination__link[_ngcontent-%COMP%]:visited{color:#1d70b8}.hmcts-pagination__link[_ngcontent-%COMP%]:hover{color:#5694ca}.hmcts-pagination__link[_ngcontent-%COMP%]:focus{color:#0b0c0c}.hmcts-pagination__results[_ngcontent-%COMP%]{padding:5px}@media (min-width: 48.0625em){.hmcts-pagination__results[_ngcontent-%COMP%]{display:inline-block;margin-bottom:0;vertical-align:middle}}.hmcts-pagination__results[_ngcontent-%COMP%]{float:right}\n\n"] }); }
|
|
8127
8118
|
}
|
|
8128
8119
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HmctsPaginationComponent, [{
|
|
8129
8120
|
type: Component,
|
|
8130
|
-
args: [{ selector: 'xuilib-hmcts-pagination', standalone: false, template: "<pagination-template #p=\"paginationApi\" [id]=\"id\" [maxSize]=\"maxSize\" (pageChange)=\"pageChange.emit($event)\"\n (pageBoundsCorrection)=\"pageBoundsCorrection.emit($event)\">\n\n <nav class=\"hmcts-pagination\" id=\"pagination-label\">\n <p class=\"govuk-visually-hidden\" aria-labelledby=\"pagination-label\">{{'Pagination navigation' | rpxTranslate}}</p>\n @if (!(p.pages.length <= 1)) {\n <ul class=\"hmcts-pagination__list\">\n <li class=\"hmcts-pagination__item hmcts-pagination__item--prev\" [class.disabled]=\"p.isFirstPage()\">\n @if (1 < p.getCurrent()) {\n <a [routerLink]=\"\" class=\"hmcts-pagination__link\" (keyup.enter)=\"p.previous()\"\n (click)=\"p.previous()\">{{'Previous' | rpxTranslate}} <span class=\"govuk-visually-hidden\">{{'set of pages' | rpxTranslate}}</span></a>\n }\n </li>\n @if (showPageNumbers) {\n @for (page of p.pages; track page) {\n <li class=\"hmcts-pagination__item\" [class.hmcts-pagination__item--active]=\"p.getCurrent() === page.value\"\n [class.hmcts-pagination__item--dots]=\"page.label === '...'\">\n @if (p.getCurrent() !== page.value) {\n <a class=\"hmcts-pagination__link\" [routerLink]=\"\" (keyup.enter)=\"p.setCurrent(page.value)\"\n (click)=\"p.setCurrent(page.value)\">\n <span class=\"govuk-visually-hidden\">{{'page' | rpxTranslate}} </span>\n <span>{{ (page.label === '...') ? page.label : (page.label | number:'') }}</span>\n </a>\n }\n @if (p.getCurrent() === page.value) {\n <span>{{ (page.label === '...') ? page.label : (page.label | number:'') }}</span>\n }\n </li>\n }\n }\n <li class=\"hmcts-pagination__item hmcts-pagination__item--next\" [class.disabled]=\"p.isLastPage()\">\n @if (!p.isLastPage()) {\n <a [routerLink]=\"\" class=\"hmcts-pagination__link\" (keyup.enter)=\"p.next()\"\n (click)=\"p.next()\">{{'Next' | rpxTranslate}}<span class=\"govuk-visually-hidden\"> {{'page' | rpxTranslate}}</span></a>\n }\n </li>\n </ul>\n }\n @if (showResultCount) {\n <p class=\"hmcts-pagination__results\">{{'Showing' | rpxTranslate}} <b>{{(p.getCurrent() * pageSize) - pageSize + 1}}</b>\n {{'to' | rpxTranslate}} <b>{{ p.getCurrent() * pageSize > p.getTotalItems() ? p.getTotalItems() : p.getCurrent() *\n pageSize}}</b> {{'of' | rpxTranslate}} <b>{{p.getTotalItems()}}</b> {{'results' | rpxTranslate}}</p>\n }\n </nav>\n\n </pagination-template>\n", styles: ["@media (min-width: 48.0625em){.hmcts-pagination{margin-left:-govuk-spacing(1);margin-right:-govuk-spacing(1);font-size:0;text-align:justify}.hmcts-pagination:after{content:\"\";display:inline-block;width:100%}}.hmcts-pagination__list{list-style:none;margin:0;padding:0}@media (min-width: 48.0625em){.hmcts-pagination__list{display:inline-block;margin-bottom:0;vertical-align:middle}}.hmcts-pagination__item{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@font-face{font-family:GDS Transport;font-style:normal;font-weight:400;
|
|
8121
|
+
args: [{ selector: 'xuilib-hmcts-pagination', standalone: false, template: "<pagination-template #p=\"paginationApi\" [id]=\"id\" [maxSize]=\"maxSize\" (pageChange)=\"pageChange.emit($event)\"\n (pageBoundsCorrection)=\"pageBoundsCorrection.emit($event)\">\n\n <nav class=\"hmcts-pagination\" id=\"pagination-label\">\n <p class=\"govuk-visually-hidden\" aria-labelledby=\"pagination-label\">{{'Pagination navigation' | rpxTranslate}}</p>\n @if (!(p.pages.length <= 1)) {\n <ul class=\"hmcts-pagination__list\">\n <li class=\"hmcts-pagination__item hmcts-pagination__item--prev\" [class.disabled]=\"p.isFirstPage()\">\n @if (1 < p.getCurrent()) {\n <a [routerLink]=\"\" class=\"hmcts-pagination__link\" (keyup.enter)=\"p.previous()\"\n (click)=\"p.previous()\">{{'Previous' | rpxTranslate}} <span class=\"govuk-visually-hidden\">{{'set of pages' | rpxTranslate}}</span></a>\n }\n </li>\n @if (showPageNumbers) {\n @for (page of p.pages; track page) {\n <li class=\"hmcts-pagination__item\" [class.hmcts-pagination__item--active]=\"p.getCurrent() === page.value\"\n [class.hmcts-pagination__item--dots]=\"page.label === '...'\">\n @if (p.getCurrent() !== page.value) {\n <a class=\"hmcts-pagination__link\" [routerLink]=\"\" (keyup.enter)=\"p.setCurrent(page.value)\"\n (click)=\"p.setCurrent(page.value)\">\n <span class=\"govuk-visually-hidden\">{{'page' | rpxTranslate}} </span>\n <span>{{ (page.label === '...') ? page.label : (page.label | number:'') }}</span>\n </a>\n }\n @if (p.getCurrent() === page.value) {\n <span>{{ (page.label === '...') ? page.label : (page.label | number:'') }}</span>\n }\n </li>\n }\n }\n <li class=\"hmcts-pagination__item hmcts-pagination__item--next\" [class.disabled]=\"p.isLastPage()\">\n @if (!p.isLastPage()) {\n <a [routerLink]=\"\" class=\"hmcts-pagination__link\" (keyup.enter)=\"p.next()\"\n (click)=\"p.next()\">{{'Next' | rpxTranslate}}<span class=\"govuk-visually-hidden\"> {{'page' | rpxTranslate}}</span></a>\n }\n </li>\n </ul>\n }\n @if (showResultCount) {\n <p class=\"hmcts-pagination__results\">{{'Showing' | rpxTranslate}} <b>{{(p.getCurrent() * pageSize) - pageSize + 1}}</b>\n {{'to' | rpxTranslate}} <b>{{ p.getCurrent() * pageSize > p.getTotalItems() ? p.getTotalItems() : p.getCurrent() *\n pageSize}}</b> {{'of' | rpxTranslate}} <b>{{p.getTotalItems()}}</b> {{'results' | rpxTranslate}}</p>\n }\n </nav>\n\n </pagination-template>\n", styles: ["@media (min-width: 48.0625em){.hmcts-pagination{margin-left:-govuk-spacing(1);margin-right:-govuk-spacing(1);font-size:0;text-align:justify}.hmcts-pagination:after{content:\"\";display:inline-block;width:100%}}.hmcts-pagination__list{list-style:none;margin:0;padding:0}@media (min-width: 48.0625em){.hmcts-pagination__list{display:inline-block;margin-bottom:0;vertical-align:middle}}.hmcts-pagination__item{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@font-face{font-family:GDS Transport;font-style:normal;font-weight:400;src:url(/assets/fonts/light-94a07e06a1-v2.woff2) format(\"woff2\"),url(/assets/fonts/light-f591b13f7d-v2.woff) format(\"woff\");font-display:fallback}@font-face{font-family:GDS Transport;font-style:normal;font-weight:700;src:url(/assets/fonts/bold-b542beb274-v2.woff2) format(\"woff2\"),url(/assets/fonts/bold-affa96571d-v2.woff) format(\"woff\");font-display:fallback}@media print{.hmcts-pagination__item{font-family:sans-serif}}.hmcts-pagination__item{font-weight:400;font-size:1rem;line-height:1.25}@media (min-width: 40.0625em){.hmcts-pagination__item{font-size:1.1875rem;line-height:1.3157894737}}@media print{.hmcts-pagination__item{font-size:14pt;line-height:1.15}}.hmcts-pagination__item{display:inline-block}.hmcts-pagination__item--active,.hmcts-pagination__item--dots{font-weight:700;height:25px;padding:5px 10px;text-align:center}.hmcts-pagination__item--dots{padding-left:0;padding-right:0}.hmcts-pagination__item--prev .hmcts-pagination__link:before,.hmcts-pagination__item--prev .hmcts-pagination__link:after,.hmcts-pagination__item--next .hmcts-pagination__link:before,.hmcts-pagination__item--next .hmcts-pagination__link:after{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 36'%3E%3Cpath fill='%231d70b8' fill-rule='evenodd' clip-rule='evenodd' d='M8.9 18L0 9l8.9-9L11 2.1 4.2 9l6.8 6.9L8.9 18zM11 33.9l6.8-6.9-6.8-6.9 2.1-2.1 8.9 9-8.9 9-2.1-2.1z'/%3E%3C/svg%3E\");background-repeat:no-repeat;background-size:22px 36px;background-position:0 0;display:inline-block;height:18px;vertical-align:middle;position:relative;top:-1px;width:11px}.hmcts-pagination__item--prev .hmcts-pagination__link:before{background-position:0 0;content:\"\";margin-right:10px}.hmcts-pagination__item--next .hmcts-pagination__link:after{background-position:-11px -18px;content:\"\";margin-left:10px}.hmcts-pagination__link{display:block;padding:5px;text-align:center;text-decoration:none;min-width:25px}.hmcts-pagination__link:link,.hmcts-pagination__link:visited{color:#1d70b8}.hmcts-pagination__link:hover{color:#5694ca}.hmcts-pagination__link:focus{color:#0b0c0c}.hmcts-pagination__results{padding:5px}@media (min-width: 48.0625em){.hmcts-pagination__results{display:inline-block;margin-bottom:0;vertical-align:middle}}.hmcts-pagination__results{float:right}\n/*! Copyright (c) 2011 by Margaret Calvert & Henrik Kubel. All rights reserved. The font has been customised for exclusive use on gov.uk. This cut is not commercially available. */\n"] }]
|
|
8131
8122
|
}], null, { id: [{
|
|
8132
8123
|
type: Input
|
|
8133
8124
|
}], maxSize: [{
|
|
@@ -8187,7 +8178,7 @@ class UserListComponent {
|
|
|
8187
8178
|
this.pageChange.emit(pageNumber);
|
|
8188
8179
|
}
|
|
8189
8180
|
static { this.ɵfac = function UserListComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || UserListComponent)(); }; }
|
|
8190
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserListComponent, selectors: [["xuilib-user-list"]], inputs: { users: "users", currentPageNumber: "currentPageNumber", pageTotalSize: "pageTotalSize" }, outputs: { userClick: "userClick", pageChange: "pageChange" }, standalone: false, decls: 17, vars: 17, consts: [[1, "govuk-table"], [
|
|
8181
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserListComponent, selectors: [["xuilib-user-list"]], inputs: { users: "users", currentPageNumber: "currentPageNumber", pageTotalSize: "pageTotalSize" }, outputs: { userClick: "userClick", pageChange: "pageChange" }, standalone: false, decls: 17, vars: 17, consts: [[1, "govuk-table"], ["clas", "govuk-table__head"], [1, "govuk-table__row"], ["scope", "col", 1, "govuk-table__header"], [1, "govuk-table__body"], ["data-selector", "table-row", 1, "govuk-table__row"], [3, "pageChange", "pageSize"], ["data-selector", "table-cell", 1, "govuk-table__cell"], [1, "govuk-link", 3, "click", "routerLink"]], template: function UserListComponent_Template(rf, ctx) { if (rf & 1) {
|
|
8191
8182
|
i0.ɵɵelementStart(0, "table", 0)(1, "thead", 1)(2, "tr", 2)(3, "th", 3);
|
|
8192
8183
|
i0.ɵɵtext(4);
|
|
8193
8184
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
@@ -8222,7 +8213,7 @@ class UserListComponent {
|
|
|
8222
8213
|
}
|
|
8223
8214
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UserListComponent, [{
|
|
8224
8215
|
type: Component,
|
|
8225
|
-
args: [{ selector: 'xuilib-user-list', standalone: false, template: "<table class=\"govuk-table\">\n <thead
|
|
8216
|
+
args: [{ selector: 'xuilib-user-list', standalone: false, template: "<table class=\"govuk-table\">\n\n <thead clas=\"govuk-table__head\">\n <tr class=\"govuk-table__row\">\n <th class=\"govuk-table__header\" scope=\"col\">{{'Name' | rpxTranslate}}</th>\n <th class=\"govuk-table__header\" scope=\"col\">{{'Email' | rpxTranslate}}</th>\n <th class=\"govuk-table__header\" scope=\"col\">{{'Status' | rpxTranslate}}</th>\n </tr>\n </thead>\n <tbody class=\"govuk-table__body\">\n @for (u of users | paginate: { itemsPerPage: pagination.itemsPerPage, currentPage: currentPageNumber, totalItems: pagination.totalItems }; track u) {\n <tr class=\"govuk-table__row\" data-selector=\"table-row\">\n <td class=\"govuk-table__cell\" data-selector=\"table-cell\">\n <a class=\"govuk-link\" [attr.title]=\"u.routerLinkTitle\" [routerLink]=\"u.routerLink\" (click)=\"onUserClick(u)\">{{ u.fullName }}</a>\n </td>\n <td class=\"govuk-table__cell\" data-selector=\"table-cell\">{{ u.email }}</td>\n <td class=\"govuk-table__cell\" data-selector=\"table-cell\">{{ u.status }}</td>\n </tr>\n }\n </tbody>\n</table>\n<xuilib-hmcts-pagination (pageChange)=\"emitPageClickEvent($event)\" [pageSize]=\"pagination.itemsPerPage\"></xuilib-hmcts-pagination>\n", styles: [":host{display:block}\n"] }]
|
|
8226
8217
|
}], null, { users: [{
|
|
8227
8218
|
type: Input
|
|
8228
8219
|
}], currentPageNumber: [{
|
|
@@ -8379,30 +8370,19 @@ class CookieBannerComponent {
|
|
|
8379
8370
|
}] }); })();
|
|
8380
8371
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CookieBannerComponent, { className: "CookieBannerComponent", filePath: "lib/components/cookie-banner/cookie-banner.component.ts", lineNumber: 11 }); })();
|
|
8381
8372
|
|
|
8382
|
-
function
|
|
8373
|
+
function PaginationComponent_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
8383
8374
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
8384
|
-
i0.ɵɵelementStart(0, "a",
|
|
8385
|
-
i0.ɵɵlistener("
|
|
8386
|
-
i0.ɵɵ
|
|
8387
|
-
i0.ɵɵ
|
|
8388
|
-
i0.ɵɵelement(2, "path", 8);
|
|
8375
|
+
i0.ɵɵelementStart(0, "a", 7);
|
|
8376
|
+
i0.ɵɵlistener("click", function PaginationComponent_Conditional_6_Template_a_click_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); ctx_r1.onPrevious(); return i0.ɵɵresetView($event == null ? null : $event.preventDefault()); });
|
|
8377
|
+
i0.ɵɵtext(1);
|
|
8378
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
8389
8379
|
i0.ɵɵelementEnd();
|
|
8390
|
-
i0.ɵɵnamespaceHTML();
|
|
8391
|
-
i0.ɵɵelementStart(3, "span", 9);
|
|
8392
|
-
i0.ɵɵtext(4);
|
|
8393
|
-
i0.ɵɵpipe(5, "rpxTranslate");
|
|
8394
|
-
i0.ɵɵelementStart(6, "span", 10);
|
|
8395
|
-
i0.ɵɵtext(7);
|
|
8396
|
-
i0.ɵɵpipe(8, "rpxTranslate");
|
|
8397
|
-
i0.ɵɵelementEnd()()();
|
|
8398
8380
|
} if (rf & 2) {
|
|
8399
|
-
i0.ɵɵadvance(
|
|
8400
|
-
i0.ɵɵ
|
|
8401
|
-
i0.ɵɵadvance(3);
|
|
8402
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 4, "page"));
|
|
8381
|
+
i0.ɵɵadvance();
|
|
8382
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "Previous page"), " ");
|
|
8403
8383
|
} }
|
|
8404
|
-
function
|
|
8405
|
-
i0.ɵɵelementStart(0, "span",
|
|
8384
|
+
function PaginationComponent_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
8385
|
+
i0.ɵɵelementStart(0, "span", 5);
|
|
8406
8386
|
i0.ɵɵtext(1);
|
|
8407
8387
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
8408
8388
|
i0.ɵɵelementEnd();
|
|
@@ -8410,29 +8390,19 @@ function PaginationComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
8410
8390
|
i0.ɵɵadvance();
|
|
8411
8391
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "Previous page"));
|
|
8412
8392
|
} }
|
|
8413
|
-
function
|
|
8393
|
+
function PaginationComponent_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
8414
8394
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
8415
|
-
i0.ɵɵelementStart(0, "a",
|
|
8416
|
-
i0.ɵɵlistener("
|
|
8417
|
-
i0.ɵɵ
|
|
8418
|
-
i0.ɵɵ
|
|
8419
|
-
i0.ɵɵ
|
|
8420
|
-
i0.ɵɵelementStart(4, "span", 10);
|
|
8421
|
-
i0.ɵɵtext(5);
|
|
8422
|
-
i0.ɵɵpipe(6, "rpxTranslate");
|
|
8423
|
-
i0.ɵɵelementEnd()();
|
|
8424
|
-
i0.ɵɵnamespaceSVG();
|
|
8425
|
-
i0.ɵɵelementStart(7, "svg", 12);
|
|
8426
|
-
i0.ɵɵelement(8, "path", 13);
|
|
8427
|
-
i0.ɵɵelementEnd()();
|
|
8395
|
+
i0.ɵɵelementStart(0, "a", 7);
|
|
8396
|
+
i0.ɵɵlistener("click", function PaginationComponent_Conditional_9_Template_a_click_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); ctx_r1.onNext(); return i0.ɵɵresetView($event == null ? null : $event.preventDefault()); });
|
|
8397
|
+
i0.ɵɵtext(1);
|
|
8398
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
8399
|
+
i0.ɵɵelementEnd();
|
|
8428
8400
|
} if (rf & 2) {
|
|
8429
|
-
i0.ɵɵadvance(
|
|
8430
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
8431
|
-
i0.ɵɵadvance(3);
|
|
8432
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 4, "page"));
|
|
8401
|
+
i0.ɵɵadvance();
|
|
8402
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "Next page"));
|
|
8433
8403
|
} }
|
|
8434
|
-
function
|
|
8435
|
-
i0.ɵɵelementStart(0, "span",
|
|
8404
|
+
function PaginationComponent_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
8405
|
+
i0.ɵɵelementStart(0, "span", 5);
|
|
8436
8406
|
i0.ɵɵtext(1);
|
|
8437
8407
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
8438
8408
|
i0.ɵɵelementEnd();
|
|
@@ -8452,26 +8422,29 @@ class PaginationComponent {
|
|
|
8452
8422
|
this.nextPage.emit(null);
|
|
8453
8423
|
}
|
|
8454
8424
|
static { this.ɵfac = function PaginationComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PaginationComponent)(); }; }
|
|
8455
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PaginationComponent, selectors: [["xuilib-pagination"]], inputs: { moreItems: "moreItems", firstRecord: "firstRecord" }, outputs: { previousPage: "previousPage", nextPage: "nextPage" }, standalone: false, decls:
|
|
8456
|
-
i0.ɵɵelementStart(0, "nav", 0);
|
|
8457
|
-
i0.ɵɵ
|
|
8458
|
-
i0.ɵɵ
|
|
8459
|
-
i0.ɵɵconditionalCreate(3, PaginationComponent_Conditional_3_Template, 9, 6, "a", 2)(4, PaginationComponent_Conditional_4_Template, 3, 3, "span", 3);
|
|
8425
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PaginationComponent, selectors: [["xuilib-pagination"]], inputs: { moreItems: "moreItems", firstRecord: "firstRecord" }, outputs: { previousPage: "previousPage", nextPage: "nextPage" }, standalone: false, decls: 11, vars: 5, consts: [["id", "pagination-label", 1, "hmcts-pagination"], ["aria-labelledby", "pagination-label", 1, "govuk-visually-hidden"], [1, "hmcts-pagination__list"], [1, "hmcts-pagination__item", "hmcts-pagination__item--prev"], ["href", "#", 1, "hmcts-pagination__link"], [1, "hmcts-pagination__link"], [1, "hmcts-pagination__item", "hmcts-pagination__item--next"], ["href", "#", 1, "hmcts-pagination__link", 3, "click"]], template: function PaginationComponent_Template(rf, ctx) { if (rf & 1) {
|
|
8426
|
+
i0.ɵɵelementStart(0, "nav", 0)(1, "p", 1);
|
|
8427
|
+
i0.ɵɵtext(2);
|
|
8428
|
+
i0.ɵɵpipe(3, "rpxTranslate");
|
|
8460
8429
|
i0.ɵɵelementEnd();
|
|
8461
|
-
i0.ɵɵelementStart(5, "
|
|
8462
|
-
i0.ɵɵconditionalCreate(6, PaginationComponent_Conditional_6_Template,
|
|
8463
|
-
i0.ɵɵelementEnd()
|
|
8430
|
+
i0.ɵɵelementStart(4, "ul", 2)(5, "li", 3);
|
|
8431
|
+
i0.ɵɵconditionalCreate(6, PaginationComponent_Conditional_6_Template, 3, 3, "a", 4)(7, PaginationComponent_Conditional_7_Template, 3, 3, "span", 5);
|
|
8432
|
+
i0.ɵɵelementEnd();
|
|
8433
|
+
i0.ɵɵelementStart(8, "li", 6);
|
|
8434
|
+
i0.ɵɵconditionalCreate(9, PaginationComponent_Conditional_9_Template, 3, 3, "a", 4)(10, PaginationComponent_Conditional_10_Template, 3, 3, "span", 5);
|
|
8435
|
+
i0.ɵɵelementEnd()()();
|
|
8464
8436
|
} if (rf & 2) {
|
|
8465
|
-
i0.ɵɵ
|
|
8466
|
-
i0.ɵɵ
|
|
8467
|
-
i0.ɵɵ
|
|
8437
|
+
i0.ɵɵadvance(2);
|
|
8438
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 3, "Pagination navigation"));
|
|
8439
|
+
i0.ɵɵadvance(4);
|
|
8440
|
+
i0.ɵɵconditional(ctx.firstRecord > 1 ? 6 : 7);
|
|
8468
8441
|
i0.ɵɵadvance(3);
|
|
8469
|
-
i0.ɵɵconditional(ctx.moreItems ?
|
|
8470
|
-
} }, dependencies: [
|
|
8442
|
+
i0.ɵɵconditional(ctx.moreItems ? 9 : 10);
|
|
8443
|
+
} }, dependencies: [i2.RpxTranslatePipe], styles: ["span.hmcts-pagination__link[_ngcontent-%COMP%]:hover{color:revert}"] }); }
|
|
8471
8444
|
}
|
|
8472
8445
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginationComponent, [{
|
|
8473
8446
|
type: Component,
|
|
8474
|
-
args: [{ selector: 'xuilib-pagination', standalone: false, template: "<nav class=\"
|
|
8447
|
+
args: [{ selector: 'xuilib-pagination', standalone: false, template: "<nav class=\"hmcts-pagination\" id=\"pagination-label\">\n\n <p class=\"govuk-visually-hidden\" aria-labelledby=\"pagination-label\">{{'Pagination navigation' | rpxTranslate}}</p>\n\n <ul class=\"hmcts-pagination__list\">\n <li class=\"hmcts-pagination__item hmcts-pagination__item--prev\">\n @if (firstRecord > 1) {\n <a class=\"hmcts-pagination__link\" (click)=\"onPrevious(); $event?.preventDefault()\" href=\"#\">\n {{'Previous page' | rpxTranslate}}\n </a>\n } @else {\n <span class=\"hmcts-pagination__link\">{{'Previous page' | rpxTranslate}}</span>\n }\n </li>\n\n <li class=\"hmcts-pagination__item hmcts-pagination__item--next\">\n @if (moreItems) {\n <a class=\"hmcts-pagination__link\" (click)=\"onNext(); $event?.preventDefault()\" href=\"#\">{{'Next page' | rpxTranslate}}</a>\n } @else {\n <span class=\"hmcts-pagination__link\">{{'Next page' | rpxTranslate}}</span>\n }\n </li>\n </ul>\n</nav>\n", styles: ["span.hmcts-pagination__link:hover{color:revert}\n"] }]
|
|
8475
8448
|
}], () => [], { moreItems: [{
|
|
8476
8449
|
type: Input
|
|
8477
8450
|
}], firstRecord: [{
|
|
@@ -8847,8 +8820,8 @@ function ExuiPageWrapperComponent_Conditional_1_Template(rf, ctx) { if (rf & 1)
|
|
|
8847
8820
|
i0.ɵɵadvance();
|
|
8848
8821
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 2, "Back"));
|
|
8849
8822
|
} }
|
|
8850
|
-
function
|
|
8851
|
-
i0.ɵɵelementStart(0, "span",
|
|
8823
|
+
function ExuiPageWrapperComponent_Conditional_4_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
8824
|
+
i0.ɵɵelementStart(0, "span", 4);
|
|
8852
8825
|
i0.ɵɵtext(1);
|
|
8853
8826
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
8854
8827
|
i0.ɵɵelementEnd();
|
|
@@ -8858,16 +8831,15 @@ function ExuiPageWrapperComponent_Conditional_4_Conditional_1_Template(rf, ctx)
|
|
|
8858
8831
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.fnTitle));
|
|
8859
8832
|
} }
|
|
8860
8833
|
function ExuiPageWrapperComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
8861
|
-
i0.ɵɵ
|
|
8862
|
-
i0.ɵɵ
|
|
8834
|
+
i0.ɵɵconditionalCreate(0, ExuiPageWrapperComponent_Conditional_4_Conditional_0_Template, 3, 3, "span", 4);
|
|
8835
|
+
i0.ɵɵelementStart(1, "h1", 5);
|
|
8863
8836
|
i0.ɵɵtext(2);
|
|
8864
8837
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
8865
8838
|
i0.ɵɵelementEnd();
|
|
8866
8839
|
} if (rf & 2) {
|
|
8867
8840
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
8868
|
-
i0.ɵɵ
|
|
8869
|
-
i0.ɵɵ
|
|
8870
|
-
i0.ɵɵadvance();
|
|
8841
|
+
i0.ɵɵconditional(ctx_r0.fnTitle ? 0 : -1);
|
|
8842
|
+
i0.ɵɵadvance(2);
|
|
8871
8843
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2, ctx_r0.title), " ");
|
|
8872
8844
|
} }
|
|
8873
8845
|
/**
|
|
@@ -8883,12 +8855,12 @@ function ExuiPageWrapperComponent_Conditional_4_Template(rf, ctx) { if (rf & 1)
|
|
|
8883
8855
|
class ExuiPageWrapperComponent {
|
|
8884
8856
|
constructor() { }
|
|
8885
8857
|
static { this.ɵfac = function ExuiPageWrapperComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ExuiPageWrapperComponent)(); }; }
|
|
8886
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ExuiPageWrapperComponent, selectors: [["exui-page-wrapper"]], inputs: { backLink: "backLink", title: "title", fnTitle: "fnTitle" }, standalone: false, ngContentSelectors: _c0$8, decls: 6, vars: 2, consts: [[1, "page"], [1, "govuk-back-link", 3, "routerLink"], [1, "govuk-width-container"], [1, "govuk-grid-row"], [1, "govuk-
|
|
8858
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ExuiPageWrapperComponent, selectors: [["exui-page-wrapper"]], inputs: { backLink: "backLink", title: "title", fnTitle: "fnTitle" }, standalone: false, ngContentSelectors: _c0$8, decls: 6, vars: 2, consts: [[1, "page"], [1, "govuk-back-link", 3, "routerLink"], [1, "govuk-width-container"], [1, "govuk-grid-row"], [1, "govuk-caption-xl"], [1, "govuk-heading-xl"]], template: function ExuiPageWrapperComponent_Template(rf, ctx) { if (rf & 1) {
|
|
8887
8859
|
i0.ɵɵprojectionDef();
|
|
8888
8860
|
i0.ɵɵelementStart(0, "div", 0);
|
|
8889
8861
|
i0.ɵɵconditionalCreate(1, ExuiPageWrapperComponent_Conditional_1_Template, 3, 4, "a", 1);
|
|
8890
8862
|
i0.ɵɵelementStart(2, "div", 2)(3, "div", 3);
|
|
8891
|
-
i0.ɵɵconditionalCreate(4, ExuiPageWrapperComponent_Conditional_4_Template, 4, 4
|
|
8863
|
+
i0.ɵɵconditionalCreate(4, ExuiPageWrapperComponent_Conditional_4_Template, 4, 4);
|
|
8892
8864
|
i0.ɵɵprojection(5);
|
|
8893
8865
|
i0.ɵɵelementEnd()()();
|
|
8894
8866
|
} if (rf & 2) {
|
|
@@ -8900,7 +8872,7 @@ class ExuiPageWrapperComponent {
|
|
|
8900
8872
|
}
|
|
8901
8873
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ExuiPageWrapperComponent, [{
|
|
8902
8874
|
type: Component,
|
|
8903
|
-
args: [{ selector: 'exui-page-wrapper', standalone: false, template: "<div class=\"page\">\n @if (backLink) {\n <a [routerLink]=\"backLink\" class=\"govuk-back-link\">{{'Back' | rpxTranslate}}</a>\n }\n <div class=\"govuk-width-container\">\n <div class=\"govuk-grid-row\">\n @if (title) {\n
|
|
8875
|
+
args: [{ selector: 'exui-page-wrapper', standalone: false, template: "<div class=\"page\">\n @if (backLink) {\n <a [routerLink]=\"backLink\" class=\"govuk-back-link\">{{'Back' | rpxTranslate}}</a>\n }\n <div class=\"govuk-width-container\">\n <div class=\"govuk-grid-row\">\n @if (title) {\n @if (fnTitle) {\n <span class=\"govuk-caption-xl\">{{fnTitle | rpxTranslate}}</span>\n }\n <h1 class=\"govuk-heading-xl\">\n {{title | rpxTranslate}}\n </h1>\n }\n <ng-content>\n\n </ng-content>\n </div>\n </div>\n</div>\n", styles: [".page{width:100%}\n"] }]
|
|
8904
8876
|
}], () => [], { backLink: [{
|
|
8905
8877
|
type: Input
|
|
8906
8878
|
}], title: [{
|
|
@@ -9094,7 +9066,7 @@ function WriteAddressFieldComponent_Conditional_2_Conditional_8_Template(rf, ctx
|
|
|
9094
9066
|
i0.ɵɵadvance(3);
|
|
9095
9067
|
i0.ɵɵtextInterpolate1("", ctx_r0.postcodeErrorMessage, " ");
|
|
9096
9068
|
} }
|
|
9097
|
-
function
|
|
9069
|
+
function WriteAddressFieldComponent_Conditional_2_Conditional_13_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
9098
9070
|
i0.ɵɵelementStart(0, "p", 1)(1, "span", 4);
|
|
9099
9071
|
i0.ɵɵtext(2, "Error:");
|
|
9100
9072
|
i0.ɵɵelementEnd();
|
|
@@ -9105,8 +9077,8 @@ function WriteAddressFieldComponent_Conditional_2_Conditional_13_Conditional_4_T
|
|
|
9105
9077
|
i0.ɵɵadvance(3);
|
|
9106
9078
|
i0.ɵɵtextInterpolate1("", ctx_r0.selectErrorMessage, " ");
|
|
9107
9079
|
} }
|
|
9108
|
-
function
|
|
9109
|
-
i0.ɵɵelementStart(0, "option",
|
|
9080
|
+
function WriteAddressFieldComponent_Conditional_2_Conditional_13_For_8_Template(rf, ctx) { if (rf & 1) {
|
|
9081
|
+
i0.ɵɵelementStart(0, "option", 18);
|
|
9110
9082
|
i0.ɵɵtext(1);
|
|
9111
9083
|
i0.ɵɵelementEnd();
|
|
9112
9084
|
} if (rf & 2) {
|
|
@@ -9117,26 +9089,26 @@ function WriteAddressFieldComponent_Conditional_2_Conditional_13_For_7_Template(
|
|
|
9117
9089
|
} }
|
|
9118
9090
|
function WriteAddressFieldComponent_Conditional_2_Conditional_13_Template(rf, ctx) { if (rf & 1) {
|
|
9119
9091
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
9120
|
-
i0.ɵɵelementStart(0, "div", 12)(1, "div", 14)(2, "label", 15);
|
|
9121
|
-
i0.ɵɵtext(
|
|
9122
|
-
i0.ɵɵelementEnd();
|
|
9123
|
-
i0.ɵɵconditionalCreate(
|
|
9124
|
-
i0.ɵɵelementStart(
|
|
9125
|
-
i0.ɵɵlistener("change", function
|
|
9126
|
-
i0.ɵɵrepeaterCreate(
|
|
9092
|
+
i0.ɵɵelementStart(0, "div", 12)(1, "div", 14)(2, "label", 15)(3, "span", 16);
|
|
9093
|
+
i0.ɵɵtext(4, "Select an address");
|
|
9094
|
+
i0.ɵɵelementEnd()();
|
|
9095
|
+
i0.ɵɵconditionalCreate(5, WriteAddressFieldComponent_Conditional_2_Conditional_13_Conditional_5_Template, 4, 1, "p", 1);
|
|
9096
|
+
i0.ɵɵelementStart(6, "select", 17);
|
|
9097
|
+
i0.ɵɵlistener("change", function WriteAddressFieldComponent_Conditional_2_Conditional_13_Template_select_change_6_listener() { i0.ɵɵrestoreView(_r3); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.addressSelected()); });
|
|
9098
|
+
i0.ɵɵrepeaterCreate(7, WriteAddressFieldComponent_Conditional_2_Conditional_13_For_8_Template, 2, 2, "option", 18, i0.ɵɵrepeaterTrackByIdentity);
|
|
9127
9099
|
i0.ɵɵelementEnd()()();
|
|
9128
9100
|
} if (rf & 2) {
|
|
9129
9101
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
9130
9102
|
i0.ɵɵadvance();
|
|
9131
9103
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c0$6, ctx_r0.postcodeErrorPresent(false)));
|
|
9132
|
-
i0.ɵɵadvance(
|
|
9133
|
-
i0.ɵɵconditional(ctx_r0.postcodeErrorPresent(false) ?
|
|
9104
|
+
i0.ɵɵadvance(4);
|
|
9105
|
+
i0.ɵɵconditional(ctx_r0.postcodeErrorPresent(false) ? 5 : -1);
|
|
9134
9106
|
i0.ɵɵadvance(2);
|
|
9135
9107
|
i0.ɵɵrepeater(ctx_r0.addressOptions);
|
|
9136
9108
|
} }
|
|
9137
9109
|
function WriteAddressFieldComponent_Conditional_2_Conditional_14_Template(rf, ctx) { if (rf & 1) {
|
|
9138
9110
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
9139
|
-
i0.ɵɵelementStart(0, "a",
|
|
9111
|
+
i0.ɵɵelementStart(0, "a", 19);
|
|
9140
9112
|
i0.ɵɵlistener("click", function WriteAddressFieldComponent_Conditional_2_Conditional_14_Template_a_click_0_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r0 = i0.ɵɵnextContext(2); ctx_r0.blankAddress(); return i0.ɵɵresetView($event.preventDefault()); });
|
|
9141
9113
|
i0.ɵɵtext(1, "I can't enter a UK postcode");
|
|
9142
9114
|
i0.ɵɵelementEnd();
|
|
@@ -9156,7 +9128,7 @@ function WriteAddressFieldComponent_Conditional_2_Template(rf, ctx) { if (rf & 1
|
|
|
9156
9128
|
i0.ɵɵlistener("click", function WriteAddressFieldComponent_Conditional_2_Template_button_click_11_listener() { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.findAddress()); });
|
|
9157
9129
|
i0.ɵɵtext(12, "Find address");
|
|
9158
9130
|
i0.ɵɵelementEnd()()();
|
|
9159
|
-
i0.ɵɵconditionalCreate(13, WriteAddressFieldComponent_Conditional_2_Conditional_13_Template,
|
|
9131
|
+
i0.ɵɵconditionalCreate(13, WriteAddressFieldComponent_Conditional_2_Conditional_13_Template, 9, 4, "div", 12);
|
|
9160
9132
|
i0.ɵɵconditionalCreate(14, WriteAddressFieldComponent_Conditional_2_Conditional_14_Template, 2, 0, "a", 13);
|
|
9161
9133
|
i0.ɵɵelementEnd();
|
|
9162
9134
|
} if (rf & 2) {
|
|
@@ -9180,19 +9152,19 @@ function WriteAddressFieldComponent_Conditional_3_Conditional_10_Template(rf, ct
|
|
|
9180
9152
|
} }
|
|
9181
9153
|
function WriteAddressFieldComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
9182
9154
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
9183
|
-
i0.ɵɵelementStart(0, "div", 2)(1, "div",
|
|
9155
|
+
i0.ɵɵelementStart(0, "div", 2)(1, "div", 20)(2, "input", 21);
|
|
9184
9156
|
i0.ɵɵlistener("click", function WriteAddressFieldComponent_Conditional_3_Template_input_click_2_listener() { i0.ɵɵrestoreView(_r6); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.setInternationalAddress(false)); });
|
|
9185
9157
|
i0.ɵɵelementEnd();
|
|
9186
|
-
i0.ɵɵelementStart(3, "label",
|
|
9158
|
+
i0.ɵɵelementStart(3, "label", 22);
|
|
9187
9159
|
i0.ɵɵtext(4, " Yes ");
|
|
9188
9160
|
i0.ɵɵelementEnd()();
|
|
9189
|
-
i0.ɵɵelementStart(5, "div",
|
|
9161
|
+
i0.ɵɵelementStart(5, "div", 20)(6, "input", 23);
|
|
9190
9162
|
i0.ɵɵlistener("click", function WriteAddressFieldComponent_Conditional_3_Template_input_click_6_listener() { i0.ɵɵrestoreView(_r6); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.setInternationalAddress(true)); });
|
|
9191
9163
|
i0.ɵɵelementEnd();
|
|
9192
|
-
i0.ɵɵelementStart(7, "label",
|
|
9164
|
+
i0.ɵɵelementStart(7, "label", 24);
|
|
9193
9165
|
i0.ɵɵtext(8, " No ");
|
|
9194
9166
|
i0.ɵɵelementEnd()();
|
|
9195
|
-
i0.ɵɵelementStart(9, "div",
|
|
9167
|
+
i0.ɵɵelementStart(9, "div", 25);
|
|
9196
9168
|
i0.ɵɵconditionalCreate(10, WriteAddressFieldComponent_Conditional_3_Conditional_10_Template, 1, 3, "xuilib-write-address-inputs", 3);
|
|
9197
9169
|
i0.ɵɵelementEnd()();
|
|
9198
9170
|
} if (rf & 2) {
|
|
@@ -9359,7 +9331,7 @@ class WriteAddressFieldComponent {
|
|
|
9359
9331
|
this.addressFormGroup.get('postcode').patchValue(postcodeNeeded ? this.formGroup.get('address').get('postCode').value : '');
|
|
9360
9332
|
}
|
|
9361
9333
|
static { this.ɵfac = function WriteAddressFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WriteAddressFieldComponent)(i0.ɵɵdirectiveInject(AddressService)); }; }
|
|
9362
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteAddressFieldComponent, selectors: [["xuilib-write-address-field"]], inputs: { formGroup: "formGroup", internationalMode: "internationalMode", isInternational: "isInternational", submissionAttempted: "submissionAttempted", startedInternational: "startedInternational", addressChosen: "addressChosen" }, outputs: { postcodeOptionSelected: "postcodeOptionSelected", internationalModeStart: "internationalModeStart", ukAddressOptionSelected: "ukAddressOptionSelected", canSelectAddress: "canSelectAddress", resetSubmission: "resetSubmission" }, standalone: false, features: [i0.ɵɵNgOnChangesFeature], decls: 5, vars: 8, consts: [[1, "govuk-form-group", 3, "formGroup", "ngClass"], [1, "govuk-error-message"], ["id", "govuk-radios", "data-module", "govuk-radios", 1, "govuk-radios"], [3, "formGroup", "isInternational", "submissionAttempted"], [1, "govuk-visually-hidden"], [1, "govuk-label"], ["id", "addressLookup", 1, "govuk-body", "postcode-lookup", 3, "ngClass"], ["for", "postcodeInput"], [1, "govuk-hint"], [1, "govuk-body"], ["type", "text", "id", "postcodeInput", "name", "postcode", "formControlName", "postcode", 1, "govuk-input", "govuk-!-width-one-third", "postcodeinput", "inline-block", 3, "ngClass"], ["type", "button", 1, "govuk-button", "find-address", 3, "click"], ["id", "selectAddress", 1, "govuk-body"], ["href", "#", 1, "manual-link", "govuk-link"], [1, "govuk-body", 3, "ngClass"], ["for", "addressList", 1, "govuk-label"], ["id", "addressList", "name", "address", "formControlName", "addressList", "focusElement", "", 1, "govuk-select", "ccd-dropdown", "addressList", 3, "change"], [3, "ngValue"], ["href", "#", 1, "manual-link", "govuk-link", 3, "click"], [1, "govuk-radios__item"], ["id", "yes", "value", "yes", "name", "ukAddress", "type", "radio", "data-aria-controls", "address-fields", "formControlName", "ukAddress", 1, "govuk-radios__input", 3, "click"], ["for", "yes", 1, "govuk-label", "govuk-radios__label"], ["id", "no", "value", "no", "name", "ukAddress", "type", "radio", "data-aria-controls", "address-fields", "formControlName", "ukAddress", 1, "govuk-radios__input", 3, "click"], ["for", "no", 1, "govuk-label", "govuk-radios__label"], ["id", "address-fields", 1, "govuk-radios__conditional"]], template: function WriteAddressFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
9334
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteAddressFieldComponent, selectors: [["xuilib-write-address-field"]], inputs: { formGroup: "formGroup", internationalMode: "internationalMode", isInternational: "isInternational", submissionAttempted: "submissionAttempted", startedInternational: "startedInternational", addressChosen: "addressChosen" }, outputs: { postcodeOptionSelected: "postcodeOptionSelected", internationalModeStart: "internationalModeStart", ukAddressOptionSelected: "ukAddressOptionSelected", canSelectAddress: "canSelectAddress", resetSubmission: "resetSubmission" }, standalone: false, features: [i0.ɵɵNgOnChangesFeature], decls: 5, vars: 8, consts: [[1, "govuk-form-group", 3, "formGroup", "ngClass"], [1, "govuk-error-message"], ["id", "govuk-radios", "data-module", "govuk-radios", 1, "govuk-radios"], [3, "formGroup", "isInternational", "submissionAttempted"], [1, "govuk-visually-hidden"], [1, "govuk-label"], ["id", "addressLookup", 1, "govuk-body", "postcode-lookup", 3, "ngClass"], ["for", "postcodeInput"], [1, "govuk-hint"], [1, "govuk-body"], ["type", "text", "id", "postcodeInput", "name", "postcode", "formControlName", "postcode", 1, "govuk-input", "govuk-!-width-one-third", "postcodeinput", "inline-block", 3, "ngClass"], ["type", "button", 1, "govuk-button", "find-address", 3, "click"], ["id", "selectAddress", 1, "govuk-body"], ["href", "#", 1, "manual-link", "govuk-link"], [1, "govuk-body", 3, "ngClass"], ["for", "addressList", 1, "govuk-label"], [1, "form-label"], ["id", "addressList", "name", "address", "formControlName", "addressList", "focusElement", "", 1, "form-control", "govuk-select", "ccd-dropdown", "addressList", 3, "change"], [3, "ngValue"], ["href", "#", 1, "manual-link", "govuk-link", 3, "click"], [1, "govuk-radios__item"], ["id", "yes", "value", "yes", "name", "ukAddress", "type", "radio", "data-aria-controls", "address-fields", "formControlName", "ukAddress", 1, "govuk-radios__input", 3, "click"], ["for", "yes", 1, "govuk-label", "govuk-radios__label"], ["id", "no", "value", "no", "name", "ukAddress", "type", "radio", "data-aria-controls", "address-fields", "formControlName", "ukAddress", 1, "govuk-radios__input", 3, "click"], ["for", "no", 1, "govuk-label", "govuk-radios__label"], ["id", "address-fields", 1, "govuk-radios__conditional"]], template: function WriteAddressFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
9363
9335
|
i0.ɵɵelementStart(0, "div", 0);
|
|
9364
9336
|
i0.ɵɵconditionalCreate(1, WriteAddressFieldComponent_Conditional_1_Template, 4, 1, "p", 1);
|
|
9365
9337
|
i0.ɵɵconditionalCreate(2, WriteAddressFieldComponent_Conditional_2_Template, 15, 9, "div");
|
|
@@ -9380,7 +9352,7 @@ class WriteAddressFieldComponent {
|
|
|
9380
9352
|
}
|
|
9381
9353
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteAddressFieldComponent, [{
|
|
9382
9354
|
type: Component,
|
|
9383
|
-
args: [{ selector: 'xuilib-write-address-field', standalone: false, template: "<div class=\"govuk-form-group\" [formGroup]=\"addressFormGroup\"\n [ngClass]=\"{'govuk-form-group--error': optionErrorsPresent}\">\n @if (optionErrorsPresent) {\n <p class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">Error:</span>{{optionErrorMessage}}\n </p>\n }\n @if (postcodeLookupVisible()) {\n <div>\n <span class=\"govuk-label\"><strong>Provide address details</strong></span>\n <div class=\"govuk-body postcode-lookup\" id=\"addressLookup\"\n [ngClass]=\"{'govuk-form-group--error': missingPostcode || postcodeErrorPresent(true)}\">\n <label for=\"postcodeInput\">\n <span class=\"govuk-hint\">Enter a UK postcode</span>\n </label>\n @if (missingPostcode || postcodeErrorPresent(true)) {\n <p class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">Error:</span>{{postcodeErrorMessage}}\n </p>\n }\n <div class=\"govuk-body\">\n <input type=\"text\" [ngClass]=\"{'govuk-input--error': missingPostcode}\" id=\"postcodeInput\" name=\"postcode\"\n class=\"govuk-input govuk-!-width-one-third postcodeinput inline-block\" formControlName=\"postcode\">\n <button type=\"button\" class=\"govuk-button find-address\" (click)=\"findAddress()\">Find address</button>\n </div>\n </div>\n @if (addressOptions) {\n <div class=\"govuk-body\" id=\"selectAddress\">\n <div class=\"govuk-body\" [ngClass]=\"{'govuk-form-group--error': postcodeErrorPresent(false)}\">\n <label class=\"govuk-label\" for=\"addressList\">\n Select an address
|
|
9355
|
+
args: [{ selector: 'xuilib-write-address-field', standalone: false, template: "<div class=\"govuk-form-group\" [formGroup]=\"addressFormGroup\"\n [ngClass]=\"{'govuk-form-group--error': optionErrorsPresent}\">\n @if (optionErrorsPresent) {\n <p class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">Error:</span>{{optionErrorMessage}}\n </p>\n }\n @if (postcodeLookupVisible()) {\n <div>\n <span class=\"govuk-label\"><strong>Provide address details</strong></span>\n <div class=\"govuk-body postcode-lookup\" id=\"addressLookup\"\n [ngClass]=\"{'govuk-form-group--error': missingPostcode || postcodeErrorPresent(true)}\">\n <label for=\"postcodeInput\">\n <span class=\"govuk-hint\">Enter a UK postcode</span>\n </label>\n @if (missingPostcode || postcodeErrorPresent(true)) {\n <p class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">Error:</span>{{postcodeErrorMessage}}\n </p>\n }\n <div class=\"govuk-body\">\n <input type=\"text\" [ngClass]=\"{'govuk-input--error': missingPostcode}\" id=\"postcodeInput\" name=\"postcode\"\n class=\"govuk-input govuk-!-width-one-third postcodeinput inline-block\" formControlName=\"postcode\">\n <button type=\"button\" class=\"govuk-button find-address\" (click)=\"findAddress()\">Find address</button>\n </div>\n </div>\n @if (addressOptions) {\n <div class=\"govuk-body\" id=\"selectAddress\">\n <div class=\"govuk-body\" [ngClass]=\"{'govuk-form-group--error': postcodeErrorPresent(false)}\">\n <label class=\"govuk-label\" for=\"addressList\">\n <span class=\"form-label\">Select an address</span>\n </label>\n @if (postcodeErrorPresent(false)) {\n <p class=\"govuk-error-message\">\n <span class=\"govuk-visually-hidden\">Error:</span>{{selectErrorMessage}}\n </p>\n }\n <select class=\"form-control govuk-select ccd-dropdown addressList\" id=\"addressList\" name=\"address\"\n formControlName=\"addressList\" (change)=\"addressSelected()\" focusElement>\n @for (addressOption of addressOptions; track addressOption) {\n <option [ngValue]=\"addressOption.value\">\n {{addressOption.description}}\n </option>\n }\n </select>\n </div>\n </div>\n }\n @if (!shouldShowDetailFields() || (!startedInternational && !addressChosen)) {\n <a class=\"manual-link govuk-link\"\n (click)=\"blankAddress(); $event.preventDefault()\" href=\"#\">I can't enter a UK postcode</a>\n }\n </div>\n }\n\n @if (shouldShowDetailFields() && internationalMode && startedInternational && !addressChosen) {\n <div id=\"govuk-radios\" class=\"govuk-radios\" data-module=\"govuk-radios\"\n >\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"yes\" value=\"yes\" name=\"ukAddress\" type=\"radio\"\n data-aria-controls=\"address-fields\" (click)=\"setInternationalAddress(false)\" formControlName=\"ukAddress\">\n <label class=\"govuk-label govuk-radios__label\" for=\"yes\">\n Yes\n </label>\n </div>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"no\" value=\"no\" name=\"ukAddress\" type=\"radio\"\n data-aria-controls=\"address-fields\" (click)=\"setInternationalAddress(true)\" formControlName=\"ukAddress\">\n <label class=\"govuk-label govuk-radios__label\" for=\"no\">\n No\n </label>\n </div>\n <div class=\"govuk-radios__conditional\" id=\"address-fields\">\n @if (isInternational !== undefined) {\n <xuilib-write-address-inputs [formGroup]=\"formGroup\"\n [isInternational]=\"isInternational\" [submissionAttempted]=\"submissionAttempted\">\n </xuilib-write-address-inputs>\n }\n </div>\n </div>\n }\n\n @if (shouldShowDetailFields() && (addressChosen || !internationalMode)) {\n <xuilib-write-address-inputs\n [formGroup]=\"formGroup\" [isInternational]=\"false\" [submissionAttempted]=\"submissionAttempted\">\n </xuilib-write-address-inputs>\n }\n\n</div>", styles: [".manual-link{cursor:pointer;display:block;text-decoration:underline;font-size:1.1875rem}.postcode-lookup{margin-bottom:-20px}.find-address{left:1%}:host{display:block}\n"] }]
|
|
9384
9356
|
}], () => [{ type: AddressService }], { formGroup: [{
|
|
9385
9357
|
type: Input
|
|
9386
9358
|
}], internationalMode: [{
|
|
@@ -10224,11 +10196,11 @@ class HmctsBannerComponent {
|
|
|
10224
10196
|
i0.ɵɵconditionalCreate(0, HmctsBannerComponent_Conditional_0_Template, 10, 13);
|
|
10225
10197
|
} if (rf & 2) {
|
|
10226
10198
|
i0.ɵɵconditional(ctx.message && ctx.type ? 0 : -1);
|
|
10227
|
-
} }, dependencies: [i2.RpxTranslatePipe], styles: ["@charset \"UTF-8\";.hmcts-banner-title[_ngcontent-%COMP%]{color:#fff;background-color:#1d70b8;font-weight:700;padding:10px 15px 5px}.hmcts-banner-title--success[_ngcontent-%COMP%]{background-color:#
|
|
10199
|
+
} }, dependencies: [i2.RpxTranslatePipe], styles: ["@charset \"UTF-8\";.hmcts-banner-title[_ngcontent-%COMP%]{color:#fff;background-color:#1d70b8;font-weight:700;padding:10px 15px 5px}.hmcts-banner-title--success[_ngcontent-%COMP%]{background-color:#00703c}.hmcts-banner-title--warning[_ngcontent-%COMP%]{background-color:#d4351c}.hmcts-banner[_ngcontent-%COMP%]{border:5px solid #1d70b8;color:#1d70b8;font-size:0;margin-bottom:30px;padding:10px}.hmcts-banner--success[_ngcontent-%COMP%]{border-color:#00703c;color:#00703c}.hmcts-banner--warning[_ngcontent-%COMP%]{border-color:#d4351c;color:#d4351c}.hmcts-banner__icon[_ngcontent-%COMP%]{fill:currentColor;float:left;margin-right:10px}.hmcts-banner__message[_ngcontent-%COMP%]{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@font-face{font-family:GDS Transport;font-style:normal;font-weight:400;src:url(/assets/fonts/light-94a07e06a1-v2.woff2) format(\"woff2\"),url(/assets/fonts/light-f591b13f7d-v2.woff) format(\"woff\");font-display:fallback}@font-face{font-family:GDS Transport;font-style:normal;font-weight:700;src:url(/assets/fonts/bold-b542beb274-v2.woff2) format(\"woff2\"),url(/assets/fonts/bold-affa96571d-v2.woff) format(\"woff\");font-display:fallback}@media print{.hmcts-banner__message[_ngcontent-%COMP%]{font-family:sans-serif}}.hmcts-banner__message[_ngcontent-%COMP%]{font-weight:400;font-size:1rem;line-height:1.25}@media (min-width: 40.0625em){.hmcts-banner__message[_ngcontent-%COMP%]{font-size:1.1875rem;line-height:1.3157894737}}@media print{.hmcts-banner__message[_ngcontent-%COMP%]{font-size:14pt;line-height:1.15}}.hmcts-banner__message[_ngcontent-%COMP%]{color:#0b0c0c;display:block;overflow:hidden}.hmcts-banner__message[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin-bottom:10px}.hmcts-banner__message[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]:last-child{margin-bottom:0}.hmcts-banner__message[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:last-child{margin-bottom:0}.hmcts-banner__message--bold[_ngcontent-%COMP%]{font-weight:700}.hmcts-banner__assistive[_ngcontent-%COMP%]{position:absolute!important;width:1px!important;height:1px!important;margin:0!important;padding:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;-webkit-clip-path:inset(50%)!important;clip-path:inset(50%)!important;border:0!important;white-space:nowrap!important;-webkit-user-select:none;-ms-user-select:none;user-select:none}.hmcts-banner__assistive[_ngcontent-%COMP%]:before{content:\"\\a0\"}.hmcts-banner__assistive[_ngcontent-%COMP%]:after{content:\"\\a0\"}\n\n"] }); }
|
|
10228
10200
|
}
|
|
10229
10201
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HmctsBannerComponent, [{
|
|
10230
10202
|
type: Component,
|
|
10231
|
-
args: [{ selector: 'xuilib-hmcts-banner', standalone: false, template: "@if (message && type) {\n @if (title) {\n <div\n class=\"hmcts-banner-title hmcts-banner-title--{{ type }}\">\n {{ title }}\n </div>\n }\n <div class=\"hmcts-banner hmcts-banner--{{ type }}\">\n @if (showMessageIcon) {\n @switch (type) {\n @case ('warning') {\n <svg class=\"hmcts-banner__icon hmcts-banner__icon--warning\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path d=\"M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z\"></path>\n </svg>\n }\n @case ('success') {\n <svg class=\"hmcts-banner__icon hmcts-banner__icon--success\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path d=\"M25,6.2L8.7,23.2L0,14.1l4-4.2l4.7,4.9L21,2L25,6.2z\"></path>\n </svg>\n }\n @case ('information') {\n <svg class=\"hmcts-banner__icon hmcts-banner__icon--information\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path d=\"M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z\"></path>\n </svg>\n }\n }\n }\n <div class=\"hmcts-banner__message\" [class.hmcts-banner__message--bold]=\"messageBoldText\">\n <span class=\"hmcts-banner__assistive\">{{type | rpxTranslate}}</span>\n <span class=\"hmcts-banner__message-text govuk-!-font-weight-bold\">{{message | rpxTranslate}}</span>\n </div>\n </div>\n}\n", styles: ["@charset \"UTF-8\";.hmcts-banner-title{color:#fff;background-color:#1d70b8;font-weight:700;padding:10px 15px 5px}.hmcts-banner-title--success{background-color:#
|
|
10203
|
+
args: [{ selector: 'xuilib-hmcts-banner', standalone: false, template: "@if (message && type) {\n @if (title) {\n <div\n class=\"hmcts-banner-title hmcts-banner-title--{{ type }}\">\n {{ title }}\n </div>\n }\n <div class=\"hmcts-banner hmcts-banner--{{ type }}\">\n @if (showMessageIcon) {\n @switch (type) {\n @case ('warning') {\n <svg class=\"hmcts-banner__icon hmcts-banner__icon--warning\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path d=\"M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z\"></path>\n </svg>\n }\n @case ('success') {\n <svg class=\"hmcts-banner__icon hmcts-banner__icon--success\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path d=\"M25,6.2L8.7,23.2L0,14.1l4-4.2l4.7,4.9L21,2L25,6.2z\"></path>\n </svg>\n }\n @case ('information') {\n <svg class=\"hmcts-banner__icon hmcts-banner__icon--information\" fill=\"currentColor\" role=\"presentation\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 25 25\" height=\"25\" width=\"25\">\n <path d=\"M13.7,18.5h-2.4v-2.4h2.4V18.5z M12.5,13.7c-0.7,0-1.2-0.5-1.2-1.2V7.7c0-0.7,0.5-1.2,1.2-1.2s1.2,0.5,1.2,1.2v4.8\n C13.7,13.2,13.2,13.7,12.5,13.7z M12.5,0.5c-6.6,0-12,5.4-12,12s5.4,12,12,12s12-5.4,12-12S19.1,0.5,12.5,0.5z\"></path>\n </svg>\n }\n }\n }\n <div class=\"hmcts-banner__message\" [class.hmcts-banner__message--bold]=\"messageBoldText\">\n <span class=\"hmcts-banner__assistive\">{{type | rpxTranslate}}</span>\n <span class=\"hmcts-banner__message-text govuk-!-font-weight-bold\">{{message | rpxTranslate}}</span>\n </div>\n </div>\n}\n", styles: ["@charset \"UTF-8\";.hmcts-banner-title{color:#fff;background-color:#1d70b8;font-weight:700;padding:10px 15px 5px}.hmcts-banner-title--success{background-color:#00703c}.hmcts-banner-title--warning{background-color:#d4351c}.hmcts-banner{border:5px solid #1d70b8;color:#1d70b8;font-size:0;margin-bottom:30px;padding:10px}.hmcts-banner--success{border-color:#00703c;color:#00703c}.hmcts-banner--warning{border-color:#d4351c;color:#d4351c}.hmcts-banner__icon{fill:currentColor;float:left;margin-right:10px}.hmcts-banner__message{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@font-face{font-family:GDS Transport;font-style:normal;font-weight:400;src:url(/assets/fonts/light-94a07e06a1-v2.woff2) format(\"woff2\"),url(/assets/fonts/light-f591b13f7d-v2.woff) format(\"woff\");font-display:fallback}@font-face{font-family:GDS Transport;font-style:normal;font-weight:700;src:url(/assets/fonts/bold-b542beb274-v2.woff2) format(\"woff2\"),url(/assets/fonts/bold-affa96571d-v2.woff) format(\"woff\");font-display:fallback}@media print{.hmcts-banner__message{font-family:sans-serif}}.hmcts-banner__message{font-weight:400;font-size:1rem;line-height:1.25}@media (min-width: 40.0625em){.hmcts-banner__message{font-size:1.1875rem;line-height:1.3157894737}}@media print{.hmcts-banner__message{font-size:14pt;line-height:1.15}}.hmcts-banner__message{color:#0b0c0c;display:block;overflow:hidden}.hmcts-banner__message h2{margin-bottom:10px}.hmcts-banner__message h2:last-child{margin-bottom:0}.hmcts-banner__message p:last-child{margin-bottom:0}.hmcts-banner__message--bold{font-weight:700}.hmcts-banner__assistive{position:absolute!important;width:1px!important;height:1px!important;margin:0!important;padding:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;-webkit-clip-path:inset(50%)!important;clip-path:inset(50%)!important;border:0!important;white-space:nowrap!important;-webkit-user-select:none;-ms-user-select:none;user-select:none}.hmcts-banner__assistive:before{content:\"\\a0\"}.hmcts-banner__assistive:after{content:\"\\a0\"}\n/*! Copyright (c) 2011 by Margaret Calvert & Henrik Kubel. All rights reserved. The font has been customised for exclusive use on gov.uk. This cut is not commercially available. */\n"] }]
|
|
10232
10204
|
}], null, { message: [{
|
|
10233
10205
|
type: Input
|
|
10234
10206
|
}], type: [{
|
|
@@ -10262,11 +10234,11 @@ class HmctsIdentityBarComponent {
|
|
|
10262
10234
|
i0.ɵɵconditionalCreate(0, HmctsIdentityBarComponent_Conditional_0_Template, 6, 3, "div", 0);
|
|
10263
10235
|
} if (rf & 2) {
|
|
10264
10236
|
i0.ɵɵconditional(ctx.value ? 0 : -1);
|
|
10265
|
-
} }, dependencies: [i2.RpxTranslatePipe], styles: ["
|
|
10237
|
+
} }, dependencies: [i2.RpxTranslatePipe], styles: [".govuk-width-container[_ngcontent-%COMP%]{max-width:960px;margin-right:15px;margin-left:15px}@supports (margin: max(0px)){.govuk-width-container[_ngcontent-%COMP%]{margin-right:max(15px,calc(15px + env(safe-area-inset-right)));margin-left:max(15px,calc(15px + env(safe-area-inset-left)))}}@media (min-width: 40.0625em){.govuk-width-container[_ngcontent-%COMP%]{margin-right:30px;margin-left:30px}@supports (margin: max(0px)){.govuk-width-container[_ngcontent-%COMP%]{margin-right:max(30px,calc(15px + env(safe-area-inset-right)));margin-left:max(30px,calc(15px + env(safe-area-inset-left)))}}}@media (min-width: 1020px){.govuk-width-container[_ngcontent-%COMP%]{margin-right:auto;margin-left:auto}@supports (margin: max(0px)){.govuk-width-container[_ngcontent-%COMP%]{margin-right:auto;margin-left:auto}}}.hmcts-identity-bar[_ngcontent-%COMP%]:after{content:\"\";display:block;clear:both}.hmcts-identity-bar[_ngcontent-%COMP%]{background-color:#f3f2f1;box-shadow:inset 0 -1px #b1b4b6;color:#0b0c0c;padding-bottom:9px;padding-top:10px}.hmcts-identity-bar__container[_ngcontent-%COMP%]{max-width:960px;margin-right:15px;margin-left:15px}@supports (margin: max(0px)){.hmcts-identity-bar__container[_ngcontent-%COMP%]{margin-right:max(15px,calc(15px + env(safe-area-inset-right)));margin-left:max(15px,calc(15px + env(safe-area-inset-left)))}}@media (min-width: 40.0625em){.hmcts-identity-bar__container[_ngcontent-%COMP%]{margin-right:30px;margin-left:30px}@supports (margin: max(0px)){.hmcts-identity-bar__container[_ngcontent-%COMP%]{margin-right:max(30px,calc(15px + env(safe-area-inset-right)));margin-left:max(30px,calc(15px + env(safe-area-inset-left)))}}}@media (min-width: 1020px){.hmcts-identity-bar__container[_ngcontent-%COMP%]{margin-right:auto;margin-left:auto}@supports (margin: max(0px)){.hmcts-identity-bar__container[_ngcontent-%COMP%]{margin-right:auto;margin-left:auto}}}.hmcts-identity-bar__container[_ngcontent-%COMP%]{font-size:0;text-align:justify}.hmcts-identity-bar__container[_ngcontent-%COMP%]:after{content:\"\";display:inline-block;width:100%}.hmcts-identity-bar__title[_ngcontent-%COMP%]{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@font-face{font-family:GDS Transport;font-style:normal;font-weight:400;src:url(/assets/fonts/light-94a07e06a1-v2.woff2) format(\"woff2\"),url(/assets/fonts/light-f591b13f7d-v2.woff) format(\"woff\");font-display:fallback}@font-face{font-family:GDS Transport;font-style:normal;font-weight:700;src:url(/assets/fonts/bold-b542beb274-v2.woff2) format(\"woff2\"),url(/assets/fonts/bold-affa96571d-v2.woff) format(\"woff\");font-display:fallback}@media print{.hmcts-identity-bar__title[_ngcontent-%COMP%]{font-family:sans-serif}}.hmcts-identity-bar__title[_ngcontent-%COMP%]{font-weight:400;font-size:.875rem;line-height:1.1428571429}@media (min-width: 40.0625em){.hmcts-identity-bar__title[_ngcontent-%COMP%]{font-size:1rem;line-height:1.25}}@media print{.hmcts-identity-bar__title[_ngcontent-%COMP%]{font-size:14pt;line-height:1.2}}.hmcts-identity-bar__title[_ngcontent-%COMP%]{display:inline-block;vertical-align:top}.hmcts-identity-bar__details[_ngcontent-%COMP%]{margin-right:10px;padding-top:5px;padding-bottom:5px}@media (min-width: 40.0625em){.hmcts-identity-bar__details[_ngcontent-%COMP%]{display:inline-block;vertical-align:top;padding-top:11px;padding-bottom:9px}}\n\n"] }); }
|
|
10266
10238
|
}
|
|
10267
10239
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HmctsIdentityBarComponent, [{
|
|
10268
10240
|
type: Component,
|
|
10269
|
-
args: [{ selector: 'xuilib-hmcts-identity-bar', standalone: false, template: "@if (value) {\n <div class=\"hmcts-identity-bar\">\n <div class=\"hmcts-identity-bar__container\">\n <div class=\"hmcts-identity-bar__details\">\n <span class=\"hmcts-identity-bar__title\">{{value | rpxTranslate}}</span>\n </div>\n </div>\n </div>\n}\n", styles: ["
|
|
10241
|
+
args: [{ selector: 'xuilib-hmcts-identity-bar', standalone: false, template: "@if (value) {\n <div class=\"hmcts-identity-bar\">\n <div class=\"hmcts-identity-bar__container\">\n <div class=\"hmcts-identity-bar__details\">\n <span class=\"hmcts-identity-bar__title\">{{value | rpxTranslate}}</span>\n </div>\n </div>\n </div>\n}\n", styles: [".govuk-width-container{max-width:960px;margin-right:15px;margin-left:15px}@supports (margin: max(0px)){.govuk-width-container{margin-right:max(15px,calc(15px + env(safe-area-inset-right)));margin-left:max(15px,calc(15px + env(safe-area-inset-left)))}}@media (min-width: 40.0625em){.govuk-width-container{margin-right:30px;margin-left:30px}@supports (margin: max(0px)){.govuk-width-container{margin-right:max(30px,calc(15px + env(safe-area-inset-right)));margin-left:max(30px,calc(15px + env(safe-area-inset-left)))}}}@media (min-width: 1020px){.govuk-width-container{margin-right:auto;margin-left:auto}@supports (margin: max(0px)){.govuk-width-container{margin-right:auto;margin-left:auto}}}.hmcts-identity-bar:after{content:\"\";display:block;clear:both}.hmcts-identity-bar{background-color:#f3f2f1;box-shadow:inset 0 -1px #b1b4b6;color:#0b0c0c;padding-bottom:9px;padding-top:10px}.hmcts-identity-bar__container{max-width:960px;margin-right:15px;margin-left:15px}@supports (margin: max(0px)){.hmcts-identity-bar__container{margin-right:max(15px,calc(15px + env(safe-area-inset-right)));margin-left:max(15px,calc(15px + env(safe-area-inset-left)))}}@media (min-width: 40.0625em){.hmcts-identity-bar__container{margin-right:30px;margin-left:30px}@supports (margin: max(0px)){.hmcts-identity-bar__container{margin-right:max(30px,calc(15px + env(safe-area-inset-right)));margin-left:max(30px,calc(15px + env(safe-area-inset-left)))}}}@media (min-width: 1020px){.hmcts-identity-bar__container{margin-right:auto;margin-left:auto}@supports (margin: max(0px)){.hmcts-identity-bar__container{margin-right:auto;margin-left:auto}}}.hmcts-identity-bar__container{font-size:0;text-align:justify}.hmcts-identity-bar__container:after{content:\"\";display:inline-block;width:100%}.hmcts-identity-bar__title{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@font-face{font-family:GDS Transport;font-style:normal;font-weight:400;src:url(/assets/fonts/light-94a07e06a1-v2.woff2) format(\"woff2\"),url(/assets/fonts/light-f591b13f7d-v2.woff) format(\"woff\");font-display:fallback}@font-face{font-family:GDS Transport;font-style:normal;font-weight:700;src:url(/assets/fonts/bold-b542beb274-v2.woff2) format(\"woff2\"),url(/assets/fonts/bold-affa96571d-v2.woff) format(\"woff\");font-display:fallback}@media print{.hmcts-identity-bar__title{font-family:sans-serif}}.hmcts-identity-bar__title{font-weight:400;font-size:.875rem;line-height:1.1428571429}@media (min-width: 40.0625em){.hmcts-identity-bar__title{font-size:1rem;line-height:1.25}}@media print{.hmcts-identity-bar__title{font-size:14pt;line-height:1.2}}.hmcts-identity-bar__title{display:inline-block;vertical-align:top}.hmcts-identity-bar__details{margin-right:10px;padding-top:5px;padding-bottom:5px}@media (min-width: 40.0625em){.hmcts-identity-bar__details{display:inline-block;vertical-align:top;padding-top:11px;padding-bottom:9px}}\n/*! Copyright (c) 2011 by Margaret Calvert & Henrik Kubel. All rights reserved. The font has been customised for exclusive use on gov.uk. This cut is not commercially available. */\n"] }]
|
|
10270
10242
|
}], () => [], { content: [{
|
|
10271
10243
|
type: Input
|
|
10272
10244
|
}] }); })();
|
|
@@ -10435,11 +10407,11 @@ class HmctsPrimaryNavigationComponent {
|
|
|
10435
10407
|
i0.ɵɵconditionalCreate(0, HmctsPrimaryNavigationComponent_Conditional_0_Template, 6, 2, "nav", 0);
|
|
10436
10408
|
} if (rf & 2) {
|
|
10437
10409
|
i0.ɵɵconditional(ctx.isUserLoggedIn ? 0 : -1);
|
|
10438
|
-
} }, dependencies: [i1$1.RouterLink, i2.RpxTranslatePipe], styles: ["
|
|
10410
|
+
} }, dependencies: [i1$1.RouterLink, i2.RpxTranslatePipe], styles: [".govuk-width-container[_ngcontent-%COMP%]{max-width:960px;margin-right:15px;margin-left:15px}@supports (margin: max(0px)){.govuk-width-container[_ngcontent-%COMP%]{margin-right:max(15px,calc(15px + env(safe-area-inset-right)));margin-left:max(15px,calc(15px + env(safe-area-inset-left)))}}@media (min-width: 40.0625em){.govuk-width-container[_ngcontent-%COMP%]{margin-right:30px;margin-left:30px}@supports (margin: max(0px)){.govuk-width-container[_ngcontent-%COMP%]{margin-right:max(30px,calc(15px + env(safe-area-inset-right)));margin-left:max(30px,calc(15px + env(safe-area-inset-left)))}}}@media (min-width: 1020px){.govuk-width-container[_ngcontent-%COMP%]{margin-right:auto;margin-left:auto}@supports (margin: max(0px)){.govuk-width-container[_ngcontent-%COMP%]{margin-right:auto;margin-left:auto}}}.hmcts-primary-navigation[_ngcontent-%COMP%]{background-color:#0b0c0c}.hmcts-primary-navigation__container[_ngcontent-%COMP%]{max-width:960px;margin-right:15px;margin-left:15px}@supports (margin: max(0px)){.hmcts-primary-navigation__container[_ngcontent-%COMP%]{margin-right:max(15px,calc(15px + env(safe-area-inset-right)));margin-left:max(15px,calc(15px + env(safe-area-inset-left)))}}@media (min-width: 40.0625em){.hmcts-primary-navigation__container[_ngcontent-%COMP%]{margin-right:30px;margin-left:30px}@supports (margin: max(0px)){.hmcts-primary-navigation__container[_ngcontent-%COMP%]{margin-right:max(30px,calc(15px + env(safe-area-inset-right)));margin-left:max(30px,calc(15px + env(safe-area-inset-left)))}}}@media (min-width: 1020px){.hmcts-primary-navigation__container[_ngcontent-%COMP%]{margin-right:auto;margin-left:auto}@supports (margin: max(0px)){.hmcts-primary-navigation__container[_ngcontent-%COMP%]{margin-right:auto;margin-left:auto}}}.hmcts-primary-navigation__container[_ngcontent-%COMP%]{font-size:0;text-align:justify}.hmcts-primary-navigation__container[_ngcontent-%COMP%]:after{content:\"\";display:inline-block;width:100%}.hmcts-primary-navigation__list[_ngcontent-%COMP%]{font-size:0;list-style:none;margin:0;padding:0}.hmcts-primary-navigation__item[_ngcontent-%COMP%]{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@font-face{font-family:GDS Transport;font-style:normal;font-weight:400;src:url(/assets/fonts/light-94a07e06a1-v2.woff2) format(\"woff2\"),url(/assets/fonts/light-f591b13f7d-v2.woff) format(\"woff\");font-display:fallback}@font-face{font-family:GDS Transport;font-style:normal;font-weight:700;src:url(/assets/fonts/bold-b542beb274-v2.woff2) format(\"woff2\"),url(/assets/fonts/bold-affa96571d-v2.woff) format(\"woff\");font-display:fallback}@media print{.hmcts-primary-navigation__item[_ngcontent-%COMP%]{font-family:sans-serif}}.hmcts-primary-navigation__item[_ngcontent-%COMP%]{font-weight:700;font-size:1rem;line-height:1.25}@media (min-width: 40.0625em){.hmcts-primary-navigation__item[_ngcontent-%COMP%]{font-size:1.1875rem;line-height:1.3157894737}}@media print{.hmcts-primary-navigation__item[_ngcontent-%COMP%]{font-size:14pt;line-height:1.15}}.hmcts-primary-navigation__item[_ngcontent-%COMP%]{display:inline-block;margin-right:20px;margin-top:0}.hmcts-primary-navigation__item[_ngcontent-%COMP%]:last-child{margin-right:0}.hmcts-primary-navigation__link[_ngcontent-%COMP%]{display:block;padding-bottom:13px;padding-top:12px;text-decoration:underline}.hmcts-primary-navigation__link[_ngcontent-%COMP%]:link, .hmcts-primary-navigation__link[_ngcontent-%COMP%]:visited{color:#fff}.hmcts-primary-navigation__link[_ngcontent-%COMP%]:focus{color:#0b0c0c;position:relative;z-index:1}.hmcts-primary-navigation__link[aria-current][_ngcontent-%COMP%]{color:#fff;position:relative;text-decoration:none}.hmcts-primary-navigation__link[aria-current][_ngcontent-%COMP%]:before{background-color:#fff;content:\"\";display:block;height:5px;position:absolute;bottom:0;left:0;width:100%}.hmcts-primary-navigation__link[aria-current][_ngcontent-%COMP%]:focus{color:#0b0c0c;position:relative}.hmcts-primary-navigation__link[aria-current][_ngcontent-%COMP%]:focus:before{background-color:#0b0c0c}\n\n"] }); }
|
|
10439
10411
|
}
|
|
10440
10412
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HmctsPrimaryNavigationComponent, [{
|
|
10441
10413
|
type: Component,
|
|
10442
|
-
args: [{ selector: 'xuilib-hmcts-primary-navigation', standalone: false, template: "@if (isUserLoggedIn) {\n <nav class=\"hmcts-primary-navigation\" [attr.aria-label]=\"label\">\n <div class=\"hmcts-primary-navigation__container\">\n @if (isBrandedHeader) {\n <div class=\"govuk-header__logo\"></div>\n }\n <ul class=\"hmcts-primary-navigation__list\">\n @for (item of items; track item) {\n <li class=\"hmcts-primary-navigation__item\" >\n <a class=\"hmcts-primary-navigation__link\" [attr.aria-current]=\"item.active ? true: null\" [routerLink]=\"item.href\" [innerHTML]=\"item.text | rpxTranslate\"></a>\n </li>\n }\n </ul>\n </div>\n </nav>\n}\n", styles: ["
|
|
10414
|
+
args: [{ selector: 'xuilib-hmcts-primary-navigation', standalone: false, template: "@if (isUserLoggedIn) {\n <nav class=\"hmcts-primary-navigation\" [attr.aria-label]=\"label\">\n <div class=\"hmcts-primary-navigation__container\">\n @if (isBrandedHeader) {\n <div class=\"govuk-header__logo\"></div>\n }\n <ul class=\"hmcts-primary-navigation__list\">\n @for (item of items; track item) {\n <li class=\"hmcts-primary-navigation__item\" >\n <a class=\"hmcts-primary-navigation__link\" [attr.aria-current]=\"item.active ? true: null\" [routerLink]=\"item.href\" [innerHTML]=\"item.text | rpxTranslate\"></a>\n </li>\n }\n </ul>\n </div>\n </nav>\n}\n", styles: [".govuk-width-container{max-width:960px;margin-right:15px;margin-left:15px}@supports (margin: max(0px)){.govuk-width-container{margin-right:max(15px,calc(15px + env(safe-area-inset-right)));margin-left:max(15px,calc(15px + env(safe-area-inset-left)))}}@media (min-width: 40.0625em){.govuk-width-container{margin-right:30px;margin-left:30px}@supports (margin: max(0px)){.govuk-width-container{margin-right:max(30px,calc(15px + env(safe-area-inset-right)));margin-left:max(30px,calc(15px + env(safe-area-inset-left)))}}}@media (min-width: 1020px){.govuk-width-container{margin-right:auto;margin-left:auto}@supports (margin: max(0px)){.govuk-width-container{margin-right:auto;margin-left:auto}}}.hmcts-primary-navigation{background-color:#0b0c0c}.hmcts-primary-navigation__container{max-width:960px;margin-right:15px;margin-left:15px}@supports (margin: max(0px)){.hmcts-primary-navigation__container{margin-right:max(15px,calc(15px + env(safe-area-inset-right)));margin-left:max(15px,calc(15px + env(safe-area-inset-left)))}}@media (min-width: 40.0625em){.hmcts-primary-navigation__container{margin-right:30px;margin-left:30px}@supports (margin: max(0px)){.hmcts-primary-navigation__container{margin-right:max(30px,calc(15px + env(safe-area-inset-right)));margin-left:max(30px,calc(15px + env(safe-area-inset-left)))}}}@media (min-width: 1020px){.hmcts-primary-navigation__container{margin-right:auto;margin-left:auto}@supports (margin: max(0px)){.hmcts-primary-navigation__container{margin-right:auto;margin-left:auto}}}.hmcts-primary-navigation__container{font-size:0;text-align:justify}.hmcts-primary-navigation__container:after{content:\"\";display:inline-block;width:100%}.hmcts-primary-navigation__list{font-size:0;list-style:none;margin:0;padding:0}.hmcts-primary-navigation__item{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@font-face{font-family:GDS Transport;font-style:normal;font-weight:400;src:url(/assets/fonts/light-94a07e06a1-v2.woff2) format(\"woff2\"),url(/assets/fonts/light-f591b13f7d-v2.woff) format(\"woff\");font-display:fallback}@font-face{font-family:GDS Transport;font-style:normal;font-weight:700;src:url(/assets/fonts/bold-b542beb274-v2.woff2) format(\"woff2\"),url(/assets/fonts/bold-affa96571d-v2.woff) format(\"woff\");font-display:fallback}@media print{.hmcts-primary-navigation__item{font-family:sans-serif}}.hmcts-primary-navigation__item{font-weight:700;font-size:1rem;line-height:1.25}@media (min-width: 40.0625em){.hmcts-primary-navigation__item{font-size:1.1875rem;line-height:1.3157894737}}@media print{.hmcts-primary-navigation__item{font-size:14pt;line-height:1.15}}.hmcts-primary-navigation__item{display:inline-block;margin-right:20px;margin-top:0}.hmcts-primary-navigation__item:last-child{margin-right:0}.hmcts-primary-navigation__link{display:block;padding-bottom:13px;padding-top:12px;text-decoration:underline}.hmcts-primary-navigation__link:link,.hmcts-primary-navigation__link:visited{color:#fff}.hmcts-primary-navigation__link:focus{color:#0b0c0c;position:relative;z-index:1}.hmcts-primary-navigation__link[aria-current]{color:#fff;position:relative;text-decoration:none}.hmcts-primary-navigation__link[aria-current]:before{background-color:#fff;content:\"\";display:block;height:5px;position:absolute;bottom:0;left:0;width:100%}.hmcts-primary-navigation__link[aria-current]:focus{color:#0b0c0c;position:relative}.hmcts-primary-navigation__link[aria-current]:focus:before{background-color:#0b0c0c}\n/*! Copyright (c) 2011 by Margaret Calvert & Henrik Kubel. All rights reserved. The font has been customised for exclusive use on gov.uk. This cut is not commercially available. */\n"] }]
|
|
10443
10415
|
}], () => [], { userLoggedIn: [{
|
|
10444
10416
|
type: Input
|
|
10445
10417
|
}], label: [{
|
|
@@ -10492,11 +10464,11 @@ class HmctsSubNavigationComponent {
|
|
|
10492
10464
|
i0.ɵɵconditionalCreate(0, HmctsSubNavigationComponent_Conditional_0_Template, 4, 1, "nav", 0);
|
|
10493
10465
|
} if (rf & 2) {
|
|
10494
10466
|
i0.ɵɵconditional(ctx.items ? 0 : -1);
|
|
10495
|
-
} }, dependencies: [i1$1.RouterLink, i2.RpxTranslatePipe], styles: [".hmcts-sub-navigation[_ngcontent-%COMP%]{margin-bottom:40px}.hmcts-sub-navigation__list[_ngcontent-%COMP%]{font-size:0;list-style:none;margin:0;padding:0}@media (min-width: 40.0625em){.hmcts-sub-navigation__list[_ngcontent-%COMP%]{box-shadow:inset 0 -1px
|
|
10467
|
+
} }, dependencies: [i1$1.RouterLink, i2.RpxTranslatePipe], styles: [".hmcts-sub-navigation[_ngcontent-%COMP%]{margin-bottom:40px}.hmcts-sub-navigation__list[_ngcontent-%COMP%]{font-size:0;list-style:none;margin:0;padding:0}@media (min-width: 40.0625em){.hmcts-sub-navigation__list[_ngcontent-%COMP%]{box-shadow:inset 0 -1px #b1b4b6;width:100%}}.hmcts-sub-navigation__item[_ngcontent-%COMP%]{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@font-face{font-family:GDS Transport;font-style:normal;font-weight:400;src:url(/assets/fonts/light-94a07e06a1-v2.woff2) format(\"woff2\"),url(/assets/fonts/light-f591b13f7d-v2.woff) format(\"woff\");font-display:fallback}@font-face{font-family:GDS Transport;font-style:normal;font-weight:700;src:url(/assets/fonts/bold-b542beb274-v2.woff2) format(\"woff2\"),url(/assets/fonts/bold-affa96571d-v2.woff) format(\"woff\");font-display:fallback}@media print{.hmcts-sub-navigation__item[_ngcontent-%COMP%]{font-family:sans-serif}}.hmcts-sub-navigation__item[_ngcontent-%COMP%]{font-weight:400;font-size:1rem;line-height:1.25}@media (min-width: 40.0625em){.hmcts-sub-navigation__item[_ngcontent-%COMP%]{font-size:1.1875rem;line-height:1.3157894737}}@media print{.hmcts-sub-navigation__item[_ngcontent-%COMP%]{font-size:14pt;line-height:1.15}}.hmcts-sub-navigation__item[_ngcontent-%COMP%]{box-shadow:inset 0 -1px #b1b4b6;display:block;margin-top:-1px}.hmcts-sub-navigation__item[_ngcontent-%COMP%]:last-child{box-shadow:none}@media (min-width: 40.0625em){.hmcts-sub-navigation__item[_ngcontent-%COMP%]{box-shadow:none;display:inline-block;margin-right:20px;margin-top:0}}.hmcts-sub-navigation__link[_ngcontent-%COMP%]{display:block;padding-top:12px;padding-bottom:12px;padding-left:15px;text-decoration:underline}@media (min-width: 40.0625em){.hmcts-sub-navigation__link[_ngcontent-%COMP%]{padding-left:0}}.hmcts-sub-navigation__link[_ngcontent-%COMP%]:focus{color:#0b0c0c;position:relative}.hmcts-sub-navigation__link[aria-current=page][_ngcontent-%COMP%]{color:#0b0c0c;position:relative;text-decoration:none}.hmcts-sub-navigation__link[aria-current=page][_ngcontent-%COMP%]:before{background-color:#1d70b8;content:\"\";display:block;height:100%;position:absolute;bottom:0;left:0;width:5px}@media (min-width: 40.0625em){.hmcts-sub-navigation__link[aria-current=page][_ngcontent-%COMP%]:before{height:5px;width:100%}}.hmcts-sub-navigation__link[aria-current=page][_ngcontent-%COMP%]:focus:before{background-color:#0b0c0c}.xui-alert-link__number[_ngcontent-%COMP%]{font-family:nta,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:14px;font-size:.875rem;line-height:1.78571;border-radius:50%;background-color:#1d70b8;color:#fff;font-weight:700;width:25px;height:25px;margin-left:5px;text-align:center;display:inline-block;text-decoration:none}\n\n"] }); }
|
|
10496
10468
|
}
|
|
10497
10469
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HmctsSubNavigationComponent, [{
|
|
10498
10470
|
type: Component,
|
|
10499
|
-
args: [{ selector: 'xuilib-hmcts-sub-navigation', standalone: false, template: "@if (items) {\n <nav class=\"hmcts-sub-navigation\" attr.aria-label=\"{{label}}\" role=\"navigation\">\n <ul class=\"hmcts-sub-navigation__list\">\n @for (item of items; track item) {\n <li class=\"hmcts-sub-navigation__item\">\n <a data-selector=\"sub-nav-link\" class=\"hmcts-sub-navigation__link\" [routerLink]=\"item.href\"\n [attr.aria-current]=\"item.active ? 'page' : null\">\n {{item.text | rpxTranslate}}\n @if (item.roundel && item.roundel > 0 ) {\n <span class=\"xui-alert-link__number\"> {{item.roundel}} </span>\n }\n </a>\n </li>\n }\n </ul>\n </nav>\n}\n", styles: [".hmcts-sub-navigation{margin-bottom:40px}.hmcts-sub-navigation__list{font-size:0;list-style:none;margin:0;padding:0}@media (min-width: 40.0625em){.hmcts-sub-navigation__list{box-shadow:inset 0 -1px
|
|
10471
|
+
args: [{ selector: 'xuilib-hmcts-sub-navigation', standalone: false, template: "@if (items) {\n <nav class=\"hmcts-sub-navigation\" attr.aria-label=\"{{label}}\" role=\"navigation\">\n <ul class=\"hmcts-sub-navigation__list\">\n @for (item of items; track item) {\n <li class=\"hmcts-sub-navigation__item\">\n <a data-selector=\"sub-nav-link\" class=\"hmcts-sub-navigation__link\" [routerLink]=\"item.href\"\n [attr.aria-current]=\"item.active ? 'page' : null\">\n {{item.text | rpxTranslate}}\n @if (item.roundel && item.roundel > 0 ) {\n <span class=\"xui-alert-link__number\"> {{item.roundel}} </span>\n }\n </a>\n </li>\n }\n </ul>\n </nav>\n}\n", styles: [".hmcts-sub-navigation{margin-bottom:40px}.hmcts-sub-navigation__list{font-size:0;list-style:none;margin:0;padding:0}@media (min-width: 40.0625em){.hmcts-sub-navigation__list{box-shadow:inset 0 -1px #b1b4b6;width:100%}}.hmcts-sub-navigation__item{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@font-face{font-family:GDS Transport;font-style:normal;font-weight:400;src:url(/assets/fonts/light-94a07e06a1-v2.woff2) format(\"woff2\"),url(/assets/fonts/light-f591b13f7d-v2.woff) format(\"woff\");font-display:fallback}@font-face{font-family:GDS Transport;font-style:normal;font-weight:700;src:url(/assets/fonts/bold-b542beb274-v2.woff2) format(\"woff2\"),url(/assets/fonts/bold-affa96571d-v2.woff) format(\"woff\");font-display:fallback}@media print{.hmcts-sub-navigation__item{font-family:sans-serif}}.hmcts-sub-navigation__item{font-weight:400;font-size:1rem;line-height:1.25}@media (min-width: 40.0625em){.hmcts-sub-navigation__item{font-size:1.1875rem;line-height:1.3157894737}}@media print{.hmcts-sub-navigation__item{font-size:14pt;line-height:1.15}}.hmcts-sub-navigation__item{box-shadow:inset 0 -1px #b1b4b6;display:block;margin-top:-1px}.hmcts-sub-navigation__item:last-child{box-shadow:none}@media (min-width: 40.0625em){.hmcts-sub-navigation__item{box-shadow:none;display:inline-block;margin-right:20px;margin-top:0}}.hmcts-sub-navigation__link{display:block;padding-top:12px;padding-bottom:12px;padding-left:15px;text-decoration:underline}@media (min-width: 40.0625em){.hmcts-sub-navigation__link{padding-left:0}}.hmcts-sub-navigation__link:focus{color:#0b0c0c;position:relative}.hmcts-sub-navigation__link[aria-current=page]{color:#0b0c0c;position:relative;text-decoration:none}.hmcts-sub-navigation__link[aria-current=page]:before{background-color:#1d70b8;content:\"\";display:block;height:100%;position:absolute;bottom:0;left:0;width:5px}@media (min-width: 40.0625em){.hmcts-sub-navigation__link[aria-current=page]:before{height:5px;width:100%}}.hmcts-sub-navigation__link[aria-current=page]:focus:before{background-color:#0b0c0c}.xui-alert-link__number{font-family:nta,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:14px;font-size:.875rem;line-height:1.78571;border-radius:50%;background-color:#1d70b8;color:#fff;font-weight:700;width:25px;height:25px;margin-left:5px;text-align:center;display:inline-block;text-decoration:none}\n/*! Copyright (c) 2011 by Margaret Calvert & Henrik Kubel. All rights reserved. The font has been customised for exclusive use on gov.uk. This cut is not commercially available. */\n"] }]
|
|
10500
10472
|
}], null, { label: [{
|
|
10501
10473
|
type: Input
|
|
10502
10474
|
}], items: [{
|