@hmcts/rpx-xui-common-lib 2.0.36 → 2.0.37
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.
- package/esm2022/lib/components/contact-details/contact-details.component.mjs +31 -12
- package/esm2022/lib/models/contact-details.model.mjs +1 -1
- package/fesm2022/hmcts-rpx-xui-common-lib.mjs +30 -11
- package/fesm2022/hmcts-rpx-xui-common-lib.mjs.map +1 -1
- package/lib/models/contact-details.model.d.ts +4 -0
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
import * as i1 from "@angular/common";
|
|
4
4
|
import * as i2 from "rpx-xui-translation";
|
|
5
5
|
function ContactDetailsComponent_div_0_h3_1_Template(rf, ctx) { if (rf & 1) {
|
|
6
|
-
i0.ɵɵelementStart(0, "h3",
|
|
6
|
+
i0.ɵɵelementStart(0, "h3", 8);
|
|
7
7
|
i0.ɵɵtext(1);
|
|
8
8
|
i0.ɵɵelementEnd();
|
|
9
9
|
} if (rf & 2) {
|
|
@@ -12,7 +12,7 @@ function ContactDetailsComponent_div_0_h3_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
12
12
|
i0.ɵɵtextInterpolate(ctx_r0.data.title);
|
|
13
13
|
} }
|
|
14
14
|
function ContactDetailsComponent_div_0_p_2_Template(rf, ctx) { if (rf & 1) {
|
|
15
|
-
i0.ɵɵelementStart(0, "p")(1, "span",
|
|
15
|
+
i0.ɵɵelementStart(0, "p")(1, "span", 9);
|
|
16
16
|
i0.ɵɵtext(2);
|
|
17
17
|
i0.ɵɵelementEnd()();
|
|
18
18
|
} if (rf & 2) {
|
|
@@ -23,11 +23,11 @@ function ContactDetailsComponent_div_0_p_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
23
23
|
i0.ɵɵtextInterpolate(ctx_r0.data.badgeText);
|
|
24
24
|
} }
|
|
25
25
|
function ContactDetailsComponent_div_0_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
26
|
-
i0.ɵɵelementStart(0, "div",
|
|
26
|
+
i0.ɵɵelementStart(0, "div", 10)(1, "span", 11);
|
|
27
27
|
i0.ɵɵtext(2);
|
|
28
28
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
29
29
|
i0.ɵɵelementEnd();
|
|
30
|
-
i0.ɵɵelementStart(4, "a",
|
|
30
|
+
i0.ɵɵelementStart(4, "a", 12);
|
|
31
31
|
i0.ɵɵtext(5);
|
|
32
32
|
i0.ɵɵelementEnd()();
|
|
33
33
|
} if (rf & 2) {
|
|
@@ -40,7 +40,24 @@ function ContactDetailsComponent_div_0_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
40
40
|
i0.ɵɵtextInterpolate(ctx_r0.data.email);
|
|
41
41
|
} }
|
|
42
42
|
function ContactDetailsComponent_div_0_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
43
|
-
i0.ɵɵelementStart(0, "div",
|
|
43
|
+
i0.ɵɵelementStart(0, "div", 13)(1, "span", 11);
|
|
44
|
+
i0.ɵɵtext(2);
|
|
45
|
+
i0.ɵɵpipe(3, "rpxTranslate");
|
|
46
|
+
i0.ɵɵelementEnd();
|
|
47
|
+
i0.ɵɵelementStart(4, "a", 14);
|
|
48
|
+
i0.ɵɵtext(5);
|
|
49
|
+
i0.ɵɵelementEnd()();
|
|
50
|
+
} if (rf & 2) {
|
|
51
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
52
|
+
i0.ɵɵadvance(2);
|
|
53
|
+
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 3, "Contact:"), " ");
|
|
54
|
+
i0.ɵɵadvance(2);
|
|
55
|
+
i0.ɵɵpropertyInterpolate("href", ctx_r0.data.contactDetails.contactLink, i0.ɵɵsanitizeUrl);
|
|
56
|
+
i0.ɵɵadvance();
|
|
57
|
+
i0.ɵɵtextInterpolate(ctx_r0.data.contactDetails.name);
|
|
58
|
+
} }
|
|
59
|
+
function ContactDetailsComponent_div_0_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
60
|
+
i0.ɵɵelementStart(0, "div", 15)(1, "span", 11);
|
|
44
61
|
i0.ɵɵtext(2);
|
|
45
62
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
46
63
|
i0.ɵɵelementEnd();
|
|
@@ -53,8 +70,8 @@ function ContactDetailsComponent_div_0_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
53
70
|
i0.ɵɵadvance(2);
|
|
54
71
|
i0.ɵɵtextInterpolate(ctx_r0.data.phone);
|
|
55
72
|
} }
|
|
56
|
-
function
|
|
57
|
-
i0.ɵɵelementStart(0, "div",
|
|
73
|
+
function ContactDetailsComponent_div_0_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
74
|
+
i0.ɵɵelementStart(0, "div", 16)(1, "span", 11);
|
|
58
75
|
i0.ɵɵtext(2);
|
|
59
76
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
60
77
|
i0.ɵɵelementEnd();
|
|
@@ -69,7 +86,7 @@ function ContactDetailsComponent_div_0_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
69
86
|
} }
|
|
70
87
|
function ContactDetailsComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
71
88
|
i0.ɵɵelementStart(0, "div", 1);
|
|
72
|
-
i0.ɵɵtemplate(1, ContactDetailsComponent_div_0_h3_1_Template, 2, 1, "h3", 2)(2, ContactDetailsComponent_div_0_p_2_Template, 3, 2, "p", 3)(3, ContactDetailsComponent_div_0_div_3_Template, 6, 6, "div", 4)(4, ContactDetailsComponent_div_0_div_4_Template,
|
|
89
|
+
i0.ɵɵtemplate(1, ContactDetailsComponent_div_0_h3_1_Template, 2, 1, "h3", 2)(2, ContactDetailsComponent_div_0_p_2_Template, 3, 2, "p", 3)(3, ContactDetailsComponent_div_0_div_3_Template, 6, 6, "div", 4)(4, ContactDetailsComponent_div_0_div_4_Template, 6, 5, "div", 5)(5, ContactDetailsComponent_div_0_div_5_Template, 5, 4, "div", 6)(6, ContactDetailsComponent_div_0_div_6_Template, 5, 4, "div", 7);
|
|
73
90
|
i0.ɵɵelementEnd();
|
|
74
91
|
} if (rf & 2) {
|
|
75
92
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
@@ -80,6 +97,8 @@ function ContactDetailsComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
80
97
|
i0.ɵɵadvance();
|
|
81
98
|
i0.ɵɵproperty("ngIf", ctx_r0.data.email);
|
|
82
99
|
i0.ɵɵadvance();
|
|
100
|
+
i0.ɵɵproperty("ngIf", ctx_r0.data.contactDetails);
|
|
101
|
+
i0.ɵɵadvance();
|
|
83
102
|
i0.ɵɵproperty("ngIf", ctx_r0.data.phone);
|
|
84
103
|
i0.ɵɵadvance();
|
|
85
104
|
i0.ɵɵproperty("ngIf", ctx_r0.data.openingTimes);
|
|
@@ -88,17 +107,17 @@ export class ContactDetailsComponent {
|
|
|
88
107
|
constructor() {
|
|
89
108
|
}
|
|
90
109
|
static { this.ɵfac = function ContactDetailsComponent_Factory(t) { return new (t || ContactDetailsComponent)(); }; }
|
|
91
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ContactDetailsComponent, selectors: [["xuilib-contact-details"]], inputs: { data: "data" }, decls: 1, vars: 1, consts: [["class", "contact-details", 4, "ngIf"], [1, "contact-details"], ["class", "govuk-heading-m", 4, "ngIf"], [4, "ngIf"], ["class", "email", 4, "ngIf"], ["class", "phone", 4, "ngIf"], ["class", "opening-times", 4, "ngIf"], [1, "govuk-heading-m"], [3, "className"], [1, "email"], [1, "govuk-!-font-weight-bold"], [3, "href"], [1, "phone"], [1, "opening-times"]], template: function ContactDetailsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
92
|
-
i0.ɵɵtemplate(0, ContactDetailsComponent_div_0_Template,
|
|
110
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ContactDetailsComponent, selectors: [["xuilib-contact-details"]], inputs: { data: "data" }, decls: 1, vars: 1, consts: [["class", "contact-details", 4, "ngIf"], [1, "contact-details"], ["class", "govuk-heading-m", 4, "ngIf"], [4, "ngIf"], ["class", "email", 4, "ngIf"], ["class", "contactDetails", 4, "ngIf"], ["class", "phone", 4, "ngIf"], ["class", "opening-times", 4, "ngIf"], [1, "govuk-heading-m"], [3, "className"], [1, "email"], [1, "govuk-!-font-weight-bold"], [3, "href"], [1, "contactDetails"], ["rel", "external", 3, "href"], [1, "phone"], [1, "opening-times"]], template: function ContactDetailsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
111
|
+
i0.ɵɵtemplate(0, ContactDetailsComponent_div_0_Template, 7, 6, "div", 0);
|
|
93
112
|
} if (rf & 2) {
|
|
94
113
|
i0.ɵɵproperty("ngIf", ctx.data);
|
|
95
114
|
} }, dependencies: [i1.NgIf, i2.RpxTranslatePipe], styles: [".contact-details[_ngcontent-%COMP%]{margin-top:30px}.contact-details[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .contact-details[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:10px}"] }); }
|
|
96
115
|
}
|
|
97
116
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContactDetailsComponent, [{
|
|
98
117
|
type: Component,
|
|
99
|
-
args: [{ selector: 'xuilib-contact-details', template: "<div class=\"contact-details\" *ngIf=\"data\">\n <h3 class=\"govuk-heading-m\" *ngIf=\"data.title\">{{ data.title }}</h3>\n <p *ngIf=\"data.badgeText\"><span [className]=\"'hmcts-badge ' + data.badgeColour\">{{ data.badgeText }}</span></p>\n <div class=\"email\" *ngIf=\"data.email\"><span class=\"govuk-!-font-weight-bold\">{{'Email:' | rpxTranslate}} </span> <a href=\"mailto:{{ data.email }}\">{{ data.email }}</a></div>\n <div class=\"phone\" *ngIf=\"data.phone\"><span class=\"govuk-!-font-weight-bold\">{{'Phone:' | rpxTranslate}} </span>{{ data.phone }}</div>\n <div class=\"opening-times\" *ngIf=\"data.openingTimes\"><span class=\"govuk-!-font-weight-bold\">{{'Opening times:' | rpxTranslate }} </span>{{ data.openingTimes}}</div>\n</div
|
|
118
|
+
args: [{ selector: 'xuilib-contact-details', template: "<div class=\"contact-details\" *ngIf=\"data\">\n <h3 class=\"govuk-heading-m\" *ngIf=\"data.title\">{{ data.title }}</h3>\n <p *ngIf=\"data.badgeText\"><span [className]=\"'hmcts-badge ' + data.badgeColour\">{{ data.badgeText }}</span></p>\n <div class=\"email\" *ngIf=\"data.email\"><span class=\"govuk-!-font-weight-bold\">{{'Email:' | rpxTranslate}} </span> <a href=\"mailto:{{ data.email }}\">{{ data.email }}</a></div>\n <div class=\"contactDetails\" *ngIf=\"data.contactDetails\"><span class=\"govuk-!-font-weight-bold\">{{'Contact:' | rpxTranslate}} </span> <a rel=\"external\" href=\"{{ data.contactDetails.contactLink }}\">{{ data.contactDetails.name }}</a></div>\n <div class=\"phone\" *ngIf=\"data.phone\"><span class=\"govuk-!-font-weight-bold\">{{'Phone:' | rpxTranslate}} </span>{{ data.phone }}</div>\n <div class=\"opening-times\" *ngIf=\"data.openingTimes\"><span class=\"govuk-!-font-weight-bold\">{{'Opening times:' | rpxTranslate }} </span>{{ data.openingTimes}}</div>\n</div>", styles: [".contact-details{margin-top:30px}.contact-details h3,.contact-details p{margin-bottom:10px}\n"] }]
|
|
100
119
|
}], () => [], { data: [{
|
|
101
120
|
type: Input
|
|
102
121
|
}] }); })();
|
|
103
122
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ContactDetailsComponent, { className: "ContactDetailsComponent", filePath: "lib/components/contact-details/contact-details.component.ts", lineNumber: 9 }); })();
|
|
104
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
123
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGFjdC1kZXRhaWxzLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2Vz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NzPVwiZ292dWstIS1mb250LXdlaWdodC1ib2xkXCI+e3snQ29udGFjdDonIHwgcnB4VHJhbnNsYXRlfX0gPC9zcGFuPiA8YSByZWw9XCJleHRlcm5hbFwiIGhyZWY9XCJ7eyBkYXRhLmNvbnRhY3REZXRhaWxzLmNvbnRhY3RMaW5rIH19XCI+e3sgZGF0YS5jb250YWN0RGV0YWlscy5uYW1lIH19PC9hPjwvZGl2PlxuICA8ZGl2IGNsYXNzPVwicGhvbmVcIiAqbmdJZj1cImRhdGEucGhvbmVcIj48c3BhbiBjbGFzcz1cImdvdnVrLSEtZm9udC13ZWlnaHQtYm9sZFwiPnt7J1Bob25lOicgfCBycHhUcmFuc2xhdGV9fSA8L3NwYW4+e3sgZGF0YS5waG9uZSB9fTwvZGl2PlxuICA8ZGl2IGNsYXNzPVwib3BlbmluZy10aW1lc1wiICpuZ0lmPVwiZGF0YS5vcGVuaW5nVGltZXNcIj48c3BhbiBjbGFzcz1cImdvdnVrLSEtZm9udC13ZWlnaHQtYm9sZFwiPnt7J09wZW5pbmcgdGltZXM6JyB8IHJweFRyYW5zbGF0ZSB9fSA8L3NwYW4+e3sgZGF0YS5vcGVuaW5nVGltZXN9fTwvZGl2PlxuPC9kaXY+Il19
|
|
@@ -4,4 +4,4 @@ export var BadgeColour;
|
|
|
4
4
|
BadgeColour["BADGE_BLUE"] = "hmcts-badge--blue";
|
|
5
5
|
BadgeColour["BADGE_GREEN"] = "hmcts-badge--green";
|
|
6
6
|
})(BadgeColour || (BadgeColour = {}));
|
|
7
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGFjdC1kZXRhaWxzLm1vZGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZXh1aS1jb21tb24tbGliL3NyYy9saWIvbW9kZWxzL2NvbnRhY3QtZGV0YWlscy5tb2RlbC50cyJdLCJuYW1lcyI6W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QiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBlbnVtIEJhZGdlQ29sb3VyIHtcbiAgQkFER0VfUkVEID0gJ2htY3RzLWJhZGdlLS1yZWQnLFxuICBCQURHRV9CTFVFID0gJ2htY3RzLWJhZGdlLS1ibHVlJyxcbiAgQkFER0VfR1JFRU4gPSAnaG1jdHMtYmFkZ2UtLWdyZWVuJyxcbn1cblxuZXhwb3J0IGludGVyZmFjZSBDb250YWN0RGV0YWlsc0RhdGFNb2RlbCB7XG4gICAgdGl0bGU/OiBzdHJpbmc7XG4gICAgYmFkZ2VDb2xvdXI/OiBCYWRnZUNvbG91cjtcbiAgICBiYWRnZVRleHQ/OiBzdHJpbmc7XG4gICAgZW1haWw/OiBzdHJpbmc7XG4gICAgcGhvbmU/OiBzdHJpbmc7XG4gICAgb3BlbmluZ1RpbWVzPzogc3RyaW5nO1xuICAgIGNvbnRhY3REZXRhaWxzPzoge1xuICAgICAgbmFtZTogc3RyaW5nO1xuICAgICAgY29udGFjdExpbms6IHN0cmluZztcbiAgICB9XG59XG4iXX0=
|
|
@@ -977,7 +977,7 @@ class CheckboxListComponent {
|
|
|
977
977
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CheckboxListComponent, { className: "CheckboxListComponent", filePath: "lib/components/checkbox-list/checkbox-list.component.ts", lineNumber: 9 }); })();
|
|
978
978
|
|
|
979
979
|
function ContactDetailsComponent_div_0_h3_1_Template(rf, ctx) { if (rf & 1) {
|
|
980
|
-
i0.ɵɵelementStart(0, "h3",
|
|
980
|
+
i0.ɵɵelementStart(0, "h3", 8);
|
|
981
981
|
i0.ɵɵtext(1);
|
|
982
982
|
i0.ɵɵelementEnd();
|
|
983
983
|
} if (rf & 2) {
|
|
@@ -986,7 +986,7 @@ function ContactDetailsComponent_div_0_h3_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
986
986
|
i0.ɵɵtextInterpolate(ctx_r0.data.title);
|
|
987
987
|
} }
|
|
988
988
|
function ContactDetailsComponent_div_0_p_2_Template(rf, ctx) { if (rf & 1) {
|
|
989
|
-
i0.ɵɵelementStart(0, "p")(1, "span",
|
|
989
|
+
i0.ɵɵelementStart(0, "p")(1, "span", 9);
|
|
990
990
|
i0.ɵɵtext(2);
|
|
991
991
|
i0.ɵɵelementEnd()();
|
|
992
992
|
} if (rf & 2) {
|
|
@@ -997,11 +997,11 @@ function ContactDetailsComponent_div_0_p_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
997
997
|
i0.ɵɵtextInterpolate(ctx_r0.data.badgeText);
|
|
998
998
|
} }
|
|
999
999
|
function ContactDetailsComponent_div_0_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
1000
|
-
i0.ɵɵelementStart(0, "div",
|
|
1000
|
+
i0.ɵɵelementStart(0, "div", 10)(1, "span", 11);
|
|
1001
1001
|
i0.ɵɵtext(2);
|
|
1002
1002
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
1003
1003
|
i0.ɵɵelementEnd();
|
|
1004
|
-
i0.ɵɵelementStart(4, "a",
|
|
1004
|
+
i0.ɵɵelementStart(4, "a", 12);
|
|
1005
1005
|
i0.ɵɵtext(5);
|
|
1006
1006
|
i0.ɵɵelementEnd()();
|
|
1007
1007
|
} if (rf & 2) {
|
|
@@ -1014,7 +1014,24 @@ function ContactDetailsComponent_div_0_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
1014
1014
|
i0.ɵɵtextInterpolate(ctx_r0.data.email);
|
|
1015
1015
|
} }
|
|
1016
1016
|
function ContactDetailsComponent_div_0_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
1017
|
-
i0.ɵɵelementStart(0, "div",
|
|
1017
|
+
i0.ɵɵelementStart(0, "div", 13)(1, "span", 11);
|
|
1018
|
+
i0.ɵɵtext(2);
|
|
1019
|
+
i0.ɵɵpipe(3, "rpxTranslate");
|
|
1020
|
+
i0.ɵɵelementEnd();
|
|
1021
|
+
i0.ɵɵelementStart(4, "a", 14);
|
|
1022
|
+
i0.ɵɵtext(5);
|
|
1023
|
+
i0.ɵɵelementEnd()();
|
|
1024
|
+
} if (rf & 2) {
|
|
1025
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
1026
|
+
i0.ɵɵadvance(2);
|
|
1027
|
+
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(3, 3, "Contact:"), " ");
|
|
1028
|
+
i0.ɵɵadvance(2);
|
|
1029
|
+
i0.ɵɵpropertyInterpolate("href", ctx_r0.data.contactDetails.contactLink, i0.ɵɵsanitizeUrl);
|
|
1030
|
+
i0.ɵɵadvance();
|
|
1031
|
+
i0.ɵɵtextInterpolate(ctx_r0.data.contactDetails.name);
|
|
1032
|
+
} }
|
|
1033
|
+
function ContactDetailsComponent_div_0_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
1034
|
+
i0.ɵɵelementStart(0, "div", 15)(1, "span", 11);
|
|
1018
1035
|
i0.ɵɵtext(2);
|
|
1019
1036
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
1020
1037
|
i0.ɵɵelementEnd();
|
|
@@ -1027,8 +1044,8 @@ function ContactDetailsComponent_div_0_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
1027
1044
|
i0.ɵɵadvance(2);
|
|
1028
1045
|
i0.ɵɵtextInterpolate(ctx_r0.data.phone);
|
|
1029
1046
|
} }
|
|
1030
|
-
function
|
|
1031
|
-
i0.ɵɵelementStart(0, "div",
|
|
1047
|
+
function ContactDetailsComponent_div_0_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
1048
|
+
i0.ɵɵelementStart(0, "div", 16)(1, "span", 11);
|
|
1032
1049
|
i0.ɵɵtext(2);
|
|
1033
1050
|
i0.ɵɵpipe(3, "rpxTranslate");
|
|
1034
1051
|
i0.ɵɵelementEnd();
|
|
@@ -1043,7 +1060,7 @@ function ContactDetailsComponent_div_0_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
1043
1060
|
} }
|
|
1044
1061
|
function ContactDetailsComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
1045
1062
|
i0.ɵɵelementStart(0, "div", 1);
|
|
1046
|
-
i0.ɵɵtemplate(1, ContactDetailsComponent_div_0_h3_1_Template, 2, 1, "h3", 2)(2, ContactDetailsComponent_div_0_p_2_Template, 3, 2, "p", 3)(3, ContactDetailsComponent_div_0_div_3_Template, 6, 6, "div", 4)(4, ContactDetailsComponent_div_0_div_4_Template,
|
|
1063
|
+
i0.ɵɵtemplate(1, ContactDetailsComponent_div_0_h3_1_Template, 2, 1, "h3", 2)(2, ContactDetailsComponent_div_0_p_2_Template, 3, 2, "p", 3)(3, ContactDetailsComponent_div_0_div_3_Template, 6, 6, "div", 4)(4, ContactDetailsComponent_div_0_div_4_Template, 6, 5, "div", 5)(5, ContactDetailsComponent_div_0_div_5_Template, 5, 4, "div", 6)(6, ContactDetailsComponent_div_0_div_6_Template, 5, 4, "div", 7);
|
|
1047
1064
|
i0.ɵɵelementEnd();
|
|
1048
1065
|
} if (rf & 2) {
|
|
1049
1066
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
@@ -1054,6 +1071,8 @@ function ContactDetailsComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
1054
1071
|
i0.ɵɵadvance();
|
|
1055
1072
|
i0.ɵɵproperty("ngIf", ctx_r0.data.email);
|
|
1056
1073
|
i0.ɵɵadvance();
|
|
1074
|
+
i0.ɵɵproperty("ngIf", ctx_r0.data.contactDetails);
|
|
1075
|
+
i0.ɵɵadvance();
|
|
1057
1076
|
i0.ɵɵproperty("ngIf", ctx_r0.data.phone);
|
|
1058
1077
|
i0.ɵɵadvance();
|
|
1059
1078
|
i0.ɵɵproperty("ngIf", ctx_r0.data.openingTimes);
|
|
@@ -1062,15 +1081,15 @@ class ContactDetailsComponent {
|
|
|
1062
1081
|
constructor() {
|
|
1063
1082
|
}
|
|
1064
1083
|
static { this.ɵfac = function ContactDetailsComponent_Factory(t) { return new (t || ContactDetailsComponent)(); }; }
|
|
1065
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ContactDetailsComponent, selectors: [["xuilib-contact-details"]], inputs: { data: "data" }, decls: 1, vars: 1, consts: [["class", "contact-details", 4, "ngIf"], [1, "contact-details"], ["class", "govuk-heading-m", 4, "ngIf"], [4, "ngIf"], ["class", "email", 4, "ngIf"], ["class", "phone", 4, "ngIf"], ["class", "opening-times", 4, "ngIf"], [1, "govuk-heading-m"], [3, "className"], [1, "email"], [1, "govuk-!-font-weight-bold"], [3, "href"], [1, "phone"], [1, "opening-times"]], template: function ContactDetailsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1066
|
-
i0.ɵɵtemplate(0, ContactDetailsComponent_div_0_Template,
|
|
1084
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ContactDetailsComponent, selectors: [["xuilib-contact-details"]], inputs: { data: "data" }, decls: 1, vars: 1, consts: [["class", "contact-details", 4, "ngIf"], [1, "contact-details"], ["class", "govuk-heading-m", 4, "ngIf"], [4, "ngIf"], ["class", "email", 4, "ngIf"], ["class", "contactDetails", 4, "ngIf"], ["class", "phone", 4, "ngIf"], ["class", "opening-times", 4, "ngIf"], [1, "govuk-heading-m"], [3, "className"], [1, "email"], [1, "govuk-!-font-weight-bold"], [3, "href"], [1, "contactDetails"], ["rel", "external", 3, "href"], [1, "phone"], [1, "opening-times"]], template: function ContactDetailsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1085
|
+
i0.ɵɵtemplate(0, ContactDetailsComponent_div_0_Template, 7, 6, "div", 0);
|
|
1067
1086
|
} if (rf & 2) {
|
|
1068
1087
|
i0.ɵɵproperty("ngIf", ctx.data);
|
|
1069
1088
|
} }, dependencies: [i1.NgIf, i2.RpxTranslatePipe], styles: [".contact-details[_ngcontent-%COMP%]{margin-top:30px}.contact-details[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .contact-details[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:10px}"] }); }
|
|
1070
1089
|
}
|
|
1071
1090
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContactDetailsComponent, [{
|
|
1072
1091
|
type: Component,
|
|
1073
|
-
args: [{ selector: 'xuilib-contact-details', template: "<div class=\"contact-details\" *ngIf=\"data\">\n <h3 class=\"govuk-heading-m\" *ngIf=\"data.title\">{{ data.title }}</h3>\n <p *ngIf=\"data.badgeText\"><span [className]=\"'hmcts-badge ' + data.badgeColour\">{{ data.badgeText }}</span></p>\n <div class=\"email\" *ngIf=\"data.email\"><span class=\"govuk-!-font-weight-bold\">{{'Email:' | rpxTranslate}} </span> <a href=\"mailto:{{ data.email }}\">{{ data.email }}</a></div>\n <div class=\"phone\" *ngIf=\"data.phone\"><span class=\"govuk-!-font-weight-bold\">{{'Phone:' | rpxTranslate}} </span>{{ data.phone }}</div>\n <div class=\"opening-times\" *ngIf=\"data.openingTimes\"><span class=\"govuk-!-font-weight-bold\">{{'Opening times:' | rpxTranslate }} </span>{{ data.openingTimes}}</div>\n</div
|
|
1092
|
+
args: [{ selector: 'xuilib-contact-details', template: "<div class=\"contact-details\" *ngIf=\"data\">\n <h3 class=\"govuk-heading-m\" *ngIf=\"data.title\">{{ data.title }}</h3>\n <p *ngIf=\"data.badgeText\"><span [className]=\"'hmcts-badge ' + data.badgeColour\">{{ data.badgeText }}</span></p>\n <div class=\"email\" *ngIf=\"data.email\"><span class=\"govuk-!-font-weight-bold\">{{'Email:' | rpxTranslate}} </span> <a href=\"mailto:{{ data.email }}\">{{ data.email }}</a></div>\n <div class=\"contactDetails\" *ngIf=\"data.contactDetails\"><span class=\"govuk-!-font-weight-bold\">{{'Contact:' | rpxTranslate}} </span> <a rel=\"external\" href=\"{{ data.contactDetails.contactLink }}\">{{ data.contactDetails.name }}</a></div>\n <div class=\"phone\" *ngIf=\"data.phone\"><span class=\"govuk-!-font-weight-bold\">{{'Phone:' | rpxTranslate}} </span>{{ data.phone }}</div>\n <div class=\"opening-times\" *ngIf=\"data.openingTimes\"><span class=\"govuk-!-font-weight-bold\">{{'Opening times:' | rpxTranslate }} </span>{{ data.openingTimes}}</div>\n</div>", styles: [".contact-details{margin-top:30px}.contact-details h3,.contact-details p{margin-bottom:10px}\n"] }]
|
|
1074
1093
|
}], () => [], { data: [{
|
|
1075
1094
|
type: Input
|
|
1076
1095
|
}] }); })();
|