@hmcts/rpx-xui-common-lib 3.2.29-govuk6-v1 → 3.2.29-replace-inline-style
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.
|
@@ -22,7 +22,7 @@ import * as i4 from '@angular/material/autocomplete';
|
|
|
22
22
|
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
23
23
|
import * as i1$4 from '@angular/material/tabs';
|
|
24
24
|
import { MatTabsModule } from '@angular/material/tabs';
|
|
25
|
-
import * as
|
|
25
|
+
import * as i2$4 from 'ngx-pagination';
|
|
26
26
|
import { NgxPaginationModule, PaginatePipe } from 'ngx-pagination';
|
|
27
27
|
import { MatInputModule } from '@angular/material/input';
|
|
28
28
|
|
|
@@ -1093,13 +1093,13 @@ function ContactDetailsComponent_Conditional_0_Conditional_1_Template(rf, ctx) {
|
|
|
1093
1093
|
i0.ɵɵtextInterpolate(ctx_r0.data.title);
|
|
1094
1094
|
} }
|
|
1095
1095
|
function ContactDetailsComponent_Conditional_0_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
1096
|
-
i0.ɵɵelementStart(0, "p")(1, "
|
|
1096
|
+
i0.ɵɵelementStart(0, "p")(1, "span", 6);
|
|
1097
1097
|
i0.ɵɵtext(2);
|
|
1098
1098
|
i0.ɵɵelementEnd()();
|
|
1099
1099
|
} if (rf & 2) {
|
|
1100
1100
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
1101
1101
|
i0.ɵɵadvance();
|
|
1102
|
-
i0.ɵɵproperty("className", "
|
|
1102
|
+
i0.ɵɵproperty("className", "hmcts-badge " + ctx_r0.data.badgeColour);
|
|
1103
1103
|
i0.ɵɵadvance();
|
|
1104
1104
|
i0.ɵɵtextInterpolate(ctx_r0.data.badgeText);
|
|
1105
1105
|
} }
|
|
@@ -1201,7 +1201,7 @@ class ContactDetailsComponent {
|
|
|
1201
1201
|
}
|
|
1202
1202
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContactDetailsComponent, [{
|
|
1203
1203
|
type: Component,
|
|
1204
|
-
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><
|
|
1204
|
+
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"] }]
|
|
1205
1205
|
}], () => [], { data: [{
|
|
1206
1206
|
type: Input
|
|
1207
1207
|
}] }); })();
|
|
@@ -1209,14 +1209,14 @@ class ContactDetailsComponent {
|
|
|
1209
1209
|
|
|
1210
1210
|
var DateBadgeColour;
|
|
1211
1211
|
(function (DateBadgeColour) {
|
|
1212
|
-
DateBadgeColour["RED"] = "
|
|
1213
|
-
DateBadgeColour["ORANGE"] = "
|
|
1214
|
-
DateBadgeColour["GREEN"] = "
|
|
1212
|
+
DateBadgeColour["RED"] = "hmcts-badge--red";
|
|
1213
|
+
DateBadgeColour["ORANGE"] = "hmcts-badge--orange";
|
|
1214
|
+
DateBadgeColour["GREEN"] = "hmcts-badge--green";
|
|
1215
1215
|
})(DateBadgeColour || (DateBadgeColour = {}));
|
|
1216
1216
|
const SECONDS_IN_A_DAY = 60 * 60 * 24;
|
|
1217
1217
|
|
|
1218
1218
|
function DueDateComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
1219
|
-
i0.ɵɵelementStart(0, "
|
|
1219
|
+
i0.ɵɵelementStart(0, "span", 0);
|
|
1220
1220
|
i0.ɵɵpipe(1, "rpxTranslate");
|
|
1221
1221
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
1222
1222
|
i0.ɵɵtext(3);
|
|
@@ -1332,15 +1332,15 @@ class DueDateComponent {
|
|
|
1332
1332
|
return Math.floor(diffSecs / SECONDS_IN_A_DAY);
|
|
1333
1333
|
}
|
|
1334
1334
|
static { this.ɵfac = function DueDateComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || DueDateComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
|
|
1335
|
-
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", "
|
|
1336
|
-
i0.ɵɵconditionalCreate(0, DueDateComponent_Conditional_0_Template, 5, 10, "
|
|
1335
|
+
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) {
|
|
1336
|
+
i0.ɵɵconditionalCreate(0, DueDateComponent_Conditional_0_Template, 5, 10, "span", 0);
|
|
1337
1337
|
} if (rf & 2) {
|
|
1338
1338
|
i0.ɵɵconditional(ctx.dueDate ? 0 : -1);
|
|
1339
|
-
} }, dependencies: [i1.NgClass, i2.RpxTranslatePipe], styles: [".due-date{white-space:nowrap}\n"], encapsulation: 2 }); }
|
|
1339
|
+
} }, dependencies: [i1.NgClass, i2.RpxTranslatePipe], styles: [".due-date{white-space:nowrap}.due-date.hmcts-badge--orange{color:#f47738;border-color:#f47738}\n"], encapsulation: 2 }); }
|
|
1340
1340
|
}
|
|
1341
1341
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DueDateComponent, [{
|
|
1342
1342
|
type: Component,
|
|
1343
|
-
args: [{ selector: 'xuilib-due-date', encapsulation: ViewEncapsulation.None, standalone: false, template: "@if (dueDate) {\n <
|
|
1343
|
+
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"] }]
|
|
1344
1344
|
}], () => [{ type: i0.ChangeDetectorRef }], { dueDate: [{
|
|
1345
1345
|
type: Input
|
|
1346
1346
|
}], highUrgencyCutoff: [{
|
|
@@ -1520,9 +1520,9 @@ var SharedCaseErrorMessages;
|
|
|
1520
1520
|
|
|
1521
1521
|
var BadgeColour;
|
|
1522
1522
|
(function (BadgeColour) {
|
|
1523
|
-
BadgeColour["BADGE_RED"] = "
|
|
1524
|
-
BadgeColour["BADGE_BLUE"] = "
|
|
1525
|
-
BadgeColour["BADGE_GREEN"] = "
|
|
1523
|
+
BadgeColour["BADGE_RED"] = "hmcts-badge--red";
|
|
1524
|
+
BadgeColour["BADGE_BLUE"] = "hmcts-badge--blue";
|
|
1525
|
+
BadgeColour["BADGE_GREEN"] = "hmcts-badge--green";
|
|
1526
1526
|
})(BadgeColour || (BadgeColour = {}));
|
|
1527
1527
|
|
|
1528
1528
|
class AnonymousFeatureUser {
|
|
@@ -2513,7 +2513,7 @@ class FindAPersonService {
|
|
|
2513
2513
|
}]
|
|
2514
2514
|
}], () => [{ type: i1$2.HttpClient }, { type: SessionStorageService }], null); })();
|
|
2515
2515
|
|
|
2516
|
-
const _c0$n = a0 => ({ "
|
|
2516
|
+
const _c0$n = a0 => ({ "form-group-error": a0 });
|
|
2517
2517
|
const _c1$d = (a0, a1) => ({ "hide-autocomplete": a0, "select-option": a1 });
|
|
2518
2518
|
const _c2$5 = a0 => ({ "select-option": a0 });
|
|
2519
2519
|
function FindPersonComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -2703,7 +2703,7 @@ class FindPersonComponent {
|
|
|
2703
2703
|
}
|
|
2704
2704
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FindPersonComponent, [{
|
|
2705
2705
|
type: Component,
|
|
2706
|
-
args: [{ selector: 'xuilib-find-person', standalone: false, template: "@if (title && title.length) {\n <h1 class=\"govuk-heading-l\">\n <span class=\"govuk-caption-l\">{{title | rpxTranslate}}</span>\n {{boldTitle | rpxTranslate}}\n </h1>\n}\n<div class=\"govuk-form-group\" [formGroup]=\"findPersonGroup\"\n [ngClass]=\"{'
|
|
2706
|
+
args: [{ selector: 'xuilib-find-person', standalone: false, template: "@if (title && title.length) {\n <h1 class=\"govuk-heading-l\">\n <span class=\"govuk-caption-l\">{{title | rpxTranslate}}</span>\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"] }]
|
|
2707
2707
|
}], () => [{ type: FindAPersonService }, { type: i0.ChangeDetectorRef }], { personSelected: [{
|
|
2708
2708
|
type: Output
|
|
2709
2709
|
}], personFieldChanged: [{
|
|
@@ -3170,7 +3170,7 @@ class FindLocationComponent {
|
|
|
3170
3170
|
}] }); })();
|
|
3171
3171
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FindLocationComponent, { className: "FindLocationComponent", filePath: "lib/components/find-location/find-location.component.ts", lineNumber: 14 }); })();
|
|
3172
3172
|
|
|
3173
|
-
const _c0$m = a0 => ({ "
|
|
3173
|
+
const _c0$m = a0 => ({ "form-group-error": a0 });
|
|
3174
3174
|
const _c1$c = (a0, a1) => ({ "hide-autocomplete": a0, "select-option": a1 });
|
|
3175
3175
|
const _c2$4 = a0 => ({ "select-option": a0 });
|
|
3176
3176
|
function FindTaskNameComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -3326,7 +3326,7 @@ class FindTaskNameComponent {
|
|
|
3326
3326
|
}
|
|
3327
3327
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FindTaskNameComponent, [{
|
|
3328
3328
|
type: Component,
|
|
3329
|
-
args: [{ selector: 'xuilib-find-task-name', standalone: false, template: "@if (title && title.length) {\n <h1 class=\"govuk-heading-l\">\n <span class=\"govuk-caption-l\">{{title}}</span>\n {{boldTitle}}\n </h1>\n}\n<div class=\"govuk-form-group\" [formGroup]=\"findTaskNameGroup\"\n [ngClass]=\"{'
|
|
3329
|
+
args: [{ selector: 'xuilib-find-task-name', standalone: false, template: "@if (title && title.length) {\n <h1 class=\"govuk-heading-l\">\n <span class=\"govuk-caption-l\">{{title}}</span>\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" }]
|
|
3330
3330
|
}], () => [{ type: i0.ChangeDetectorRef }, { type: TaskService }], { taskNameSelected: [{
|
|
3331
3331
|
type: Output
|
|
3332
3332
|
}], taskNameFieldChanged: [{
|
|
@@ -4050,7 +4050,7 @@ class CapitalizePipe {
|
|
|
4050
4050
|
}]
|
|
4051
4051
|
}], null, null); })();
|
|
4052
4052
|
|
|
4053
|
-
const _c0$l = a0 => ({ "
|
|
4053
|
+
const _c0$l = a0 => ({ "form-group-error": a0 });
|
|
4054
4054
|
const _c1$b = a0 => ({ "govuk-!-font-weight-bold": a0 });
|
|
4055
4055
|
function GenericFilterComponent_For_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
4056
4056
|
i0.ɵɵelement(0, "hr", 7);
|
|
@@ -4085,7 +4085,7 @@ function GenericFilterComponent_For_2_Case_3_Conditional_1_Template(rf, ctx) { i
|
|
|
4085
4085
|
} if (rf & 2) {
|
|
4086
4086
|
const field_r1 = i0.ɵɵnextContext(2).$implicit;
|
|
4087
4087
|
i0.ɵɵadvance();
|
|
4088
|
-
i0.ɵɵclassMap(field_r1.titleClasses ? field_r1.titleClasses : "govuk-heading-s");
|
|
4088
|
+
i0.ɵɵclassMap((field_r1.titleClasses ? field_r1.titleClasses : "govuk-heading-s") + " xui-generic-filter__field-heading");
|
|
4089
4089
|
i0.ɵɵproperty("id", field_r1.name + "-label");
|
|
4090
4090
|
i0.ɵɵadvance();
|
|
4091
4091
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 5, field_r1.title), " ");
|
|
@@ -5183,7 +5183,7 @@ class GenericFilterComponent {
|
|
|
5183
5183
|
return sortedResults;
|
|
5184
5184
|
}
|
|
5185
5185
|
static { this.ɵfac = function GenericFilterComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || GenericFilterComponent)(i0.ɵɵdirectiveInject(FilterService), i0.ɵɵdirectiveInject(i2$3.FormBuilder), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
|
|
5186
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: GenericFilterComponent, selectors: [["xuilib-generic-filter"]], inputs: { config: "config", settings: "settings" }, standalone: false, decls: 10, vars: 6, consts: [[3, "ngSubmit", "formGroup"], [1, "contain-classes"], [1, "govuk-section-break", "govuk-section-break--m", "govuk-section-break--visible"], [1, "govuk-grid-row"], [1, "govuk-grid-column-full"], ["type", "submit", "id", "applyFilter", 1, "govuk-button", "govuk-!-margin-right-1", "govuk-!-margin-bottom-0", 3, "disabled"], ["type", "button", "id", "cancelFilter", 1, "govuk-button", "govuk-button--secondary", "govuk-!-margin-bottom-0"], [1, "govuk-section-break", "govuk-section-break--visible", "elevated-break"], [3, "class"], [1, "govuk-form-group", "xui-generic-filter", 3, "hidden", "id", "ngClass"], [1, "xui-generic-filter__field-title"], [1, "govuk-body"], [1, "govuk-hint", 3, "id"], [1, "govuk-error-message", 3, "id"], [1, "govuk-select", 3, "name", "id", "formControlName"], ["role", "group", 1, "govuk-checkboxes", "govuk-checkboxes--small", 3, "formGroupName", "id"], ["role", "group", 1, "govuk-checkboxes", 3, "formGroupName", "id"], ["role", "group", 1, "govuk-radios"], ["subTitle", "", 3, "submitted", "disabled", "domain", "findPersonGroup", "selectedPerson", "userIncluded", "placeholderContent", "services"], [3, "form", "fields", "locationTitle", "enableAddLocationButton", "disabled", "disableInputField", "submitted", "field", "services", "formSubmissionEvent$"], ["subTitle", "", 3, "submitted", "disabled", "domain", "findTaskNameGroup", "selectedTaskName", "placeholderContent", "services"], [3, "form", "fields", "workTypeTitle", "enableAddWorkTypeButton", "disabled", "disableInputField", "submitted", "field", "services", "formSubmissionEvent$"], ["type", "text", 1, "govuk-input", 3, "formControlName", "id", "readonly"], ["type", "email", 1, "govuk-input", 3, "formControlName", "id", "readonly"], [
|
|
5186
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: GenericFilterComponent, selectors: [["xuilib-generic-filter"]], inputs: { config: "config", settings: "settings" }, standalone: false, decls: 10, vars: 6, consts: [[3, "ngSubmit", "formGroup"], [1, "contain-classes"], [1, "govuk-section-break", "govuk-section-break--m", "govuk-section-break--visible"], [1, "govuk-grid-row"], [1, "govuk-grid-column-full"], ["type", "submit", "id", "applyFilter", 1, "govuk-button", "govuk-!-margin-right-1", "govuk-!-margin-bottom-0", 3, "disabled"], ["type", "button", "id", "cancelFilter", 1, "govuk-button", "govuk-button--secondary", "govuk-!-margin-bottom-0"], [1, "govuk-section-break", "govuk-section-break--visible", "elevated-break"], [3, "class"], [1, "govuk-form-group", "xui-generic-filter", 3, "hidden", "id", "ngClass"], [1, "xui-generic-filter__field-title"], [1, "govuk-body"], [1, "govuk-hint", 3, "id"], [1, "govuk-error-message", 3, "id"], [1, "govuk-select", 3, "name", "id", "formControlName"], ["role", "group", 1, "govuk-checkboxes", "govuk-checkboxes--small", 3, "formGroupName", "id"], ["role", "group", 1, "govuk-checkboxes", 3, "formGroupName", "id"], ["role", "group", 1, "govuk-radios"], ["subTitle", "", 3, "submitted", "disabled", "domain", "findPersonGroup", "selectedPerson", "userIncluded", "placeholderContent", "services"], [3, "form", "fields", "locationTitle", "enableAddLocationButton", "disabled", "disableInputField", "submitted", "field", "services", "formSubmissionEvent$"], ["subTitle", "", 3, "submitted", "disabled", "domain", "findTaskNameGroup", "selectedTaskName", "placeholderContent", "services"], [3, "form", "fields", "workTypeTitle", "enableAddWorkTypeButton", "disabled", "disableInputField", "submitted", "field", "services", "formSubmissionEvent$"], ["type", "text", 1, "govuk-input", 3, "formControlName", "id", "readonly"], ["type", "email", 1, "govuk-input", 3, "formControlName", "id", "readonly"], [3, "id"], [1, "govuk-!-margin-left-2"], [1, "govuk-visually-hidden"], [1, "govuk-select", 3, "change", "name", "id", "formControlName"], ["disabled", "", "selected", "", "hidden", "", "value", ""], [3, "value"], [1, "govuk-radios__item", 3, "value"], ["selected", "", 3, "value"], [3, "label"], [1, "govuk-checkboxes__item"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "change", "formControlName", "value", "id", "name"], [1, "govuk-label", "govuk-checkboxes__label", 3, "for", "ngClass"], [1, "govuk-radios__item"], ["type", "radio", 1, "govuk-radios__input", 3, "change", "formControlName", "id", "checked", "value"], [1, "govuk-label", "govuk-radios__label", 3, "for"], ["subTitle", "", 3, "personSelected", "personFieldChanged", "submitted", "disabled", "domain", "findPersonGroup", "selectedPerson", "userIncluded", "placeholderContent", "services"], [3, "locationFieldChanged", "form", "fields", "locationTitle", "enableAddLocationButton", "disabled", "disableInputField", "submitted", "field", "services", "formSubmissionEvent$"], ["subTitle", "", 3, "taskNameSelected", "taskNameFieldChanged", "submitted", "disabled", "domain", "findTaskNameGroup", "selectedTaskName", "placeholderContent", "services"], [1, "govuk-error-message"], [3, "serviceFieldChanged", "field", "form", "formSubmissionEvent$", "disabled"], [3, "workTypeFieldChanged", "form", "fields", "workTypeTitle", "enableAddWorkTypeButton", "disabled", "disableInputField", "submitted", "field", "services", "formSubmissionEvent$"], ["type", "text", 1, "govuk-input", 3, "change", "formControlName", "id", "readonly"], ["type", "email", 1, "govuk-input", 3, "change", "formControlName", "id", "readonly"], ["type", "button", "id", "cancelFilter", 1, "govuk-button", "govuk-button--secondary", "govuk-!-margin-bottom-0", 3, "click"]], template: function GenericFilterComponent_Template(rf, ctx) { if (rf & 1) {
|
|
5187
5187
|
i0.ɵɵelementStart(0, "form", 0);
|
|
5188
5188
|
i0.ɵɵlistener("ngSubmit", function GenericFilterComponent_Template_form_ngSubmit_0_listener() { return ctx.applyFilter(ctx.form); });
|
|
5189
5189
|
i0.ɵɵrepeaterCreate(1, GenericFilterComponent_For_2_Template, 4, 2, "div", 1, i0.ɵɵrepeaterTrackByIdentity);
|
|
@@ -5204,11 +5204,11 @@ class GenericFilterComponent {
|
|
|
5204
5204
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(8, 4, ctx.config.applyButtonText || "Apply"));
|
|
5205
5205
|
i0.ɵɵadvance(2);
|
|
5206
5206
|
i0.ɵɵconditional(ctx.config.showCancelFilterButton ? 9 : -1);
|
|
5207
|
-
} }, dependencies: [i1.NgClass, i2$3.ɵNgNoValidate, i2$3.NgSelectOption, i2$3.ɵNgSelectMultipleOption, i2$3.DefaultValueAccessor, i2$3.CheckboxControlValueAccessor, i2$3.SelectControlValueAccessor, i2$3.RadioControlValueAccessor, i2$3.NgControlStatus, i2$3.NgControlStatusGroup, i2$3.FormGroupDirective, i2$3.FormControlName, i2$3.FormGroupName, FindPersonComponent, FindLocationComponent, FindTaskNameComponent, FindServiceComponent, FindWorkTypeComponent, i1.TitleCasePipe, i2.RpxTranslatePipe, CapitalizePipe], 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"], encapsulation: 2, changeDetection: 0 }); }
|
|
5207
|
+
} }, dependencies: [i1.NgClass, i2$3.ɵNgNoValidate, i2$3.NgSelectOption, i2$3.ɵNgSelectMultipleOption, i2$3.DefaultValueAccessor, i2$3.CheckboxControlValueAccessor, i2$3.SelectControlValueAccessor, i2$3.RadioControlValueAccessor, i2$3.NgControlStatus, i2$3.NgControlStatusGroup, i2$3.FormGroupDirective, i2$3.FormControlName, i2$3.FormGroupName, FindPersonComponent, FindLocationComponent, FindTaskNameComponent, FindServiceComponent, FindWorkTypeComponent, i1.TitleCasePipe, i2.RpxTranslatePipe, CapitalizePipe], 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 .xui-generic-filter__field-heading{margin-bottom:0!important}.contain-classes .govuk-select{width:100%}\n"], encapsulation: 2, changeDetection: 0 }); }
|
|
5208
5208
|
}
|
|
5209
5209
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GenericFilterComponent, [{
|
|
5210
5210
|
type: Component,
|
|
5211
|
-
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"] }]
|
|
5211
|
+
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') + ' xui-generic-filter__field-heading'\">\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 .xui-generic-filter__field-heading{margin-bottom:0!important}.contain-classes .govuk-select{width:100%}\n"] }]
|
|
5212
5212
|
}], () => [{ type: FilterService }, { type: i2$3.FormBuilder }, { type: i0.ChangeDetectorRef }], { config: [{
|
|
5213
5213
|
type: Input
|
|
5214
5214
|
}], settings: [{
|
|
@@ -5231,36 +5231,33 @@ class HmctsSessionDialogComponent {
|
|
|
5231
5231
|
this.close.emit();
|
|
5232
5232
|
}
|
|
5233
5233
|
static { this.ɵfac = function HmctsSessionDialogComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || HmctsSessionDialogComponent)(); }; }
|
|
5234
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HmctsSessionDialogComponent, selectors: [["xuilib-session-dialog"]], inputs: { positionTop: "positionTop" }, outputs: { close: "close" }, standalone: false, ngContentSelectors: _c0$k, decls:
|
|
5234
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HmctsSessionDialogComponent, selectors: [["xuilib-session-dialog"]], inputs: { positionTop: "positionTop" }, outputs: { close: "close" }, standalone: false, ngContentSelectors: _c0$k, decls: 13, vars: 6, consts: [["data-module", "modal-dialogue", "id", "modal-default", 1, "gem-c-modal-dialogue", "gem-c-modal-dialogue--open"], [1, "gem-c-modal-dialogue__overlay"], ["aria-modal", "true", "role", "dialog", "tabindex", "0", 1, "gem-c-modal-dialogue__box", 3, "ngStyle"], [1, "gem-c-modal-dialogue__header"], ["role", "presentation", "focusable", "false", "xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 38 38", "height", "33", "width", "33"], ["id", "_4_-_granular_components_warning_icon", "transform", "translate(0.5 0.5)"], ["id", "Warning_icon", "transform", "translate(0)"], ["id", "Exclusion_1", "d", "M18.5,37.5c-5.04,0.01-9.88-1.99-13.44-5.57C1.49,28.38-0.51,23.54-0.5,18.5\n c-0.01-5.04,1.99-9.88,5.56-13.43C8.62,1.49,13.46-0.51,18.5-0.5c5.04-0.01,9.88,1.99,13.44,5.56c3.57,3.56,5.58,8.39,5.56,13.44\n c0.01,5.04-1.99,9.88-5.56,13.44C28.38,35.51,23.54,37.51,18.5,37.5z M18.52,24.29c-0.4,0-0.8,0.08-1.17,0.23\n c-0.36,0.15-0.69,0.37-0.97,0.64c-0.28,0.27-0.5,0.59-0.65,0.95c-0.16,0.36-0.24,0.76-0.23,1.15c0,0.4,0.08,0.8,0.23,1.17\n c0.15,0.36,0.37,0.68,0.65,0.96c0.28,0.27,0.61,0.49,0.97,0.64c0.37,0.16,0.77,0.24,1.17,0.24c0.4,0,0.79-0.08,1.15-0.24\n c0.35-0.15,0.67-0.37,0.95-0.64c0.27-0.27,0.49-0.6,0.64-0.96c0.16-0.37,0.24-0.77,0.23-1.17c0-0.4-0.08-0.79-0.23-1.15\n c-0.15-0.35-0.37-0.67-0.64-0.95c-0.27-0.27-0.6-0.49-0.95-0.64C19.31,24.37,18.92,24.29,18.52,24.29L18.52,24.29z M16.11,7.5\n l0.42,14.87h3.91L20.86,7.5H16.11z", 1, "st0"], [1, "gem-c-modal-dialogue__title"], [1, "gem-c-modal-dialogue__content"]], template: function HmctsSessionDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
5235
5235
|
i0.ɵɵprojectionDef();
|
|
5236
5236
|
i0.ɵɵelementStart(0, "div", 0);
|
|
5237
5237
|
i0.ɵɵelement(1, "div", 1);
|
|
5238
5238
|
i0.ɵɵelementStart(2, "dialog", 2)(3, "div", 3);
|
|
5239
5239
|
i0.ɵɵnamespaceSVG();
|
|
5240
|
-
i0.ɵɵelementStart(4, "svg", 4)(5, "
|
|
5241
|
-
i0.ɵɵ
|
|
5242
|
-
i0.ɵɵelementEnd();
|
|
5243
|
-
i0.ɵɵelementStart(7, "g", 6)(8, "g", 7);
|
|
5244
|
-
i0.ɵɵelement(9, "path", 8);
|
|
5240
|
+
i0.ɵɵelementStart(4, "svg", 4)(5, "g", 5)(6, "g", 6);
|
|
5241
|
+
i0.ɵɵelement(7, "path", 7);
|
|
5245
5242
|
i0.ɵɵelementEnd()()();
|
|
5246
5243
|
i0.ɵɵnamespaceHTML();
|
|
5247
|
-
i0.ɵɵelementStart(
|
|
5248
|
-
i0.ɵɵtext(
|
|
5249
|
-
i0.ɵɵpipe(
|
|
5244
|
+
i0.ɵɵelementStart(8, "div", 8);
|
|
5245
|
+
i0.ɵɵtext(9);
|
|
5246
|
+
i0.ɵɵpipe(10, "rpxTranslate");
|
|
5250
5247
|
i0.ɵɵelementEnd()();
|
|
5251
|
-
i0.ɵɵelementStart(
|
|
5252
|
-
i0.ɵɵprojection(
|
|
5248
|
+
i0.ɵɵelementStart(11, "div", 9);
|
|
5249
|
+
i0.ɵɵprojection(12);
|
|
5253
5250
|
i0.ɵɵelementEnd()()();
|
|
5254
5251
|
} if (rf & 2) {
|
|
5255
5252
|
i0.ɵɵadvance(2);
|
|
5256
5253
|
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(4, _c1$a, ctx.positionTop));
|
|
5257
|
-
i0.ɵɵadvance(
|
|
5258
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
5259
|
-
} }, dependencies: [i1.NgStyle, i2.RpxTranslatePipe], styles: [".gem-c-modal-dialogue[_ngcontent-%COMP%]{display:none;position:fixed;z-index:1000;top:0;left:0;width:100%;height:100%;overflow-x:hidden;overflow-y:scroll;outline:0}.gem-c-modal-dialogue__box[_ngcontent-%COMP%]{display:block;position:fixed;background:#fff;inset:0;width:100%;height:100%;margin:0;padding:0;overflow-y:auto;border:0;font-family:GDS Transport,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:16px;font-size:1rem;line-height:1.25;color:#0b0c0c}.gem-c-modal-dialogue__box[_ngcontent-%COMP%]:focus{outline:3px solid #ffdd00}@media print{.gem-c-modal-dialogue__box[_ngcontent-%COMP%]{font-family:sans-serif}}@media (min-width: 40.0625em){.gem-c-modal-dialogue__box[_ngcontent-%COMP%]{font-size:1.1875rem;line-height:1.3157894737}}@media print{.gem-c-modal-dialogue__box[_ngcontent-%COMP%]{font-size:14pt;line-height:1.15}}@media print{.gem-c-modal-dialogue__box[_ngcontent-%COMP%]{color:#000}}@media (min-width: 40.0625em){.gem-c-modal-dialogue__box[_ngcontent-%COMP%]{position:relative;top:inherit;right:inherit;bottom:inherit;left:inherit;width:auto;max-width:640px;height:auto;margin:30px auto;border:2px solid #0b0c0c}}@media (min-width: 40.0625em){.gem-c-modal-dialogue__box--wide[_ngcontent-%COMP%]{max-width:960px}}@media (min-width: 40.0625em) and (max-width: 64em){.gem-c-modal-dialogue__box--wide[_ngcontent-%COMP%]{margin:30px}}.gem-c-modal-dialogue__overlay[_ngcontent-%COMP%]{position:fixed;inset:0;width:100%;height:100%;opacity:.8;background:#0b0c0c;pointer-events:none;touch-action:none}@media screen{.gem-o-template--modal[_ngcontent-%COMP%]{overflow-y:inherit}}.gem-o-template__body--modal[_ngcontent-%COMP%]{overflow:hidden}.gem-o-template__body--blur[_ngcontent-%COMP%] .govuk-skip-link[_ngcontent-%COMP%], .gem-o-template__body--blur[_ngcontent-%COMP%] .govuk-header[_ngcontent-%COMP%], .gem-o-template__body--blur[_ngcontent-%COMP%] .govuk-phase-banner[_ngcontent-%COMP%], .gem-o-template__body--blur[_ngcontent-%COMP%] .govuk-width-container[_ngcontent-%COMP%] .govuk-back-link[_ngcontent-%COMP%], .gem-o-template__body--blur[_ngcontent-%COMP%] .govuk-footer[_ngcontent-%COMP%], .gem-o-template__body--blur[_ngcontent-%COMP%] .govuk-main-wrapper[_ngcontent-%COMP%]{filter:blur(2px)}.govuk-warning-text__icon[_ngcontent-%COMP%]{margin:0 0 0 12px}.gem-c-modal-dialogue__header[_ngcontent-%COMP%]{padding:9px 15px 10px;color:#fff;background:#d4351d;display:flex}.gem-c-modal-dialogue__title[_ngcontent-%COMP%]{margin:5px 0 4px 12px}.gem-c-modal-dialogue__logotype-crown[_ngcontent-%COMP%]{fill:currentColor;vertical-align:middle}.gem-c-modal-dialogue__logotype-crown-fallback-image[_ngcontent-%COMP%]{width:30px;height:26px;border:0;vertical-align:middle}.gem-c-modal-dialogue__content[_ngcontent-%COMP%]{padding:15px;background:#fff}.gem-c-modal-dialogue__close-button[_ngcontent-%COMP%]{position:absolute;top:0;right:0;width:44px;height:44px;border:0;color:#fff;background:none;cursor:pointer;font-family:GDS Transport,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:700;font-size:1.5rem;line-height:1.3}@media print{.gem-c-modal-dialogue__close-button[_ngcontent-%COMP%]{font-family:sans-serif}}@media (min-width: 40.0625em){.gem-c-modal-dialogue__close-button[_ngcontent-%COMP%]{font-size:2.25rem;line-height:1.3}}@media print{.gem-c-modal-dialogue__close-button[_ngcontent-%COMP%]{font-size:24pt;line-height:1.3}}@media (max-width: 40.0525em){.gem-c-modal-dialogue__close-button[_ngcontent-%COMP%]{font-size:36px;line-height:1.3}}.gem-c-modal-dialogue__close-button[_ngcontent-%COMP%]:focus, .gem-c-modal-dialogue__close-button[_ngcontent-%COMP%]:hover{color:#0b0c0c;box-shadow:0 -2px #fd0,0 4px #0b0c0c;text-decoration:none;outline:none;background:#fd0}"] }); }
|
|
5254
|
+
i0.ɵɵadvance(7);
|
|
5255
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10, 2, "We are about to sign you out"));
|
|
5256
|
+
} }, dependencies: [i1.NgStyle, i2.RpxTranslatePipe], styles: [".gem-c-modal-dialogue[_ngcontent-%COMP%]{display:none;position:fixed;z-index:1000;top:0;left:0;width:100%;height:100%;overflow-x:hidden;overflow-y:scroll;outline:0}.gem-c-modal-dialogue--open[_ngcontent-%COMP%]{display:block}.st0[_ngcontent-%COMP%]{fill:#fff}.gem-c-modal-dialogue__box[_ngcontent-%COMP%]{display:block;position:fixed;background:#fff;inset:0;width:100%;height:100%;margin:0;padding:0;overflow-y:auto;border:0;font-family:GDS Transport,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:16px;font-size:1rem;line-height:1.25;color:#0b0c0c}.gem-c-modal-dialogue__box[_ngcontent-%COMP%]:focus{outline:3px solid #ffdd00}@media print{.gem-c-modal-dialogue__box[_ngcontent-%COMP%]{font-family:sans-serif}}@media (min-width: 40.0625em){.gem-c-modal-dialogue__box[_ngcontent-%COMP%]{font-size:1.1875rem;line-height:1.3157894737}}@media print{.gem-c-modal-dialogue__box[_ngcontent-%COMP%]{font-size:14pt;line-height:1.15}}@media print{.gem-c-modal-dialogue__box[_ngcontent-%COMP%]{color:#000}}@media (min-width: 40.0625em){.gem-c-modal-dialogue__box[_ngcontent-%COMP%]{position:relative;top:inherit;right:inherit;bottom:inherit;left:inherit;width:auto;max-width:640px;height:auto;margin:30px auto;border:2px solid #0b0c0c}}@media (min-width: 40.0625em){.gem-c-modal-dialogue__box--wide[_ngcontent-%COMP%]{max-width:960px}}@media (min-width: 40.0625em) and (max-width: 64em){.gem-c-modal-dialogue__box--wide[_ngcontent-%COMP%]{margin:30px}}.gem-c-modal-dialogue__overlay[_ngcontent-%COMP%]{position:fixed;inset:0;width:100%;height:100%;opacity:.8;background:#0b0c0c;pointer-events:none;touch-action:none}@media screen{.gem-o-template--modal[_ngcontent-%COMP%]{overflow-y:inherit}}.gem-o-template__body--modal[_ngcontent-%COMP%]{overflow:hidden}.gem-o-template__body--blur[_ngcontent-%COMP%] .govuk-skip-link[_ngcontent-%COMP%], .gem-o-template__body--blur[_ngcontent-%COMP%] .govuk-header[_ngcontent-%COMP%], .gem-o-template__body--blur[_ngcontent-%COMP%] .govuk-phase-banner[_ngcontent-%COMP%], .gem-o-template__body--blur[_ngcontent-%COMP%] .govuk-width-container[_ngcontent-%COMP%] .govuk-back-link[_ngcontent-%COMP%], .gem-o-template__body--blur[_ngcontent-%COMP%] .govuk-footer[_ngcontent-%COMP%], .gem-o-template__body--blur[_ngcontent-%COMP%] .govuk-main-wrapper[_ngcontent-%COMP%]{filter:blur(2px)}.govuk-warning-text__icon[_ngcontent-%COMP%]{margin:0 0 0 12px}.gem-c-modal-dialogue__header[_ngcontent-%COMP%]{padding:9px 15px 10px;color:#fff;background:#d4351d;display:flex}.gem-c-modal-dialogue__title[_ngcontent-%COMP%]{margin:5px 0 4px 12px}.gem-c-modal-dialogue__logotype-crown[_ngcontent-%COMP%]{fill:currentColor;vertical-align:middle}.gem-c-modal-dialogue__logotype-crown-fallback-image[_ngcontent-%COMP%]{width:30px;height:26px;border:0;vertical-align:middle}.gem-c-modal-dialogue__content[_ngcontent-%COMP%]{padding:15px;background:#fff}.gem-c-modal-dialogue__close-button[_ngcontent-%COMP%]{position:absolute;top:0;right:0;width:44px;height:44px;border:0;color:#fff;background:none;cursor:pointer;font-family:GDS Transport,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:700;font-size:1.5rem;line-height:1.3}@media print{.gem-c-modal-dialogue__close-button[_ngcontent-%COMP%]{font-family:sans-serif}}@media (min-width: 40.0625em){.gem-c-modal-dialogue__close-button[_ngcontent-%COMP%]{font-size:2.25rem;line-height:1.3}}@media print{.gem-c-modal-dialogue__close-button[_ngcontent-%COMP%]{font-size:24pt;line-height:1.3}}@media (max-width: 40.0525em){.gem-c-modal-dialogue__close-button[_ngcontent-%COMP%]{font-size:36px;line-height:1.3}}.gem-c-modal-dialogue__close-button[_ngcontent-%COMP%]:focus, .gem-c-modal-dialogue__close-button[_ngcontent-%COMP%]:hover{color:#0b0c0c;box-shadow:0 -2px #fd0,0 4px #0b0c0c;text-decoration:none;outline:none;background:#fd0}"] }); }
|
|
5260
5257
|
}
|
|
5261
5258
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HmctsSessionDialogComponent, [{
|
|
5262
5259
|
type: Component,
|
|
5263
|
-
args: [{ selector: 'xuilib-session-dialog', standalone: false, template: "<div class=\"gem-c-modal-dialogue\" data-module=\"modal-dialogue\" id=\"modal-default\"
|
|
5260
|
+
args: [{ selector: 'xuilib-session-dialog', standalone: false, template: "<div class=\"gem-c-modal-dialogue gem-c-modal-dialogue--open\" data-module=\"modal-dialogue\" id=\"modal-default\">\n <div class=\"gem-c-modal-dialogue__overlay\"></div>\n <!-- TODO STYLE: Need to replace ngStyle here -->\n <dialog class=\"gem-c-modal-dialogue__box\" aria-modal=\"true\" role=\"dialog\" tabindex=\"0\" [ngStyle]=\"{'margin-top': positionTop}\">\n <div class=\"gem-c-modal-dialogue__header\">\n <svg role=\"presentation\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 38 38\" height=\"33\" width=\"33\">\n <g id=\"_4_-_granular_components_warning_icon\" transform=\"translate(0.5 0.5)\">\n <g id=\"Warning_icon\" transform=\"translate(0)\">\n <path id=\"Exclusion_1\" class=\"st0\" d=\"M18.5,37.5c-5.04,0.01-9.88-1.99-13.44-5.57C1.49,28.38-0.51,23.54-0.5,18.5\n c-0.01-5.04,1.99-9.88,5.56-13.43C8.62,1.49,13.46-0.51,18.5-0.5c5.04-0.01,9.88,1.99,13.44,5.56c3.57,3.56,5.58,8.39,5.56,13.44\n c0.01,5.04-1.99,9.88-5.56,13.44C28.38,35.51,23.54,37.51,18.5,37.5z M18.52,24.29c-0.4,0-0.8,0.08-1.17,0.23\n c-0.36,0.15-0.69,0.37-0.97,0.64c-0.28,0.27-0.5,0.59-0.65,0.95c-0.16,0.36-0.24,0.76-0.23,1.15c0,0.4,0.08,0.8,0.23,1.17\n c0.15,0.36,0.37,0.68,0.65,0.96c0.28,0.27,0.61,0.49,0.97,0.64c0.37,0.16,0.77,0.24,1.17,0.24c0.4,0,0.79-0.08,1.15-0.24\n c0.35-0.15,0.67-0.37,0.95-0.64c0.27-0.27,0.49-0.6,0.64-0.96c0.16-0.37,0.24-0.77,0.23-1.17c0-0.4-0.08-0.79-0.23-1.15\n c-0.15-0.35-0.37-0.67-0.64-0.95c-0.27-0.27-0.6-0.49-0.95-0.64C19.31,24.37,18.92,24.29,18.52,24.29L18.52,24.29z M16.11,7.5\n l0.42,14.87h3.91L20.86,7.5H16.11z\"/>\n </g>\n </g>\n </svg>\n <div class=\"gem-c-modal-dialogue__title\">{{'We are about to sign you out' | rpxTranslate}}</div>\n </div>\n <div class=\"gem-c-modal-dialogue__content\">\n <ng-content></ng-content>\n </div>\n </dialog>\n</div>\n", styles: [".gem-c-modal-dialogue{display:none;position:fixed;z-index:1000;top:0;left:0;width:100%;height:100%;overflow-x:hidden;overflow-y:scroll;outline:0}.gem-c-modal-dialogue--open{display:block}.st0{fill:#fff}.gem-c-modal-dialogue__box{display:block;position:fixed;background:#fff;inset:0;width:100%;height:100%;margin:0;padding:0;overflow-y:auto;border:0;font-family:GDS Transport,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;font-size:16px;font-size:1rem;line-height:1.25;color:#0b0c0c}.gem-c-modal-dialogue__box:focus{outline:3px solid #ffdd00}@media print{.gem-c-modal-dialogue__box{font-family:sans-serif}}@media (min-width: 40.0625em){.gem-c-modal-dialogue__box{font-size:1.1875rem;line-height:1.3157894737}}@media print{.gem-c-modal-dialogue__box{font-size:14pt;line-height:1.15}}@media print{.gem-c-modal-dialogue__box{color:#000}}@media (min-width: 40.0625em){.gem-c-modal-dialogue__box{position:relative;top:inherit;right:inherit;bottom:inherit;left:inherit;width:auto;max-width:640px;height:auto;margin:30px auto;border:2px solid #0b0c0c}}@media (min-width: 40.0625em){.gem-c-modal-dialogue__box--wide{max-width:960px}}@media (min-width: 40.0625em) and (max-width: 64em){.gem-c-modal-dialogue__box--wide{margin:30px}}.gem-c-modal-dialogue__overlay{position:fixed;inset:0;width:100%;height:100%;opacity:.8;background:#0b0c0c;pointer-events:none;touch-action:none}@media screen{.gem-o-template--modal{overflow-y:inherit}}.gem-o-template__body--modal{overflow:hidden}.gem-o-template__body--blur .govuk-skip-link,.gem-o-template__body--blur .govuk-header,.gem-o-template__body--blur .govuk-phase-banner,.gem-o-template__body--blur .govuk-width-container .govuk-back-link,.gem-o-template__body--blur .govuk-footer,.gem-o-template__body--blur .govuk-main-wrapper{filter:blur(2px)}.govuk-warning-text__icon{margin:0 0 0 12px}.gem-c-modal-dialogue__header{padding:9px 15px 10px;color:#fff;background:#d4351d;display:flex}.gem-c-modal-dialogue__title{margin:5px 0 4px 12px}.gem-c-modal-dialogue__logotype-crown{fill:currentColor;vertical-align:middle}.gem-c-modal-dialogue__logotype-crown-fallback-image{width:30px;height:26px;border:0;vertical-align:middle}.gem-c-modal-dialogue__content{padding:15px;background:#fff}.gem-c-modal-dialogue__close-button{position:absolute;top:0;right:0;width:44px;height:44px;border:0;color:#fff;background:none;cursor:pointer;font-family:GDS Transport,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:700;font-size:1.5rem;line-height:1.3}@media print{.gem-c-modal-dialogue__close-button{font-family:sans-serif}}@media (min-width: 40.0625em){.gem-c-modal-dialogue__close-button{font-size:2.25rem;line-height:1.3}}@media print{.gem-c-modal-dialogue__close-button{font-size:24pt;line-height:1.3}}@media (max-width: 40.0525em){.gem-c-modal-dialogue__close-button{font-size:36px;line-height:1.3}}.gem-c-modal-dialogue__close-button:focus,.gem-c-modal-dialogue__close-button:hover{color:#0b0c0c;box-shadow:0 -2px #fd0,0 4px #0b0c0c;text-decoration:none;outline:none;background:#fd0}\n"] }]
|
|
5264
5261
|
}], () => [], { positionTop: [{
|
|
5265
5262
|
type: Input
|
|
5266
5263
|
}], close: [{
|
|
@@ -5777,7 +5774,7 @@ class LoadingSpinnerComponent {
|
|
|
5777
5774
|
this.ref.detectChanges();
|
|
5778
5775
|
}
|
|
5779
5776
|
static { this.ɵfac = function LoadingSpinnerComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LoadingSpinnerComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
|
|
5780
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LoadingSpinnerComponent, selectors: [["xuilib-loading-spinner"]], inputs: { loadingText: "loadingText" }, standalone: false, decls: 6, vars: 3, consts: [[1, "spinner-container"], [1, "spinner-inner-container"], [1, "spinner"
|
|
5777
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LoadingSpinnerComponent, selectors: [["xuilib-loading-spinner"]], inputs: { loadingText: "loadingText" }, standalone: false, decls: 6, vars: 3, consts: [[1, "spinner-container"], [1, "spinner-inner-container"], [1, "spinner"]], template: function LoadingSpinnerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
5781
5778
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "p");
|
|
5782
5779
|
i0.ɵɵtext(3);
|
|
5783
5780
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
@@ -5787,11 +5784,11 @@ class LoadingSpinnerComponent {
|
|
|
5787
5784
|
} if (rf & 2) {
|
|
5788
5785
|
i0.ɵɵadvance(3);
|
|
5789
5786
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 1, ctx.loadingText));
|
|
5790
|
-
} }, dependencies: [i2.RpxTranslatePipe], styles: [".spinner-container{position:fixed;top:0;left:0;height:100%;width:100%;display:flex;justify-content:center;align-items:center;background:#ffffff80;z-index:99}.spinner-container .spinner-inner-container p{text-align:center}.spinner-container .spinner-inner-container .spinner{border:10px solid #dddddd;border-top:10px solid #000000;border-radius:50%;width:40px;height:40px;animation:spin 1s linear infinite}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"], encapsulation: 2 }); }
|
|
5787
|
+
} }, dependencies: [i2.RpxTranslatePipe], styles: [".spinner-container{position:fixed;top:0;left:0;height:100%;width:100%;display:flex;justify-content:center;align-items:center;background:#ffffff80;z-index:99}.spinner-container .spinner-inner-container p{text-align:center}.spinner-container .spinner-inner-container .spinner{margin:auto;border:10px solid #dddddd;border-top:10px solid #000000;border-radius:50%;width:40px;height:40px;animation:spin 1s linear infinite}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"], encapsulation: 2 }); }
|
|
5791
5788
|
}
|
|
5792
5789
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoadingSpinnerComponent, [{
|
|
5793
5790
|
type: Component,
|
|
5794
|
-
args: [{ selector: 'xuilib-loading-spinner', encapsulation: ViewEncapsulation.None, standalone: false, template: "<div class=\"spinner-container\">\n <div class=\"spinner-inner-container\">\n <p>{{loadingText | rpxTranslate}}</p>\n <div class=\"spinner\"
|
|
5791
|
+
args: [{ selector: 'xuilib-loading-spinner', encapsulation: ViewEncapsulation.None, standalone: false, template: "<div class=\"spinner-container\">\n <div class=\"spinner-inner-container\">\n <p>{{loadingText | rpxTranslate}}</p>\n <div class=\"spinner\"></div>\n </div>\n</div>\n", styles: [".spinner-container{position:fixed;top:0;left:0;height:100%;width:100%;display:flex;justify-content:center;align-items:center;background:#ffffff80;z-index:99}.spinner-container .spinner-inner-container p{text-align:center}.spinner-container .spinner-inner-container .spinner{margin:auto;border:10px solid #dddddd;border-top:10px solid #000000;border-radius:50%;width:40px;height:40px;animation:spin 1s linear infinite}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"] }]
|
|
5795
5792
|
}], () => [{ type: i0.ChangeDetectorRef }], { loadingText: [{
|
|
5796
5793
|
type: Input
|
|
5797
5794
|
}] }); })();
|
|
@@ -5964,14 +5961,14 @@ class CaseSharingStateService {
|
|
|
5964
5961
|
}], () => [], null); })();
|
|
5965
5962
|
|
|
5966
5963
|
function _forTrack0$2($index, $item) { return this.trackByUserId($item); }
|
|
5967
|
-
function
|
|
5968
|
-
i0.ɵɵelementStart(0, "tr",
|
|
5964
|
+
function SelectedCaseConfirmComponent_Conditional_0_For_26_Template(rf, ctx) { if (rf & 1) {
|
|
5965
|
+
i0.ɵɵelementStart(0, "tr", 8)(1, "td", 12);
|
|
5969
5966
|
i0.ɵɵtext(2);
|
|
5970
5967
|
i0.ɵɵelementEnd();
|
|
5971
|
-
i0.ɵɵelementStart(3, "td",
|
|
5968
|
+
i0.ɵɵelementStart(3, "td", 12);
|
|
5972
5969
|
i0.ɵɵtext(4);
|
|
5973
5970
|
i0.ɵɵelementEnd();
|
|
5974
|
-
i0.ɵɵelementStart(5, "td",
|
|
5971
|
+
i0.ɵɵelementStart(5, "td", 12)(6, "span", 13);
|
|
5975
5972
|
i0.ɵɵtext(7);
|
|
5976
5973
|
i0.ɵɵpipe(8, "rpxTranslate");
|
|
5977
5974
|
i0.ɵɵelementEnd()()();
|
|
@@ -5984,14 +5981,14 @@ function SelectedCaseConfirmComponent_Conditional_0_For_29_Template(rf, ctx) { i
|
|
|
5984
5981
|
i0.ɵɵadvance(3);
|
|
5985
5982
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(8, 3, "To be added"));
|
|
5986
5983
|
} }
|
|
5987
|
-
function
|
|
5988
|
-
i0.ɵɵelementStart(0, "tr",
|
|
5984
|
+
function SelectedCaseConfirmComponent_Conditional_0_For_28_Template(rf, ctx) { if (rf & 1) {
|
|
5985
|
+
i0.ɵɵelementStart(0, "tr", 8)(1, "td", 12);
|
|
5989
5986
|
i0.ɵɵtext(2);
|
|
5990
5987
|
i0.ɵɵelementEnd();
|
|
5991
|
-
i0.ɵɵelementStart(3, "td",
|
|
5988
|
+
i0.ɵɵelementStart(3, "td", 12);
|
|
5992
5989
|
i0.ɵɵtext(4);
|
|
5993
5990
|
i0.ɵɵelementEnd();
|
|
5994
|
-
i0.ɵɵelementStart(5, "td",
|
|
5991
|
+
i0.ɵɵelementStart(5, "td", 12)(6, "span", 14);
|
|
5995
5992
|
i0.ɵɵtext(7);
|
|
5996
5993
|
i0.ɵɵpipe(8, "rpxTranslate");
|
|
5997
5994
|
i0.ɵɵelementEnd()()();
|
|
@@ -6018,26 +6015,21 @@ function SelectedCaseConfirmComponent_Conditional_0_Template(rf, ctx) { if (rf &
|
|
|
6018
6015
|
i0.ɵɵtext(10);
|
|
6019
6016
|
i0.ɵɵpipe(11, "rpxTranslate");
|
|
6020
6017
|
i0.ɵɵelementEnd()()();
|
|
6021
|
-
i0.ɵɵelementStart(12, "table", 6)(13, "
|
|
6022
|
-
i0.ɵɵtext(
|
|
6023
|
-
i0.ɵɵpipe(
|
|
6018
|
+
i0.ɵɵelementStart(12, "table", 6)(13, "thead", 7)(14, "tr", 8)(15, "th", 9);
|
|
6019
|
+
i0.ɵɵtext(16);
|
|
6020
|
+
i0.ɵɵpipe(17, "rpxTranslate");
|
|
6024
6021
|
i0.ɵɵelementEnd();
|
|
6025
|
-
i0.ɵɵelementStart(
|
|
6022
|
+
i0.ɵɵelementStart(18, "th", 9);
|
|
6026
6023
|
i0.ɵɵtext(19);
|
|
6027
6024
|
i0.ɵɵpipe(20, "rpxTranslate");
|
|
6028
6025
|
i0.ɵɵelementEnd();
|
|
6029
6026
|
i0.ɵɵelementStart(21, "th", 10);
|
|
6030
6027
|
i0.ɵɵtext(22);
|
|
6031
6028
|
i0.ɵɵpipe(23, "rpxTranslate");
|
|
6032
|
-
i0.ɵɵelementEnd();
|
|
6033
|
-
i0.ɵɵelementStart(24, "th", 11);
|
|
6034
|
-
i0.ɵɵtext(25);
|
|
6035
|
-
i0.ɵɵpipe(26, "rpxTranslate");
|
|
6036
6029
|
i0.ɵɵelementEnd()()();
|
|
6037
|
-
i0.ɵɵelementStart(
|
|
6038
|
-
i0.ɵɵrepeaterCreate(
|
|
6039
|
-
i0.ɵɵ
|
|
6040
|
-
i0.ɵɵrepeaterCreate(31, SelectedCaseConfirmComponent_Conditional_0_For_32_Template, 9, 5, "tr", 9, _forTrack0$2, true);
|
|
6030
|
+
i0.ɵɵelementStart(24, "tbody", 11);
|
|
6031
|
+
i0.ɵɵrepeaterCreate(25, SelectedCaseConfirmComponent_Conditional_0_For_26_Template, 9, 5, "tr", 8, _forTrack0$2, true);
|
|
6032
|
+
i0.ɵɵrepeaterCreate(27, SelectedCaseConfirmComponent_Conditional_0_For_28_Template, 9, 5, "tr", 8, _forTrack0$2, true);
|
|
6041
6033
|
i0.ɵɵelementEnd()()();
|
|
6042
6034
|
} if (rf & 2) {
|
|
6043
6035
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
@@ -6049,20 +6041,18 @@ function SelectedCaseConfirmComponent_Conditional_0_Template(rf, ctx) { if (rf &
|
|
|
6049
6041
|
i0.ɵɵadvance();
|
|
6050
6042
|
i0.ɵɵproperty("routerLink", ctx_r2.changeLink);
|
|
6051
6043
|
i0.ɵɵadvance();
|
|
6052
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8,
|
|
6044
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 10, "Change"), " ");
|
|
6053
6045
|
i0.ɵɵadvance(3);
|
|
6054
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(11,
|
|
6055
|
-
i0.ɵɵadvance(
|
|
6056
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
6057
|
-
i0.ɵɵadvance(5);
|
|
6058
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(20, 17, "Name"));
|
|
6046
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(11, 12, "selected case"));
|
|
6047
|
+
i0.ɵɵadvance(6);
|
|
6048
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(17, 14, "Name"));
|
|
6059
6049
|
i0.ɵɵadvance(3);
|
|
6060
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
6050
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(20, 16, "Email address"));
|
|
6061
6051
|
i0.ɵɵadvance(3);
|
|
6062
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
6052
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(23, 18, "Actions"));
|
|
6063
6053
|
i0.ɵɵadvance(3);
|
|
6064
6054
|
i0.ɵɵrepeater(ctx_r2.sharedCase.pendingShares);
|
|
6065
|
-
i0.ɵɵadvance(
|
|
6055
|
+
i0.ɵɵadvance(2);
|
|
6066
6056
|
i0.ɵɵrepeater(ctx_r2.sharedCase.pendingUnshares);
|
|
6067
6057
|
} }
|
|
6068
6058
|
class SelectedCaseConfirmComponent {
|
|
@@ -6084,15 +6074,15 @@ class SelectedCaseConfirmComponent {
|
|
|
6084
6074
|
return this.sharedCase.pendingUnshares && this.sharedCase.pendingUnshares.length > 0;
|
|
6085
6075
|
}
|
|
6086
6076
|
static { this.ɵfac = function SelectedCaseConfirmComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SelectedCaseConfirmComponent)(i0.ɵɵdirectiveInject(CaseSharingStateService)); }; }
|
|
6087
|
-
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-
|
|
6088
|
-
i0.ɵɵconditionalCreate(0, SelectedCaseConfirmComponent_Conditional_0_Template,
|
|
6077
|
+
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) {
|
|
6078
|
+
i0.ɵɵconditionalCreate(0, SelectedCaseConfirmComponent_Conditional_0_Template, 29, 20, "div", 0);
|
|
6089
6079
|
} if (rf & 2) {
|
|
6090
6080
|
i0.ɵɵconditional(ctx.showUserAccessBlock() ? 0 : -1);
|
|
6091
|
-
} }, 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
|
|
6081
|
+
} }, 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%}"] }); }
|
|
6092
6082
|
}
|
|
6093
6083
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectedCaseConfirmComponent, [{
|
|
6094
6084
|
type: Component,
|
|
6095
|
-
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 <
|
|
6085
|
+
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"] }]
|
|
6096
6086
|
}], () => [{ type: CaseSharingStateService }], { sharedCase: [{
|
|
6097
6087
|
type: Input
|
|
6098
6088
|
}], changeLink: [{
|
|
@@ -6138,13 +6128,13 @@ function SelectedCaseComponent_Conditional_18_Template(rf, ctx) { if (rf & 1) {
|
|
|
6138
6128
|
i0.ɵɵadvance();
|
|
6139
6129
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 3, "Users from your organisation with access to this case."), " ");
|
|
6140
6130
|
} }
|
|
6141
|
-
function
|
|
6131
|
+
function SelectedCaseComponent_Conditional_19_For_17_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
6142
6132
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
6143
|
-
i0.ɵɵelementStart(0, "a",
|
|
6144
|
-
i0.ɵɵlistener("click", function
|
|
6133
|
+
i0.ɵɵelementStart(0, "a", 27);
|
|
6134
|
+
i0.ɵɵlistener("click", function SelectedCaseComponent_Conditional_19_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()); });
|
|
6145
6135
|
i0.ɵɵtext(1);
|
|
6146
6136
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
6147
|
-
i0.ɵɵelementStart(3, "span",
|
|
6137
|
+
i0.ɵɵelementStart(3, "span", 28);
|
|
6148
6138
|
i0.ɵɵtext(4);
|
|
6149
6139
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
6150
6140
|
i0.ɵɵelementEnd()();
|
|
@@ -6155,13 +6145,13 @@ function SelectedCaseComponent_Conditional_19_For_20_Conditional_8_Template(rf,
|
|
|
6155
6145
|
i0.ɵɵadvance(3);
|
|
6156
6146
|
i0.ɵɵtextInterpolate2("", user_r4.firstName + " " + user_r4.lastName, " ", i0.ɵɵpipeBind1(5, 5, "from case"));
|
|
6157
6147
|
} }
|
|
6158
|
-
function
|
|
6148
|
+
function SelectedCaseComponent_Conditional_19_For_17_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
6159
6149
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
6160
|
-
i0.ɵɵelementStart(0, "a",
|
|
6161
|
-
i0.ɵɵlistener("click", function
|
|
6150
|
+
i0.ɵɵelementStart(0, "a", 27);
|
|
6151
|
+
i0.ɵɵlistener("click", function SelectedCaseComponent_Conditional_19_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()); });
|
|
6162
6152
|
i0.ɵɵtext(1);
|
|
6163
6153
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
6164
|
-
i0.ɵɵelementStart(3, "span",
|
|
6154
|
+
i0.ɵɵelementStart(3, "span", 28);
|
|
6165
6155
|
i0.ɵɵtext(4);
|
|
6166
6156
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
6167
6157
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
@@ -6173,8 +6163,8 @@ function SelectedCaseComponent_Conditional_19_For_20_Conditional_10_Template(rf,
|
|
|
6173
6163
|
i0.ɵɵadvance(3);
|
|
6174
6164
|
i0.ɵɵtextInterpolate3("", i0.ɵɵpipeBind1(5, 6, "adding"), " ", user_r4.firstName + " " + user_r4.lastName, " ", i0.ɵɵpipeBind1(6, 8, "to case"));
|
|
6175
6165
|
} }
|
|
6176
|
-
function
|
|
6177
|
-
i0.ɵɵelementStart(0, "
|
|
6166
|
+
function SelectedCaseComponent_Conditional_19_For_17_Conditional_13_Template(rf, ctx) { if (rf & 1) {
|
|
6167
|
+
i0.ɵɵelementStart(0, "span", 25);
|
|
6178
6168
|
i0.ɵɵtext(1);
|
|
6179
6169
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
6180
6170
|
i0.ɵɵelementEnd();
|
|
@@ -6182,8 +6172,8 @@ function SelectedCaseComponent_Conditional_19_For_20_Conditional_13_Template(rf,
|
|
|
6182
6172
|
i0.ɵɵadvance();
|
|
6183
6173
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "To be removed"));
|
|
6184
6174
|
} }
|
|
6185
|
-
function
|
|
6186
|
-
i0.ɵɵelementStart(0, "
|
|
6175
|
+
function SelectedCaseComponent_Conditional_19_For_17_Conditional_15_Template(rf, ctx) { if (rf & 1) {
|
|
6176
|
+
i0.ɵɵelementStart(0, "span", 26);
|
|
6187
6177
|
i0.ɵɵtext(1);
|
|
6188
6178
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
6189
6179
|
i0.ɵɵelementEnd();
|
|
@@ -6191,37 +6181,37 @@ function SelectedCaseComponent_Conditional_19_For_20_Conditional_15_Template(rf,
|
|
|
6191
6181
|
i0.ɵɵadvance();
|
|
6192
6182
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "To be added"));
|
|
6193
6183
|
} }
|
|
6194
|
-
function
|
|
6195
|
-
i0.ɵɵelementStart(0, "tr",
|
|
6184
|
+
function SelectedCaseComponent_Conditional_19_For_17_Template(rf, ctx) { if (rf & 1) {
|
|
6185
|
+
i0.ɵɵelementStart(0, "tr", 17)(1, "td", 22);
|
|
6196
6186
|
i0.ɵɵpipe(2, "async");
|
|
6197
6187
|
i0.ɵɵtext(3);
|
|
6198
6188
|
i0.ɵɵelementEnd();
|
|
6199
|
-
i0.ɵɵelementStart(4, "td",
|
|
6189
|
+
i0.ɵɵelementStart(4, "td", 22);
|
|
6200
6190
|
i0.ɵɵpipe(5, "async");
|
|
6201
6191
|
i0.ɵɵtext(6);
|
|
6202
6192
|
i0.ɵɵelementEnd();
|
|
6203
|
-
i0.ɵɵelementStart(7, "td",
|
|
6204
|
-
i0.ɵɵconditionalCreate(8,
|
|
6193
|
+
i0.ɵɵelementStart(7, "td", 23);
|
|
6194
|
+
i0.ɵɵconditionalCreate(8, SelectedCaseComponent_Conditional_19_For_17_Conditional_8_Template, 6, 7, "a", 24);
|
|
6205
6195
|
i0.ɵɵpipe(9, "async");
|
|
6206
|
-
i0.ɵɵconditionalCreate(10,
|
|
6196
|
+
i0.ɵɵconditionalCreate(10, SelectedCaseComponent_Conditional_19_For_17_Conditional_10_Template, 7, 10, "a", 24);
|
|
6207
6197
|
i0.ɵɵpipe(11, "async");
|
|
6208
6198
|
i0.ɵɵelementEnd();
|
|
6209
|
-
i0.ɵɵelementStart(12, "td",
|
|
6210
|
-
i0.ɵɵconditionalCreate(13,
|
|
6199
|
+
i0.ɵɵelementStart(12, "td", 23);
|
|
6200
|
+
i0.ɵɵconditionalCreate(13, SelectedCaseComponent_Conditional_19_For_17_Conditional_13_Template, 3, 3, "span", 25);
|
|
6211
6201
|
i0.ɵɵpipe(14, "async");
|
|
6212
|
-
i0.ɵɵconditionalCreate(15,
|
|
6202
|
+
i0.ɵɵconditionalCreate(15, SelectedCaseComponent_Conditional_19_For_17_Conditional_15_Template, 3, 3, "span", 26);
|
|
6213
6203
|
i0.ɵɵpipe(16, "async");
|
|
6214
6204
|
i0.ɵɵelementEnd()();
|
|
6215
6205
|
} if (rf & 2) {
|
|
6216
6206
|
const user_r4 = ctx.$implicit;
|
|
6217
|
-
const ɵ$
|
|
6207
|
+
const ɵ$index_72_r6 = ctx.$index;
|
|
6218
6208
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
6219
6209
|
i0.ɵɵadvance();
|
|
6220
|
-
i0.ɵɵproperty("id", i0.ɵɵinterpolate1("user-full-name-", ctx_r1.userIdSetter(i0.ɵɵpipeBind1(2, 10, ctx_r1.canCancel(ctx_r1.sharedCase.caseId, user_r4)), ɵ$
|
|
6210
|
+
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_72_r6)));
|
|
6221
6211
|
i0.ɵɵadvance(2);
|
|
6222
6212
|
i0.ɵɵtextInterpolate(user_r4.firstName + " " + user_r4.lastName);
|
|
6223
6213
|
i0.ɵɵadvance();
|
|
6224
|
-
i0.ɵɵproperty("id", i0.ɵɵinterpolate1("user-email-", ctx_r1.userIdSetter(i0.ɵɵpipeBind1(5, 12, ctx_r1.canCancel(ctx_r1.sharedCase.caseId, user_r4)), ɵ$
|
|
6214
|
+
i0.ɵɵproperty("id", i0.ɵɵinterpolate1("user-email-", ctx_r1.userIdSetter(i0.ɵɵpipeBind1(5, 12, ctx_r1.canCancel(ctx_r1.sharedCase.caseId, user_r4)), ɵ$index_72_r6)));
|
|
6225
6215
|
i0.ɵɵadvance(2);
|
|
6226
6216
|
i0.ɵɵtextInterpolate(user_r4.email);
|
|
6227
6217
|
i0.ɵɵadvance(2);
|
|
@@ -6234,11 +6224,11 @@ function SelectedCaseComponent_Conditional_19_For_20_Template(rf, ctx) { if (rf
|
|
|
6234
6224
|
i0.ɵɵconditional(i0.ɵɵpipeBind1(16, 20, ctx_r1.isToBeAdded(ctx_r1.sharedCase.caseId, user_r4)) ? 15 : -1);
|
|
6235
6225
|
} }
|
|
6236
6226
|
function SelectedCaseComponent_Conditional_19_Template(rf, ctx) { if (rf & 1) {
|
|
6237
|
-
i0.ɵɵelementStart(0, "table", 13)(1, "
|
|
6238
|
-
i0.ɵɵtext(
|
|
6239
|
-
i0.ɵɵpipe(
|
|
6227
|
+
i0.ɵɵelementStart(0, "table", 13)(1, "thead", 16)(2, "tr", 17)(3, "th", 18);
|
|
6228
|
+
i0.ɵɵtext(4);
|
|
6229
|
+
i0.ɵɵpipe(5, "rpxTranslate");
|
|
6240
6230
|
i0.ɵɵelementEnd();
|
|
6241
|
-
i0.ɵɵelementStart(
|
|
6231
|
+
i0.ɵɵelementStart(6, "th", 18);
|
|
6242
6232
|
i0.ɵɵtext(7);
|
|
6243
6233
|
i0.ɵɵpipe(8, "rpxTranslate");
|
|
6244
6234
|
i0.ɵɵelementEnd();
|
|
@@ -6249,34 +6239,28 @@ function SelectedCaseComponent_Conditional_19_Template(rf, ctx) { if (rf & 1) {
|
|
|
6249
6239
|
i0.ɵɵelementStart(12, "th", 20);
|
|
6250
6240
|
i0.ɵɵtext(13);
|
|
6251
6241
|
i0.ɵɵpipe(14, "rpxTranslate");
|
|
6252
|
-
i0.ɵɵelementEnd();
|
|
6253
|
-
i0.ɵɵelementStart(15, "th", 21);
|
|
6254
|
-
i0.ɵɵtext(16);
|
|
6255
|
-
i0.ɵɵpipe(17, "rpxTranslate");
|
|
6256
6242
|
i0.ɵɵelementEnd()()();
|
|
6257
|
-
i0.ɵɵelementStart(
|
|
6258
|
-
i0.ɵɵrepeaterCreate(
|
|
6243
|
+
i0.ɵɵelementStart(15, "tbody", 21);
|
|
6244
|
+
i0.ɵɵrepeaterCreate(16, SelectedCaseComponent_Conditional_19_For_17_Template, 17, 22, "tr", 17, _forTrack0$1, true);
|
|
6259
6245
|
i0.ɵɵelementEnd()();
|
|
6260
6246
|
} if (rf & 2) {
|
|
6261
6247
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
6262
|
-
i0.ɵɵadvance(
|
|
6263
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 13, "Users with access to this case"));
|
|
6264
|
-
i0.ɵɵadvance(4);
|
|
6248
|
+
i0.ɵɵadvance(3);
|
|
6265
6249
|
i0.ɵɵproperty("id", i0.ɵɵinterpolate(ctx_r1.buildElementId("name-heading")));
|
|
6266
6250
|
i0.ɵɵadvance();
|
|
6267
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
6251
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 12, "Name"));
|
|
6268
6252
|
i0.ɵɵadvance(2);
|
|
6269
6253
|
i0.ɵɵproperty("id", i0.ɵɵinterpolate(ctx_r1.buildElementId("email-heading")));
|
|
6270
6254
|
i0.ɵɵadvance();
|
|
6271
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
6255
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(8, 14, "Email address"));
|
|
6272
6256
|
i0.ɵɵadvance(2);
|
|
6273
6257
|
i0.ɵɵproperty("id", i0.ɵɵinterpolate(ctx_r1.buildElementId("action-heading")));
|
|
6274
6258
|
i0.ɵɵadvance();
|
|
6275
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
6259
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(11, 16, "Actions"));
|
|
6276
6260
|
i0.ɵɵadvance(2);
|
|
6277
6261
|
i0.ɵɵproperty("id", i0.ɵɵinterpolate(ctx_r1.buildElementId("label-heading")));
|
|
6278
6262
|
i0.ɵɵadvance();
|
|
6279
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
6263
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(14, 18, "Status"));
|
|
6280
6264
|
i0.ɵɵadvance(3);
|
|
6281
6265
|
i0.ɵɵrepeater(ctx_r1.combinedSortedShares);
|
|
6282
6266
|
} }
|
|
@@ -6415,7 +6399,7 @@ class SelectedCaseComponent {
|
|
|
6415
6399
|
return `${elementName}-${this.sharedCase.caseId}`;
|
|
6416
6400
|
}
|
|
6417
6401
|
static { this.ɵfac = function SelectedCaseComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SelectedCaseComponent)(i0.ɵɵdirectiveInject(CaseSharingStateService)); }; }
|
|
6418
|
-
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: 20, vars: 25, 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-
|
|
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: 20, vars: 25, 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) {
|
|
6419
6403
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "h3", 3);
|
|
6420
6404
|
i0.ɵɵtext(4);
|
|
6421
6405
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
@@ -6434,7 +6418,7 @@ class SelectedCaseComponent {
|
|
|
6434
6418
|
i0.ɵɵelementStart(16, "div", 11);
|
|
6435
6419
|
i0.ɵɵconditionalCreate(17, SelectedCaseComponent_Conditional_17_Template, 4, 5, "div", 12);
|
|
6436
6420
|
i0.ɵɵconditionalCreate(18, SelectedCaseComponent_Conditional_18_Template, 4, 5, "div", 12);
|
|
6437
|
-
i0.ɵɵconditionalCreate(19, SelectedCaseComponent_Conditional_19_Template,
|
|
6421
|
+
i0.ɵɵconditionalCreate(19, SelectedCaseComponent_Conditional_19_Template, 18, 20, "table", 13);
|
|
6438
6422
|
i0.ɵɵelementEnd()();
|
|
6439
6423
|
} if (rf & 2) {
|
|
6440
6424
|
i0.ɵɵproperty("id", i0.ɵɵinterpolate(ctx.buildElementId("govuk-accordion__section")));
|
|
@@ -6460,11 +6444,11 @@ class SelectedCaseComponent {
|
|
|
6460
6444
|
i0.ɵɵconditional(ctx.showUserHasAccessInfo() ? 18 : -1);
|
|
6461
6445
|
i0.ɵɵadvance();
|
|
6462
6446
|
i0.ɵɵconditional(ctx.showUserAccessTable() ? 19 : -1);
|
|
6463
|
-
} }, dependencies: [i1.AsyncPipe, i2.RpxTranslatePipe], styles: [".govuk-case-header[_ngcontent-%COMP%]{border-top:1px solid #
|
|
6447
|
+
} }, 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}"] }); }
|
|
6464
6448
|
}
|
|
6465
6449
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectedCaseComponent, [{
|
|
6466
6450
|
type: Component,
|
|
6467
|
-
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\">{{ sharedCase.caseTitle | rpxTranslate }}</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 <
|
|
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\">{{ sharedCase.caseTitle | rpxTranslate }}</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"] }]
|
|
6468
6452
|
}], () => [{ type: CaseSharingStateService }], { sharedCase: [{
|
|
6469
6453
|
type: Input
|
|
6470
6454
|
}], selectedUser: [{
|
|
@@ -7551,51 +7535,53 @@ class TcConfirmComponent {
|
|
|
7551
7535
|
this.confirm.emit();
|
|
7552
7536
|
}
|
|
7553
7537
|
static { this.ɵfac = function TcConfirmComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TcConfirmComponent)(); }; }
|
|
7554
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TcConfirmComponent, selectors: [["xuilib-tc-confirm"]], inputs: { buttonText: "buttonText" }, outputs: { confirm: "confirm" }, standalone: false, decls:
|
|
7555
|
-
i0.ɵɵelementStart(0, "div", 0)(1, "main", 1)(2, "div", 2)(3, "div", 3)(4, "
|
|
7556
|
-
i0.ɵɵtext(
|
|
7557
|
-
i0.ɵɵpipe(
|
|
7538
|
+
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) {
|
|
7539
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "main", 1)(2, "div", 2)(3, "div", 3)(4, "div", 4)(5, "h1", 5);
|
|
7540
|
+
i0.ɵɵtext(6);
|
|
7541
|
+
i0.ɵɵpipe(7, "rpxTranslate");
|
|
7558
7542
|
i0.ɵɵelementEnd();
|
|
7559
|
-
i0.ɵɵelementStart(
|
|
7560
|
-
i0.ɵɵtext(
|
|
7561
|
-
i0.ɵɵpipe(
|
|
7543
|
+
i0.ɵɵelementStart(8, "h2", 6);
|
|
7544
|
+
i0.ɵɵtext(9);
|
|
7545
|
+
i0.ɵɵpipe(10, "rpxTranslate");
|
|
7562
7546
|
i0.ɵɵelementEnd();
|
|
7563
|
-
i0.ɵɵelementStart(
|
|
7564
|
-
i0.ɵɵtext(
|
|
7565
|
-
i0.ɵɵpipe(
|
|
7566
|
-
i0.ɵɵelementStart(
|
|
7567
|
-
i0.ɵɵtext(
|
|
7568
|
-
i0.ɵɵpipe(
|
|
7547
|
+
i0.ɵɵelementStart(11, "p");
|
|
7548
|
+
i0.ɵɵtext(12);
|
|
7549
|
+
i0.ɵɵpipe(13, "rpxTranslate");
|
|
7550
|
+
i0.ɵɵelementStart(14, "a", 7);
|
|
7551
|
+
i0.ɵɵtext(15);
|
|
7552
|
+
i0.ɵɵpipe(16, "rpxTranslate");
|
|
7569
7553
|
i0.ɵɵelementEnd();
|
|
7570
|
-
i0.ɵɵtext(
|
|
7554
|
+
i0.ɵɵtext(17, ". ");
|
|
7571
7555
|
i0.ɵɵelementEnd();
|
|
7572
|
-
i0.ɵɵelementStart(
|
|
7573
|
-
i0.ɵɵtext(
|
|
7574
|
-
i0.ɵɵpipe(
|
|
7556
|
+
i0.ɵɵelementStart(18, "p");
|
|
7557
|
+
i0.ɵɵtext(19);
|
|
7558
|
+
i0.ɵɵpipe(20, "rpxTranslate");
|
|
7575
7559
|
i0.ɵɵelementEnd();
|
|
7576
|
-
i0.ɵɵelementStart(
|
|
7577
|
-
i0.ɵɵlistener("click", function
|
|
7578
|
-
i0.ɵɵtext(
|
|
7579
|
-
i0.ɵɵpipe(
|
|
7580
|
-
i0.ɵɵelementEnd()()()()()
|
|
7560
|
+
i0.ɵɵelementStart(21, "p")(22, "button", 8);
|
|
7561
|
+
i0.ɵɵlistener("click", function TcConfirmComponent_Template_button_click_22_listener() { return ctx.onClick(); });
|
|
7562
|
+
i0.ɵɵtext(23);
|
|
7563
|
+
i0.ɵɵpipe(24, "rpxTranslate");
|
|
7564
|
+
i0.ɵɵelementEnd()()()()();
|
|
7565
|
+
i0.ɵɵelement(25, "div", 9);
|
|
7566
|
+
i0.ɵɵelementEnd()();
|
|
7581
7567
|
} if (rf & 2) {
|
|
7582
|
-
i0.ɵɵadvance(
|
|
7583
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
7568
|
+
i0.ɵɵadvance(6);
|
|
7569
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 6, "Using this service"));
|
|
7584
7570
|
i0.ɵɵadvance(3);
|
|
7585
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
7571
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10, 8, "Terms and conditions"));
|
|
7586
7572
|
i0.ɵɵadvance(3);
|
|
7587
|
-
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(
|
|
7573
|
+
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(13, 10, "We've recently updated the"), " ");
|
|
7588
7574
|
i0.ɵɵadvance(3);
|
|
7589
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
7575
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(16, 12, "terms and conditions"));
|
|
7590
7576
|
i0.ɵɵadvance(4);
|
|
7591
|
-
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(
|
|
7577
|
+
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(20, 14, "You must review and accept them."), " ");
|
|
7592
7578
|
i0.ɵɵadvance(4);
|
|
7593
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
7579
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(24, 16, ctx.buttonText), " ");
|
|
7594
7580
|
} }, dependencies: [i1$1.RouterLink, i2.RpxTranslatePipe], encapsulation: 2 }); }
|
|
7595
7581
|
}
|
|
7596
7582
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TcConfirmComponent, [{
|
|
7597
7583
|
type: Component,
|
|
7598
|
-
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
|
|
7584
|
+
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" }]
|
|
7599
7585
|
}], () => [], { buttonText: [{
|
|
7600
7586
|
type: Input
|
|
7601
7587
|
}], confirm: [{
|
|
@@ -7966,130 +7952,113 @@ class UserDetailsComponent {
|
|
|
7966
7952
|
}] }); })();
|
|
7967
7953
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UserDetailsComponent, { className: "UserDetailsComponent", filePath: "lib/components/user-details/user-details.component.ts", lineNumber: 10 }); })();
|
|
7968
7954
|
|
|
7969
|
-
function
|
|
7955
|
+
function HmctsPaginationComponent_Conditional_6_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
7970
7956
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
7971
|
-
i0.ɵɵelementStart(0, "
|
|
7972
|
-
i0.ɵɵlistener("
|
|
7973
|
-
i0.ɵɵ
|
|
7974
|
-
i0.ɵɵ
|
|
7975
|
-
i0.ɵɵ
|
|
7976
|
-
i0.ɵɵ
|
|
7977
|
-
i0.ɵɵ
|
|
7978
|
-
i0.ɵɵ
|
|
7979
|
-
i0.ɵɵtext(5);
|
|
7980
|
-
i0.ɵɵpipe(6, "rpxTranslate");
|
|
7981
|
-
i0.ɵɵelementStart(7, "span", 12);
|
|
7982
|
-
i0.ɵɵtext(8);
|
|
7983
|
-
i0.ɵɵpipe(9, "rpxTranslate");
|
|
7984
|
-
i0.ɵɵelementEnd()()()();
|
|
7957
|
+
i0.ɵɵelementStart(0, "a", 9);
|
|
7958
|
+
i0.ɵɵlistener("keyup.enter", function HmctsPaginationComponent_Conditional_6_Conditional_2_Template_a_keyup_enter_0_listener() { i0.ɵɵrestoreView(_r2); i0.ɵɵnextContext(2); const p_r3 = i0.ɵɵreference(1); return i0.ɵɵresetView(p_r3.previous()); })("click", function HmctsPaginationComponent_Conditional_6_Conditional_2_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r2); i0.ɵɵnextContext(2); const p_r3 = i0.ɵɵreference(1); return i0.ɵɵresetView(p_r3.previous()); });
|
|
7959
|
+
i0.ɵɵtext(1);
|
|
7960
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
7961
|
+
i0.ɵɵelementStart(3, "span", 10);
|
|
7962
|
+
i0.ɵɵtext(4);
|
|
7963
|
+
i0.ɵɵpipe(5, "rpxTranslate");
|
|
7964
|
+
i0.ɵɵelementEnd()();
|
|
7985
7965
|
} if (rf & 2) {
|
|
7986
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
7987
|
-
i0.ɵɵadvance(4);
|
|
7988
|
-
i0.ɵɵclassProp("govuk-pagination__link-title--decorated", !ctx_r2.showPageNumbers);
|
|
7989
7966
|
i0.ɵɵadvance();
|
|
7990
|
-
i0.ɵɵ
|
|
7967
|
+
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(2, 2, "Previous"), " ");
|
|
7991
7968
|
i0.ɵɵadvance(3);
|
|
7992
|
-
i0.ɵɵ
|
|
7969
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 4, "set of pages"));
|
|
7993
7970
|
} }
|
|
7994
|
-
function
|
|
7995
|
-
i0.ɵɵ
|
|
7996
|
-
i0.ɵɵ
|
|
7971
|
+
function HmctsPaginationComponent_Conditional_6_Conditional_3_For_1_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
7972
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
7973
|
+
i0.ɵɵelementStart(0, "a", 9);
|
|
7974
|
+
i0.ɵɵlistener("keyup.enter", function HmctsPaginationComponent_Conditional_6_Conditional_3_For_1_Conditional_1_Template_a_keyup_enter_0_listener() { i0.ɵɵrestoreView(_r4); const page_r5 = i0.ɵɵnextContext().$implicit; i0.ɵɵnextContext(3); const p_r3 = i0.ɵɵreference(1); return i0.ɵɵresetView(p_r3.setCurrent(page_r5.value)); })("click", function HmctsPaginationComponent_Conditional_6_Conditional_3_For_1_Conditional_1_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r4); const page_r5 = i0.ɵɵnextContext().$implicit; i0.ɵɵnextContext(3); const p_r3 = i0.ɵɵreference(1); return i0.ɵɵresetView(p_r3.setCurrent(page_r5.value)); });
|
|
7975
|
+
i0.ɵɵelementStart(1, "span", 10);
|
|
7976
|
+
i0.ɵɵtext(2);
|
|
7977
|
+
i0.ɵɵpipe(3, "rpxTranslate");
|
|
7997
7978
|
i0.ɵɵelementEnd();
|
|
7998
|
-
|
|
7999
|
-
|
|
8000
|
-
|
|
8001
|
-
i0.ɵɵelementStart(0, "li", 15)(1, "a", 16);
|
|
8002
|
-
i0.ɵɵpipe(2, "rpxTranslate");
|
|
8003
|
-
i0.ɵɵlistener("click", function HmctsPaginationComponent_Conditional_2_Conditional_3_For_2_Conditional_1_Template_a_click_1_listener($event) { i0.ɵɵrestoreView(_r5); const page_r6 = i0.ɵɵnextContext().$implicit; const ctx_r2 = i0.ɵɵnextContext(3); const p_r4 = i0.ɵɵreference(1); return i0.ɵɵresetView(ctx_r2.onPage($event, p_r4, page_r6.value)); });
|
|
8004
|
-
i0.ɵɵtext(3);
|
|
8005
|
-
i0.ɵɵpipe(4, "number");
|
|
7979
|
+
i0.ɵɵelementStart(4, "span");
|
|
7980
|
+
i0.ɵɵtext(5);
|
|
7981
|
+
i0.ɵɵpipe(6, "number");
|
|
8006
7982
|
i0.ɵɵelementEnd()();
|
|
8007
7983
|
} if (rf & 2) {
|
|
8008
|
-
const
|
|
8009
|
-
i0.ɵɵnextContext(3);
|
|
8010
|
-
const p_r4 = i0.ɵɵreference(1);
|
|
8011
|
-
i0.ɵɵclassProp("govuk-pagination__item--current", p_r4.getCurrent() === page_r6.value);
|
|
8012
|
-
i0.ɵɵadvance();
|
|
8013
|
-
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(2, 5, "Page") + " " + page_r6.value)("aria-current", p_r4.getCurrent() === page_r6.value ? "page" : null);
|
|
7984
|
+
const page_r5 = i0.ɵɵnextContext().$implicit;
|
|
8014
7985
|
i0.ɵɵadvance(2);
|
|
8015
|
-
i0.ɵɵ
|
|
8016
|
-
|
|
8017
|
-
|
|
8018
|
-
i0.ɵɵconditionalCreate(0, HmctsPaginationComponent_Conditional_2_Conditional_3_For_2_Conditional_0_Template, 2, 0, "li", 13)(1, HmctsPaginationComponent_Conditional_2_Conditional_3_For_2_Conditional_1_Template, 5, 10, "li", 14);
|
|
8019
|
-
} if (rf & 2) {
|
|
8020
|
-
const page_r6 = ctx.$implicit;
|
|
8021
|
-
i0.ɵɵconditional(page_r6.label === "..." ? 0 : 1);
|
|
7986
|
+
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 2, "page"), " ");
|
|
7987
|
+
i0.ɵɵadvance(3);
|
|
7988
|
+
i0.ɵɵtextInterpolate(page_r5.label === "..." ? page_r5.label : i0.ɵɵpipeBind2(6, 4, page_r5.label, ""));
|
|
8022
7989
|
} }
|
|
8023
|
-
function
|
|
8024
|
-
i0.ɵɵelementStart(0, "
|
|
8025
|
-
i0.ɵɵ
|
|
7990
|
+
function HmctsPaginationComponent_Conditional_6_Conditional_3_For_1_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
7991
|
+
i0.ɵɵelementStart(0, "span");
|
|
7992
|
+
i0.ɵɵtext(1);
|
|
7993
|
+
i0.ɵɵpipe(2, "number");
|
|
8026
7994
|
i0.ɵɵelementEnd();
|
|
8027
7995
|
} if (rf & 2) {
|
|
8028
|
-
i0.ɵɵnextContext(
|
|
8029
|
-
const p_r4 = i0.ɵɵreference(1);
|
|
7996
|
+
const page_r5 = i0.ɵɵnextContext().$implicit;
|
|
8030
7997
|
i0.ɵɵadvance();
|
|
8031
|
-
i0.ɵɵ
|
|
7998
|
+
i0.ɵɵtextInterpolate(page_r5.label === "..." ? page_r5.label : i0.ɵɵpipeBind2(2, 1, page_r5.label, ""));
|
|
8032
7999
|
} }
|
|
8033
|
-
function
|
|
8034
|
-
i0.ɵɵ
|
|
8035
|
-
i0.ɵɵ
|
|
8036
|
-
i0.ɵɵ
|
|
8000
|
+
function HmctsPaginationComponent_Conditional_6_Conditional_3_For_1_Template(rf, ctx) { if (rf & 1) {
|
|
8001
|
+
i0.ɵɵelementStart(0, "li", 12);
|
|
8002
|
+
i0.ɵɵconditionalCreate(1, HmctsPaginationComponent_Conditional_6_Conditional_3_For_1_Conditional_1_Template, 7, 7, "a", 7);
|
|
8003
|
+
i0.ɵɵconditionalCreate(2, HmctsPaginationComponent_Conditional_6_Conditional_3_For_1_Conditional_2_Template, 3, 4, "span");
|
|
8037
8004
|
i0.ɵɵelementEnd();
|
|
8005
|
+
} if (rf & 2) {
|
|
8006
|
+
const page_r5 = ctx.$implicit;
|
|
8007
|
+
i0.ɵɵnextContext(3);
|
|
8008
|
+
const p_r3 = i0.ɵɵreference(1);
|
|
8009
|
+
i0.ɵɵclassProp("hmcts-pagination__item--active", p_r3.getCurrent() === page_r5.value)("hmcts-pagination__item--dots", page_r5.label === "...");
|
|
8010
|
+
i0.ɵɵadvance();
|
|
8011
|
+
i0.ɵɵconditional(p_r3.getCurrent() !== page_r5.value ? 1 : -1);
|
|
8012
|
+
i0.ɵɵadvance();
|
|
8013
|
+
i0.ɵɵconditional(p_r3.getCurrent() === page_r5.value ? 2 : -1);
|
|
8038
8014
|
} }
|
|
8039
|
-
function
|
|
8040
|
-
i0.ɵɵ
|
|
8041
|
-
|
|
8042
|
-
i0.ɵɵ
|
|
8043
|
-
i0.ɵɵ
|
|
8015
|
+
function HmctsPaginationComponent_Conditional_6_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
8016
|
+
i0.ɵɵrepeaterCreate(0, HmctsPaginationComponent_Conditional_6_Conditional_3_For_1_Template, 3, 6, "li", 11, i0.ɵɵrepeaterTrackByIdentity);
|
|
8017
|
+
} if (rf & 2) {
|
|
8018
|
+
i0.ɵɵnextContext(2);
|
|
8019
|
+
const p_r3 = i0.ɵɵreference(1);
|
|
8020
|
+
i0.ɵɵrepeater(p_r3.pages);
|
|
8044
8021
|
} }
|
|
8045
|
-
function
|
|
8046
|
-
const
|
|
8047
|
-
i0.ɵɵelementStart(0, "
|
|
8048
|
-
i0.ɵɵlistener("
|
|
8049
|
-
i0.ɵɵ
|
|
8050
|
-
i0.ɵɵ
|
|
8022
|
+
function HmctsPaginationComponent_Conditional_6_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
8023
|
+
const _r6 = i0.ɵɵgetCurrentView();
|
|
8024
|
+
i0.ɵɵelementStart(0, "a", 9);
|
|
8025
|
+
i0.ɵɵlistener("keyup.enter", function HmctsPaginationComponent_Conditional_6_Conditional_5_Template_a_keyup_enter_0_listener() { i0.ɵɵrestoreView(_r6); i0.ɵɵnextContext(2); const p_r3 = i0.ɵɵreference(1); return i0.ɵɵresetView(p_r3.next()); })("click", function HmctsPaginationComponent_Conditional_6_Conditional_5_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r6); i0.ɵɵnextContext(2); const p_r3 = i0.ɵɵreference(1); return i0.ɵɵresetView(p_r3.next()); });
|
|
8026
|
+
i0.ɵɵtext(1);
|
|
8027
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
8028
|
+
i0.ɵɵelementStart(3, "span", 10);
|
|
8051
8029
|
i0.ɵɵtext(4);
|
|
8052
8030
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
8053
|
-
i0.ɵɵelementStart(6, "span", 12);
|
|
8054
|
-
i0.ɵɵtext(7);
|
|
8055
|
-
i0.ɵɵpipe(8, "rpxTranslate");
|
|
8056
|
-
i0.ɵɵelementEnd()();
|
|
8057
|
-
i0.ɵɵconditionalCreate(9, HmctsPaginationComponent_Conditional_2_Conditional_4_Conditional_9_Template, 2, 0, ":svg:svg", 18);
|
|
8058
8031
|
i0.ɵɵelementEnd()();
|
|
8059
8032
|
} if (rf & 2) {
|
|
8060
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
8061
|
-
i0.ɵɵadvance(2);
|
|
8062
|
-
i0.ɵɵconditional(!ctx_r2.showPageNumbers ? 2 : -1);
|
|
8063
8033
|
i0.ɵɵadvance();
|
|
8064
|
-
i0.ɵɵ
|
|
8065
|
-
i0.ɵɵadvance();
|
|
8066
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 6, "Next"));
|
|
8034
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 2, "Next"));
|
|
8067
8035
|
i0.ɵɵadvance(3);
|
|
8068
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
8069
|
-
i0.ɵɵadvance(2);
|
|
8070
|
-
i0.ɵɵconditional(ctx_r2.showPageNumbers ? 9 : -1);
|
|
8036
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 4, "page"));
|
|
8071
8037
|
} }
|
|
8072
|
-
function
|
|
8073
|
-
i0.ɵɵelementStart(0, "
|
|
8074
|
-
i0.ɵɵ
|
|
8075
|
-
i0.ɵɵconditionalCreate(2, HmctsPaginationComponent_Conditional_2_Conditional_2_Template, 10, 8, "div", 5);
|
|
8076
|
-
i0.ɵɵconditionalCreate(3, HmctsPaginationComponent_Conditional_2_Conditional_3_Template, 3, 0, "ul", 6);
|
|
8077
|
-
i0.ɵɵconditionalCreate(4, HmctsPaginationComponent_Conditional_2_Conditional_4_Template, 10, 10, "div", 7);
|
|
8038
|
+
function HmctsPaginationComponent_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
8039
|
+
i0.ɵɵelementStart(0, "ul", 4)(1, "li", 6);
|
|
8040
|
+
i0.ɵɵconditionalCreate(2, HmctsPaginationComponent_Conditional_6_Conditional_2_Template, 6, 6, "a", 7);
|
|
8078
8041
|
i0.ɵɵelementEnd();
|
|
8042
|
+
i0.ɵɵconditionalCreate(3, HmctsPaginationComponent_Conditional_6_Conditional_3_Template, 2, 0);
|
|
8043
|
+
i0.ɵɵelementStart(4, "li", 8);
|
|
8044
|
+
i0.ɵɵconditionalCreate(5, HmctsPaginationComponent_Conditional_6_Conditional_5_Template, 6, 6, "a", 7);
|
|
8045
|
+
i0.ɵɵelementEnd()();
|
|
8079
8046
|
} if (rf & 2) {
|
|
8080
|
-
const
|
|
8081
|
-
const
|
|
8082
|
-
i0.ɵɵ
|
|
8083
|
-
i0.ɵɵ
|
|
8084
|
-
i0.ɵɵadvance(
|
|
8085
|
-
i0.ɵɵconditional(
|
|
8047
|
+
const ctx_r6 = i0.ɵɵnextContext();
|
|
8048
|
+
const p_r3 = i0.ɵɵreference(1);
|
|
8049
|
+
i0.ɵɵadvance();
|
|
8050
|
+
i0.ɵɵclassProp("disabled", p_r3.isFirstPage());
|
|
8051
|
+
i0.ɵɵadvance();
|
|
8052
|
+
i0.ɵɵconditional(1 < p_r3.getCurrent() ? 2 : -1);
|
|
8086
8053
|
i0.ɵɵadvance();
|
|
8087
|
-
i0.ɵɵconditional(
|
|
8054
|
+
i0.ɵɵconditional(ctx_r6.showPageNumbers ? 3 : -1);
|
|
8088
8055
|
i0.ɵɵadvance();
|
|
8089
|
-
i0.ɵɵ
|
|
8056
|
+
i0.ɵɵclassProp("disabled", p_r3.isLastPage());
|
|
8057
|
+
i0.ɵɵadvance();
|
|
8058
|
+
i0.ɵɵconditional(!p_r3.isLastPage() ? 5 : -1);
|
|
8090
8059
|
} }
|
|
8091
|
-
function
|
|
8092
|
-
i0.ɵɵelementStart(0, "p",
|
|
8060
|
+
function HmctsPaginationComponent_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
8061
|
+
i0.ɵɵelementStart(0, "p", 5);
|
|
8093
8062
|
i0.ɵɵtext(1);
|
|
8094
8063
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
8095
8064
|
i0.ɵɵelementStart(3, "b");
|
|
@@ -8109,22 +8078,22 @@ function HmctsPaginationComponent_Conditional_3_Template(rf, ctx) { if (rf & 1)
|
|
|
8109
8078
|
i0.ɵɵpipe(14, "rpxTranslate");
|
|
8110
8079
|
i0.ɵɵelementEnd();
|
|
8111
8080
|
} if (rf & 2) {
|
|
8112
|
-
const
|
|
8113
|
-
const
|
|
8081
|
+
const ctx_r6 = i0.ɵɵnextContext();
|
|
8082
|
+
const p_r3 = i0.ɵɵreference(1);
|
|
8114
8083
|
i0.ɵɵadvance();
|
|
8115
|
-
i0.ɵɵtextInterpolate1("
|
|
8084
|
+
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(2, 7, "Showing"), " ");
|
|
8116
8085
|
i0.ɵɵadvance(3);
|
|
8117
|
-
i0.ɵɵtextInterpolate(
|
|
8086
|
+
i0.ɵɵtextInterpolate(p_r3.getCurrent() * ctx_r6.pageSize - ctx_r6.pageSize + 1);
|
|
8118
8087
|
i0.ɵɵadvance();
|
|
8119
8088
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 9, "to"), " ");
|
|
8120
8089
|
i0.ɵɵadvance(3);
|
|
8121
|
-
i0.ɵɵtextInterpolate(
|
|
8090
|
+
i0.ɵɵtextInterpolate(p_r3.getCurrent() * ctx_r6.pageSize > p_r3.getTotalItems() ? p_r3.getTotalItems() : p_r3.getCurrent() * ctx_r6.pageSize);
|
|
8122
8091
|
i0.ɵɵadvance();
|
|
8123
8092
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(10, 11, "of"), " ");
|
|
8124
8093
|
i0.ɵɵadvance(3);
|
|
8125
|
-
i0.ɵɵtextInterpolate(
|
|
8094
|
+
i0.ɵɵtextInterpolate(p_r3.getTotalItems());
|
|
8126
8095
|
i0.ɵɵadvance();
|
|
8127
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(14, 13, "results")
|
|
8096
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(14, 13, "results"));
|
|
8128
8097
|
} }
|
|
8129
8098
|
class HmctsPaginationComponent {
|
|
8130
8099
|
constructor() {
|
|
@@ -8135,46 +8104,32 @@ class HmctsPaginationComponent {
|
|
|
8135
8104
|
this.pageChange = new EventEmitter();
|
|
8136
8105
|
this.pageBoundsCorrection = new EventEmitter();
|
|
8137
8106
|
}
|
|
8138
|
-
onPrevious(event, api) {
|
|
8139
|
-
event.preventDefault();
|
|
8140
|
-
api.previous();
|
|
8141
|
-
}
|
|
8142
|
-
onNext(event, api) {
|
|
8143
|
-
event.preventDefault();
|
|
8144
|
-
api.next();
|
|
8145
|
-
}
|
|
8146
|
-
onPage(event, api, page) {
|
|
8147
|
-
event.preventDefault();
|
|
8148
|
-
if (api.getCurrent() !== page) {
|
|
8149
|
-
api.setCurrent(page);
|
|
8150
|
-
}
|
|
8151
|
-
}
|
|
8152
|
-
firstItemOnPage(api) {
|
|
8153
|
-
return (api.getCurrent() * this.pageSize) - this.pageSize + 1;
|
|
8154
|
-
}
|
|
8155
|
-
lastItemOnPage(api) {
|
|
8156
|
-
return Math.min(api.getCurrent() * this.pageSize, api.getTotalItems());
|
|
8157
|
-
}
|
|
8158
8107
|
static { this.ɵfac = function HmctsPaginationComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || HmctsPaginationComponent)(); }; }
|
|
8159
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HmctsPaginationComponent, selectors: [["xuilib-hmcts-pagination"]], inputs: { id: "id", maxSize: "maxSize", pageSize: "pageSize", showPageNumbers: "showPageNumbers", showResultCount: "showResultCount" }, outputs: { pageChange: "pageChange", pageBoundsCorrection: "pageBoundsCorrection" }, standalone: false, decls:
|
|
8108
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HmctsPaginationComponent, selectors: [["xuilib-hmcts-pagination"]], inputs: { id: "id", maxSize: "maxSize", pageSize: "pageSize", showPageNumbers: "showPageNumbers", showResultCount: "showResultCount" }, outputs: { pageChange: "pageChange", pageBoundsCorrection: "pageBoundsCorrection" }, standalone: false, decls: 8, vars: 7, consts: [["p", "paginationApi"], [3, "pageChange", "pageBoundsCorrection", "id", "maxSize"], ["id", "pagination-label", 1, "hmcts-pagination"], ["aria-labelledby", "pagination-label", 1, "govuk-visually-hidden"], [1, "hmcts-pagination__list"], [1, "hmcts-pagination__results"], [1, "hmcts-pagination__item", "hmcts-pagination__item--prev"], [1, "hmcts-pagination__link", 3, "routerLink"], [1, "hmcts-pagination__item", "hmcts-pagination__item--next"], [1, "hmcts-pagination__link", 3, "keyup.enter", "click", "routerLink"], [1, "govuk-visually-hidden"], [1, "hmcts-pagination__item", 3, "hmcts-pagination__item--active", "hmcts-pagination__item--dots"], [1, "hmcts-pagination__item"]], template: function HmctsPaginationComponent_Template(rf, ctx) { if (rf & 1) {
|
|
8160
8109
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
8161
8110
|
i0.ɵɵelementStart(0, "pagination-template", 1, 0);
|
|
8162
8111
|
i0.ɵɵlistener("pageChange", function HmctsPaginationComponent_Template_pagination_template_pageChange_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.pageChange.emit($event)); })("pageBoundsCorrection", function HmctsPaginationComponent_Template_pagination_template_pageBoundsCorrection_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.pageBoundsCorrection.emit($event)); });
|
|
8163
|
-
i0.ɵɵ
|
|
8164
|
-
i0.ɵɵ
|
|
8112
|
+
i0.ɵɵelementStart(2, "nav", 2)(3, "p", 3);
|
|
8113
|
+
i0.ɵɵtext(4);
|
|
8114
|
+
i0.ɵɵpipe(5, "rpxTranslate");
|
|
8165
8115
|
i0.ɵɵelementEnd();
|
|
8116
|
+
i0.ɵɵconditionalCreate(6, HmctsPaginationComponent_Conditional_6_Template, 6, 7, "ul", 4);
|
|
8117
|
+
i0.ɵɵconditionalCreate(7, HmctsPaginationComponent_Conditional_7_Template, 15, 15, "p", 5);
|
|
8118
|
+
i0.ɵɵelementEnd()();
|
|
8166
8119
|
} if (rf & 2) {
|
|
8167
|
-
const
|
|
8120
|
+
const p_r3 = i0.ɵɵreference(1);
|
|
8168
8121
|
i0.ɵɵproperty("id", ctx.id)("maxSize", ctx.maxSize);
|
|
8122
|
+
i0.ɵɵadvance(4);
|
|
8123
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 5, "Pagination navigation"));
|
|
8169
8124
|
i0.ɵɵadvance(2);
|
|
8170
|
-
i0.ɵɵconditional(
|
|
8125
|
+
i0.ɵɵconditional(!(p_r3.pages.length <= 1) ? 6 : -1);
|
|
8171
8126
|
i0.ɵɵadvance();
|
|
8172
|
-
i0.ɵɵconditional(ctx.showResultCount ?
|
|
8173
|
-
} }, dependencies: [i1$
|
|
8127
|
+
i0.ɵɵconditional(ctx.showResultCount ? 7 : -1);
|
|
8128
|
+
} }, 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"] }); }
|
|
8174
8129
|
}
|
|
8175
8130
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HmctsPaginationComponent, [{
|
|
8176
8131
|
type: Component,
|
|
8177
|
-
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 @if (p.pages.length > 1) {\n <nav class=\"govuk-pagination\" [class.govuk-pagination--block]=\"!showPageNumbers\"\n [attr.aria-label]=\"'Pagination' | rpxTranslate\">\n @if (!p.isFirstPage()) {\n <div class=\"govuk-pagination__prev\">\n <a href=\"#\" class=\"govuk-link govuk-pagination__link\" rel=\"prev\" (click)=\"onPrevious($event, p)\">\n <svg class=\"govuk-pagination__icon govuk-pagination__icon--prev\" xmlns=\"http://www.w3.org/2000/svg\" height=\"13\" width=\"15\" aria-hidden=\"true\" focusable=\"false\" viewBox=\"0 0 15 13\">\n <path d=\"m6.5938-0.0078125-6.7266 6.7266 6.7441 6.4062 1.377-1.449-4.1856-3.9768h12.896v-2h-12.984l4.2931-4.293-1.414-1.414z\"></path>\n </svg>\n <span class=\"govuk-pagination__link-title\" [class.govuk-pagination__link-title--decorated]=\"!showPageNumbers\">{{'Previous' | rpxTranslate}}<span class=\"govuk-visually-hidden\"> {{'page' | rpxTranslate}}</span></span>\n </a>\n </div>\n }\n\n @if (showPageNumbers) {\n <ul class=\"govuk-pagination__list\">\n @for (page of p.pages; track $index) {\n @if (page.label === '...') {\n <li class=\"govuk-pagination__item govuk-pagination__item--ellipsis\">⋯</li>\n } @else {\n <li class=\"govuk-pagination__item\" [class.govuk-pagination__item--current]=\"p.getCurrent() === page.value\">\n <a href=\"#\" class=\"govuk-link govuk-pagination__link\"\n [attr.aria-label]=\"('Page' | rpxTranslate) + ' ' + page.value\"\n [attr.aria-current]=\"p.getCurrent() === page.value ? 'page' : null\"\n (click)=\"onPage($event, p, page.value)\">{{ page.label | number:'' }}</a>\n </li>\n }\n }\n </ul>\n }\n\n @if (!p.isLastPage()) {\n <div class=\"govuk-pagination__next\">\n <a href=\"#\" class=\"govuk-link govuk-pagination__link\" rel=\"next\" (click)=\"onNext($event, p)\">\n @if (!showPageNumbers) {\n <svg class=\"govuk-pagination__icon govuk-pagination__icon--next\" xmlns=\"http://www.w3.org/2000/svg\" height=\"13\" width=\"15\" aria-hidden=\"true\" focusable=\"false\" viewBox=\"0 0 15 13\">\n <path d=\"m8.107-0.0078125-1.4136 1.414 4.2926 4.293h-12.986v2h12.896l-4.1855 3.9766 1.377 1.4492 6.7441-6.4062-6.7246-6.7266z\"></path>\n </svg>\n }\n <span class=\"govuk-pagination__link-title\" [class.govuk-pagination__link-title--decorated]=\"!showPageNumbers\">{{'Next' | rpxTranslate}}<span class=\"govuk-visually-hidden\"> {{'page' | rpxTranslate}}</span></span>\n @if (showPageNumbers) {\n <svg class=\"govuk-pagination__icon govuk-pagination__icon--next\" xmlns=\"http://www.w3.org/2000/svg\" height=\"13\" width=\"15\" aria-hidden=\"true\" focusable=\"false\" viewBox=\"0 0 15 13\">\n <path d=\"m8.107-0.0078125-1.4136 1.414 4.2926 4.293h-12.986v2h12.896l-4.1855 3.9766 1.377 1.4492 6.7441-6.4062-6.7246-6.7266z\"></path>\n </svg>\n }\n </a>\n </div>\n }\n </nav>\n }\n\n @if (showResultCount) {\n <p class=\"xuilib-pagination__results\" data-pagination-results>\n {{'Showing' | rpxTranslate}} <b>{{ firstItemOnPage(p) }}</b>\n {{'to' | rpxTranslate}} <b>{{ lastItemOnPage(p) }}</b>\n {{'of' | rpxTranslate}} <b>{{ p.getTotalItems() }}</b> {{'results' | rpxTranslate}}\n </p>\n }\n\n</pagination-template>\n", styles: [":root{--govuk-breakpoint-mobile: 20rem;--govuk-breakpoint-tablet: 40.0625rem;--govuk-breakpoint-desktop: 48.0625rem}:root{--govuk-frontend-version: \"6.4.0\"}:root{--govuk-brand-colour: #1d70b8;--govuk-text-colour: #0b0c0c;--govuk-inverse-text-colour: #ffffff;--govuk-template-background-colour: #f4f8fb;--govuk-body-background-colour: #ffffff;--govuk-print-text-colour: #000000;--govuk-secondary-text-colour: #484949;--govuk-focus-colour: #ffdd00;--govuk-focus-text-colour: #0b0c0c;--govuk-error-colour: #ca3535;--govuk-success-colour: #0f7a52;--govuk-border-colour: #cecece;--govuk-input-border-colour: #0b0c0c;--govuk-hover-colour: #cecece;--govuk-link-colour: #1a65a6;--govuk-link-visited-colour: #54319f;--govuk-link-hover-colour: #0f385c;--govuk-link-active-colour: #0b0c0c;--govuk-surface-background-colour: #f4f8fb;--govuk-surface-text-colour: #0b0c0c;--govuk-surface-border-colour: #8eb8dc}@media print{:root{--govuk-text-colour: var(--govuk-print-text-colour, #000000)}}.govuk-pagination{margin-bottom:20px}@media (min-width: 40.0625em){.govuk-pagination{margin-bottom:30px}}.govuk-pagination{display:flex;flex-direction:column;flex-wrap:wrap;align-items:center}@media (min-width: 40.0625em){.govuk-pagination{flex-direction:row;align-items:flex-start}}.govuk-pagination__list{margin:0;padding:0;list-style:none}.govuk-pagination__item,.govuk-pagination__next,.govuk-pagination__prev{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;font-display:fallback;src:url(/assets/fonts/light-94a07e06a1-v2.woff2) format(\"woff2\"),url(/assets/fonts/light-f591b13f7d-v2.woff) format(\"woff\")}@font-face{font-family:GDS Transport;font-style:normal;font-weight:700;font-display:fallback;src:url(/assets/fonts/bold-b542beb274-v2.woff2) format(\"woff2\"),url(/assets/fonts/bold-affa96571d-v2.woff) format(\"woff\")}@media print{.govuk-pagination__item,.govuk-pagination__next,.govuk-pagination__prev{font-family:sans-serif}}.govuk-pagination__item,.govuk-pagination__next,.govuk-pagination__prev{font-weight:400;font-size:1.1875rem;line-height:1.3157894737}@media print{.govuk-pagination__item,.govuk-pagination__next,.govuk-pagination__prev{font-size:14pt;line-height:1.15}}.govuk-pagination__item,.govuk-pagination__next,.govuk-pagination__prev{box-sizing:border-box;position:relative;min-width:45px;min-height:45px;padding:10px 15px;float:left}.govuk-pagination__item:hover,.govuk-pagination__next:hover,.govuk-pagination__prev:hover{background-color:#f3f3f3}.govuk-pagination__item{display:none;text-align:center}@media (min-width: 40.0625em){.govuk-pagination__item{display:block}}.govuk-pagination__prev,.govuk-pagination__next{font-weight:700}.govuk-pagination__prev .govuk-pagination__link,.govuk-pagination__next .govuk-pagination__link{display:flex;align-items:center}.govuk-pagination__prev{padding-left:0}.govuk-pagination__next{padding-right:0}.govuk-pagination__item--current,.govuk-pagination__item--ellipsis,.govuk-pagination__item:first-child,.govuk-pagination__item:last-child{display:block}.govuk-pagination__item--current{font-weight:700;outline:1px solid transparent;background-color:var(--govuk-link-colour, #1a65a6)}.govuk-pagination__item--current:hover{background-color:var(--govuk-link-colour, #1a65a6)}.govuk-pagination__item--current .govuk-pagination__link:link,.govuk-pagination__item--current .govuk-pagination__link:visited{color:var(--govuk-inverse-text-colour, #ffffff)}.govuk-pagination__item--current .govuk-pagination__link:focus{color:var(--govuk-focus-text-colour, #0b0c0c)}.govuk-pagination__item--ellipsis{font-weight:700;color:var(--govuk-secondary-text-colour, #484949)}.govuk-pagination__item--ellipsis:hover{background-color:transparent}.govuk-pagination__link{display:block;min-width:15px}@media screen{.govuk-pagination__link:after{content:\"\";position:absolute;inset:0}}.govuk-pagination__link:hover .govuk-pagination__link-title--decorated,.govuk-pagination__link:active .govuk-pagination__link-title--decorated{text-decoration:underline;text-decoration-thickness:max(1px,.0625rem);text-underline-offset:.1578em}.govuk-pagination__link:hover .govuk-pagination__link-label,.govuk-pagination__link:hover .govuk-pagination__link-title--decorated,.govuk-pagination__link:active .govuk-pagination__link-label,.govuk-pagination__link:active .govuk-pagination__link-title--decorated{text-decoration-thickness:max(3px,.1875rem,.12em);-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none;-webkit-text-decoration-skip:none;text-decoration-skip:none}.govuk-pagination__link:focus .govuk-pagination__icon{color:var(--govuk-focus-text-colour, #0b0c0c)}.govuk-pagination__link:focus .govuk-pagination__link-label{text-decoration:none}.govuk-pagination__link:focus .govuk-pagination__link-title--decorated{text-decoration:none}.govuk-pagination__link-title{text-decoration-thickness:inherit}.govuk-pagination__link-label{font-weight:400;text-decoration:underline;text-decoration-thickness:max(1px,.0625rem);text-underline-offset:.1578em;display:inline-block}.govuk-pagination__icon{width:.9375rem;height:.8125rem;color:var(--govuk-secondary-text-colour, #484949);fill:currentcolor;forced-color-adjust:auto}.govuk-pagination__icon--prev{margin-right:15px}.govuk-pagination__icon--next{margin-left:15px}.govuk-pagination--block{display:block}.govuk-pagination--block .govuk-pagination__next,.govuk-pagination--block .govuk-pagination__prev{padding-left:0;float:none}.govuk-pagination--block .govuk-pagination__next .govuk-pagination__link,.govuk-pagination--block .govuk-pagination__prev .govuk-pagination__link{display:inline-block}.govuk-pagination--block .govuk-pagination__next{padding-right:15px}.govuk-pagination--block .govuk-pagination__prev+.govuk-pagination__next{border-top:1px solid;border-top-color:var(--govuk-border-colour, #cecece)}.govuk-pagination--block .govuk-pagination__link-title:after{content:\"\";display:block}.govuk-pagination--block .govuk-pagination__link{padding-left:30px;text-align:left}.govuk-pagination--block .govuk-pagination__link:not(:focus){text-decoration:none}.govuk-pagination--block .govuk-pagination__icon{margin-top:.326em;margin-left:-30px;float:left}.xuilib-pagination__results{font-family:GDS Transport,arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media print{.xuilib-pagination__results{font-family:sans-serif}}.xuilib-pagination__results{font-weight:400;font-size:1.1875rem;line-height:1.3157894737}@media print{.xuilib-pagination__results{font-size:14pt;line-height:1.15}}.xuilib-pagination__results{color:var(--govuk-text-colour, #0b0c0c);margin-top:0;margin-bottom:20px}\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"] }]
|
|
8132
|
+
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"] }]
|
|
8178
8133
|
}], null, { id: [{
|
|
8179
8134
|
type: Input
|
|
8180
8135
|
}], maxSize: [{
|
|
@@ -8190,7 +8145,7 @@ class HmctsPaginationComponent {
|
|
|
8190
8145
|
}], pageBoundsCorrection: [{
|
|
8191
8146
|
type: Output
|
|
8192
8147
|
}] }); })();
|
|
8193
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(HmctsPaginationComponent, { className: "HmctsPaginationComponent", filePath: "lib/gov-ui/components/hmcts-pagination/hmcts-pagination.component.ts", lineNumber:
|
|
8148
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(HmctsPaginationComponent, { className: "HmctsPaginationComponent", filePath: "lib/gov-ui/components/hmcts-pagination/hmcts-pagination.component.ts", lineNumber: 9 }); })();
|
|
8194
8149
|
|
|
8195
8150
|
const _c0$b = (a0, a1, a2) => ({ itemsPerPage: a0, currentPage: a1, totalItems: a2 });
|
|
8196
8151
|
function UserListComponent_For_14_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -8234,7 +8189,7 @@ class UserListComponent {
|
|
|
8234
8189
|
this.pageChange.emit(pageNumber);
|
|
8235
8190
|
}
|
|
8236
8191
|
static { this.ɵfac = function UserListComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || UserListComponent)(); }; }
|
|
8237
|
-
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"], [
|
|
8192
|
+
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) {
|
|
8238
8193
|
i0.ɵɵelementStart(0, "table", 0)(1, "thead", 1)(2, "tr", 2)(3, "th", 3);
|
|
8239
8194
|
i0.ɵɵtext(4);
|
|
8240
8195
|
i0.ɵɵpipe(5, "rpxTranslate");
|
|
@@ -8265,11 +8220,11 @@ class UserListComponent {
|
|
|
8265
8220
|
i0.ɵɵrepeater(i0.ɵɵpipeBind2(15, 10, ctx.users, i0.ɵɵpureFunction3(13, _c0$b, ctx.pagination.itemsPerPage, ctx.currentPageNumber, ctx.pagination.totalItems)));
|
|
8266
8221
|
i0.ɵɵadvance(3);
|
|
8267
8222
|
i0.ɵɵproperty("pageSize", ctx.pagination.itemsPerPage);
|
|
8268
|
-
} }, dependencies: [i1$1.RouterLink, HmctsPaginationComponent,
|
|
8223
|
+
} }, dependencies: [i1$1.RouterLink, HmctsPaginationComponent, i2$4.PaginatePipe, i2.RpxTranslatePipe], styles: ["[_nghost-%COMP%]{display:block}"] }); }
|
|
8269
8224
|
}
|
|
8270
8225
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UserListComponent, [{
|
|
8271
8226
|
type: Component,
|
|
8272
|
-
args: [{ selector: 'xuilib-user-list', standalone: false, template: "<table class=\"govuk-table\">\n <thead
|
|
8227
|
+
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"] }]
|
|
8273
8228
|
}], null, { users: [{
|
|
8274
8229
|
type: Input
|
|
8275
8230
|
}], currentPageNumber: [{
|
|
@@ -8426,49 +8381,45 @@ class CookieBannerComponent {
|
|
|
8426
8381
|
}] }); })();
|
|
8427
8382
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CookieBannerComponent, { className: "CookieBannerComponent", filePath: "lib/components/cookie-banner/cookie-banner.component.ts", lineNumber: 11 }); })();
|
|
8428
8383
|
|
|
8429
|
-
function
|
|
8384
|
+
function PaginationComponent_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
8430
8385
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
8431
|
-
i0.ɵɵelementStart(0, "
|
|
8432
|
-
i0.ɵɵlistener("click", function
|
|
8433
|
-
i0.ɵɵ
|
|
8434
|
-
i0.ɵɵ
|
|
8435
|
-
i0.ɵɵelement(3, "path", 5);
|
|
8386
|
+
i0.ɵɵelementStart(0, "a", 7);
|
|
8387
|
+
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()); });
|
|
8388
|
+
i0.ɵɵtext(1);
|
|
8389
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
8436
8390
|
i0.ɵɵelementEnd();
|
|
8437
|
-
i0.ɵɵnamespaceHTML();
|
|
8438
|
-
i0.ɵɵelementStart(4, "span", 6);
|
|
8439
|
-
i0.ɵɵtext(5);
|
|
8440
|
-
i0.ɵɵpipe(6, "rpxTranslate");
|
|
8441
|
-
i0.ɵɵelementStart(7, "span", 7);
|
|
8442
|
-
i0.ɵɵtext(8);
|
|
8443
|
-
i0.ɵɵpipe(9, "rpxTranslate");
|
|
8444
|
-
i0.ɵɵelementEnd()()()();
|
|
8445
8391
|
} if (rf & 2) {
|
|
8446
|
-
i0.ɵɵadvance(
|
|
8447
|
-
i0.ɵɵ
|
|
8448
|
-
i0.ɵɵadvance(3);
|
|
8449
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 4, "page"));
|
|
8392
|
+
i0.ɵɵadvance();
|
|
8393
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, "Previous page"), " ");
|
|
8450
8394
|
} }
|
|
8451
|
-
function
|
|
8395
|
+
function PaginationComponent_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
8396
|
+
i0.ɵɵelementStart(0, "span", 5);
|
|
8397
|
+
i0.ɵɵtext(1);
|
|
8398
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
8399
|
+
i0.ɵɵelementEnd();
|
|
8400
|
+
} if (rf & 2) {
|
|
8401
|
+
i0.ɵɵadvance();
|
|
8402
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "Previous page"));
|
|
8403
|
+
} }
|
|
8404
|
+
function PaginationComponent_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
8452
8405
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
8453
|
-
i0.ɵɵelementStart(0, "
|
|
8454
|
-
i0.ɵɵlistener("click", function
|
|
8455
|
-
i0.ɵɵ
|
|
8456
|
-
i0.ɵɵ
|
|
8457
|
-
i0.ɵɵelement(3, "path", 10);
|
|
8406
|
+
i0.ɵɵelementStart(0, "a", 7);
|
|
8407
|
+
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()); });
|
|
8408
|
+
i0.ɵɵtext(1);
|
|
8409
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
8458
8410
|
i0.ɵɵelementEnd();
|
|
8459
|
-
i0.ɵɵnamespaceHTML();
|
|
8460
|
-
i0.ɵɵelementStart(4, "span", 6);
|
|
8461
|
-
i0.ɵɵtext(5);
|
|
8462
|
-
i0.ɵɵpipe(6, "rpxTranslate");
|
|
8463
|
-
i0.ɵɵelementStart(7, "span", 7);
|
|
8464
|
-
i0.ɵɵtext(8);
|
|
8465
|
-
i0.ɵɵpipe(9, "rpxTranslate");
|
|
8466
|
-
i0.ɵɵelementEnd()()()();
|
|
8467
8411
|
} if (rf & 2) {
|
|
8468
|
-
i0.ɵɵadvance(
|
|
8469
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
8470
|
-
|
|
8471
|
-
|
|
8412
|
+
i0.ɵɵadvance();
|
|
8413
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "Next page"));
|
|
8414
|
+
} }
|
|
8415
|
+
function PaginationComponent_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
8416
|
+
i0.ɵɵelementStart(0, "span", 5);
|
|
8417
|
+
i0.ɵɵtext(1);
|
|
8418
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
8419
|
+
i0.ɵɵelementEnd();
|
|
8420
|
+
} if (rf & 2) {
|
|
8421
|
+
i0.ɵɵadvance();
|
|
8422
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "Next page"));
|
|
8472
8423
|
} }
|
|
8473
8424
|
class PaginationComponent {
|
|
8474
8425
|
constructor() {
|
|
@@ -8482,23 +8433,29 @@ class PaginationComponent {
|
|
|
8482
8433
|
this.nextPage.emit(null);
|
|
8483
8434
|
}
|
|
8484
8435
|
static { this.ɵfac = function PaginationComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PaginationComponent)(); }; }
|
|
8485
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PaginationComponent, selectors: [["xuilib-pagination"]], inputs: { moreItems: "moreItems", firstRecord: "firstRecord" }, outputs: { previousPage: "previousPage", nextPage: "nextPage" }, standalone: false, decls:
|
|
8486
|
-
i0.ɵɵelementStart(0, "nav", 0);
|
|
8487
|
-
i0.ɵɵ
|
|
8488
|
-
i0.ɵɵ
|
|
8489
|
-
i0.ɵɵconditionalCreate(3, PaginationComponent_Conditional_3_Template, 10, 6, "div", 2);
|
|
8436
|
+
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) {
|
|
8437
|
+
i0.ɵɵelementStart(0, "nav", 0)(1, "p", 1);
|
|
8438
|
+
i0.ɵɵtext(2);
|
|
8439
|
+
i0.ɵɵpipe(3, "rpxTranslate");
|
|
8490
8440
|
i0.ɵɵelementEnd();
|
|
8441
|
+
i0.ɵɵelementStart(4, "ul", 2)(5, "li", 3);
|
|
8442
|
+
i0.ɵɵconditionalCreate(6, PaginationComponent_Conditional_6_Template, 3, 3, "a", 4)(7, PaginationComponent_Conditional_7_Template, 3, 3, "span", 5);
|
|
8443
|
+
i0.ɵɵelementEnd();
|
|
8444
|
+
i0.ɵɵelementStart(8, "li", 6);
|
|
8445
|
+
i0.ɵɵconditionalCreate(9, PaginationComponent_Conditional_9_Template, 3, 3, "a", 4)(10, PaginationComponent_Conditional_10_Template, 3, 3, "span", 5);
|
|
8446
|
+
i0.ɵɵelementEnd()()();
|
|
8491
8447
|
} if (rf & 2) {
|
|
8492
|
-
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(1, 3, "Pagination"));
|
|
8493
8448
|
i0.ɵɵadvance(2);
|
|
8494
|
-
i0.ɵɵ
|
|
8495
|
-
i0.ɵɵadvance();
|
|
8496
|
-
i0.ɵɵconditional(ctx.
|
|
8497
|
-
|
|
8449
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 3, "Pagination navigation"));
|
|
8450
|
+
i0.ɵɵadvance(4);
|
|
8451
|
+
i0.ɵɵconditional(ctx.firstRecord > 1 ? 6 : 7);
|
|
8452
|
+
i0.ɵɵadvance(3);
|
|
8453
|
+
i0.ɵɵconditional(ctx.moreItems ? 9 : 10);
|
|
8454
|
+
} }, dependencies: [i2.RpxTranslatePipe], styles: ["span.hmcts-pagination__link[_ngcontent-%COMP%]:hover{color:revert}"] }); }
|
|
8498
8455
|
}
|
|
8499
8456
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginationComponent, [{
|
|
8500
8457
|
type: Component,
|
|
8501
|
-
args: [{ selector: 'xuilib-pagination', standalone: false, template: "<nav class=\"
|
|
8458
|
+
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"] }]
|
|
8502
8459
|
}], () => [], { moreItems: [{
|
|
8503
8460
|
type: Input
|
|
8504
8461
|
}], firstRecord: [{
|
|
@@ -9121,7 +9078,7 @@ function WriteAddressFieldComponent_Conditional_2_Conditional_8_Template(rf, ctx
|
|
|
9121
9078
|
i0.ɵɵadvance(3);
|
|
9122
9079
|
i0.ɵɵtextInterpolate1("", ctx_r0.postcodeErrorMessage, " ");
|
|
9123
9080
|
} }
|
|
9124
|
-
function
|
|
9081
|
+
function WriteAddressFieldComponent_Conditional_2_Conditional_13_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
9125
9082
|
i0.ɵɵelementStart(0, "p", 1)(1, "span", 4);
|
|
9126
9083
|
i0.ɵɵtext(2, "Error:");
|
|
9127
9084
|
i0.ɵɵelementEnd();
|
|
@@ -9132,8 +9089,8 @@ function WriteAddressFieldComponent_Conditional_2_Conditional_13_Conditional_4_T
|
|
|
9132
9089
|
i0.ɵɵadvance(3);
|
|
9133
9090
|
i0.ɵɵtextInterpolate1("", ctx_r0.selectErrorMessage, " ");
|
|
9134
9091
|
} }
|
|
9135
|
-
function
|
|
9136
|
-
i0.ɵɵelementStart(0, "option",
|
|
9092
|
+
function WriteAddressFieldComponent_Conditional_2_Conditional_13_For_8_Template(rf, ctx) { if (rf & 1) {
|
|
9093
|
+
i0.ɵɵelementStart(0, "option", 18);
|
|
9137
9094
|
i0.ɵɵtext(1);
|
|
9138
9095
|
i0.ɵɵelementEnd();
|
|
9139
9096
|
} if (rf & 2) {
|
|
@@ -9144,26 +9101,26 @@ function WriteAddressFieldComponent_Conditional_2_Conditional_13_For_7_Template(
|
|
|
9144
9101
|
} }
|
|
9145
9102
|
function WriteAddressFieldComponent_Conditional_2_Conditional_13_Template(rf, ctx) { if (rf & 1) {
|
|
9146
9103
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
9147
|
-
i0.ɵɵelementStart(0, "div", 12)(1, "div", 14)(2, "label", 15);
|
|
9148
|
-
i0.ɵɵtext(
|
|
9149
|
-
i0.ɵɵelementEnd();
|
|
9150
|
-
i0.ɵɵconditionalCreate(
|
|
9151
|
-
i0.ɵɵelementStart(
|
|
9152
|
-
i0.ɵɵlistener("change", function
|
|
9153
|
-
i0.ɵɵrepeaterCreate(
|
|
9104
|
+
i0.ɵɵelementStart(0, "div", 12)(1, "div", 14)(2, "label", 15)(3, "span", 16);
|
|
9105
|
+
i0.ɵɵtext(4, "Select an address");
|
|
9106
|
+
i0.ɵɵelementEnd()();
|
|
9107
|
+
i0.ɵɵconditionalCreate(5, WriteAddressFieldComponent_Conditional_2_Conditional_13_Conditional_5_Template, 4, 1, "p", 1);
|
|
9108
|
+
i0.ɵɵelementStart(6, "select", 17);
|
|
9109
|
+
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()); });
|
|
9110
|
+
i0.ɵɵrepeaterCreate(7, WriteAddressFieldComponent_Conditional_2_Conditional_13_For_8_Template, 2, 2, "option", 18, i0.ɵɵrepeaterTrackByIdentity);
|
|
9154
9111
|
i0.ɵɵelementEnd()()();
|
|
9155
9112
|
} if (rf & 2) {
|
|
9156
9113
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
9157
9114
|
i0.ɵɵadvance();
|
|
9158
9115
|
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c0$6, ctx_r0.postcodeErrorPresent(false)));
|
|
9159
|
-
i0.ɵɵadvance(
|
|
9160
|
-
i0.ɵɵconditional(ctx_r0.postcodeErrorPresent(false) ?
|
|
9116
|
+
i0.ɵɵadvance(4);
|
|
9117
|
+
i0.ɵɵconditional(ctx_r0.postcodeErrorPresent(false) ? 5 : -1);
|
|
9161
9118
|
i0.ɵɵadvance(2);
|
|
9162
9119
|
i0.ɵɵrepeater(ctx_r0.addressOptions);
|
|
9163
9120
|
} }
|
|
9164
9121
|
function WriteAddressFieldComponent_Conditional_2_Conditional_14_Template(rf, ctx) { if (rf & 1) {
|
|
9165
9122
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
9166
|
-
i0.ɵɵelementStart(0, "a",
|
|
9123
|
+
i0.ɵɵelementStart(0, "a", 19);
|
|
9167
9124
|
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()); });
|
|
9168
9125
|
i0.ɵɵtext(1, "I can't enter a UK postcode");
|
|
9169
9126
|
i0.ɵɵelementEnd();
|
|
@@ -9183,7 +9140,7 @@ function WriteAddressFieldComponent_Conditional_2_Template(rf, ctx) { if (rf & 1
|
|
|
9183
9140
|
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()); });
|
|
9184
9141
|
i0.ɵɵtext(12, "Find address");
|
|
9185
9142
|
i0.ɵɵelementEnd()()();
|
|
9186
|
-
i0.ɵɵconditionalCreate(13, WriteAddressFieldComponent_Conditional_2_Conditional_13_Template,
|
|
9143
|
+
i0.ɵɵconditionalCreate(13, WriteAddressFieldComponent_Conditional_2_Conditional_13_Template, 9, 4, "div", 12);
|
|
9187
9144
|
i0.ɵɵconditionalCreate(14, WriteAddressFieldComponent_Conditional_2_Conditional_14_Template, 2, 0, "a", 13);
|
|
9188
9145
|
i0.ɵɵelementEnd();
|
|
9189
9146
|
} if (rf & 2) {
|
|
@@ -9207,19 +9164,19 @@ function WriteAddressFieldComponent_Conditional_3_Conditional_10_Template(rf, ct
|
|
|
9207
9164
|
} }
|
|
9208
9165
|
function WriteAddressFieldComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
9209
9166
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
9210
|
-
i0.ɵɵelementStart(0, "div", 2)(1, "div",
|
|
9167
|
+
i0.ɵɵelementStart(0, "div", 2)(1, "div", 20)(2, "input", 21);
|
|
9211
9168
|
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)); });
|
|
9212
9169
|
i0.ɵɵelementEnd();
|
|
9213
|
-
i0.ɵɵelementStart(3, "label",
|
|
9170
|
+
i0.ɵɵelementStart(3, "label", 22);
|
|
9214
9171
|
i0.ɵɵtext(4, " Yes ");
|
|
9215
9172
|
i0.ɵɵelementEnd()();
|
|
9216
|
-
i0.ɵɵelementStart(5, "div",
|
|
9173
|
+
i0.ɵɵelementStart(5, "div", 20)(6, "input", 23);
|
|
9217
9174
|
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)); });
|
|
9218
9175
|
i0.ɵɵelementEnd();
|
|
9219
|
-
i0.ɵɵelementStart(7, "label",
|
|
9176
|
+
i0.ɵɵelementStart(7, "label", 24);
|
|
9220
9177
|
i0.ɵɵtext(8, " No ");
|
|
9221
9178
|
i0.ɵɵelementEnd()();
|
|
9222
|
-
i0.ɵɵelementStart(9, "div",
|
|
9179
|
+
i0.ɵɵelementStart(9, "div", 25);
|
|
9223
9180
|
i0.ɵɵconditionalCreate(10, WriteAddressFieldComponent_Conditional_3_Conditional_10_Template, 1, 3, "xuilib-write-address-inputs", 3);
|
|
9224
9181
|
i0.ɵɵelementEnd()();
|
|
9225
9182
|
} if (rf & 2) {
|
|
@@ -9386,7 +9343,7 @@ class WriteAddressFieldComponent {
|
|
|
9386
9343
|
this.addressFormGroup.get('postcode').patchValue(postcodeNeeded ? this.formGroup.get('address').get('postCode').value : '');
|
|
9387
9344
|
}
|
|
9388
9345
|
static { this.ɵfac = function WriteAddressFieldComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WriteAddressFieldComponent)(i0.ɵɵdirectiveInject(AddressService)); }; }
|
|
9389
|
-
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) {
|
|
9346
|
+
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) {
|
|
9390
9347
|
i0.ɵɵelementStart(0, "div", 0);
|
|
9391
9348
|
i0.ɵɵconditionalCreate(1, WriteAddressFieldComponent_Conditional_1_Template, 4, 1, "p", 1);
|
|
9392
9349
|
i0.ɵɵconditionalCreate(2, WriteAddressFieldComponent_Conditional_2_Template, 15, 9, "div");
|
|
@@ -9407,7 +9364,7 @@ class WriteAddressFieldComponent {
|
|
|
9407
9364
|
}
|
|
9408
9365
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteAddressFieldComponent, [{
|
|
9409
9366
|
type: Component,
|
|
9410
|
-
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
|
|
9367
|
+
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"] }]
|
|
9411
9368
|
}], () => [{ type: AddressService }], { formGroup: [{
|
|
9412
9369
|
type: Input
|
|
9413
9370
|
}], internationalMode: [{
|
|
@@ -9634,12 +9591,12 @@ const _c0$4 = a0 => ({ "govuk-form-group--error": a0 });
|
|
|
9634
9591
|
const _c1$2 = (a0, a1, a2, a3, a4) => ({ legend: a0, classes: a1, id: a2, hint: a3, isPageHeading: a4 });
|
|
9635
9592
|
const _c2 = (a0, a1, a2) => ({ label: a0, name: a1, id: a2, classes: "govuk-date-input__label" });
|
|
9636
9593
|
const _c3 = a0 => ({ "govuk-input--error": a0 });
|
|
9637
|
-
const _c4 =
|
|
9594
|
+
const _c4 = () => ({ id: "passport" });
|
|
9638
9595
|
function GovUkDateComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
9639
9596
|
i0.ɵɵelement(0, "xuilib-gov-uk-error-message", 2);
|
|
9640
9597
|
} if (rf & 2) {
|
|
9641
9598
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
9642
|
-
i0.ɵɵproperty("config", i0.ɵɵ
|
|
9599
|
+
i0.ɵɵproperty("config", i0.ɵɵpureFunction0(2, _c4))("errorMessage", ctx_r0.errorMessage);
|
|
9643
9600
|
} }
|
|
9644
9601
|
/*
|
|
9645
9602
|
* Gov UK Date Component
|
|
@@ -9700,9 +9657,9 @@ class GovUkDateComponent {
|
|
|
9700
9657
|
};
|
|
9701
9658
|
}
|
|
9702
9659
|
static { this.ɵfac = function GovUkDateComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || GovUkDateComponent)(); }; }
|
|
9703
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: GovUkDateComponent, selectors: [["xuilib-gov-uk-date"]], inputs: { config: "config", errorMessage: "errorMessage", formGroup: "formGroup", isOptional: "isOptional" }, standalone: false, decls: 20, vars:
|
|
9660
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: GovUkDateComponent, selectors: [["xuilib-gov-uk-date"]], inputs: { config: "config", errorMessage: "errorMessage", formGroup: "formGroup", isOptional: "isOptional" }, standalone: false, decls: 20, vars: 53, consts: [[1, "govuk-form-group", 3, "ngClass", "formGroup"], [1, "date-input-container"], [3, "config", "errorMessage"], [1, "govuk-date-input", 3, "id"], [1, "govuk-date-input__item"], [1, "govuk-form-group"], [3, "config"], ["type", "text", "value", "", "pattern", "\\d*", "maxlength", "2", 1, "govuk-input", "govuk-date-input__input", "govuk-input--width-2", 3, "ngClass", "id", "name", "formControlName"], ["type", "text", "value", "", "pattern", "\\d*", "maxlength", "4", 1, "govuk-input", "govuk-date-input__input", "govuk-input--width-4", 3, "ngClass", "id", "name", "formControlName"]], template: function GovUkDateComponent_Template(rf, ctx) { if (rf & 1) {
|
|
9704
9661
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "xuilib-gov-uk-fieldset", 2);
|
|
9705
|
-
i0.ɵɵconditionalCreate(3, GovUkDateComponent_Conditional_3_Template, 1,
|
|
9662
|
+
i0.ɵɵconditionalCreate(3, GovUkDateComponent_Conditional_3_Template, 1, 3, "xuilib-gov-uk-error-message", 2);
|
|
9706
9663
|
i0.ɵɵelementStart(4, "div", 3)(5, "div", 4)(6, "div", 5);
|
|
9707
9664
|
i0.ɵɵelement(7, "xuilib-gov-label", 6);
|
|
9708
9665
|
i0.ɵɵpipe(8, "rpxTranslate");
|
|
@@ -9719,33 +9676,30 @@ class GovUkDateComponent {
|
|
|
9719
9676
|
i0.ɵɵelement(19, "input", 8);
|
|
9720
9677
|
i0.ɵɵelementEnd()()()()()();
|
|
9721
9678
|
} if (rf & 2) {
|
|
9722
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
9679
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(27, _c0$4, ctx.errorMessage == null ? null : ctx.errorMessage.isInvalid))("formGroup", ctx.formGroup);
|
|
9723
9680
|
i0.ɵɵadvance(2);
|
|
9724
|
-
i0.ɵɵproperty("config", i0.ɵɵpureFunction5(
|
|
9681
|
+
i0.ɵɵproperty("config", i0.ɵɵpureFunction5(29, _c1$2, ctx.config.label || "Date component", ctx.config.classes || "govuk-label--m", ctx.config.id, ctx.config.hint != null ? ctx.config.hint : "For example, 12 11 2007", ctx.config.isPageHeading || false))("errorMessage", ctx.errorMessage);
|
|
9725
9682
|
i0.ɵɵadvance();
|
|
9726
9683
|
i0.ɵɵconditional(ctx.errorMessage ? 3 : -1);
|
|
9727
9684
|
i0.ɵɵadvance();
|
|
9728
9685
|
i0.ɵɵproperty("id", ctx.config.id + "-date");
|
|
9729
9686
|
i0.ɵɵadvance(3);
|
|
9730
|
-
i0.ɵɵproperty("config", i0.ɵɵpureFunction3(
|
|
9687
|
+
i0.ɵɵproperty("config", i0.ɵɵpureFunction3(35, _c2, i0.ɵɵpipeBind1(8, 21, "Day"), ctx.config.id + "-day", ctx.config.id + "-day"));
|
|
9731
9688
|
i0.ɵɵadvance(2);
|
|
9732
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
9733
|
-
i0.ɵɵattribute("aria-describedby", (ctx.errorMessage == null ? null : ctx.errorMessage.isInvalid) ? ctx.config.id + "-error" : null);
|
|
9689
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(39, _c3, ctx.errorMessage == null ? null : ctx.errorMessage.isInvalid))("id", ctx.config.id + "-day")("name", ctx.config.id + "-day")("formControlName", ctx.config.id + "_day");
|
|
9734
9690
|
i0.ɵɵadvance(3);
|
|
9735
|
-
i0.ɵɵproperty("config", i0.ɵɵpureFunction3(
|
|
9691
|
+
i0.ɵɵproperty("config", i0.ɵɵpureFunction3(41, _c2, i0.ɵɵpipeBind1(13, 23, "Month"), ctx.config.id + "-month", ctx.config.id + "-month"));
|
|
9736
9692
|
i0.ɵɵadvance(2);
|
|
9737
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
9738
|
-
i0.ɵɵattribute("aria-describedby", (ctx.errorMessage == null ? null : ctx.errorMessage.isInvalid) ? ctx.config.id + "-error" : null);
|
|
9693
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(45, _c3, ctx.errorMessage == null ? null : ctx.errorMessage.isInvalid))("id", ctx.config.id + "-month")("name", ctx.config.id + "-month")("formControlName", ctx.config.id + "_month");
|
|
9739
9694
|
i0.ɵɵadvance(3);
|
|
9740
|
-
i0.ɵɵproperty("config", i0.ɵɵpureFunction3(
|
|
9695
|
+
i0.ɵɵproperty("config", i0.ɵɵpureFunction3(47, _c2, i0.ɵɵpipeBind1(18, 25, "Year"), ctx.config.id + "-year", ctx.config.id + "-year"));
|
|
9741
9696
|
i0.ɵɵadvance(2);
|
|
9742
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
9743
|
-
i0.ɵɵattribute("aria-describedby", (ctx.errorMessage == null ? null : ctx.errorMessage.isInvalid) ? ctx.config.id + "-error" : null);
|
|
9697
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(51, _c3, ctx.errorMessage == null ? null : ctx.errorMessage.isInvalid))("id", ctx.config.id + "-year")("name", ctx.config.id + "-year")("formControlName", ctx.config.id + "_year");
|
|
9744
9698
|
} }, dependencies: [i1.NgClass, i2$3.DefaultValueAccessor, i2$3.NgControlStatus, i2$3.NgControlStatusGroup, i2$3.MaxLengthValidator, i2$3.PatternValidator, i2$3.FormGroupDirective, i2$3.FormControlName, GovUkLabelComponent, GovUkErrorMessageComponent, GovUkFieldsetComponent, i2.RpxTranslatePipe], styles: [".govuk-form-group[_ngcontent-%COMP%] .date-input-container[_ngcontent-%COMP%]{margin-bottom:30px}.govuk-form-group[_ngcontent-%COMP%] .date-input-container[_ngcontent-%COMP%] .govuk-date-input[_ngcontent-%COMP%] .govuk-date-input__item[_ngcontent-%COMP%] .govuk-form-group[_ngcontent-%COMP%]{margin-bottom:0}"] }); }
|
|
9745
9699
|
}
|
|
9746
9700
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GovUkDateComponent, [{
|
|
9747
9701
|
type: Component,
|
|
9748
|
-
args: [{ selector: 'xuilib-gov-uk-date', standalone: false, template: "<div class=\"govuk-form-group\" [ngClass]=\"{'govuk-form-group--error': errorMessage?.isInvalid}\" [formGroup]=\"formGroup\">\n <div class=\"date-input-container\">\n <xuilib-gov-uk-fieldset\n [config]=\"{\n legend: config.label || 'Date component',\n classes: config.classes || 'govuk-label--m',\n id: config.id,\n hint: config.hint != null ? config.hint : 'For example, 12 11 2007',\n isPageHeading: config.isPageHeading || false}\"\n [errorMessage]=\"errorMessage\">\n @if (errorMessage) {\n <xuilib-gov-uk-error-message\n [config]=\"{id:
|
|
9702
|
+
args: [{ selector: 'xuilib-gov-uk-date', standalone: false, template: "<div class=\"govuk-form-group\" [ngClass]=\"{'govuk-form-group--error': errorMessage?.isInvalid}\" [formGroup]=\"formGroup\">\n <div class=\"date-input-container\">\n <xuilib-gov-uk-fieldset\n [config]=\"{\n legend: config.label || 'Date component',\n classes: config.classes || 'govuk-label--m',\n id: config.id,\n hint: config.hint != null ? config.hint : 'For example, 12 11 2007',\n isPageHeading: config.isPageHeading || false}\"\n [errorMessage]=\"errorMessage\">\n @if (errorMessage) {\n <xuilib-gov-uk-error-message\n [config]=\"{id: 'passport'}\"\n [errorMessage]=\"errorMessage\">\n </xuilib-gov-uk-error-message>\n }\n <div class=\"govuk-date-input\" [id]=\"config.id+'-date'\">\n <div class=\"govuk-date-input__item\">\n <div class=\"govuk-form-group\">\n <xuilib-gov-label\n [config]=\"{label: 'Day' | rpxTranslate, name: config.id+'-day', id: config.id+'-day', classes: 'govuk-date-input__label'}\">\n </xuilib-gov-label>\n <input class=\"govuk-input govuk-date-input__input govuk-input--width-2\"\n [ngClass]=\"{'govuk-input--error': errorMessage?.isInvalid}\"\n [id]=\"config.id+'-day'\"\n [name]=\"config.id+'-day'\" type=\"text\" value=\"\" pattern=\"\\d*\" maxlength=\"2\"\n [formControlName]=\"config.id+'_day'\">\n </div>\n </div>\n <div class=\"govuk-date-input__item\">\n <div class=\"govuk-form-group\">\n <xuilib-gov-label\n [config]=\"{label: 'Month' | rpxTranslate, name: config.id+'-month', id: config.id+'-month', classes: 'govuk-date-input__label'}\">\n </xuilib-gov-label>\n <input class=\"govuk-input govuk-date-input__input govuk-input--width-2\"\n [ngClass]=\"{'govuk-input--error': errorMessage?.isInvalid}\"\n [id]=\"config.id+'-month'\"\n [name]=\"config.id+'-month'\" type=\"text\" value=\"\" pattern=\"\\d*\" maxlength=\"2\"\n [formControlName]=\"config.id+'_month'\">\n </div>\n </div>\n <div class=\"govuk-date-input__item\">\n <div class=\"govuk-form-group\">\n <xuilib-gov-label\n [config]=\"{label: 'Year' | rpxTranslate, name: config.id+'-year', id: config.id+'-year', classes: 'govuk-date-input__label'}\">\n </xuilib-gov-label>\n <input class=\"govuk-input govuk-date-input__input govuk-input--width-4\"\n [ngClass]=\"{'govuk-input--error': errorMessage?.isInvalid}\"\n [id]=\"config.id+'-year'\"\n [name]=\"config.id+'-year'\" type=\"text\" value=\"\" pattern=\"\\d*\" maxlength=\"4\"\n [formControlName]=\"config.id+'_year'\">\n </div>\n </div>\n </div>\n </xuilib-gov-uk-fieldset>\n </div>\n</div>\n", styles: [".govuk-form-group .date-input-container{margin-bottom:30px}.govuk-form-group .date-input-container .govuk-date-input .govuk-date-input__item .govuk-form-group{margin-bottom:0}\n"] }]
|
|
9749
9703
|
}], () => [], { config: [{
|
|
9750
9704
|
type: Input
|
|
9751
9705
|
}], errorMessage: [{
|
|
@@ -10263,11 +10217,11 @@ class HmctsBannerComponent {
|
|
|
10263
10217
|
i0.ɵɵconditionalCreate(0, HmctsBannerComponent_Conditional_0_Template, 10, 13);
|
|
10264
10218
|
} if (rf & 2) {
|
|
10265
10219
|
i0.ɵɵconditional(ctx.message && ctx.type ? 0 : -1);
|
|
10266
|
-
} }, 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:#
|
|
10220
|
+
} }, 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"] }); }
|
|
10267
10221
|
}
|
|
10268
10222
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HmctsBannerComponent, [{
|
|
10269
10223
|
type: Component,
|
|
10270
|
-
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:#
|
|
10224
|
+
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"] }]
|
|
10271
10225
|
}], null, { message: [{
|
|
10272
10226
|
type: Input
|
|
10273
10227
|
}], type: [{
|
|
@@ -10301,11 +10255,11 @@ class HmctsIdentityBarComponent {
|
|
|
10301
10255
|
i0.ɵɵconditionalCreate(0, HmctsIdentityBarComponent_Conditional_0_Template, 6, 3, "div", 0);
|
|
10302
10256
|
} if (rf & 2) {
|
|
10303
10257
|
i0.ɵɵconditional(ctx.value ? 0 : -1);
|
|
10304
|
-
} }, dependencies: [i2.RpxTranslatePipe], styles: ["
|
|
10258
|
+
} }, 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"] }); }
|
|
10305
10259
|
}
|
|
10306
10260
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HmctsIdentityBarComponent, [{
|
|
10307
10261
|
type: Component,
|
|
10308
|
-
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: ["
|
|
10262
|
+
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"] }]
|
|
10309
10263
|
}], () => [], { content: [{
|
|
10310
10264
|
type: Input
|
|
10311
10265
|
}] }); })();
|
|
@@ -10474,11 +10428,11 @@ class HmctsPrimaryNavigationComponent {
|
|
|
10474
10428
|
i0.ɵɵconditionalCreate(0, HmctsPrimaryNavigationComponent_Conditional_0_Template, 6, 2, "nav", 0);
|
|
10475
10429
|
} if (rf & 2) {
|
|
10476
10430
|
i0.ɵɵconditional(ctx.isUserLoggedIn ? 0 : -1);
|
|
10477
|
-
} }, dependencies: [i1$1.RouterLink, i2.RpxTranslatePipe], styles: ["
|
|
10431
|
+
} }, 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"] }); }
|
|
10478
10432
|
}
|
|
10479
10433
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HmctsPrimaryNavigationComponent, [{
|
|
10480
10434
|
type: Component,
|
|
10481
|
-
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: ["
|
|
10435
|
+
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"] }]
|
|
10482
10436
|
}], () => [], { userLoggedIn: [{
|
|
10483
10437
|
type: Input
|
|
10484
10438
|
}], label: [{
|
|
@@ -10531,11 +10485,11 @@ class HmctsSubNavigationComponent {
|
|
|
10531
10485
|
i0.ɵɵconditionalCreate(0, HmctsSubNavigationComponent_Conditional_0_Template, 4, 1, "nav", 0);
|
|
10532
10486
|
} if (rf & 2) {
|
|
10533
10487
|
i0.ɵɵconditional(ctx.items ? 0 : -1);
|
|
10534
|
-
} }, 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
|
|
10488
|
+
} }, 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"] }); }
|
|
10535
10489
|
}
|
|
10536
10490
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HmctsSubNavigationComponent, [{
|
|
10537
10491
|
type: Component,
|
|
10538
|
-
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
|
|
10492
|
+
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"] }]
|
|
10539
10493
|
}], null, { label: [{
|
|
10540
10494
|
type: Input
|
|
10541
10495
|
}], items: [{
|