@hmcts/rpx-xui-common-lib 3.2.17-tar-upscale → 3.2.18-5238
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.
|
@@ -5306,11 +5306,11 @@ class GovUkLabelComponent {
|
|
|
5306
5306
|
i0.ɵɵconditionalCreate(0, GovUkLabelComponent_Conditional_0_Template, 2, 1, "h1")(1, GovUkLabelComponent_Conditional_1_Template, 1, 1);
|
|
5307
5307
|
} if (rf & 2) {
|
|
5308
5308
|
i0.ɵɵconditional(ctx.config.isPageHeading ? 0 : 1);
|
|
5309
|
-
} }, dependencies: [i2.RpxTranslatePipe], styles: [".govuk-label[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.govuk-label__optional[_ngcontent-%COMP%]{font-weight:400;font-size:16px;display:inline-block;margin-left:.75rem}"] }); }
|
|
5309
|
+
} }, dependencies: [i2.RpxTranslatePipe], styles: [".govuk-label[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.govuk-label.govuk-checkboxes__label--top-aligned[_ngcontent-%COMP%]{align-items:flex-start;padding-top:0}.govuk-label__optional[_ngcontent-%COMP%]{font-weight:400;font-size:16px;display:inline-block;margin-left:.75rem}"] }); }
|
|
5310
5310
|
}
|
|
5311
5311
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GovUkLabelComponent, [{
|
|
5312
5312
|
type: Component,
|
|
5313
|
-
args: [{ selector: 'xuilib-gov-label', standalone: false, template: "@if (config.isPageHeading) {\n <h1>\n @if (config.label) {\n <label [for]=\"config.id\" [class]=\"config.classes + ' govuk-label'\">\n <span>{{ config.label | rpxTranslate }}</span>\n @if (config.optional) {\n <span class=\"govuk-label__optional\">(optional)</span>\n }\n </label>\n }\n </h1>\n} @else {\n @if (config.label) {\n <label [for]=\"config.id\" [class]=\"config.classes + ' govuk-label'\">\n <span>{{ config.label }}</span>\n @if (config.optional) {\n <span class=\"govuk-label__optional\">(optional)</span>\n }\n </label>\n }\n}\n", styles: [".govuk-label{display:flex;align-items:center;flex-wrap:wrap}.govuk-label__optional{font-weight:400;font-size:16px;display:inline-block;margin-left:.75rem}\n"] }]
|
|
5313
|
+
args: [{ selector: 'xuilib-gov-label', standalone: false, template: "@if (config.isPageHeading) {\n <h1>\n @if (config.label) {\n <label [for]=\"config.id\" [class]=\"config.classes + ' govuk-label'\">\n <span>{{ config.label | rpxTranslate }}</span>\n @if (config.optional) {\n <span class=\"govuk-label__optional\">(optional)</span>\n }\n </label>\n }\n </h1>\n} @else {\n @if (config.label) {\n <label [for]=\"config.id\" [class]=\"config.classes + ' govuk-label'\">\n <span>{{ config.label }}</span>\n @if (config.optional) {\n <span class=\"govuk-label__optional\">(optional)</span>\n }\n </label>\n }\n}\n", styles: [".govuk-label{display:flex;align-items:center;flex-wrap:wrap}.govuk-label.govuk-checkboxes__label--top-aligned{align-items:flex-start;padding-top:0}.govuk-label__optional{font-weight:400;font-size:16px;display:inline-block;margin-left:.75rem}\n"] }]
|
|
5314
5314
|
}], () => [], { config: [{
|
|
5315
5315
|
type: Input
|
|
5316
5316
|
}] }); })();
|
|
@@ -5345,6 +5345,17 @@ class RemoveHostDirective {
|
|
|
5345
5345
|
}]
|
|
5346
5346
|
}], () => [{ type: i0.ElementRef }], null); })();
|
|
5347
5347
|
|
|
5348
|
+
function GovUkCheckboxComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
5349
|
+
i0.ɵɵelementStart(0, "span", 3);
|
|
5350
|
+
i0.ɵɵtext(1);
|
|
5351
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
5352
|
+
i0.ɵɵelementEnd();
|
|
5353
|
+
} if (rf & 2) {
|
|
5354
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
5355
|
+
i0.ɵɵproperty("id", ctx_r0.config.value + "-item-hint");
|
|
5356
|
+
i0.ɵɵadvance();
|
|
5357
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, ctx_r0.config.hint), " ");
|
|
5358
|
+
} }
|
|
5348
5359
|
/*
|
|
5349
5360
|
* Gov Uk Checkbox Dumb Component responsible for
|
|
5350
5361
|
* displaying checkbox input and hint
|
|
@@ -5358,16 +5369,15 @@ class GovUkCheckboxComponent {
|
|
|
5358
5369
|
const id = this.config.focusOn ? this.config.focusOn : this.config.value;
|
|
5359
5370
|
this.config.id = id;
|
|
5360
5371
|
this.config.classes = this.config.classes ?
|
|
5361
|
-
this.config.classes.concat(' govuk-checkboxes__label
|
|
5372
|
+
this.config.classes.concat(' govuk-checkboxes__label govuk-checkboxes__label--top-aligned') :
|
|
5373
|
+
'govuk-checkboxes__label govuk-checkboxes__label--top-aligned';
|
|
5362
5374
|
}
|
|
5363
5375
|
static { this.ɵfac = function GovUkCheckboxComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || GovUkCheckboxComponent)(); }; }
|
|
5364
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: GovUkCheckboxComponent, selectors: [["xuilib-gov-checkbox"]], inputs: { group: "group", config: "config", isChecked: "isChecked" }, standalone: false, decls:
|
|
5376
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: GovUkCheckboxComponent, selectors: [["xuilib-gov-checkbox"]], inputs: { group: "group", config: "config", isChecked: "isChecked" }, standalone: false, decls: 4, vars: 8, consts: [[1, "govuk-checkboxes__item", 3, "formGroup"], ["type", "checkbox", 1, "govuk-checkboxes__input", 3, "id", "name", "formControlName", "checked"], ["appRemoveHost", "", 3, "config"], [1, "govuk-hint", "govuk-checkboxes__hint", 3, "id"]], template: function GovUkCheckboxComponent_Template(rf, ctx) { if (rf & 1) {
|
|
5365
5377
|
i0.ɵɵelementStart(0, "div", 0);
|
|
5366
5378
|
i0.ɵɵelement(1, "input", 1)(2, "xuilib-gov-label", 2);
|
|
5367
|
-
i0.ɵɵ
|
|
5368
|
-
i0.ɵɵ
|
|
5369
|
-
i0.ɵɵpipe(5, "rpxTranslate");
|
|
5370
|
-
i0.ɵɵelementEnd()();
|
|
5379
|
+
i0.ɵɵconditionalCreate(3, GovUkCheckboxComponent_Conditional_3_Template, 3, 4, "span", 3);
|
|
5380
|
+
i0.ɵɵelementEnd();
|
|
5371
5381
|
} if (rf & 2) {
|
|
5372
5382
|
i0.ɵɵproperty("formGroup", ctx.group);
|
|
5373
5383
|
i0.ɵɵadvance();
|
|
@@ -5376,14 +5386,12 @@ class GovUkCheckboxComponent {
|
|
|
5376
5386
|
i0.ɵɵadvance();
|
|
5377
5387
|
i0.ɵɵproperty("config", ctx.config);
|
|
5378
5388
|
i0.ɵɵadvance();
|
|
5379
|
-
i0.ɵɵ
|
|
5380
|
-
|
|
5381
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(5, 9, ctx.config.hint), " ");
|
|
5382
|
-
} }, dependencies: [i2$3.CheckboxControlValueAccessor, i2$3.NgControlStatus, i2$3.NgControlStatusGroup, i2$3.FormGroupDirective, i2$3.FormControlName, GovUkLabelComponent, RemoveHostDirective, i2.RpxTranslatePipe], encapsulation: 2 }); }
|
|
5389
|
+
i0.ɵɵconditional(ctx.config.hint ? 3 : -1);
|
|
5390
|
+
} }, dependencies: [i2$3.CheckboxControlValueAccessor, i2$3.NgControlStatus, i2$3.NgControlStatusGroup, i2$3.FormGroupDirective, i2$3.FormControlName, GovUkLabelComponent, RemoveHostDirective, i2.RpxTranslatePipe], styles: ["[_nghost-%COMP%]{display:block}.govuk-checkboxes__item[_ngcontent-%COMP%]{margin-bottom:20px}[_nghost-%COMP%]:last-child .govuk-checkboxes__item[_ngcontent-%COMP%]{margin-bottom:0}"] }); }
|
|
5383
5391
|
}
|
|
5384
5392
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GovUkCheckboxComponent, [{
|
|
5385
5393
|
type: Component,
|
|
5386
|
-
args: [{ selector: 'xuilib-gov-checkbox', standalone: false, template: "<div class=\"govuk-checkboxes__item\" [formGroup]=\"group\">\n <input class=\"govuk-checkboxes__input\" type=\"checkbox\"
|
|
5394
|
+
args: [{ selector: 'xuilib-gov-checkbox', standalone: false, template: "<div class=\"govuk-checkboxes__item\" [formGroup]=\"group\">\n <input class=\"govuk-checkboxes__input\" type=\"checkbox\"\n [attr.aria-describedby]=\"config.hint ? config.value + '-item-hint' : null\"\n [id]=\"config.id\" [name]=\"config.name\" [formControlName]=\"config.value\" [checked]=\"isChecked\">\n <xuilib-gov-label appRemoveHost [config]=\"config\"></xuilib-gov-label>\n @if (config.hint) {\n <span [id]=\"config.value + '-item-hint'\" class=\"govuk-hint govuk-checkboxes__hint\">\n {{ config.hint | rpxTranslate }}\n </span>\n }\n</div>\n", styles: [":host{display:block}.govuk-checkboxes__item{margin-bottom:20px}:host(:last-child) .govuk-checkboxes__item{margin-bottom:0}\n"] }]
|
|
5387
5395
|
}], () => [], { group: [{
|
|
5388
5396
|
type: Input
|
|
5389
5397
|
}], config: [{
|
|
@@ -5391,7 +5399,7 @@ class GovUkCheckboxComponent {
|
|
|
5391
5399
|
}], isChecked: [{
|
|
5392
5400
|
type: Input
|
|
5393
5401
|
}] }); })();
|
|
5394
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(GovUkCheckboxComponent, { className: "GovUkCheckboxComponent", filePath: "lib/gov-ui/components/gov-uk-checkbox/gov-uk-checkbox.component.ts", lineNumber:
|
|
5402
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(GovUkCheckboxComponent, { className: "GovUkCheckboxComponent", filePath: "lib/gov-ui/components/gov-uk-checkbox/gov-uk-checkbox.component.ts", lineNumber: 16 }); })();
|
|
5395
5403
|
|
|
5396
5404
|
function GovUkErrorMessageComponent_For_1_Template(rf, ctx) { if (rf & 1) {
|
|
5397
5405
|
i0.ɵɵelementStart(0, "span", 0)(1, "span", 1);
|