@hmcts/ccd-case-ui-toolkit 7.0.2-case-flags-v2-1-release-2 → 7.0.2-welsh-optional-text-fix
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/esm2020/lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.mjs +5 -4
- package/esm2020/lib/shared/components/palette/address/write-address-field.component.mjs +19 -20
- package/esm2020/lib/shared/components/palette/case-link/write-case-link-field.component.mjs +5 -6
- package/esm2020/lib/shared/components/palette/collection/write-collection-field.component.mjs +25 -26
- package/esm2020/lib/shared/components/palette/complex/write-complex-field.component.mjs +6 -7
- package/esm2020/lib/shared/components/palette/date/write-date-field.component.mjs +5 -6
- package/esm2020/lib/shared/components/palette/datetime-picker/datetime-picker.component.mjs +5 -6
- package/esm2020/lib/shared/components/palette/document/write-document-field.component.mjs +23 -24
- package/esm2020/lib/shared/components/palette/dynamic-list/write-dynamic-list-field.component.mjs +5 -6
- package/esm2020/lib/shared/components/palette/dynamic-radio-list/write-dynamic-radio-list-field.component.mjs +5 -6
- package/esm2020/lib/shared/components/palette/email/write-email-field.component.mjs +5 -6
- package/esm2020/lib/shared/components/palette/fixed-list/write-fixed-list-field.component.mjs +5 -6
- package/esm2020/lib/shared/components/palette/fixed-radio-list/write-fixed-radio-list-field.component.mjs +5 -6
- package/esm2020/lib/shared/components/palette/money-gbp/write-money-gbp-field.component.mjs +5 -6
- package/esm2020/lib/shared/components/palette/multi-select-list/write-multi-select-list-field.component.mjs +5 -6
- package/esm2020/lib/shared/components/palette/number/write-number-field.component.mjs +5 -6
- package/esm2020/lib/shared/components/palette/palette.module.mjs +1 -1
- package/esm2020/lib/shared/components/palette/phone-uk/write-phone-uk-field.component.mjs +5 -6
- package/esm2020/lib/shared/components/palette/text/write-text-field.component.mjs +5 -6
- package/esm2020/lib/shared/components/palette/text-area/write-text-area-field.component.mjs +5 -6
- package/esm2020/lib/shared/components/palette/utils/field-label.pipe.mjs +14 -7
- package/esm2020/lib/shared/components/palette/yes-no/write-yes-no-field.component.mjs +5 -6
- package/fesm2015/hmcts-ccd-case-ui-toolkit.mjs +145 -158
- package/fesm2015/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/fesm2020/hmcts-ccd-case-ui-toolkit.mjs +145 -158
- package/fesm2020/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/lib/shared/components/palette/utils/field-label.pipe.d.ts +3 -0
- package/lib/shared/components/palette/utils/field-label.pipe.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -2645,25 +2645,30 @@ DatePipe.ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ name: "ccdDate", type: DateP
|
|
|
2645
2645
|
})();
|
|
2646
2646
|
|
|
2647
2647
|
class FieldLabelPipe {
|
|
2648
|
+
constructor(rpxTranslationPipe) {
|
|
2649
|
+
this.rpxTranslationPipe = rpxTranslationPipe;
|
|
2650
|
+
}
|
|
2648
2651
|
transform(field) {
|
|
2649
2652
|
if (!field || !field.label) {
|
|
2650
2653
|
return '';
|
|
2651
2654
|
}
|
|
2652
2655
|
else if (!field.display_context) {
|
|
2653
|
-
return field.label;
|
|
2656
|
+
return this.rpxTranslationPipe.transform(field.label);
|
|
2654
2657
|
}
|
|
2655
|
-
return field.label + (field.display_context.toUpperCase() === 'OPTIONAL' ?
|
|
2658
|
+
return this.rpxTranslationPipe.transform(field.label) + (field.display_context.toUpperCase() === 'OPTIONAL' ?
|
|
2659
|
+
' (' + this.rpxTranslationPipe.transform('Optional') + ')' : '');
|
|
2656
2660
|
}
|
|
2657
2661
|
}
|
|
2658
|
-
FieldLabelPipe.ɵfac = function FieldLabelPipe_Factory(t) { return new (t || FieldLabelPipe)(); };
|
|
2659
|
-
FieldLabelPipe.ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ name: "ccdFieldLabel", type: FieldLabelPipe, pure:
|
|
2662
|
+
FieldLabelPipe.ɵfac = function FieldLabelPipe_Factory(t) { return new (t || FieldLabelPipe)(i0.ɵɵdirectiveInject(i1.RpxTranslatePipe, 16)); };
|
|
2663
|
+
FieldLabelPipe.ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ name: "ccdFieldLabel", type: FieldLabelPipe, pure: false });
|
|
2660
2664
|
(function () {
|
|
2661
2665
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FieldLabelPipe, [{
|
|
2662
2666
|
type: Pipe,
|
|
2663
2667
|
args: [{
|
|
2664
|
-
name: 'ccdFieldLabel'
|
|
2668
|
+
name: 'ccdFieldLabel',
|
|
2669
|
+
pure: false
|
|
2665
2670
|
}]
|
|
2666
|
-
}],
|
|
2671
|
+
}], function () { return [{ type: i1.RpxTranslatePipe }]; }, null);
|
|
2667
2672
|
})();
|
|
2668
2673
|
|
|
2669
2674
|
class FirstErrorPipe {
|
|
@@ -11012,7 +11017,7 @@ class AddressOption {
|
|
|
11012
11017
|
}
|
|
11013
11018
|
|
|
11014
11019
|
const _c0$U = ["writeComplexFieldComponent"];
|
|
11015
|
-
function
|
|
11020
|
+
function WriteAddressFieldComponent_div_1_div_4_span_5_Template(rf, ctx) {
|
|
11016
11021
|
if (rf & 1) {
|
|
11017
11022
|
i0.ɵɵelementStart(0, "span", 14);
|
|
11018
11023
|
i0.ɵɵtext(1);
|
|
@@ -11026,17 +11031,17 @@ function WriteAddressFieldComponent_div_1_div_5_span_5_Template(rf, ctx) {
|
|
|
11026
11031
|
}
|
|
11027
11032
|
const _c1$n = function (a0) { return { "form-group-error": a0 }; };
|
|
11028
11033
|
const _c2$2 = function (a0) { return { "govuk-input--error": a0 }; };
|
|
11029
|
-
function
|
|
11034
|
+
function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) {
|
|
11030
11035
|
if (rf & 1) {
|
|
11031
11036
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
11032
11037
|
i0.ɵɵelementStart(0, "div", 8)(1, "label", 9)(2, "span", 10);
|
|
11033
11038
|
i0.ɵɵtext(3);
|
|
11034
11039
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
11035
11040
|
i0.ɵɵelementEnd()();
|
|
11036
|
-
i0.ɵɵtemplate(5,
|
|
11041
|
+
i0.ɵɵtemplate(5, WriteAddressFieldComponent_div_1_div_4_span_5_Template, 3, 3, "span", 11);
|
|
11037
11042
|
i0.ɵɵelement(6, "input", 12);
|
|
11038
11043
|
i0.ɵɵelementStart(7, "button", 13);
|
|
11039
|
-
i0.ɵɵlistener("click", function
|
|
11044
|
+
i0.ɵɵlistener("click", function WriteAddressFieldComponent_div_1_div_4_Template_button_click_7_listener() { i0.ɵɵrestoreView(_r7); const ctx_r6 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r6.findAddress()); });
|
|
11040
11045
|
i0.ɵɵtext(8);
|
|
11041
11046
|
i0.ɵɵpipe(9, "rpxTranslate");
|
|
11042
11047
|
i0.ɵɵelementEnd()();
|
|
@@ -11056,7 +11061,7 @@ function WriteAddressFieldComponent_div_1_div_5_Template(rf, ctx) {
|
|
|
11056
11061
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(9, 11, "Find address"));
|
|
11057
11062
|
}
|
|
11058
11063
|
}
|
|
11059
|
-
function
|
|
11064
|
+
function WriteAddressFieldComponent_div_1_div_5_option_6_Template(rf, ctx) {
|
|
11060
11065
|
if (rf & 1) {
|
|
11061
11066
|
i0.ɵɵelementStart(0, "option", 18);
|
|
11062
11067
|
i0.ɵɵtext(1);
|
|
@@ -11070,7 +11075,7 @@ function WriteAddressFieldComponent_div_1_div_6_option_6_Template(rf, ctx) {
|
|
|
11070
11075
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, addressOption_r9.description), " ");
|
|
11071
11076
|
}
|
|
11072
11077
|
}
|
|
11073
|
-
function
|
|
11078
|
+
function WriteAddressFieldComponent_div_1_div_5_Template(rf, ctx) {
|
|
11074
11079
|
if (rf & 1) {
|
|
11075
11080
|
const _r11 = i0.ɵɵgetCurrentView();
|
|
11076
11081
|
i0.ɵɵelementStart(0, "div", 15)(1, "label", 9)(2, "span", 10);
|
|
@@ -11078,8 +11083,8 @@ function WriteAddressFieldComponent_div_1_div_6_Template(rf, ctx) {
|
|
|
11078
11083
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
11079
11084
|
i0.ɵɵelementEnd()();
|
|
11080
11085
|
i0.ɵɵelementStart(5, "select", 16);
|
|
11081
|
-
i0.ɵɵlistener("change", function
|
|
11082
|
-
i0.ɵɵtemplate(6,
|
|
11086
|
+
i0.ɵɵlistener("change", function WriteAddressFieldComponent_div_1_div_5_Template_select_change_5_listener() { i0.ɵɵrestoreView(_r11); const ctx_r10 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r10.addressSelected()); });
|
|
11087
|
+
i0.ɵɵtemplate(6, WriteAddressFieldComponent_div_1_div_5_option_6_Template, 3, 4, "option", 17);
|
|
11083
11088
|
i0.ɵɵelementEnd()();
|
|
11084
11089
|
}
|
|
11085
11090
|
if (rf & 2) {
|
|
@@ -11094,11 +11099,11 @@ function WriteAddressFieldComponent_div_1_div_6_Template(rf, ctx) {
|
|
|
11094
11099
|
i0.ɵɵproperty("ngForOf", ctx_r3.addressOptions);
|
|
11095
11100
|
}
|
|
11096
11101
|
}
|
|
11097
|
-
function
|
|
11102
|
+
function WriteAddressFieldComponent_div_1_a_6_Template(rf, ctx) {
|
|
11098
11103
|
if (rf & 1) {
|
|
11099
11104
|
const _r13 = i0.ɵɵgetCurrentView();
|
|
11100
11105
|
i0.ɵɵelementStart(0, "a", 19);
|
|
11101
|
-
i0.ɵɵlistener("click", function
|
|
11106
|
+
i0.ɵɵlistener("click", function WriteAddressFieldComponent_div_1_a_6_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r13); const ctx_r12 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r12.blankAddress()); });
|
|
11102
11107
|
i0.ɵɵtext(1);
|
|
11103
11108
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
11104
11109
|
i0.ɵɵelementEnd();
|
|
@@ -11112,19 +11117,18 @@ function WriteAddressFieldComponent_div_1_Template(rf, ctx) {
|
|
|
11112
11117
|
if (rf & 1) {
|
|
11113
11118
|
i0.ɵɵelementStart(0, "div")(1, "h2", 4);
|
|
11114
11119
|
i0.ɵɵtext(2);
|
|
11115
|
-
i0.ɵɵpipe(3, "
|
|
11116
|
-
i0.ɵɵpipe(4, "ccdFieldLabel");
|
|
11120
|
+
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
11117
11121
|
i0.ɵɵelementEnd();
|
|
11118
|
-
i0.ɵɵtemplate(
|
|
11119
|
-
i0.ɵɵtemplate(
|
|
11120
|
-
i0.ɵɵtemplate(
|
|
11122
|
+
i0.ɵɵtemplate(4, WriteAddressFieldComponent_div_1_div_4_Template, 10, 17, "div", 5);
|
|
11123
|
+
i0.ɵɵtemplate(5, WriteAddressFieldComponent_div_1_div_5_Template, 7, 7, "div", 6);
|
|
11124
|
+
i0.ɵɵtemplate(6, WriteAddressFieldComponent_div_1_a_6_Template, 3, 3, "a", 7);
|
|
11121
11125
|
i0.ɵɵelementEnd();
|
|
11122
11126
|
}
|
|
11123
11127
|
if (rf & 2) {
|
|
11124
11128
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
11125
11129
|
i0.ɵɵadvance(2);
|
|
11126
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 4,
|
|
11127
|
-
i0.ɵɵadvance(
|
|
11130
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 4, ctx_r0.caseField));
|
|
11131
|
+
i0.ɵɵadvance(2);
|
|
11128
11132
|
i0.ɵɵproperty("ngIf", !ctx_r0.isExpanded);
|
|
11129
11133
|
i0.ɵɵadvance(1);
|
|
11130
11134
|
i0.ɵɵproperty("ngIf", ctx_r0.addressOptions);
|
|
@@ -11244,7 +11248,7 @@ WriteAddressFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
11244
11248
|
}, inputs: { formGroup: "formGroup" }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 4, vars: 9, consts: [[1, "form-group", 3, "id"], [4, "ngIf"], [3, "hidden", "caseField", "renderLabel", "parent", "formGroup", "ignoreMandatory", "idPrefix"], ["writeComplexFieldComponent", ""], [1, "heading-h2"], ["class", "form-group bottom-30 postcodeLookup", 3, "id", "ngClass", 4, "ngIf"], ["class", "form-group", "id", "selectAddress", 4, "ngIf"], ["class", "manual-link bottom-30", "href", "javascript:void(0)", 3, "click", 4, "ngIf"], [1, "form-group", "bottom-30", "postcodeLookup", 3, "id", "ngClass"], [3, "for"], [1, "form-label"], ["class", "error-message", 4, "ngIf"], ["type", "text", "name", "postcode", 1, "form-control", "postcodeinput", "inline-block", 3, "ngClass", "id", "formControl"], ["type", "button", 1, "button", "button-30", 3, "click"], [1, "error-message"], ["id", "selectAddress", 1, "form-group"], ["name", "address", "focusElement", "", 1, "form-control", "ccd-dropdown", "addressList", 3, "id", "formControl", "change"], [3, "ngValue", 4, "ngFor", "ngForOf"], [3, "ngValue"], ["href", "javascript:void(0)", 1, "manual-link", "bottom-30", 3, "click"]], template: function WriteAddressFieldComponent_Template(rf, ctx) {
|
|
11245
11249
|
if (rf & 1) {
|
|
11246
11250
|
i0.ɵɵelementStart(0, "div", 0);
|
|
11247
|
-
i0.ɵɵtemplate(1, WriteAddressFieldComponent_div_1_Template,
|
|
11251
|
+
i0.ɵɵtemplate(1, WriteAddressFieldComponent_div_1_Template, 7, 6, "div", 1);
|
|
11248
11252
|
i0.ɵɵelement(2, "ccd-write-complex-type-field", 2, 3);
|
|
11249
11253
|
i0.ɵɵelementEnd();
|
|
11250
11254
|
}
|
|
@@ -11259,7 +11263,7 @@ WriteAddressFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
11259
11263
|
(function () {
|
|
11260
11264
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteAddressFieldComponent, [{
|
|
11261
11265
|
type: Component,
|
|
11262
|
-
args: [{ selector: 'ccd-write-address-field', template: "<div class=\"form-group\" [id]=\"id()\">\n <div *ngIf=\"!isComplexWithHiddenFields()\">\n <h2 class=\"heading-h2\">{{caseField | ccdFieldLabel
|
|
11266
|
+
args: [{ selector: 'ccd-write-address-field', template: "<div class=\"form-group\" [id]=\"id()\">\n <div *ngIf=\"!isComplexWithHiddenFields()\">\n <h2 class=\"heading-h2\">{{caseField | ccdFieldLabel}}</h2>\n\n <div class=\"form-group bottom-30 postcodeLookup\" [id]=\"createElementId('postcodeLookup')\" [ngClass]=\"{'form-group-error': missingPostcode}\" *ngIf=\"!isExpanded\">\n <label [for]=\"createElementId('postcodeInput')\">\n <span class=\"form-label\">{{'Enter a UK postcode' | rpxTranslate}}</span>\n </label>\n <span class=\"error-message\" *ngIf=\"missingPostcode\">{{'Enter the Postcode' | rpxTranslate}}</span>\n <input type=\"text\" [ngClass]=\"{'govuk-input--error': missingPostcode}\"\n [id]=\"createElementId('postcodeInput')\" name=\"postcode\" class=\"form-control postcodeinput inline-block\" [formControl]=\"postcode\">\n <button type=\"button\" class=\"button button-30\" (click)=\"findAddress()\">{{'Find address' | rpxTranslate}}</button>\n </div>\n\n <div class=\"form-group\" *ngIf=\"addressOptions\" id=\"selectAddress\">\n <label [for]=\"createElementId('addressList')\">\n <span class=\"form-label\">{{'Select an address' | rpxTranslate}}</span>\n </label>\n\n <select class=\"form-control ccd-dropdown addressList\" [id]=\"createElementId('addressList')\" name=\"address\" [formControl]=\"addressList\" (change)=\"addressSelected()\" focusElement>\n <option *ngFor=\"let addressOption of addressOptions\" [ngValue]=\"addressOption.value\">\n {{addressOption.description | rpxTranslate}}\n </option>\n </select>\n </div>\n\n <a class=\"manual-link bottom-30\" *ngIf=\"!shouldShowDetailFields()\" (click)=\"blankAddress()\" href=\"javascript:void(0)\">\n {{\"I can't enter a UK postcode\" | rpxTranslate}}\n </a>\n </div>\n\n <ccd-write-complex-type-field\n [hidden]=\"!shouldShowDetailFields()\"\n [caseField]=\"caseField\"\n [renderLabel]=\"false\"\n [parent]=\"parent\"\n [formGroup]=\"formGroup\"\n [ignoreMandatory]=\"true\"\n [idPrefix]=\"buildIdPrefix('detail')\"\n #writeComplexFieldComponent>\n </ccd-write-complex-type-field>\n</div>\n", styles: [".manual-link{cursor:pointer;display:block;text-decoration:underline}\n"] }]
|
|
11263
11267
|
}], function () { return [{ type: AddressesService }, { type: IsCompoundPipe }]; }, { writeComplexFieldComponent: [{
|
|
11264
11268
|
type: ViewChild,
|
|
11265
11269
|
args: ['writeComplexFieldComponent', { static: false }]
|
|
@@ -12591,14 +12595,13 @@ function WriteCaseLinkFieldComponent_span_2_Template(rf, ctx) {
|
|
|
12591
12595
|
if (rf & 1) {
|
|
12592
12596
|
i0.ɵɵelementStart(0, "span", 6);
|
|
12593
12597
|
i0.ɵɵtext(1);
|
|
12594
|
-
i0.ɵɵpipe(2, "
|
|
12595
|
-
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
12598
|
+
i0.ɵɵpipe(2, "ccdFieldLabel");
|
|
12596
12599
|
i0.ɵɵelementEnd();
|
|
12597
12600
|
}
|
|
12598
12601
|
if (rf & 2) {
|
|
12599
12602
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
12600
12603
|
i0.ɵɵadvance(1);
|
|
12601
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1,
|
|
12604
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
12602
12605
|
}
|
|
12603
12606
|
}
|
|
12604
12607
|
function WriteCaseLinkFieldComponent_span_3_Template(rf, ctx) {
|
|
@@ -12685,7 +12688,7 @@ WriteCaseLinkFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
12685
12688
|
}, features: [i0.ɵɵInheritDefinitionFeature], decls: 6, vars: 9, consts: [[1, "form-group", 3, "ngClass"], [3, "for"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], ["type", "text", 1, "form-control", "bottom-30", 3, "id", "formControl"], [1, "form-label"], [1, "form-hint"], [1, "error-message"]], template: function WriteCaseLinkFieldComponent_Template(rf, ctx) {
|
|
12686
12689
|
if (rf & 1) {
|
|
12687
12690
|
i0.ɵɵelementStart(0, "div", 0)(1, "label", 1);
|
|
12688
|
-
i0.ɵɵtemplate(2, WriteCaseLinkFieldComponent_span_2_Template,
|
|
12691
|
+
i0.ɵɵtemplate(2, WriteCaseLinkFieldComponent_span_2_Template, 3, 3, "span", 2);
|
|
12689
12692
|
i0.ɵɵelementEnd();
|
|
12690
12693
|
i0.ɵɵtemplate(3, WriteCaseLinkFieldComponent_span_3_Template, 3, 3, "span", 3);
|
|
12691
12694
|
i0.ɵɵtemplate(4, WriteCaseLinkFieldComponent_span_4_Template, 3, 4, "span", 4);
|
|
@@ -12709,7 +12712,7 @@ WriteCaseLinkFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
12709
12712
|
(function () {
|
|
12710
12713
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteCaseLinkFieldComponent, [{
|
|
12711
12714
|
type: Component,
|
|
12712
|
-
args: [{ selector: 'ccd-write-case-link-field', template: "<div class=\"form-group\" [ngClass]=\"{'form-group-error': !caseReferenceControl.valid && (caseReferenceControl.dirty || caseReferenceControl.touched)}\">\n <label [for]=\"id()\">\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{caseField | ccdFieldLabel
|
|
12715
|
+
args: [{ selector: 'ccd-write-case-link-field', template: "<div class=\"form-group\" [ngClass]=\"{'form-group-error': !caseReferenceControl.valid && (caseReferenceControl.dirty || caseReferenceControl.touched)}\">\n <label [for]=\"id()\">\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{caseField | ccdFieldLabel}}</span>\n </label>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text | rpxTranslate}}</span>\n <span class=\"error-message\" *ngIf=\"caseReferenceControl.errors && (caseReferenceControl.dirty || caseReferenceControl.touched)\">\n {{caseReferenceControl.errors | ccdFirstError:caseField.label}}\n </span>\n <input class=\"form-control bottom-30\" [id]=\"id()\" type=\"text\" [formControl]=\"caseReferenceControl\">\n</div>\n" }]
|
|
12713
12716
|
}], null, { writeComplexFieldComponent: [{
|
|
12714
12717
|
type: ViewChild,
|
|
12715
12718
|
args: ['writeComplexFieldComponent']
|
|
@@ -12869,7 +12872,7 @@ RemoveDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Remov
|
|
|
12869
12872
|
})();
|
|
12870
12873
|
|
|
12871
12874
|
const _c0$R = ["collectionItem"];
|
|
12872
|
-
function
|
|
12875
|
+
function WriteCollectionFieldComponent_h2_8_span_1_Template(rf, ctx) {
|
|
12873
12876
|
if (rf & 1) {
|
|
12874
12877
|
i0.ɵɵelementStart(0, "span", 9);
|
|
12875
12878
|
i0.ɵɵtext(1);
|
|
@@ -12882,7 +12885,7 @@ function WriteCollectionFieldComponent_h2_9_span_1_Template(rf, ctx) {
|
|
|
12882
12885
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r3.caseField.hint_text));
|
|
12883
12886
|
}
|
|
12884
12887
|
}
|
|
12885
|
-
function
|
|
12888
|
+
function WriteCollectionFieldComponent_h2_8_span_2_Template(rf, ctx) {
|
|
12886
12889
|
if (rf & 1) {
|
|
12887
12890
|
i0.ɵɵelementStart(0, "span", 10);
|
|
12888
12891
|
i0.ɵɵtext(1);
|
|
@@ -12895,11 +12898,11 @@ function WriteCollectionFieldComponent_h2_9_span_2_Template(rf, ctx) {
|
|
|
12895
12898
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r4.formArray.errors, ctx_r4.caseField.label), " ");
|
|
12896
12899
|
}
|
|
12897
12900
|
}
|
|
12898
|
-
function
|
|
12901
|
+
function WriteCollectionFieldComponent_h2_8_Template(rf, ctx) {
|
|
12899
12902
|
if (rf & 1) {
|
|
12900
12903
|
i0.ɵɵelementStart(0, "h2", 2);
|
|
12901
|
-
i0.ɵɵtemplate(1,
|
|
12902
|
-
i0.ɵɵtemplate(2,
|
|
12904
|
+
i0.ɵɵtemplate(1, WriteCollectionFieldComponent_h2_8_span_1_Template, 3, 3, "span", 7);
|
|
12905
|
+
i0.ɵɵtemplate(2, WriteCollectionFieldComponent_h2_8_span_2_Template, 3, 4, "span", 8);
|
|
12903
12906
|
i0.ɵɵelementEnd();
|
|
12904
12907
|
}
|
|
12905
12908
|
if (rf & 2) {
|
|
@@ -12910,7 +12913,7 @@ function WriteCollectionFieldComponent_h2_9_Template(rf, ctx) {
|
|
|
12910
12913
|
i0.ɵɵproperty("ngIf", ctx_r0.formArray.errors);
|
|
12911
12914
|
}
|
|
12912
12915
|
}
|
|
12913
|
-
function
|
|
12916
|
+
function WriteCollectionFieldComponent_div_9_div_1_Template(rf, ctx) {
|
|
12914
12917
|
if (rf & 1) {
|
|
12915
12918
|
const _r10 = i0.ɵɵgetCurrentView();
|
|
12916
12919
|
i0.ɵɵelementStart(0, "div", 0, 13)(2, "div", 14)(3, "div", 15)(4, "label", 16)(5, "h3", 17);
|
|
@@ -12918,7 +12921,7 @@ function WriteCollectionFieldComponent_div_10_div_1_Template(rf, ctx) {
|
|
|
12918
12921
|
i0.ɵɵpipe(7, "rpxTranslate");
|
|
12919
12922
|
i0.ɵɵelementEnd()()();
|
|
12920
12923
|
i0.ɵɵelementStart(8, "div", 18)(9, "button", 19);
|
|
12921
|
-
i0.ɵɵlistener("click", function
|
|
12924
|
+
i0.ɵɵlistener("click", function WriteCollectionFieldComponent_div_9_div_1_Template_button_click_9_listener() { const restoredCtx = i0.ɵɵrestoreView(_r10); const i_r7 = restoredCtx.index; const ctx_r9 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r9.openModal(i_r7)); });
|
|
12922
12925
|
i0.ɵɵtext(10);
|
|
12923
12926
|
i0.ɵɵpipe(11, "rpxTranslate");
|
|
12924
12927
|
i0.ɵɵelementEnd()()();
|
|
@@ -12943,10 +12946,10 @@ function WriteCollectionFieldComponent_div_10_div_1_Template(rf, ctx) {
|
|
|
12943
12946
|
i0.ɵɵproperty("caseField", item_r6.caseField)("caseFields", ctx_r5.caseFields)("formGroup", ctx_r5.formGroup)("parent", item_r6.container)("idPrefix", item_r6.prefix)("hidden", item_r6.caseField.hidden)("isExpanded", ctx_r5.isExpanded)("isInSearchBlock", ctx_r5.isInSearchBlock);
|
|
12944
12947
|
}
|
|
12945
12948
|
}
|
|
12946
|
-
function
|
|
12949
|
+
function WriteCollectionFieldComponent_div_9_Template(rf, ctx) {
|
|
12947
12950
|
if (rf & 1) {
|
|
12948
12951
|
i0.ɵɵelementStart(0, "div", 11);
|
|
12949
|
-
i0.ɵɵtemplate(1,
|
|
12952
|
+
i0.ɵɵtemplate(1, WriteCollectionFieldComponent_div_9_div_1_Template, 13, 18, "div", 12);
|
|
12950
12953
|
i0.ɵɵelementEnd();
|
|
12951
12954
|
}
|
|
12952
12955
|
if (rf & 2) {
|
|
@@ -12956,11 +12959,11 @@ function WriteCollectionFieldComponent_div_10_Template(rf, ctx) {
|
|
|
12956
12959
|
i0.ɵɵproperty("ngForOf", ctx_r1.collItems);
|
|
12957
12960
|
}
|
|
12958
12961
|
}
|
|
12959
|
-
function
|
|
12962
|
+
function WriteCollectionFieldComponent_button_10_Template(rf, ctx) {
|
|
12960
12963
|
if (rf & 1) {
|
|
12961
12964
|
const _r12 = i0.ɵɵgetCurrentView();
|
|
12962
12965
|
i0.ɵɵelementStart(0, "button", 21);
|
|
12963
|
-
i0.ɵɵlistener("click", function
|
|
12966
|
+
i0.ɵɵlistener("click", function WriteCollectionFieldComponent_button_10_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r12); const ctx_r11 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r11.addItem(false)); });
|
|
12964
12967
|
i0.ɵɵtext(1);
|
|
12965
12968
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
12966
12969
|
i0.ɵɵelementEnd();
|
|
@@ -13276,31 +13279,30 @@ WriteCollectionFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ typ
|
|
|
13276
13279
|
let _t;
|
|
13277
13280
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.items = _t);
|
|
13278
13281
|
}
|
|
13279
|
-
}, inputs: { caseFields: "caseFields", formGroup: "formGroup" }, features: [i0.ɵɵInheritDefinitionFeature], decls:
|
|
13282
|
+
}, inputs: { caseFields: "caseFields", formGroup: "formGroup" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 11, vars: 11, consts: [[1, "form-group", 3, "id"], [1, "panel", "collection-indicator"], [1, "heading-h2", "error-spacing"], ["type", "button", 1, "button", "write-collection-add-item__top", 3, "disabled", "click"], ["class", "heading-h2 error-spacing", 4, "ngIf"], ["class", "form-group", 3, "hidden", 4, "ngIf"], ["class", "button write-collection-add-item__bottom", "type", "button", 3, "disabled", "click", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [1, "form-hint"], [1, "error-message"], [1, "form-group", 3, "hidden"], ["class", "form-group", 3, "id", 4, "ngFor", "ngForOf"], ["collectionItem", ""], [1, "collection-title"], [1, "float-left"], [3, "for"], [1, "heading-h3"], [1, "float-right"], ["type", "button", 1, "button", "button-secondary", 3, "disabled", "click"], [3, "caseField", "caseFields", "formGroup", "parent", "idPrefix", "hidden", "isExpanded", "isInSearchBlock"], ["type", "button", 1, "button", "write-collection-add-item__bottom", 3, "disabled", "click"]], template: function WriteCollectionFieldComponent_Template(rf, ctx) {
|
|
13280
13283
|
if (rf & 1) {
|
|
13281
13284
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "h2", 2);
|
|
13282
13285
|
i0.ɵɵtext(3);
|
|
13283
|
-
i0.ɵɵpipe(4, "
|
|
13284
|
-
i0.ɵɵpipe(5, "ccdFieldLabel");
|
|
13286
|
+
i0.ɵɵpipe(4, "ccdFieldLabel");
|
|
13285
13287
|
i0.ɵɵelementEnd();
|
|
13286
|
-
i0.ɵɵelementStart(
|
|
13287
|
-
i0.ɵɵlistener("click", function
|
|
13288
|
-
i0.ɵɵtext(
|
|
13289
|
-
i0.ɵɵpipe(
|
|
13288
|
+
i0.ɵɵelementStart(5, "button", 3);
|
|
13289
|
+
i0.ɵɵlistener("click", function WriteCollectionFieldComponent_Template_button_click_5_listener() { return ctx.addItem(true); });
|
|
13290
|
+
i0.ɵɵtext(6);
|
|
13291
|
+
i0.ɵɵpipe(7, "rpxTranslate");
|
|
13290
13292
|
i0.ɵɵelementEnd();
|
|
13291
|
-
i0.ɵɵtemplate(
|
|
13292
|
-
i0.ɵɵtemplate(
|
|
13293
|
-
i0.ɵɵtemplate(
|
|
13293
|
+
i0.ɵɵtemplate(8, WriteCollectionFieldComponent_h2_8_Template, 3, 2, "h2", 4);
|
|
13294
|
+
i0.ɵɵtemplate(9, WriteCollectionFieldComponent_div_9_Template, 2, 2, "div", 5);
|
|
13295
|
+
i0.ɵɵtemplate(10, WriteCollectionFieldComponent_button_10_Template, 3, 4, "button", 6);
|
|
13294
13296
|
i0.ɵɵelementEnd()();
|
|
13295
13297
|
}
|
|
13296
13298
|
if (rf & 2) {
|
|
13297
13299
|
i0.ɵɵproperty("id", ctx.id());
|
|
13298
13300
|
i0.ɵɵadvance(3);
|
|
13299
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 7,
|
|
13300
|
-
i0.ɵɵadvance(
|
|
13301
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 7, ctx.caseField), " ");
|
|
13302
|
+
i0.ɵɵadvance(2);
|
|
13301
13303
|
i0.ɵɵproperty("disabled", ctx.isNotAuthorisedToCreate() || ctx.isSearchFilter());
|
|
13302
13304
|
i0.ɵɵadvance(1);
|
|
13303
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
13305
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(7, 9, "Add new"));
|
|
13304
13306
|
i0.ɵɵadvance(2);
|
|
13305
13307
|
i0.ɵɵproperty("ngIf", ctx.caseField.hint_text || ctx.formArray.errors);
|
|
13306
13308
|
i0.ɵɵadvance(1);
|
|
@@ -13312,7 +13314,7 @@ WriteCollectionFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ typ
|
|
|
13312
13314
|
(function () {
|
|
13313
13315
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteCollectionFieldComponent, [{
|
|
13314
13316
|
type: Component,
|
|
13315
|
-
args: [{ selector: 'ccd-write-collection-field', template: "<div class=\"form-group\" [id]=\"id()\">\n\n <div class=\"panel collection-indicator\">\n\n <h2 class=\"heading-h2 error-spacing\">\n {{(caseField | ccdFieldLabel)
|
|
13317
|
+
args: [{ selector: 'ccd-write-collection-field', template: "<div class=\"form-group\" [id]=\"id()\">\n\n <div class=\"panel collection-indicator\">\n\n <h2 class=\"heading-h2 error-spacing\">\n {{(caseField | ccdFieldLabel)}}\n </h2>\n <button class=\"button write-collection-add-item__top\" type=\"button\" (click)=\"addItem(true)\" [disabled]=\"isNotAuthorisedToCreate() || isSearchFilter()\">{{'Add new' | rpxTranslate}}</button>\n <h2 class=\"heading-h2 error-spacing\" *ngIf=\"caseField.hint_text || formArray.errors\">\n <span *ngIf=\"caseField.hint_text\" class=\"form-hint\">{{caseField.hint_text | rpxTranslate }}</span>\n <span *ngIf=\"formArray.errors\" class=\"error-message\">\n {{(formArray.errors | ccdFirstError:caseField.label)}}\n </span>\n </h2>\n\n <div class=\"form-group\" [hidden]=\"caseField.hidden\" *ngIf=\"caseField.value && caseField.value.length\">\n <div *ngFor=\"let item of collItems; let i = index\" #collectionItem\n [id]=\"this.buildIdPrefix(i) + i\" class=\"form-group\">\n <div class=\"collection-title\">\n <div class=\"float-left\">\n <label [for]=\"item.prefix + i\"><h3 class=\"heading-h3\">{{itemLabel(i) | rpxTranslate}}</h3></label>\n </div>\n <div class=\"float-right\">\n <button class=\"button button-secondary\" type=\"button\" (click)=\"openModal(i)\"\n [disabled]=\"isNotAuthorisedToDelete(i)\"\n attr.aria-label=\"Remove {{ itemLabel(i) }}\">{{'Remove' | rpxTranslate}}</button>\n </div>\n </div>\n <ccd-field-write [caseField]=\"item.caseField\"\n [caseFields]=\"caseFields\"\n [formGroup]=\"formGroup\"\n [parent]=\"item.container\"\n [idPrefix]=\"item.prefix\"\n [hidden]=\"item.caseField.hidden\"\n [isExpanded]=\"isExpanded\"\n [isInSearchBlock]=\"isInSearchBlock\">\n </ccd-field-write>\n </div>\n\n </div>\n\n <button class=\"button write-collection-add-item__bottom\" type=\"button\" (click)=\"addItem(false)\" [disabled]=\"isNotAuthorisedToCreate() || isSearchFilter()\" *ngIf=\"caseField.value && caseField.value.length\">{{'Add new' | rpxTranslate }}</button>\n\n </div>\n\n</div>\n", styles: [".collection-field-table tr:first-child>td{padding-top:0}.collection-field-table tr:last-child>td{border-bottom:none}.collection-field-table td.collection-actions{width:1px;white-space:nowrap}.error-spacing{margin-top:10px}.collection-title{height:51px}.float-left{float:left;padding-top:8px}.float-right{float:right}.complex-panel{margin:13px 0;border:1px solid #bfc1c3}.complex-panel .complex-panel-title{background-color:#dee0e2;padding:5px 5px 2px;border-bottom:1px solid #bfc1c3;display:block;color:#0b0c0c;font-family:nta,Arial,sans-serif;font-weight:700;text-transform:none;font-size:16px;line-height:1.25}@media (min-width: 641px){.complex-panel .complex-panel-title{font-size:19px;line-height:1.3157894737}}.complex-panel .complex-panel-table>tbody>tr>th{vertical-align:top}.complex-panel .complex-panel-table>tbody>tr:last-child>th,.complex-panel .complex-panel-table>tbody>tr:last-child>td{border-bottom:none}.complex-panel .complex-panel-simple-field th{padding-left:5px;width:295px}.complex-panel .complex-panel-compound-field td{padding:5px}.collection-indicator{border-left:solid 5px #b1b4b6}\n"] }]
|
|
13316
13318
|
}], function () { return [{ type: i1$3.MatLegacyDialog }, { type: i2.ScrollToService }, { type: ProfileNotifier }, { type: i0.ChangeDetectorRef }]; }, { caseFields: [{
|
|
13317
13319
|
type: Input
|
|
13318
13320
|
}], formGroup: [{
|
|
@@ -13513,14 +13515,13 @@ function WriteComplexFieldComponent_h2_3_Template(rf, ctx) {
|
|
|
13513
13515
|
if (rf & 1) {
|
|
13514
13516
|
i0.ɵɵelementStart(0, "h2", 3);
|
|
13515
13517
|
i0.ɵɵtext(1);
|
|
13516
|
-
i0.ɵɵpipe(2, "
|
|
13517
|
-
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
13518
|
+
i0.ɵɵpipe(2, "ccdFieldLabel");
|
|
13518
13519
|
i0.ɵɵelementEnd();
|
|
13519
13520
|
}
|
|
13520
13521
|
if (rf & 2) {
|
|
13521
13522
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
13522
13523
|
i0.ɵɵadvance(1);
|
|
13523
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1,
|
|
13524
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
13524
13525
|
}
|
|
13525
13526
|
}
|
|
13526
13527
|
function WriteComplexFieldComponent_ng_container_4_ccd_field_read_2_Template(rf, ctx) {
|
|
@@ -13654,10 +13655,10 @@ class WriteComplexFieldComponent extends AbstractFieldWriteComponent {
|
|
|
13654
13655
|
}
|
|
13655
13656
|
}
|
|
13656
13657
|
WriteComplexFieldComponent.ɵfac = function WriteComplexFieldComponent_Factory(t) { return new (t || WriteComplexFieldComponent)(i0.ɵɵdirectiveInject(IsCompoundPipe), i0.ɵɵdirectiveInject(FormValidatorsService)); };
|
|
13657
|
-
WriteComplexFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteComplexFieldComponent, selectors: [["ccd-write-complex-type-field"]], inputs: { caseFields: "caseFields", formGroup: "formGroup", renderLabel: "renderLabel", ignoreMandatory: "ignoreMandatory" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 3, consts: [[1, "form-group", 3, "id"], ["class", "heading-h2", 4, "ngIf"], [3, "ngSwitch", 4, "ngFor", "ngForOf"], [1, "heading-h2"], [3, "ngSwitch"], ["
|
|
13658
|
+
WriteComplexFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteComplexFieldComponent, selectors: [["ccd-write-complex-type-field"]], inputs: { caseFields: "caseFields", formGroup: "formGroup", renderLabel: "renderLabel", ignoreMandatory: "ignoreMandatory" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 3, consts: [[1, "form-group", 3, "id"], ["class", "heading-h2", 4, "ngIf"], [3, "ngSwitch", 4, "ngFor", "ngForOf"], [1, "heading-h2"], [3, "ngSwitch"], ["ccdLabelSubstitutorp", "", 3, "caseField", "caseFields", "formGroup", "withLabel", 4, "ngSwitchCase"], ["ccdLabelSubstitutor", "", 3, "caseField", "caseFields", "formGroup", "parent", "idPrefix", "hidden", "isExpanded", "isInSearchBlock", 4, "ngSwitchCase"], ["ccdLabelSubstitutorp", "", 3, "caseField", "caseFields", "formGroup", "withLabel"], ["ccdLabelSubstitutor", "", 3, "caseField", "caseFields", "formGroup", "parent", "idPrefix", "hidden", "isExpanded", "isInSearchBlock"]], template: function WriteComplexFieldComponent_Template(rf, ctx) {
|
|
13658
13659
|
if (rf & 1) {
|
|
13659
13660
|
i0.ɵɵelementStart(0, "div", 0)(1, "fieldset")(2, "legend");
|
|
13660
|
-
i0.ɵɵtemplate(3, WriteComplexFieldComponent_h2_3_Template,
|
|
13661
|
+
i0.ɵɵtemplate(3, WriteComplexFieldComponent_h2_3_Template, 3, 3, "h2", 1);
|
|
13661
13662
|
i0.ɵɵelementEnd();
|
|
13662
13663
|
i0.ɵɵtemplate(4, WriteComplexFieldComponent_ng_container_4_Template, 4, 5, "ng-container", 2);
|
|
13663
13664
|
i0.ɵɵelementEnd()();
|
|
@@ -13673,7 +13674,7 @@ WriteComplexFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
13673
13674
|
(function () {
|
|
13674
13675
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteComplexFieldComponent, [{
|
|
13675
13676
|
type: Component,
|
|
13676
|
-
args: [{ selector: 'ccd-write-complex-type-field', template: "<div class=\"form-group\" [id]=\"id()\">\n <fieldset>\n <legend><h2 *ngIf=\"renderLabel\" class=\"heading-h2\">{{(caseField | ccdFieldLabel)
|
|
13677
|
+
args: [{ selector: 'ccd-write-complex-type-field', template: "<div class=\"form-group\" [id]=\"id()\">\n <fieldset>\n <legend><h2 *ngIf=\"renderLabel\" class=\"heading-h2\">{{(caseField | ccdFieldLabel)}}</h2></legend>\n <ng-container [ngSwitch]=\"field | ccdIsReadOnly\" *ngFor=\"let field of complexFields\">\n <ccd-field-read *ngSwitchCase=\"true\"\n ccdLabelSubstitutorp\n [caseField]=\"buildField(field)\"\n [caseFields]=\"caseFields\"\n [formGroup]=\"formGroup\"\n [withLabel]=\"true\">\n </ccd-field-read>\n <ccd-field-write *ngSwitchCase=\"false\"\n ccdLabelSubstitutor\n [caseField]=\"field\"\n [caseFields]=\"caseFields\"\n [formGroup]=\"formGroup\"\n [parent]=\"complexGroup\"\n [idPrefix]=\"buildIdPrefix(field)\"\n [hidden]=\"field.hidden\"\n [isExpanded]=\"isExpanded\"\n [isInSearchBlock]=\"isInSearchBlock\">\n </ccd-field-write>\n </ng-container>\n </fieldset>\n</div>\n", styles: [".complex-panel{margin:13px 0;border:1px solid #bfc1c3}.complex-panel .complex-panel-title{background-color:#dee0e2;padding:5px 5px 2px;border-bottom:1px solid #bfc1c3;display:block;color:#0b0c0c;font-family:nta,Arial,sans-serif;font-weight:700;text-transform:none;font-size:16px;line-height:1.25}@media (min-width: 641px){.complex-panel .complex-panel-title{font-size:19px;line-height:1.3157894737}}.complex-panel .complex-panel-table>tbody>tr>th{vertical-align:top}.complex-panel .complex-panel-table>tbody>tr:last-child>th,.complex-panel .complex-panel-table>tbody>tr:last-child>td{border-bottom:none}.complex-panel .complex-panel-simple-field th{padding-left:5px;width:295px}.complex-panel .complex-panel-compound-field td{padding:5px}\n"] }]
|
|
13677
13678
|
}], function () { return [{ type: IsCompoundPipe }, { type: FormValidatorsService }]; }, { caseFields: [{
|
|
13678
13679
|
type: Input
|
|
13679
13680
|
}], formGroup: [{
|
|
@@ -13904,7 +13905,7 @@ FileUploadStateService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: F
|
|
|
13904
13905
|
})();
|
|
13905
13906
|
|
|
13906
13907
|
const _c0$Q = ["fileInput"];
|
|
13907
|
-
function
|
|
13908
|
+
function WriteDocumentFieldComponent_span_6_Template(rf, ctx) {
|
|
13908
13909
|
if (rf & 1) {
|
|
13909
13910
|
i0.ɵɵelementStart(0, "span", 12);
|
|
13910
13911
|
i0.ɵɵtext(1);
|
|
@@ -13917,7 +13918,7 @@ function WriteDocumentFieldComponent_span_7_Template(rf, ctx) {
|
|
|
13917
13918
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField.hint_text));
|
|
13918
13919
|
}
|
|
13919
13920
|
}
|
|
13920
|
-
function
|
|
13921
|
+
function WriteDocumentFieldComponent_span_7_Template(rf, ctx) {
|
|
13921
13922
|
if (rf & 1) {
|
|
13922
13923
|
i0.ɵɵelementStart(0, "span", 13);
|
|
13923
13924
|
i0.ɵɵtext(1);
|
|
@@ -13930,7 +13931,7 @@ function WriteDocumentFieldComponent_span_8_Template(rf, ctx) {
|
|
|
13930
13931
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r1.fileUploadMessages));
|
|
13931
13932
|
}
|
|
13932
13933
|
}
|
|
13933
|
-
function
|
|
13934
|
+
function WriteDocumentFieldComponent_ccd_read_document_field_9_Template(rf, ctx) {
|
|
13934
13935
|
if (rf & 1) {
|
|
13935
13936
|
i0.ɵɵelement(0, "ccd-read-document-field", 14);
|
|
13936
13937
|
}
|
|
@@ -14208,40 +14209,39 @@ WriteDocumentFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
14208
14209
|
let _t;
|
|
14209
14210
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fileInput = _t.first);
|
|
14210
14211
|
}
|
|
14211
|
-
}, features: [i0.ɵɵInheritDefinitionFeature], decls:
|
|
14212
|
+
}, features: [i0.ɵɵInheritDefinitionFeature], decls: 18, vars: 20, consts: [[1, "form-group", 3, "ngClass"], [3, "for"], [1, "form-label"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [3, "caseField", 4, "ngIf"], [2, "position", "relative"], [3, "id", "click"], ["type", "file", 1, "form-control", "bottom-30", 3, "id", "accept", "keydown.Tab", "change"], ["fileInput", ""], [1, "form-group", "bottom-30"], ["type", "button", "aria-label", "Cancel upload", 1, "button", "button-secondary", 3, "disabled", "click"], [1, "form-hint"], [1, "error-message"], [3, "caseField"]], template: function WriteDocumentFieldComponent_Template(rf, ctx) {
|
|
14212
14213
|
if (rf & 1) {
|
|
14213
14214
|
i0.ɵɵelementStart(0, "div", 0)(1, "label", 1)(2, "span", 2);
|
|
14214
14215
|
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
14215
14216
|
i0.ɵɵtext(4);
|
|
14216
|
-
i0.ɵɵpipe(5, "
|
|
14217
|
-
i0.ɵɵpipe(6, "ccdFieldLabel");
|
|
14217
|
+
i0.ɵɵpipe(5, "ccdFieldLabel");
|
|
14218
14218
|
i0.ɵɵelementEnd()();
|
|
14219
|
-
i0.ɵɵtemplate(
|
|
14220
|
-
i0.ɵɵtemplate(
|
|
14221
|
-
i0.ɵɵelementStart(
|
|
14222
|
-
i0.ɵɵtemplate(
|
|
14219
|
+
i0.ɵɵtemplate(6, WriteDocumentFieldComponent_span_6_Template, 3, 3, "span", 3);
|
|
14220
|
+
i0.ɵɵtemplate(7, WriteDocumentFieldComponent_span_7_Template, 3, 3, "span", 4);
|
|
14221
|
+
i0.ɵɵelementStart(8, "div");
|
|
14222
|
+
i0.ɵɵtemplate(9, WriteDocumentFieldComponent_ccd_read_document_field_9_Template, 1, 1, "ccd-read-document-field", 5);
|
|
14223
14223
|
i0.ɵɵelementEnd();
|
|
14224
|
-
i0.ɵɵelementStart(
|
|
14225
|
-
i0.ɵɵlistener("click", function
|
|
14224
|
+
i0.ɵɵelementStart(10, "div", 6)(11, "div", 7);
|
|
14225
|
+
i0.ɵɵlistener("click", function WriteDocumentFieldComponent_Template_div_click_11_listener() { return ctx.fileSelectEvent(); });
|
|
14226
14226
|
i0.ɵɵelementEnd();
|
|
14227
|
-
i0.ɵɵelementStart(
|
|
14228
|
-
i0.ɵɵlistener("keydown.Tab", function
|
|
14227
|
+
i0.ɵɵelementStart(12, "input", 8, 9);
|
|
14228
|
+
i0.ɵɵlistener("keydown.Tab", function WriteDocumentFieldComponent_Template_input_keydown_Tab_12_listener() { return ctx.fileValidationsOnTab(); })("change", function WriteDocumentFieldComponent_Template_input_change_12_listener($event) { return ctx.fileChangeEvent($event); });
|
|
14229
14229
|
i0.ɵɵelementEnd()()();
|
|
14230
|
-
i0.ɵɵelementStart(
|
|
14231
|
-
i0.ɵɵlistener("click", function
|
|
14232
|
-
i0.ɵɵtext(
|
|
14233
|
-
i0.ɵɵpipe(
|
|
14230
|
+
i0.ɵɵelementStart(14, "div", 10)(15, "button", 11);
|
|
14231
|
+
i0.ɵɵlistener("click", function WriteDocumentFieldComponent_Template_button_click_15_listener() { return ctx.cancelUpload(); });
|
|
14232
|
+
i0.ɵɵtext(16);
|
|
14233
|
+
i0.ɵɵpipe(17, "rpxTranslate");
|
|
14234
14234
|
i0.ɵɵelementEnd()();
|
|
14235
14235
|
}
|
|
14236
14236
|
if (rf & 2) {
|
|
14237
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
14237
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(18, _c1$k, !ctx.valid));
|
|
14238
14238
|
i0.ɵɵadvance(1);
|
|
14239
14239
|
i0.ɵɵproperty("for", ctx.id());
|
|
14240
14240
|
i0.ɵɵadvance(1);
|
|
14241
14241
|
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(3, 12, ctx.caseField));
|
|
14242
14242
|
i0.ɵɵadvance(2);
|
|
14243
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 14,
|
|
14244
|
-
i0.ɵɵadvance(
|
|
14243
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 14, ctx.caseField));
|
|
14244
|
+
i0.ɵɵadvance(2);
|
|
14245
14245
|
i0.ɵɵproperty("ngIf", ctx.caseField.hint_text);
|
|
14246
14246
|
i0.ɵɵadvance(1);
|
|
14247
14247
|
i0.ɵɵproperty("ngIf", ctx.fileUploadMessages && !ctx.valid);
|
|
@@ -14255,13 +14255,13 @@ WriteDocumentFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
14255
14255
|
i0.ɵɵadvance(3);
|
|
14256
14256
|
i0.ɵɵproperty("disabled", !ctx.isUploadInProgress());
|
|
14257
14257
|
i0.ɵɵadvance(1);
|
|
14258
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
14258
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(17, 16, "Cancel upload"));
|
|
14259
14259
|
}
|
|
14260
14260
|
}, encapsulation: 2 });
|
|
14261
14261
|
(function () {
|
|
14262
14262
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteDocumentFieldComponent, [{
|
|
14263
14263
|
type: Component,
|
|
14264
|
-
args: [{ selector: 'ccd-write-document-field', template: "<div class=\"form-group\" [ngClass]=\"{'form-group-error bottom-30': !valid}\">\n <label [for]=\"id()\">\n <span class=\"form-label\" attr.aria-label=\"{{caseField | ccdFieldLabel}}\">{{(caseField | ccdFieldLabel)
|
|
14264
|
+
args: [{ selector: 'ccd-write-document-field', template: "<div class=\"form-group\" [ngClass]=\"{'form-group-error bottom-30': !valid}\">\n <label [for]=\"id()\">\n <span class=\"form-label\" attr.aria-label=\"{{caseField | ccdFieldLabel}}\">{{(caseField | ccdFieldLabel)}}</span>\n </label>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text | rpxTranslate}}</span>\n <span class=\"error-message\" *ngIf=\"fileUploadMessages && !valid\">{{fileUploadMessages | rpxTranslate}}</span>\n\n <div>\n <!--<span *ngIf=\"getUploadedFileName()\" class=\"text-16\">File name: {{getUploadedFileName()}}</span>-->\n <ccd-read-document-field *ngIf=\"caseField\" [caseField]=\"caseField\"></ccd-read-document-field>\n </div>\n\n <div style='position:relative'>\n\n <div [id]=\"createElementId('fileInputWrapper')\" (click)=\"fileSelectEvent()\"></div>\n <input class=\"form-control bottom-30\" [id]=\"id()\" type=\"file\" (keydown.Tab)=\"fileValidationsOnTab()\" (change)=\"fileChangeEvent($event)\"\n accept=\"{{caseField.field_type.regular_expression}}\" #fileInput/>\n </div>\n</div>\n<div class=\"form-group bottom-30\">\n <button class=\"button button-secondary\" type=\"button\" aria-label=\"Cancel upload\" (click)=\"cancelUpload()\" [disabled]=\"!isUploadInProgress()\">{{'Cancel upload' | rpxTranslate}}</button>\n</div>\n" }]
|
|
14265
14265
|
}], function () { return [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1$3.MatLegacyDialog }, { type: FileUploadStateService }, { type: JurisdictionService }]; }, { fileInput: [{
|
|
14266
14266
|
type: ViewChild,
|
|
14267
14267
|
args: ['fileInput', { static: false }]
|
|
@@ -14326,14 +14326,13 @@ function WriteDynamicListFieldComponent_span_2_Template(rf, ctx) {
|
|
|
14326
14326
|
if (rf & 1) {
|
|
14327
14327
|
i0.ɵɵelementStart(0, "span", 8);
|
|
14328
14328
|
i0.ɵɵtext(1);
|
|
14329
|
-
i0.ɵɵpipe(2, "
|
|
14330
|
-
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
14329
|
+
i0.ɵɵpipe(2, "ccdFieldLabel");
|
|
14331
14330
|
i0.ɵɵelementEnd();
|
|
14332
14331
|
}
|
|
14333
14332
|
if (rf & 2) {
|
|
14334
14333
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
14335
14334
|
i0.ɵɵadvance(1);
|
|
14336
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1,
|
|
14335
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
14337
14336
|
}
|
|
14338
14337
|
}
|
|
14339
14338
|
function WriteDynamicListFieldComponent_span_3_Template(rf, ctx) {
|
|
@@ -14417,7 +14416,7 @@ WriteDynamicListFieldComponent.ɵfac = /*@__PURE__*/ function () { let ɵWriteDy
|
|
|
14417
14416
|
WriteDynamicListFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteDynamicListFieldComponent, selectors: [["ccd-write-dynamic-list-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 11, vars: 15, consts: [[1, "form-group", 3, "ngClass"], [3, "for"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [1, "form-control", "ccd-dropdown", "bottom-30", 3, "id", "formControl"], [3, "ngValue"], ["role", "option", 3, "ngValue", 4, "ngFor", "ngForOf"], [1, "form-label"], [1, "form-hint"], [1, "error-message"], ["role", "option", 3, "ngValue"]], template: function WriteDynamicListFieldComponent_Template(rf, ctx) {
|
|
14418
14417
|
if (rf & 1) {
|
|
14419
14418
|
i0.ɵɵelementStart(0, "div", 0)(1, "label", 1);
|
|
14420
|
-
i0.ɵɵtemplate(2, WriteDynamicListFieldComponent_span_2_Template,
|
|
14419
|
+
i0.ɵɵtemplate(2, WriteDynamicListFieldComponent_span_2_Template, 3, 3, "span", 2);
|
|
14421
14420
|
i0.ɵɵelementEnd();
|
|
14422
14421
|
i0.ɵɵtemplate(3, WriteDynamicListFieldComponent_span_3_Template, 3, 3, "span", 3);
|
|
14423
14422
|
i0.ɵɵtemplate(4, WriteDynamicListFieldComponent_span_4_Template, 3, 3, "span", 2);
|
|
@@ -14454,7 +14453,7 @@ WriteDynamicListFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ ty
|
|
|
14454
14453
|
(function () {
|
|
14455
14454
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteDynamicListFieldComponent, [{
|
|
14456
14455
|
type: Component,
|
|
14457
|
-
args: [{ selector: 'ccd-write-dynamic-list-field', template: "<div class=\"form-group\"\n [ngClass]=\"{'form-group-error': !dynamicListFormControl.valid && (dynamicListFormControl.dirty || dynamicListFormControl.touched)}\">\n\n <label [for]=\"id()\">\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{(caseField | ccdFieldLabel)
|
|
14456
|
+
args: [{ selector: 'ccd-write-dynamic-list-field', template: "<div class=\"form-group\"\n [ngClass]=\"{'form-group-error': !dynamicListFormControl.valid && (dynamicListFormControl.dirty || dynamicListFormControl.touched)}\">\n\n <label [for]=\"id()\">\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{(caseField | ccdFieldLabel)}}</span>\n </label>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text | rpxTranslate}}</span>\n <span class=\"form-label\" *ngIf=\"!caseField.label && !caseField.hint_text\">{{'Select an option from the dropdown' | rpxTranslate}}</span>\n <span class=\"error-message\"\n *ngIf=\"dynamicListFormControl.errors && dynamicListFormControl.dirty\">{{(dynamicListFormControl.errors |\n ccdFirstError:caseField.label)}}</span>\n\n <select class=\"form-control ccd-dropdown bottom-30\" [id]=\"id()\"\n [formControl]=\"dynamicListFormControl\">\n <option [ngValue]=null>{{'--Select a value--' | rpxTranslate}}</option>\n <option [ngValue]=\"type.code\" *ngFor=\"let type of caseField.list_items\" role=\"option\">{{type.label | rpxTranslate}}</option>\n </select>\n</div>\n" }]
|
|
14458
14457
|
}], null, null);
|
|
14459
14458
|
})();
|
|
14460
14459
|
|
|
@@ -14795,14 +14794,13 @@ function WriteDynamicRadioListFieldComponent_span_4_Template(rf, ctx) {
|
|
|
14795
14794
|
if (rf & 1) {
|
|
14796
14795
|
i0.ɵɵelementStart(0, "span", 7);
|
|
14797
14796
|
i0.ɵɵtext(1);
|
|
14798
|
-
i0.ɵɵpipe(2, "
|
|
14799
|
-
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
14797
|
+
i0.ɵɵpipe(2, "ccdFieldLabel");
|
|
14800
14798
|
i0.ɵɵelementEnd();
|
|
14801
14799
|
}
|
|
14802
14800
|
if (rf & 2) {
|
|
14803
14801
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
14804
14802
|
i0.ɵɵadvance(1);
|
|
14805
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1,
|
|
14803
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
14806
14804
|
}
|
|
14807
14805
|
}
|
|
14808
14806
|
function WriteDynamicRadioListFieldComponent_span_5_Template(rf, ctx) {
|
|
@@ -14894,7 +14892,7 @@ WriteDynamicRadioListFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent
|
|
|
14894
14892
|
i0.ɵɵelementStart(0, "div", 0)(1, "fieldset");
|
|
14895
14893
|
i0.ɵɵelement(2, "legend", 1);
|
|
14896
14894
|
i0.ɵɵelementStart(3, "label", 2);
|
|
14897
|
-
i0.ɵɵtemplate(4, WriteDynamicRadioListFieldComponent_span_4_Template,
|
|
14895
|
+
i0.ɵɵtemplate(4, WriteDynamicRadioListFieldComponent_span_4_Template, 3, 3, "span", 3);
|
|
14898
14896
|
i0.ɵɵtemplate(5, WriteDynamicRadioListFieldComponent_span_5_Template, 3, 3, "span", 4);
|
|
14899
14897
|
i0.ɵɵtemplate(6, WriteDynamicRadioListFieldComponent_span_6_Template, 3, 3, "span", 3);
|
|
14900
14898
|
i0.ɵɵtemplate(7, WriteDynamicRadioListFieldComponent_span_7_Template, 3, 3, "span", 5);
|
|
@@ -14923,7 +14921,7 @@ WriteDynamicRadioListFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent
|
|
|
14923
14921
|
(function () {
|
|
14924
14922
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteDynamicRadioListFieldComponent, [{
|
|
14925
14923
|
type: Component,
|
|
14926
|
-
args: [{ selector: 'ccd-write-dynamic-radio-list-field', template: "<div class=\"form-group bottom-30\"\n [ngClass]=\"{'form-group-error': !dynamicRadioListControl.valid && dynamicRadioListControl.dirty}\" [id]=\"id()\">\n <fieldset>\n <legend style=\"display: none;\"></legend>\n <label [for]=\"id()\">\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{(caseField | ccdFieldLabel)
|
|
14924
|
+
args: [{ selector: 'ccd-write-dynamic-radio-list-field', template: "<div class=\"form-group bottom-30\"\n [ngClass]=\"{'form-group-error': !dynamicRadioListControl.valid && dynamicRadioListControl.dirty}\" [id]=\"id()\">\n <fieldset>\n <legend style=\"display: none;\"></legend>\n <label [for]=\"id()\">\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{(caseField | ccdFieldLabel)}}</span>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text | rpxTranslate}}</span>\n <span class=\"form-label\" *ngIf=\"!caseField.label && !caseField.hint_text\">{{'Select an option below' | rpxTranslate}}</span>\n <span class=\"error-message\"\n *ngIf=\"dynamicRadioListControl.errors && dynamicRadioListControl.dirty\">{{(dynamicRadioListControl.errors |\n ccdFirstError)}}</span>\n </label>\n\n <ng-container>\n <div class=\"multiple-choice\" *ngFor=\"let radioButton of caseField.list_items\" [ngClass]=\"{selected: dynamicRadioListControl.value === radioButton.code}\">\n <input class=\"form-control\" [id]=\"createElementId(radioButton.code)\" [name]=\"id()\" type=\"radio\" [formControl]=\"dynamicRadioListControl\" [value]=\"radioButton.code\">\n <label class=\"form-label\" [for]=\"createElementId(radioButton.code)\">{{radioButton.label | rpxTranslate}}</label>\n </div>\n </ng-container>\n </fieldset>\n</div>\n" }]
|
|
14927
14925
|
}], null, null);
|
|
14928
14926
|
})();
|
|
14929
14927
|
|
|
@@ -14970,14 +14968,13 @@ function WriteEmailFieldComponent_span_2_Template(rf, ctx) {
|
|
|
14970
14968
|
if (rf & 1) {
|
|
14971
14969
|
i0.ɵɵelementStart(0, "span", 6);
|
|
14972
14970
|
i0.ɵɵtext(1);
|
|
14973
|
-
i0.ɵɵpipe(2, "
|
|
14974
|
-
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
14971
|
+
i0.ɵɵpipe(2, "ccdFieldLabel");
|
|
14975
14972
|
i0.ɵɵelementEnd();
|
|
14976
14973
|
}
|
|
14977
14974
|
if (rf & 2) {
|
|
14978
14975
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
14979
14976
|
i0.ɵɵadvance(1);
|
|
14980
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1,
|
|
14977
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
14981
14978
|
}
|
|
14982
14979
|
}
|
|
14983
14980
|
function WriteEmailFieldComponent_span_3_Template(rf, ctx) {
|
|
@@ -15017,7 +15014,7 @@ WriteEmailFieldComponent.ɵfac = /*@__PURE__*/ function () { let ɵWriteEmailFie
|
|
|
15017
15014
|
WriteEmailFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteEmailFieldComponent, selectors: [["ccd-write-email-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 6, vars: 12, consts: [[1, "form-group", "bottom-30", 3, "ngClass"], [3, "for"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], ["type", "email", 1, "form-control", 3, "ngClass", "id", "formControl"], [1, "form-label"], [1, "form-hint"], [1, "error-message"]], template: function WriteEmailFieldComponent_Template(rf, ctx) {
|
|
15018
15015
|
if (rf & 1) {
|
|
15019
15016
|
i0.ɵɵelementStart(0, "div", 0)(1, "label", 1);
|
|
15020
|
-
i0.ɵɵtemplate(2, WriteEmailFieldComponent_span_2_Template,
|
|
15017
|
+
i0.ɵɵtemplate(2, WriteEmailFieldComponent_span_2_Template, 3, 3, "span", 2);
|
|
15021
15018
|
i0.ɵɵelementEnd();
|
|
15022
15019
|
i0.ɵɵtemplate(3, WriteEmailFieldComponent_span_3_Template, 3, 3, "span", 3);
|
|
15023
15020
|
i0.ɵɵtemplate(4, WriteEmailFieldComponent_span_4_Template, 3, 4, "span", 4);
|
|
@@ -15041,7 +15038,7 @@ WriteEmailFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Wr
|
|
|
15041
15038
|
(function () {
|
|
15042
15039
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteEmailFieldComponent, [{
|
|
15043
15040
|
type: Component,
|
|
15044
|
-
args: [{ selector: 'ccd-write-email-field', template: "<div class=\"form-group bottom-30\" [ngClass]=\"{'form-group-error': !emailControl.valid && (emailControl.dirty || emailControl.touched)}\">\n\n <label [for]=\"id()\">\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{(caseField | ccdFieldLabel)
|
|
15041
|
+
args: [{ selector: 'ccd-write-email-field', template: "<div class=\"form-group bottom-30\" [ngClass]=\"{'form-group-error': !emailControl.valid && (emailControl.dirty || emailControl.touched)}\">\n\n <label [for]=\"id()\">\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{(caseField | ccdFieldLabel)}}</span>\n </label>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text | rpxTranslate}}</span>\n <span class=\"error-message\" *ngIf=\"emailControl.errors && (emailControl.dirty || emailControl.touched)\">{{(emailControl.errors | ccdFirstError:caseField.label)}}</span>\n\n <input class=\"form-control\" [ngClass]=\"{'govuk-input--error': emailControl.errors && (emailControl.dirty || emailControl.touched)}\"\n [id]=\"id()\" type=\"email\" [formControl]=\"emailControl\">\n\n</div>\n" }]
|
|
15045
15042
|
}], null, null);
|
|
15046
15043
|
})();
|
|
15047
15044
|
|
|
@@ -15075,14 +15072,13 @@ function WriteFixedListFieldComponent_span_2_Template(rf, ctx) {
|
|
|
15075
15072
|
if (rf & 1) {
|
|
15076
15073
|
i0.ɵɵelementStart(0, "span", 8);
|
|
15077
15074
|
i0.ɵɵtext(1);
|
|
15078
|
-
i0.ɵɵpipe(2, "
|
|
15079
|
-
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
15075
|
+
i0.ɵɵpipe(2, "ccdFieldLabel");
|
|
15080
15076
|
i0.ɵɵelementEnd();
|
|
15081
15077
|
}
|
|
15082
15078
|
if (rf & 2) {
|
|
15083
15079
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
15084
15080
|
i0.ɵɵadvance(1);
|
|
15085
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1,
|
|
15081
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
15086
15082
|
}
|
|
15087
15083
|
}
|
|
15088
15084
|
function WriteFixedListFieldComponent_span_3_Template(rf, ctx) {
|
|
@@ -15151,7 +15147,7 @@ WriteFixedListFieldComponent.ɵfac = /*@__PURE__*/ function () { let ɵWriteFixe
|
|
|
15151
15147
|
WriteFixedListFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteFixedListFieldComponent, selectors: [["ccd-write-fixed-list-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 9, vars: 11, consts: [[1, "form-group", 3, "ngClass"], [3, "for"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [1, "form-control", "ccd-dropdown", "bottom-30", 3, "id", "formControl"], [3, "ngValue"], [3, "ngValue", 4, "ngFor", "ngForOf"], [1, "form-label"], [1, "form-hint"], [1, "error-message"]], template: function WriteFixedListFieldComponent_Template(rf, ctx) {
|
|
15152
15148
|
if (rf & 1) {
|
|
15153
15149
|
i0.ɵɵelementStart(0, "div", 0)(1, "label", 1);
|
|
15154
|
-
i0.ɵɵtemplate(2, WriteFixedListFieldComponent_span_2_Template,
|
|
15150
|
+
i0.ɵɵtemplate(2, WriteFixedListFieldComponent_span_2_Template, 3, 3, "span", 2);
|
|
15155
15151
|
i0.ɵɵelementEnd();
|
|
15156
15152
|
i0.ɵɵtemplate(3, WriteFixedListFieldComponent_span_3_Template, 3, 3, "span", 3);
|
|
15157
15153
|
i0.ɵɵtemplate(4, WriteFixedListFieldComponent_span_4_Template, 3, 4, "span", 4);
|
|
@@ -15182,7 +15178,7 @@ WriteFixedListFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type
|
|
|
15182
15178
|
(function () {
|
|
15183
15179
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteFixedListFieldComponent, [{
|
|
15184
15180
|
type: Component,
|
|
15185
|
-
args: [{ selector: 'ccd-write-fixed-list-field', template: "<div class=\"form-group\" [ngClass]=\"{'form-group-error': !fixedListFormControl.valid && (fixedListFormControl.dirty || fixedListFormControl.touched)}\">\n\n <label [for]=\"id()\">\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{(caseField | ccdFieldLabel)
|
|
15181
|
+
args: [{ selector: 'ccd-write-fixed-list-field', template: "<div class=\"form-group\" [ngClass]=\"{'form-group-error': !fixedListFormControl.valid && (fixedListFormControl.dirty || fixedListFormControl.touched)}\">\n\n <label [for]=\"id()\">\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{(caseField | ccdFieldLabel)}}</span>\n </label>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text | rpxTranslate}}</span>\n <span class=\"error-message\" *ngIf=\"fixedListFormControl.errors && (fixedListFormControl.dirty || fixedListFormControl.touched)\">\n {{(fixedListFormControl.errors | ccdFirstError:caseField.label)}}\n </span>\n\n <select class=\"form-control ccd-dropdown bottom-30\" [id]=\"id()\" [formControl]=\"fixedListFormControl\">\n <option [ngValue]=null>--Select a value--</option>\n <option [ngValue]=\"type.code\" *ngFor=\"let type of listItems\">{{type.label | rpxTranslate}}</option>\n </select>\n\n</div>\n" }]
|
|
15186
15182
|
}], null, null);
|
|
15187
15183
|
})();
|
|
15188
15184
|
|
|
@@ -15234,14 +15230,13 @@ function WriteFixedRadioListFieldComponent_span_4_Template(rf, ctx) {
|
|
|
15234
15230
|
if (rf & 1) {
|
|
15235
15231
|
i0.ɵɵelementStart(0, "span", 6);
|
|
15236
15232
|
i0.ɵɵtext(1);
|
|
15237
|
-
i0.ɵɵpipe(2, "
|
|
15238
|
-
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
15233
|
+
i0.ɵɵpipe(2, "ccdFieldLabel");
|
|
15239
15234
|
i0.ɵɵelementEnd();
|
|
15240
15235
|
}
|
|
15241
15236
|
if (rf & 2) {
|
|
15242
15237
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
15243
15238
|
i0.ɵɵadvance(1);
|
|
15244
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1,
|
|
15239
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
15245
15240
|
}
|
|
15246
15241
|
}
|
|
15247
15242
|
function WriteFixedRadioListFieldComponent_span_5_Template(rf, ctx) {
|
|
@@ -15303,7 +15298,7 @@ WriteFixedRadioListFieldComponent.ɵfac = /*@__PURE__*/ function () { let ɵWrit
|
|
|
15303
15298
|
WriteFixedRadioListFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteFixedRadioListFieldComponent, selectors: [["ccd-write-fixed-radio-list-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 9, vars: 9, consts: [[1, "form-group", "bottom-30", 3, "ngClass", "id"], [3, "for"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], ["class", "multiple-choice", 3, "ngClass", 4, "ngFor", "ngForOf"], [1, "form-label"], [1, "form-hint"], [1, "error-message"], [1, "multiple-choice", 3, "ngClass"], ["type", "radio", 1, "form-control", 3, "id", "name", "formControl", "value"], [1, "form-label", 3, "for"]], template: function WriteFixedRadioListFieldComponent_Template(rf, ctx) {
|
|
15304
15299
|
if (rf & 1) {
|
|
15305
15300
|
i0.ɵɵelementStart(0, "div", 0)(1, "fieldset")(2, "legend")(3, "label", 1);
|
|
15306
|
-
i0.ɵɵtemplate(4, WriteFixedRadioListFieldComponent_span_4_Template,
|
|
15301
|
+
i0.ɵɵtemplate(4, WriteFixedRadioListFieldComponent_span_4_Template, 3, 3, "span", 2);
|
|
15307
15302
|
i0.ɵɵelementEnd();
|
|
15308
15303
|
i0.ɵɵtemplate(5, WriteFixedRadioListFieldComponent_span_5_Template, 3, 3, "span", 3);
|
|
15309
15304
|
i0.ɵɵtemplate(6, WriteFixedRadioListFieldComponent_span_6_Template, 3, 4, "span", 4);
|
|
@@ -15330,7 +15325,7 @@ WriteFixedRadioListFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({
|
|
|
15330
15325
|
(function () {
|
|
15331
15326
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteFixedRadioListFieldComponent, [{
|
|
15332
15327
|
type: Component,
|
|
15333
|
-
args: [{ selector: 'ccd-write-fixed-radio-list-field', template: "<div class=\"form-group bottom-30\" [ngClass]=\"{'form-group-error': !fixedRadioListControl.valid && (fixedRadioListControl.dirty || fixedRadioListControl.touched)}\" [id]=\"id()\">\n <fieldset>\n <legend>\n <label [for]=\"id()\">\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{(caseField | ccdFieldLabel)
|
|
15328
|
+
args: [{ selector: 'ccd-write-fixed-radio-list-field', template: "<div class=\"form-group bottom-30\" [ngClass]=\"{'form-group-error': !fixedRadioListControl.valid && (fixedRadioListControl.dirty || fixedRadioListControl.touched)}\" [id]=\"id()\">\n <fieldset>\n <legend>\n <label [for]=\"id()\">\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{(caseField | ccdFieldLabel)}}</span>\n </label>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text | rpxTranslate }}</span>\n <span class=\"error-message\" *ngIf=\"fixedRadioListControl.errors && (fixedRadioListControl.dirty || fixedRadioListControl.touched)\">{{(fixedRadioListControl.errors | ccdFirstError:caseField.label)}}</span>\n </legend>\n <ng-container>\n <div class=\"multiple-choice\" *ngFor=\"let radioButton of caseField.field_type.fixed_list_items\" [ngClass]=\"{selected: fixedRadioListControl.value === radioButton.code}\">\n <input class=\"form-control\" [id]=\"id()+'-'+radioButton.code\" [name]=\"id()\" type=\"radio\" [formControl]=\"fixedRadioListControl\" [value]=\"radioButton.code\">\n <label class=\"form-label\" [for]=\"id()+'-'+radioButton.code\">{{radioButton.label | rpxTranslate}}</label>\n </div>\n </ng-container>\n </fieldset>\n</div>\n" }]
|
|
15334
15329
|
}], null, null);
|
|
15335
15330
|
})();
|
|
15336
15331
|
|
|
@@ -18182,14 +18177,13 @@ function WriteMoneyGbpFieldComponent_span_2_Template(rf, ctx) {
|
|
|
18182
18177
|
if (rf & 1) {
|
|
18183
18178
|
i0.ɵɵelementStart(0, "span", 8);
|
|
18184
18179
|
i0.ɵɵtext(1);
|
|
18185
|
-
i0.ɵɵpipe(2, "
|
|
18186
|
-
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
18180
|
+
i0.ɵɵpipe(2, "ccdFieldLabel");
|
|
18187
18181
|
i0.ɵɵelementEnd();
|
|
18188
18182
|
}
|
|
18189
18183
|
if (rf & 2) {
|
|
18190
18184
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
18191
18185
|
i0.ɵɵadvance(1);
|
|
18192
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1,
|
|
18186
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
18193
18187
|
}
|
|
18194
18188
|
}
|
|
18195
18189
|
function WriteMoneyGbpFieldComponent_span_3_Template(rf, ctx) {
|
|
@@ -18228,7 +18222,7 @@ WriteMoneyGbpFieldComponent.ɵfac = /*@__PURE__*/ function () { let ɵWriteMoney
|
|
|
18228
18222
|
WriteMoneyGbpFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteMoneyGbpFieldComponent, selectors: [["ccd-write-money-gbp-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 10, vars: 13, consts: [[1, "form-group", "bottom-30", 3, "ngClass"], [3, "for"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [1, "form-money"], [1, "form-currency"], [3, "id", "name", "mandatory", "formControl"], [1, "form-label"], [1, "form-hint"], [1, "error-message"]], template: function WriteMoneyGbpFieldComponent_Template(rf, ctx) {
|
|
18229
18223
|
if (rf & 1) {
|
|
18230
18224
|
i0.ɵɵelementStart(0, "div", 0)(1, "label", 1);
|
|
18231
|
-
i0.ɵɵtemplate(2, WriteMoneyGbpFieldComponent_span_2_Template,
|
|
18225
|
+
i0.ɵɵtemplate(2, WriteMoneyGbpFieldComponent_span_2_Template, 3, 3, "span", 2);
|
|
18232
18226
|
i0.ɵɵelementEnd();
|
|
18233
18227
|
i0.ɵɵtemplate(3, WriteMoneyGbpFieldComponent_span_3_Template, 3, 3, "span", 3);
|
|
18234
18228
|
i0.ɵɵtemplate(4, WriteMoneyGbpFieldComponent_span_4_Template, 3, 4, "span", 4);
|
|
@@ -18256,7 +18250,7 @@ WriteMoneyGbpFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
18256
18250
|
(function () {
|
|
18257
18251
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteMoneyGbpFieldComponent, [{
|
|
18258
18252
|
type: Component,
|
|
18259
|
-
args: [{ selector: 'ccd-write-money-gbp-field', template: "<div class=\"form-group bottom-30\" [ngClass]=\"{'form-group-error': !moneyGbpControl.valid && (moneyGbpControl.dirty || moneyGbpControl.touched)}\">\n\n <label [for]=\"id()\">\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{caseField | ccdFieldLabel
|
|
18253
|
+
args: [{ selector: 'ccd-write-money-gbp-field', template: "<div class=\"form-group bottom-30\" [ngClass]=\"{'form-group-error': !moneyGbpControl.valid && (moneyGbpControl.dirty || moneyGbpControl.touched)}\">\n\n <label [for]=\"id()\">\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{caseField | ccdFieldLabel}}</span>\n </label>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text | rpxTranslate}}</span>\n <span class=\"error-message\" *ngIf=\"moneyGbpControl.errors && (moneyGbpControl.dirty || moneyGbpControl.touched)\">{{moneyGbpControl.errors | ccdFirstError:caseField.label}}</span>\n\n <div class=\"form-money\">\n <span class=\"form-currency\">£</span>\n <ccd-money-gbp-input [id]=\"id()\"\n [name]=\"id()\"\n [mandatory]=\"caseField | ccdIsMandatory\"\n [formControl]=\"moneyGbpControl\"></ccd-money-gbp-input>\n </div>\n\n</div>\n" }]
|
|
18260
18254
|
}], null, null);
|
|
18261
18255
|
})();
|
|
18262
18256
|
|
|
@@ -18314,14 +18308,13 @@ function WriteMultiSelectListFieldComponent_span_3_Template(rf, ctx) {
|
|
|
18314
18308
|
if (rf & 1) {
|
|
18315
18309
|
i0.ɵɵelementStart(0, "span", 5);
|
|
18316
18310
|
i0.ɵɵtext(1);
|
|
18317
|
-
i0.ɵɵpipe(2, "
|
|
18318
|
-
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
18311
|
+
i0.ɵɵpipe(2, "ccdFieldLabel");
|
|
18319
18312
|
i0.ɵɵelementEnd();
|
|
18320
18313
|
}
|
|
18321
18314
|
if (rf & 2) {
|
|
18322
18315
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
18323
18316
|
i0.ɵɵadvance(1);
|
|
18324
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1,
|
|
18317
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
18325
18318
|
}
|
|
18326
18319
|
}
|
|
18327
18320
|
function WriteMultiSelectListFieldComponent_span_4_Template(rf, ctx) {
|
|
@@ -18420,7 +18413,7 @@ WriteMultiSelectListFieldComponent.ɵfac = /*@__PURE__*/ function () { let ɵWri
|
|
|
18420
18413
|
WriteMultiSelectListFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteMultiSelectListFieldComponent, selectors: [["ccd-write-multi-select-list-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 7, vars: 8, consts: [[1, "form-group", "bottom-30", 3, "ngClass", "id"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "form-label"], [1, "form-hint"], [1, "error-message"], [1, "multiple-choice"], ["type", "checkbox", 1, "form-control", 3, "id", "name", "value", "checked", "change"], [1, "form-label", 3, "for"]], template: function WriteMultiSelectListFieldComponent_Template(rf, ctx) {
|
|
18421
18414
|
if (rf & 1) {
|
|
18422
18415
|
i0.ɵɵelementStart(0, "div", 0)(1, "fieldset")(2, "legend");
|
|
18423
|
-
i0.ɵɵtemplate(3, WriteMultiSelectListFieldComponent_span_3_Template,
|
|
18416
|
+
i0.ɵɵtemplate(3, WriteMultiSelectListFieldComponent_span_3_Template, 3, 3, "span", 1);
|
|
18424
18417
|
i0.ɵɵelementEnd();
|
|
18425
18418
|
i0.ɵɵtemplate(4, WriteMultiSelectListFieldComponent_span_4_Template, 3, 3, "span", 2);
|
|
18426
18419
|
i0.ɵɵtemplate(5, WriteMultiSelectListFieldComponent_span_5_Template, 3, 4, "span", 3);
|
|
@@ -18442,7 +18435,7 @@ WriteMultiSelectListFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent(
|
|
|
18442
18435
|
(function () {
|
|
18443
18436
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteMultiSelectListFieldComponent, [{
|
|
18444
18437
|
type: Component,
|
|
18445
|
-
args: [{ selector: 'ccd-write-multi-select-list-field', template: "<div class=\"form-group bottom-30\" [ngClass]=\"{'error': !checkboxes.valid && (checkboxes.dirty || checkboxes.touched)}\" [id]=\"id()\">\n\n <fieldset>\n\n <legend>\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{caseField | ccdFieldLabel
|
|
18438
|
+
args: [{ selector: 'ccd-write-multi-select-list-field', template: "<div class=\"form-group bottom-30\" [ngClass]=\"{'error': !checkboxes.valid && (checkboxes.dirty || checkboxes.touched)}\" [id]=\"id()\">\n\n <fieldset>\n\n <legend>\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{caseField | ccdFieldLabel}}</span>\n </legend>\n <span *ngIf=\"caseField.hint_text\" class=\"form-hint\">{{caseField.hint_text | rpxTranslate}}</span>\n <span *ngIf=\"checkboxes.errors && (checkboxes.dirty || checkboxes.touched)\" class=\"error-message\">{{checkboxes.errors | ccdFirstError:caseField.label}}</span>\n\n <ng-container *ngFor=\"let checkbox of caseField.field_type.fixed_list_items\">\n\n <div class=\"multiple-choice\">\n <input class=\"form-control\" [id]=\"id()+'-'+checkbox.code\" [name]=\"id()\" type=\"checkbox\" [value]=\"checkbox.code\" [checked]=\"isSelected(checkbox.code)\" (change)=\"onCheckChange($event)\">\n <label class=\"form-label\" [for]=\"id()+'-'+checkbox.code\">{{checkbox.label | rpxTranslate}}</label>\n </div>\n\n </ng-container>\n\n </fieldset>\n\n</div>\n" }]
|
|
18446
18439
|
}], null, null);
|
|
18447
18440
|
})();
|
|
18448
18441
|
|
|
@@ -18475,14 +18468,13 @@ function WriteNumberFieldComponent_span_2_Template(rf, ctx) {
|
|
|
18475
18468
|
if (rf & 1) {
|
|
18476
18469
|
i0.ɵɵelementStart(0, "span", 6);
|
|
18477
18470
|
i0.ɵɵtext(1);
|
|
18478
|
-
i0.ɵɵpipe(2, "
|
|
18479
|
-
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
18471
|
+
i0.ɵɵpipe(2, "ccdFieldLabel");
|
|
18480
18472
|
i0.ɵɵelementEnd();
|
|
18481
18473
|
}
|
|
18482
18474
|
if (rf & 2) {
|
|
18483
18475
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
18484
18476
|
i0.ɵɵadvance(1);
|
|
18485
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1,
|
|
18477
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
18486
18478
|
}
|
|
18487
18479
|
}
|
|
18488
18480
|
function WriteNumberFieldComponent_span_3_Template(rf, ctx) {
|
|
@@ -18522,7 +18514,7 @@ WriteNumberFieldComponent.ɵfac = /*@__PURE__*/ function () { let ɵWriteNumberF
|
|
|
18522
18514
|
WriteNumberFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteNumberFieldComponent, selectors: [["ccd-write-number-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 6, vars: 12, consts: [[1, "form-group", 3, "ngClass"], [3, "for"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], ["type", "number", 1, "form-control", "bottom-30", 3, "ngClass", "id", "formControl"], [1, "form-label"], [1, "form-hint"], [1, "error-message"]], template: function WriteNumberFieldComponent_Template(rf, ctx) {
|
|
18523
18515
|
if (rf & 1) {
|
|
18524
18516
|
i0.ɵɵelementStart(0, "div", 0)(1, "label", 1);
|
|
18525
|
-
i0.ɵɵtemplate(2, WriteNumberFieldComponent_span_2_Template,
|
|
18517
|
+
i0.ɵɵtemplate(2, WriteNumberFieldComponent_span_2_Template, 3, 3, "span", 2);
|
|
18526
18518
|
i0.ɵɵelementEnd();
|
|
18527
18519
|
i0.ɵɵtemplate(3, WriteNumberFieldComponent_span_3_Template, 3, 3, "span", 3);
|
|
18528
18520
|
i0.ɵɵtemplate(4, WriteNumberFieldComponent_span_4_Template, 3, 4, "span", 4);
|
|
@@ -18546,7 +18538,7 @@ WriteNumberFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: W
|
|
|
18546
18538
|
(function () {
|
|
18547
18539
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteNumberFieldComponent, [{
|
|
18548
18540
|
type: Component,
|
|
18549
|
-
args: [{ selector: 'ccd-write-number-field', template: "<div class=\"form-group\" [ngClass]=\"{'form-group-error': !numberControl.valid && numberControl.dirty}\">\n <label [for]=\"id()\">\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{caseField | ccdFieldLabel
|
|
18541
|
+
args: [{ selector: 'ccd-write-number-field', template: "<div class=\"form-group\" [ngClass]=\"{'form-group-error': !numberControl.valid && numberControl.dirty}\">\n <label [for]=\"id()\">\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{caseField | ccdFieldLabel}}</span>\n </label>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text | rpxTranslate}}</span>\n <span class=\"error-message\" *ngIf=\"numberControl.errors && numberControl.dirty\">\n {{numberControl.errors | ccdFirstError:caseField.label}}\n </span>\n\n <input class=\"form-control bottom-30\" [ngClass]=\"{'govuk-input--error': numberControl.errors && numberControl.dirty}\"\n [id]=\"id()\" type=\"number\" [formControl]=\"numberControl\">\n</div>\n" }]
|
|
18550
18542
|
}], null, null);
|
|
18551
18543
|
})();
|
|
18552
18544
|
|
|
@@ -19220,14 +19212,13 @@ function WritePhoneUKFieldComponent_span_2_Template(rf, ctx) {
|
|
|
19220
19212
|
if (rf & 1) {
|
|
19221
19213
|
i0.ɵɵelementStart(0, "span", 6);
|
|
19222
19214
|
i0.ɵɵtext(1);
|
|
19223
|
-
i0.ɵɵpipe(2, "
|
|
19224
|
-
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
19215
|
+
i0.ɵɵpipe(2, "ccdFieldLabel");
|
|
19225
19216
|
i0.ɵɵelementEnd();
|
|
19226
19217
|
}
|
|
19227
19218
|
if (rf & 2) {
|
|
19228
19219
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
19229
19220
|
i0.ɵɵadvance(1);
|
|
19230
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1,
|
|
19221
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
19231
19222
|
}
|
|
19232
19223
|
}
|
|
19233
19224
|
function WritePhoneUKFieldComponent_span_3_Template(rf, ctx) {
|
|
@@ -19267,7 +19258,7 @@ WritePhoneUKFieldComponent.ɵfac = /*@__PURE__*/ function () { let ɵWritePhoneU
|
|
|
19267
19258
|
WritePhoneUKFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WritePhoneUKFieldComponent, selectors: [["ccd-write-phone-uk-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 6, vars: 12, consts: [[1, "form-group", 3, "ngClass"], [3, "for"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], ["type", "tel", 1, "form-control", "bottom-30", 3, "ngClass", "id", "formControl"], [1, "form-label"], [1, "form-hint"], [1, "error-message"]], template: function WritePhoneUKFieldComponent_Template(rf, ctx) {
|
|
19268
19259
|
if (rf & 1) {
|
|
19269
19260
|
i0.ɵɵelementStart(0, "div", 0)(1, "label", 1);
|
|
19270
|
-
i0.ɵɵtemplate(2, WritePhoneUKFieldComponent_span_2_Template,
|
|
19261
|
+
i0.ɵɵtemplate(2, WritePhoneUKFieldComponent_span_2_Template, 3, 3, "span", 2);
|
|
19271
19262
|
i0.ɵɵelementEnd();
|
|
19272
19263
|
i0.ɵɵtemplate(3, WritePhoneUKFieldComponent_span_3_Template, 3, 3, "span", 3);
|
|
19273
19264
|
i0.ɵɵtemplate(4, WritePhoneUKFieldComponent_span_4_Template, 3, 4, "span", 4);
|
|
@@ -19291,7 +19282,7 @@ WritePhoneUKFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
19291
19282
|
(function () {
|
|
19292
19283
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WritePhoneUKFieldComponent, [{
|
|
19293
19284
|
type: Component,
|
|
19294
|
-
args: [{ selector: 'ccd-write-phone-uk-field', template: "<div class=\"form-group\" [ngClass]=\"{'form-group-error': !phoneUkControl.valid && (phoneUkControl.dirty || phoneUkControl.touched)}\">\n <label [for]=\"id()\">\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{caseField | ccdFieldLabel
|
|
19285
|
+
args: [{ selector: 'ccd-write-phone-uk-field', template: "<div class=\"form-group\" [ngClass]=\"{'form-group-error': !phoneUkControl.valid && (phoneUkControl.dirty || phoneUkControl.touched)}\">\n <label [for]=\"id()\">\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{caseField | ccdFieldLabel}}</span>\n </label>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text | rpxTranslate}}</span>\n <span class=\"error-message\" *ngIf=\"phoneUkControl.errors && (phoneUkControl.dirty || phoneUkControl.touched)\">\n {{phoneUkControl.errors | ccdFirstError:caseField.label}}\n </span>\n <input class=\"form-control bottom-30\" [ngClass]=\"{'govuk-input--error': phoneUkControl.errors && phoneUkControl.dirty}\"\n [id]=\"id()\" type=\"tel\" [formControl]=\"phoneUkControl\">\n</div>\n" }]
|
|
19295
19286
|
}], null, null);
|
|
19296
19287
|
})();
|
|
19297
19288
|
|
|
@@ -21491,14 +21482,13 @@ function WriteTextAreaFieldComponent_span_2_Template(rf, ctx) {
|
|
|
21491
21482
|
if (rf & 1) {
|
|
21492
21483
|
i0.ɵɵelementStart(0, "span", 6);
|
|
21493
21484
|
i0.ɵɵtext(1);
|
|
21494
|
-
i0.ɵɵpipe(2, "
|
|
21495
|
-
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
21485
|
+
i0.ɵɵpipe(2, "ccdFieldLabel");
|
|
21496
21486
|
i0.ɵɵelementEnd();
|
|
21497
21487
|
}
|
|
21498
21488
|
if (rf & 2) {
|
|
21499
21489
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
21500
21490
|
i0.ɵɵadvance(1);
|
|
21501
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1,
|
|
21491
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
21502
21492
|
}
|
|
21503
21493
|
}
|
|
21504
21494
|
function WriteTextAreaFieldComponent_span_3_Template(rf, ctx) {
|
|
@@ -21549,7 +21539,7 @@ WriteTextAreaFieldComponent.ɵfac = function WriteTextAreaFieldComponent_Factory
|
|
|
21549
21539
|
WriteTextAreaFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteTextAreaFieldComponent, selectors: [["ccd-write-text-area-field"]], features: [i0.ɵɵProvidersFeature([BrowserService]), i0.ɵɵInheritDefinitionFeature], decls: 6, vars: 12, consts: [[1, "form-group", 3, "ngClass"], [3, "for"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], ["rows", "3", 1, "form-control", "bottom-30", 3, "ngClass", "id", "formControl", "input"], [1, "form-label"], [1, "form-hint"], [1, "error-message"]], template: function WriteTextAreaFieldComponent_Template(rf, ctx) {
|
|
21550
21540
|
if (rf & 1) {
|
|
21551
21541
|
i0.ɵɵelementStart(0, "div", 0)(1, "label", 1);
|
|
21552
|
-
i0.ɵɵtemplate(2, WriteTextAreaFieldComponent_span_2_Template,
|
|
21542
|
+
i0.ɵɵtemplate(2, WriteTextAreaFieldComponent_span_2_Template, 3, 3, "span", 2);
|
|
21553
21543
|
i0.ɵɵelementEnd();
|
|
21554
21544
|
i0.ɵɵtemplate(3, WriteTextAreaFieldComponent_span_3_Template, 3, 3, "span", 3);
|
|
21555
21545
|
i0.ɵɵtemplate(4, WriteTextAreaFieldComponent_span_4_Template, 3, 4, "span", 4);
|
|
@@ -21574,7 +21564,7 @@ WriteTextAreaFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
21574
21564
|
(function () {
|
|
21575
21565
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteTextAreaFieldComponent, [{
|
|
21576
21566
|
type: Component,
|
|
21577
|
-
args: [{ selector: 'ccd-write-text-area-field', providers: [BrowserService], template: "<div class=\"form-group\" [ngClass]=\"{'form-group-error': !textareaControl.valid && textareaControl.dirty}\">\n\n <label [for]=\"id()\">\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{caseField | ccdFieldLabel
|
|
21567
|
+
args: [{ selector: 'ccd-write-text-area-field', providers: [BrowserService], template: "<div class=\"form-group\" [ngClass]=\"{'form-group-error': !textareaControl.valid && textareaControl.dirty}\">\n\n <label [for]=\"id()\">\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{caseField | ccdFieldLabel}}</span>\n </label>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text | rpxTranslate}}</span>\n <span class=\"error-message\" *ngIf=\"textareaControl.errors && (textareaControl.dirty || textareaControl.touched)\">\n {{textareaControl.errors | ccdFirstError:caseField.label}}\n </span>\n\n <textarea (input)=\"autoGrow($event)\" class=\"form-control bottom-30\" [ngClass]=\"{'govuk-textarea--error': textareaControl.errors && (textareaControl.dirty || textareaControl.touched)}\"\n [id]=\"id()\" rows=\"3\" [formControl]=\"textareaControl\"></textarea>\n</div>\n" }]
|
|
21578
21568
|
}], function () { return [{ type: BrowserService }]; }, null);
|
|
21579
21569
|
})();
|
|
21580
21570
|
|
|
@@ -21607,14 +21597,13 @@ function WriteTextFieldComponent_span_2_Template(rf, ctx) {
|
|
|
21607
21597
|
if (rf & 1) {
|
|
21608
21598
|
i0.ɵɵelementStart(0, "span", 6);
|
|
21609
21599
|
i0.ɵɵtext(1);
|
|
21610
|
-
i0.ɵɵpipe(2, "
|
|
21611
|
-
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
21600
|
+
i0.ɵɵpipe(2, "ccdFieldLabel");
|
|
21612
21601
|
i0.ɵɵelementEnd();
|
|
21613
21602
|
}
|
|
21614
21603
|
if (rf & 2) {
|
|
21615
21604
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
21616
21605
|
i0.ɵɵadvance(1);
|
|
21617
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1,
|
|
21606
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
21618
21607
|
}
|
|
21619
21608
|
}
|
|
21620
21609
|
function WriteTextFieldComponent_span_3_Template(rf, ctx) {
|
|
@@ -21657,7 +21646,7 @@ WriteTextFieldComponent.ɵfac = /*@__PURE__*/ function () { let ɵWriteTextField
|
|
|
21657
21646
|
WriteTextFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteTextFieldComponent, selectors: [["ccd-write-text-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 6, vars: 12, consts: [[1, "form-group", 3, "ngClass"], [3, "for"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], ["type", "text", 1, "form-control", "bottom-30", 3, "ngClass", "id", "formControl", "blur"], [1, "form-label"], [1, "form-hint"], [1, "error-message"]], template: function WriteTextFieldComponent_Template(rf, ctx) {
|
|
21658
21647
|
if (rf & 1) {
|
|
21659
21648
|
i0.ɵɵelementStart(0, "div", 0)(1, "label", 1);
|
|
21660
|
-
i0.ɵɵtemplate(2, WriteTextFieldComponent_span_2_Template,
|
|
21649
|
+
i0.ɵɵtemplate(2, WriteTextFieldComponent_span_2_Template, 3, 3, "span", 2);
|
|
21661
21650
|
i0.ɵɵelementEnd();
|
|
21662
21651
|
i0.ɵɵtemplate(3, WriteTextFieldComponent_span_3_Template, 3, 3, "span", 3);
|
|
21663
21652
|
i0.ɵɵtemplate(4, WriteTextFieldComponent_span_4_Template, 3, 4, "span", 4);
|
|
@@ -21682,7 +21671,7 @@ WriteTextFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Wri
|
|
|
21682
21671
|
(function () {
|
|
21683
21672
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteTextFieldComponent, [{
|
|
21684
21673
|
type: Component,
|
|
21685
|
-
args: [{ selector: 'ccd-write-text-field', template: "<div class=\"form-group\" [ngClass]=\"{'form-group-error': !!textControl && !textControl.valid && (textControl.dirty || textControl.touched)}\">\n <label [for]=\"id()\">\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{caseField | ccdFieldLabel
|
|
21674
|
+
args: [{ selector: 'ccd-write-text-field', template: "<div class=\"form-group\" [ngClass]=\"{'form-group-error': !!textControl && !textControl.valid && (textControl.dirty || textControl.touched)}\">\n <label [for]=\"id()\">\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{caseField | ccdFieldLabel}}</span>\n </label>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text | rpxTranslate}}</span>\n <span class=\"error-message\" *ngIf=\"textControl?.errors && (textControl.dirty || textControl.touched)\">\n {{textControl.errors | ccdFirstError:caseField.label}}\n </span>\n <input class=\"form-control bottom-30\" [ngClass]=\"{'govuk-input--error': textControl?.errors && (textControl.dirty || textControl.touched)}\"\n [id]=\"id()\" type=\"text\" [formControl]=\"textControl\" (blur)=\"onBlur($event)\">\n</div>\n" }]
|
|
21686
21675
|
}], null, null);
|
|
21687
21676
|
})();
|
|
21688
21677
|
|
|
@@ -21828,14 +21817,13 @@ function WriteYesNoFieldComponent_span_3_Template(rf, ctx) {
|
|
|
21828
21817
|
if (rf & 1) {
|
|
21829
21818
|
i0.ɵɵelementStart(0, "span", 7);
|
|
21830
21819
|
i0.ɵɵtext(1);
|
|
21831
|
-
i0.ɵɵpipe(2, "
|
|
21832
|
-
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
21820
|
+
i0.ɵɵpipe(2, "ccdFieldLabel");
|
|
21833
21821
|
i0.ɵɵelementEnd();
|
|
21834
21822
|
}
|
|
21835
21823
|
if (rf & 2) {
|
|
21836
21824
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
21837
21825
|
i0.ɵɵadvance(1);
|
|
21838
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1,
|
|
21826
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
21839
21827
|
}
|
|
21840
21828
|
}
|
|
21841
21829
|
function WriteYesNoFieldComponent_span_4_Template(rf, ctx) {
|
|
@@ -21902,7 +21890,7 @@ WriteYesNoFieldComponent.ɵfac = function WriteYesNoFieldComponent_Factory(t) {
|
|
|
21902
21890
|
WriteYesNoFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteYesNoFieldComponent, selectors: [["ccd-write-yes-no-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 8, vars: 9, consts: [[1, "form-group", "bottom-30", 3, "id", "ngClass"], [1, "inline"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [3, "id"], ["class", "multiple-choice", 3, "ngClass", 4, "ngFor", "ngForOf"], [1, "form-label"], [1, "form-hint"], [1, "error-message"], [1, "multiple-choice", 3, "ngClass"], ["type", "radio", 1, "form-control", 3, "id", "name", "formControl", "value"], [1, "form-label", 3, "for"]], template: function WriteYesNoFieldComponent_Template(rf, ctx) {
|
|
21903
21891
|
if (rf & 1) {
|
|
21904
21892
|
i0.ɵɵelementStart(0, "div", 0)(1, "fieldset", 1)(2, "legend");
|
|
21905
|
-
i0.ɵɵtemplate(3, WriteYesNoFieldComponent_span_3_Template,
|
|
21893
|
+
i0.ɵɵtemplate(3, WriteYesNoFieldComponent_span_3_Template, 3, 3, "span", 2);
|
|
21906
21894
|
i0.ɵɵelementEnd();
|
|
21907
21895
|
i0.ɵɵtemplate(4, WriteYesNoFieldComponent_span_4_Template, 3, 3, "span", 3);
|
|
21908
21896
|
i0.ɵɵtemplate(5, WriteYesNoFieldComponent_span_5_Template, 3, 4, "span", 4);
|
|
@@ -21927,7 +21915,7 @@ WriteYesNoFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Wr
|
|
|
21927
21915
|
(function () {
|
|
21928
21916
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteYesNoFieldComponent, [{
|
|
21929
21917
|
type: Component,
|
|
21930
|
-
args: [{ selector: 'ccd-write-yes-no-field', template: "<div [id]=\"id()\" class=\"form-group bottom-30\" [ngClass]=\"{'form-group-error': !yesNoControl.valid && (yesNoControl.dirty || yesNoControl.touched)}\">\n\t<fieldset class=\"inline\">\n <legend>\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{caseField | ccdFieldLabel
|
|
21918
|
+
args: [{ selector: 'ccd-write-yes-no-field', template: "<div [id]=\"id()\" class=\"form-group bottom-30\" [ngClass]=\"{'form-group-error': !yesNoControl.valid && (yesNoControl.dirty || yesNoControl.touched)}\">\n\t<fieldset class=\"inline\">\n <legend>\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{caseField | ccdFieldLabel}}</span>\n </legend>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text | rpxTranslate}}</span>\n <span class=\"error-message\" *ngIf=\"yesNoControl.errors && (yesNoControl.dirty || yesNoControl.touched)\">\n {{yesNoControl.errors | ccdFirstError:caseField.label}}\n </span>\n\n <div [id]=\"createElementId('radio')\">\n \t <div class=\"multiple-choice\" *ngFor=\"let value of yesNoValues\" [ngClass]=\"{selected: yesNoControl.value === value}\">\n \t <input class=\"form-control\" [id]=\"createElementId(value)\" [attr.name]=\"id()\" [name]=\"id()\" type=\"radio\" [formControl]=\"yesNoControl\" [value]=\"value\">\n \t <label class=\"form-label\" [for]=\"createElementId(value)\">{{caseField.label | rpxTranslate : null : value}}</label>\n \t </div>\n </div>\n\t</fieldset>\n</div>\n" }]
|
|
21931
21919
|
}], function () { return [{ type: YesNoService }]; }, null);
|
|
21932
21920
|
})();
|
|
21933
21921
|
|
|
@@ -26900,14 +26888,13 @@ function WriteDateFieldComponent_span_3_Template(rf, ctx) {
|
|
|
26900
26888
|
if (rf & 1) {
|
|
26901
26889
|
i0.ɵɵelementStart(0, "span", 5);
|
|
26902
26890
|
i0.ɵɵtext(1);
|
|
26903
|
-
i0.ɵɵpipe(2, "
|
|
26904
|
-
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
26891
|
+
i0.ɵɵpipe(2, "ccdFieldLabel");
|
|
26905
26892
|
i0.ɵɵelementEnd();
|
|
26906
26893
|
}
|
|
26907
26894
|
if (rf & 2) {
|
|
26908
26895
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
26909
26896
|
i0.ɵɵadvance(1);
|
|
26910
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1,
|
|
26897
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
26911
26898
|
}
|
|
26912
26899
|
}
|
|
26913
26900
|
function WriteDateFieldComponent_span_4_Template(rf, ctx) {
|
|
@@ -26949,7 +26936,7 @@ WriteDateFieldComponent.ɵfac = /*@__PURE__*/ function () { let ɵWriteDateField
|
|
|
26949
26936
|
WriteDateFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteDateFieldComponent, selectors: [["ccd-write-date-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 8, vars: 14, consts: [[1, "form-group", "bottom-30", 3, "id", "ngClass"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [3, "id", "isDateTime", "mandatory", "isInvalid", "formControl"], [1, "form-label"], [1, "form-hint"], [1, "error-message"]], template: function WriteDateFieldComponent_Template(rf, ctx) {
|
|
26950
26937
|
if (rf & 1) {
|
|
26951
26938
|
i0.ɵɵelementStart(0, "div", 0)(1, "fieldset")(2, "legend");
|
|
26952
|
-
i0.ɵɵtemplate(3, WriteDateFieldComponent_span_3_Template,
|
|
26939
|
+
i0.ɵɵtemplate(3, WriteDateFieldComponent_span_3_Template, 3, 3, "span", 1);
|
|
26953
26940
|
i0.ɵɵelementEnd();
|
|
26954
26941
|
i0.ɵɵtemplate(4, WriteDateFieldComponent_span_4_Template, 3, 3, "span", 2);
|
|
26955
26942
|
i0.ɵɵtemplate(5, WriteDateFieldComponent_span_5_Template, 3, 4, "span", 3);
|
|
@@ -26972,7 +26959,7 @@ WriteDateFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Wri
|
|
|
26972
26959
|
(function () {
|
|
26973
26960
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteDateFieldComponent, [{
|
|
26974
26961
|
type: Component,
|
|
26975
|
-
args: [{ selector: 'ccd-write-date-field', template: "<div class=\"form-group bottom-30\" [id]=\"id()\" [ngClass]=\"{'form-group-error': dateControl && !dateControl.valid && (dateControl.dirty || dateControl.touched)}\">\n\n <fieldset>\n <legend>\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{(caseField | ccdFieldLabel)
|
|
26962
|
+
args: [{ selector: 'ccd-write-date-field', template: "<div class=\"form-group bottom-30\" [id]=\"id()\" [ngClass]=\"{'form-group-error': dateControl && !dateControl.valid && (dateControl.dirty || dateControl.touched)}\">\n\n <fieldset>\n <legend>\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{(caseField | ccdFieldLabel)}}</span>\n </legend>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text | rpxTranslate}}</span>\n <span class=\"error-message\" *ngIf=\"dateControl && dateControl.errors && (dateControl.dirty || dateControl.touched)\">\n {{(dateControl.errors | ccdFirstError:caseField.label)}}\n </span>\n <cut-date-input [id]=\"id()\"\n [isDateTime]=\"isDateTime()\"\n [mandatory]=\"caseField | ccdIsMandatory\"\n [isInvalid]=\"dateControl.errors && (dateControl.dirty || dateControl.touched)\"\n [formControl]=\"dateControl\"></cut-date-input>\n\n </fieldset>\n</div>\n" }]
|
|
26976
26963
|
}], null, null);
|
|
26977
26964
|
})();
|
|
26978
26965
|
|
|
@@ -26994,14 +26981,13 @@ function DatetimePickerComponent_span_3_Template(rf, ctx) {
|
|
|
26994
26981
|
if (rf & 1) {
|
|
26995
26982
|
i0.ɵɵelementStart(0, "span", 11);
|
|
26996
26983
|
i0.ɵɵtext(1);
|
|
26997
|
-
i0.ɵɵpipe(2, "
|
|
26998
|
-
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
26984
|
+
i0.ɵɵpipe(2, "ccdFieldLabel");
|
|
26999
26985
|
i0.ɵɵelementEnd();
|
|
27000
26986
|
}
|
|
27001
26987
|
if (rf & 2) {
|
|
27002
26988
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
27003
26989
|
i0.ɵɵadvance(1);
|
|
27004
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1,
|
|
26990
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
27005
26991
|
}
|
|
27006
26992
|
}
|
|
27007
26993
|
function DatetimePickerComponent_span_4_Template(rf, ctx) {
|
|
@@ -27238,7 +27224,7 @@ DatetimePickerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Dat
|
|
|
27238
27224
|
]), i0.ɵɵInheritDefinitionFeature], decls: 17, vars: 26, consts: [[1, "govuk-form-group", "bottom-30", 3, "id", "ngClass"], ["class", "form-label", 4, "ngIf"], ["class", "form-hint", 4, "ngIf"], ["class", "error-message", 4, "ngIf"], [1, "datepicker-container"], ["ng-model-options", "{timezone:'utc'}", 1, "govuk-input", 3, "min", "max", "formControl", "ngxMatDatetimePicker", "focusin", "focusout", "dateChange"], ["input", ""], ["matSuffix", "", "id", "pickerOpener", 3, "for"], [3, "color", "touchUi", "hideTime", "startView", "stepHour", "stepSecond", "stepMinute", "showSeconds", "showSpinners", "disableMinute", "enableMeridian", "yearSelected", "monthSelected", "opened"], ["picker", ""], ["mat-raised-button", "", "color", "primary", "ngxMatDatepickerApply", ""], [1, "form-label"], [1, "form-hint"], [1, "error-message"]], template: function DatetimePickerComponent_Template(rf, ctx) {
|
|
27239
27225
|
if (rf & 1) {
|
|
27240
27226
|
i0.ɵɵelementStart(0, "div", 0)(1, "fieldset")(2, "legend");
|
|
27241
|
-
i0.ɵɵtemplate(3, DatetimePickerComponent_span_3_Template,
|
|
27227
|
+
i0.ɵɵtemplate(3, DatetimePickerComponent_span_3_Template, 3, 3, "span", 1);
|
|
27242
27228
|
i0.ɵɵtemplate(4, DatetimePickerComponent_span_4_Template, 3, 3, "span", 2);
|
|
27243
27229
|
i0.ɵɵtemplate(5, DatetimePickerComponent_span_5_Template, 3, 4, "span", 3);
|
|
27244
27230
|
i0.ɵɵtemplate(6, DatetimePickerComponent_span_6_Template, 3, 3, "span", 3);
|
|
@@ -27287,7 +27273,7 @@ DatetimePickerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Dat
|
|
|
27287
27273
|
deps: [MAT_LEGACY_DATE_LOCALE, NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS]
|
|
27288
27274
|
},
|
|
27289
27275
|
{ provide: NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS, useValue: { useUtc: true } }
|
|
27290
|
-
], template: "<div class=\"govuk-form-group bottom-30\" [id]=\"caseField.id\"\n [ngClass]=\"{'form-group-error': dateControl && !dateControl.valid && dateControl.dirty}\">\n <fieldset>\n <legend>\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{(caseField | ccdFieldLabel) | rpxTranslate }}</span>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text | rpxTranslate}}</span>\n <span class=\"error-message\"\n *ngIf=\"dateControl && dateControl.errors && dateControl.dirty && !(minError || maxError)\">{{(dateControl.errors | ccdFirstError:caseField.label)}}</span>\n <span class=\"error-message\"\n *ngIf=\"dateControl && dateControl.dirty && minError\">{{'This date is older than the minimum date allowed' | rpxTranslate}}</span>\n <span class=\"error-message\"\n *ngIf=\"dateControl && dateControl.dirty && maxError\">{{'This date is later than the maximum date allowed' | rpxTranslate}}</span>\n </legend>\n <div class=\"datepicker-container\">\n <input class=\"govuk-input\"\n #input\n attr.aria-label=\"Please enter a date and time in the format | rpxTranslate {{dateTimeEntryFormat}}\"\n [min]=\"minDate(caseField)\"\n [max]=\"maxDate(caseField)\"\n [formControl]=\"dateControl\"\n [ngxMatDatetimePicker]=\"picker\"\n (focusin)=\"focusIn()\"\n (focusout)=\"focusOut()\"\n (dateChange)=\"valueChanged()\"\n ng-model-options=\"{timezone:'utc'}\"\n >\n <mat-datepicker-toggle matSuffix [for]=\"picker\" id=\"pickerOpener\"></mat-datepicker-toggle>\n <ngx-mat-datetime-picker #picker\n [color]=\"color\"\n [touchUi]=\"touchUi\"\n [hideTime]=\"hideTime\"\n [startView]=\"startView\"\n [stepHour]=\"stepHour\"\n [stepSecond]=\"stepSecond\"\n [stepMinute]=\"stepMinute\"\n [showSeconds]=\"showSeconds\"\n [showSpinners]=\"showSpinners\"\n [disableMinute]=\"disableMinute\"\n [enableMeridian]=\"enableMeridian\"\n (yearSelected)=\"yearSelected($event)\"\n (monthSelected)=\"monthSelected($event)\"\n (opened)=\"toggleClick()\"\n >\n <ngx-mat-datepicker-actions>\n <button mat-raised-button color=\"primary\" ngxMatDatepickerApply>Confirm</button>\n </ngx-mat-datepicker-actions>\n </ngx-mat-datetime-picker>\n </div>\n </fieldset>\n</div>\n", styles: ["@charset \"UTF-8\";.datepicker-container{display:inline-block;position:relative;min-width:298px}.datepicker-container .govuk-input{height:35px;min-width:298px;width:auto;padding-right:40px;border:1px solid #000}.datepicker-container .govuk-input:focus{outline:1px solid #ffdd00;border:1px solid black}.datepicker-container .govuk-input::-ms-clear{display:none}.datepicker-container .datepicker-wrapper-input{position:relative;display:inline-block;top:-20%;border:0}.datepicker-container .datepicker-wrapper-input:focus{border:0;outline:none}.datepicker-container .mat-icon-button{height:32px;width:32px}.datepicker-container .mat-icon-button:focus{outline:1px solid #ffdd00}.datepicker-container .mat-icon-button .mat-datepicker-toggle-default-icon{position:relative;top:-5px}.datepicker-container .mat-datepicker-toggle{position:absolute;right:0}.datepicker-container .mat-mdc-icon-button.mat-mdc-button-base{width:32px;height:32px;padding:5px 0 0}.datepicker-container .mat-mdc-icon-button.mat-mdc-button-base:focus{outline:1px solid #fd0}.cdk-overlay-container .mat-datepicker-content{border:1px solid black;border-radius:0;max-width:295px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table{width:calc(100% - 1px);table-layout:fixed}.cdk-overlay-container .mat-datepicker-content .mat-calendar-header{height:34px;border-bottom:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button{left:14%;min-width:125px;border-right:1px ridge #bfc1c3;border-left:1px ridge #bfc1c3;border-radius:0;top:-20px;width:200%}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button .mat-button-wrapper{text-align:center;font-weight:700}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button:focus{border:2px solid black}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button{left:-73%;top:-20px;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:after{border-left-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button{top:-20px;left:1%;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:after{border-right-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-button-wrapper{text-transform:capitalize!important}.cdk-overlay-container .mat-datepicker-content .mat-calendar{border-bottom:1px solid black}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider{padding:0;border-bottom:none}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider:after{height:0px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-content{padding:0}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header{color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header th.ng-star-inserted{font-weight:700;font-size:15px;padding-top:2%;padding-bottom:2%;-moz-column-width:20px;column-width:20px}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th{visibility:hidden}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:after{visibility:visible;color:#000;position:relative;left:-15px}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(1):after{content:\"MON\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(2):after{left:-12px;content:\"TUE\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(3):after{left:-18px;content:\"WED\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(4):after{left:-14px;content:\"THU\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(5):after{left:-10px;content:\"FRI\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(6):after{content:\"SAT\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(7):after{content:\"SUN\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-label{font-weight:700;font-size:large;color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-selected{border:none;background-color:transparent;color:#fff}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-active .mat-calendar-body-today{border:none;box-shadow:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell{border:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell[aria-selected=true],.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell[aria-pressed=true]{background-color:#1d70b8;outline:3px solid #ffdd00;border:2px solid black;outline-offset:1px;z-index:1}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table{border-collapse:separate;border-spacing:10px}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:2px solid #ffdd00}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table{border-collapse:separate;border-spacing:20px}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table tr:nth-of-type(1){visibility:collapse}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:3px solid #ffdd00;border:2px solid black;outline-offset:1px}.cdk-overlay-container .mat-datepicker-content .time-container{height:80px;padding-top:0}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker{width:100%}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table{margin-left:0!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tbody{position:relative}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr mdc-icon-button mat-mdc-icon-button mat-unthemed mat-mdc-button-base .mat-icon-button .mat-button-wrapper{width:auto;height:auto}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr mdc-icon-button mat-mdc-icon-button mat-unthemed mat-mdc-button-base .mat-icon-button:focus{outline:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child{position:absolute;left:49px;top:15px;z-index:2}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child button:disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:first-child [aria-label=\"expand_less icon\"]{position:absolute;left:-2px;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-child(3) [aria-label=\"expand_less icon\"].mat-icon-button{position:absolute;left:82px!important;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-child(5) [aria-label=\"expand_less icon\"].mat-icon-button{position:absolute;left:169px!important;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-last-child(1) [aria-label=\"expand_less icon\"].mat-icon-button{left:153px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-last-child(2) [aria-label=\"expand_less icon\"].mat-icon-button{left:65px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2){display:flex;padding:20px 0 20px 15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td{margin-right:30px;text-align:right}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:first-child .mat-form-field{width:50px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:first-child .mat-form-field:before{color:#000;content:\"Hours\";position:relative;top:-5px;left:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:nth-child(3) .mat-form-field:before{color:#000;content:\"Minutes\";position:relative;top:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:last-child{text-align:left;left:-15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .mat-form-field-disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:nth-of-type(5) .mat-form-field:before{color:#000;content:\"Seconds\";position:relative;top:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian{border-bottom:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian .mat-button{height:30px;top:21px;border-radius:0;color:#000;border-color:#000;background-color:#dee0e2;display:flex;justify-content:center}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian .mat-button .mat-button-wrapper{position:relative;top:-2px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4){display:flex;padding:2rem 0 2rem 15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4) td{margin-right:30px;text-align:right}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4) td:last-child{text-align:left}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child{position:absolute;left:49px;top:40px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child button:disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:first-child [aria-label=\"expand_more icon\"]{position:absolute;top:15px;left:-2px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-child(3) [aria-label=\"expand_more icon\"].mat-icon-button{position:absolute;left:82px!important;top:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-child(5) [aria-label=\"expand_more icon\"].mat-icon-button{position:absolute;top:15px;left:169px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-last-child(1) [aria-label=\"expand_more icon\"].mat-icon-button{left:65px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-last-child(1).ng-star-inserted [aria-label=\"expand_more icon\"].mat-icon-button{left:153px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr td{padding:0;border-bottom:0;position:relative}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .spacer{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon{visibility:hidden;display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-button-wrapper{display:block;width:15px;height:8px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-wrapper{padding-bottom:0}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field{width:auto;max-width:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr [aria-label=\"expand_less icon\"].mat-icon-button .mat-button-wrapper:after{content:\" \\25b2\"}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr [aria-label=\"expand_more icon\"].mat-icon-button .mat-button-wrapper:after{content:\"\\25bc\"}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-flex{width:100%}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-flex .mat-form-field-infix{border:1px solid black;height:20px;width:37px;display:flex;justify-content:center;align-items:center}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-underline{visibility:hidden}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr input{height:33px;width:37px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr input:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .actions{padding-bottom:20px;margin-top:20px;justify-content:flex-start}.cdk-overlay-container .mat-datepicker-content .actions .mat-button{background-color:#00823b;position:relative;display:-moz-inline-stack;display:inline-block;padding:.526315em .789473em .263157em;border:none;border-radius:0;outline:1px solid transparent;outline-offset:-1px;-webkit-appearance:none;box-shadow:0 2px #003618;font-size:1em;line-height:1.25;text-decoration:none;-webkit-font-smoothing:antialiased;color:#fff;box-sizing:border-box;vertical-align:top;width:80px;cursor:pointer}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:focus{outline:2px solid #ffdd00}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:hover{background-color:#006400}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-icon{visibility:hidden}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-button-wrapper:before{color:#fff;content:\"Confirm\";position:relative;font-size:15px;left:-3px}.cdk-overlay-container .mat-datepicker-content .mat-datepicker-actions{margin-top:120px;padding:8px 8px 28px;justify-content:flex-start}.cdk-overlay-container .mat-datepicker-content .mat-datepicker-actions button{background-color:#00823b;position:relative;display:-moz-inline-stack;display:inline-block;padding:.526315em .789473em .263157em;border:none;border-radius:0;outline:1px solid transparent;outline-offset:-1px;-webkit-appearance:none;box-shadow:0 2px #003618;font-size:1em;line-height:1.25;text-decoration:none;-webkit-font-smoothing:antialiased;color:#fff;box-sizing:border-box;vertical-align:top;width:80px;cursor:pointer}\n"] }]
|
|
27276
|
+
], template: "<div class=\"govuk-form-group bottom-30\" [id]=\"caseField.id\"\n [ngClass]=\"{'form-group-error': dateControl && !dateControl.valid && dateControl.dirty}\">\n <fieldset>\n <legend>\n <span class=\"form-label\" *ngIf=\"caseField.label\">{{(caseField | ccdFieldLabel)}}</span>\n <span class=\"form-hint\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text | rpxTranslate}}</span>\n <span class=\"error-message\"\n *ngIf=\"dateControl && dateControl.errors && dateControl.dirty && !(minError || maxError)\">{{(dateControl.errors | ccdFirstError:caseField.label)}}</span>\n <span class=\"error-message\"\n *ngIf=\"dateControl && dateControl.dirty && minError\">{{'This date is older than the minimum date allowed' | rpxTranslate}}</span>\n <span class=\"error-message\"\n *ngIf=\"dateControl && dateControl.dirty && maxError\">{{'This date is later than the maximum date allowed' | rpxTranslate}}</span>\n </legend>\n <div class=\"datepicker-container\">\n <input class=\"govuk-input\"\n #input\n attr.aria-label=\"Please enter a date and time in the format | rpxTranslate {{dateTimeEntryFormat}}\"\n [min]=\"minDate(caseField)\"\n [max]=\"maxDate(caseField)\"\n [formControl]=\"dateControl\"\n [ngxMatDatetimePicker]=\"picker\"\n (focusin)=\"focusIn()\"\n (focusout)=\"focusOut()\"\n (dateChange)=\"valueChanged()\"\n ng-model-options=\"{timezone:'utc'}\"\n >\n <mat-datepicker-toggle matSuffix [for]=\"picker\" id=\"pickerOpener\"></mat-datepicker-toggle>\n <ngx-mat-datetime-picker #picker\n [color]=\"color\"\n [touchUi]=\"touchUi\"\n [hideTime]=\"hideTime\"\n [startView]=\"startView\"\n [stepHour]=\"stepHour\"\n [stepSecond]=\"stepSecond\"\n [stepMinute]=\"stepMinute\"\n [showSeconds]=\"showSeconds\"\n [showSpinners]=\"showSpinners\"\n [disableMinute]=\"disableMinute\"\n [enableMeridian]=\"enableMeridian\"\n (yearSelected)=\"yearSelected($event)\"\n (monthSelected)=\"monthSelected($event)\"\n (opened)=\"toggleClick()\"\n >\n <ngx-mat-datepicker-actions>\n <button mat-raised-button color=\"primary\" ngxMatDatepickerApply>Confirm</button>\n </ngx-mat-datepicker-actions>\n </ngx-mat-datetime-picker>\n </div>\n </fieldset>\n</div>\n", styles: ["@charset \"UTF-8\";.datepicker-container{display:inline-block;position:relative;min-width:298px}.datepicker-container .govuk-input{height:35px;min-width:298px;width:auto;padding-right:40px;border:1px solid #000}.datepicker-container .govuk-input:focus{outline:1px solid #ffdd00;border:1px solid black}.datepicker-container .govuk-input::-ms-clear{display:none}.datepicker-container .datepicker-wrapper-input{position:relative;display:inline-block;top:-20%;border:0}.datepicker-container .datepicker-wrapper-input:focus{border:0;outline:none}.datepicker-container .mat-icon-button{height:32px;width:32px}.datepicker-container .mat-icon-button:focus{outline:1px solid #ffdd00}.datepicker-container .mat-icon-button .mat-datepicker-toggle-default-icon{position:relative;top:-5px}.datepicker-container .mat-datepicker-toggle{position:absolute;right:0}.datepicker-container .mat-mdc-icon-button.mat-mdc-button-base{width:32px;height:32px;padding:5px 0 0}.datepicker-container .mat-mdc-icon-button.mat-mdc-button-base:focus{outline:1px solid #fd0}.cdk-overlay-container .mat-datepicker-content{border:1px solid black;border-radius:0;max-width:295px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table{width:calc(100% - 1px);table-layout:fixed}.cdk-overlay-container .mat-datepicker-content .mat-calendar-header{height:34px;border-bottom:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button{left:14%;min-width:125px;border-right:1px ridge #bfc1c3;border-left:1px ridge #bfc1c3;border-radius:0;top:-20px;width:200%}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button .mat-button-wrapper{text-align:center;font-weight:700}.cdk-overlay-container .mat-datepicker-content .mat-calendar-period-button:focus{border:2px solid black}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button{left:-73%;top:-20px;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-previous-button:after{border-left-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button{top:-20px;left:1%;border:2px solid transparent;border-radius:0}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .mat-calendar-next-button:after{border-right-width:5px;border-top-width:5px;color:#000;padding:4px;top:-2px;left:-2px}.cdk-overlay-container .mat-datepicker-content .mat-button-wrapper{text-transform:capitalize!important}.cdk-overlay-container .mat-datepicker-content .mat-calendar{border-bottom:1px solid black}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider{padding:0;border-bottom:none}.cdk-overlay-container .mat-datepicker-content .mat-calendar-table-header-divider:after{height:0px}.cdk-overlay-container .mat-datepicker-content .mat-calendar-content{padding:0}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header{color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header th.ng-star-inserted{font-weight:700;font-size:15px;padding-top:2%;padding-bottom:2%;-moz-column-width:20px;column-width:20px}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th{visibility:hidden}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:after{visibility:visible;color:#000;position:relative;left:-15px}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(1):after{content:\"MON\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(2):after{left:-12px;content:\"TUE\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(3):after{left:-18px;content:\"WED\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(4):after{left:-14px;content:\"THU\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(5):after{left:-10px;content:\"FRI\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(6):after{content:\"SAT\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-table-header tr:nth-of-type(1) th:nth-of-type(7):after{content:\"SUN\"}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-label{font-weight:700;font-size:large;color:#000}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-selected{border:none;background-color:transparent;color:#fff}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-active .mat-calendar-body-today{border:none;box-shadow:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell{border:1px ridge #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell[aria-selected=true],.cdk-overlay-container .mat-datepicker-content ngx-mat-month-view .mat-calendar-body-cell[aria-pressed=true]{background-color:#1d70b8;outline:3px solid #ffdd00;border:2px solid black;outline-offset:1px;z-index:1}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table{border-collapse:separate;border-spacing:10px}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-multi-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:2px solid #ffdd00}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table{border-collapse:separate;border-spacing:20px}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table tr:nth-of-type(1){visibility:collapse}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-active{background-color:#5694ca}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell{border:1px solid #bfc1c3}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-cell-content{border:none}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell .mat-calendar-body-selected{border:none;box-shadow:none;background-color:transparent}.cdk-overlay-container .mat-datepicker-content ngx-mat-year-view .mat-calendar-table .mat-calendar-body-cell[aria-selected=true]{background-color:#1d70b8;outline:3px solid #ffdd00;border:2px solid black;outline-offset:1px}.cdk-overlay-container .mat-datepicker-content .time-container{height:80px;padding-top:0}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker{width:100%}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table{margin-left:0!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tbody{position:relative}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr mdc-icon-button mat-mdc-icon-button mat-unthemed mat-mdc-button-base .mat-icon-button .mat-button-wrapper{width:auto;height:auto}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr mdc-icon-button mat-mdc-icon-button mat-unthemed mat-mdc-button-base .mat-icon-button:focus{outline:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child{position:absolute;left:49px;top:15px;z-index:2}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child button:disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:first-child [aria-label=\"expand_less icon\"]{position:absolute;left:-2px;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-child(3) [aria-label=\"expand_less icon\"].mat-icon-button{position:absolute;left:82px!important;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-child(5) [aria-label=\"expand_less icon\"].mat-icon-button{position:absolute;left:169px!important;top:25px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-last-child(1) [aria-label=\"expand_less icon\"].mat-icon-button{left:153px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:first-child td:nth-last-child(2) [aria-label=\"expand_less icon\"].mat-icon-button{left:65px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2){display:flex;padding:20px 0 20px 15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td{margin-right:30px;text-align:right}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:first-child .mat-form-field{width:50px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:first-child .mat-form-field:before{color:#000;content:\"Hours\";position:relative;top:-5px;left:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:nth-child(3) .mat-form-field:before{color:#000;content:\"Minutes\";position:relative;top:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:last-child{text-align:left;left:-15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .mat-form-field-disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) td:nth-of-type(5) .mat-form-field:before{color:#000;content:\"Seconds\";position:relative;top:-5px;font-size:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian{border-bottom:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian .mat-button{height:30px;top:21px;border-radius:0;color:#000;border-color:#000;background-color:#dee0e2;display:flex;justify-content:center}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(2) .meridian .mat-button .mat-button-wrapper{position:relative;top:-2px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4){display:flex;padding:2rem 0 2rem 15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4) td{margin-right:30px;text-align:right}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:nth-child(4) td:last-child{text-align:left}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child{position:absolute;left:49px;top:40px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child button:disabled{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:first-child [aria-label=\"expand_more icon\"]{position:absolute;top:15px;left:-2px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-child(3) [aria-label=\"expand_more icon\"].mat-icon-button{position:absolute;left:82px!important;top:15px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-child(5) [aria-label=\"expand_more icon\"].mat-icon-button{position:absolute;top:15px;left:169px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-last-child(1) [aria-label=\"expand_more icon\"].mat-icon-button{left:65px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr:last-child td:nth-last-child(1).ng-star-inserted [aria-label=\"expand_more icon\"].mat-icon-button{left:153px!important}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr td{padding:0;border-bottom:0;position:relative}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .spacer{display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-icon{visibility:hidden;display:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-button-wrapper{display:block;width:15px;height:8px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-wrapper{padding-bottom:0}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field{width:auto;max-width:none}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr [aria-label=\"expand_less icon\"].mat-icon-button .mat-button-wrapper:after{content:\" \\25b2\"}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr [aria-label=\"expand_more icon\"].mat-icon-button .mat-button-wrapper:after{content:\"\\25bc\"}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-flex{width:100%}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-flex .mat-form-field-infix{border:1px solid black;height:20px;width:37px;display:flex;justify-content:center;align-items:center}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr .mat-form-field-underline{visibility:hidden}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr input{height:33px;width:37px}.cdk-overlay-container .mat-datepicker-content .time-container .ngx-mat-timepicker .table tr input:focus{border-color:#000}.cdk-overlay-container .mat-datepicker-content .actions{padding-bottom:20px;margin-top:20px;justify-content:flex-start}.cdk-overlay-container .mat-datepicker-content .actions .mat-button{background-color:#00823b;position:relative;display:-moz-inline-stack;display:inline-block;padding:.526315em .789473em .263157em;border:none;border-radius:0;outline:1px solid transparent;outline-offset:-1px;-webkit-appearance:none;box-shadow:0 2px #003618;font-size:1em;line-height:1.25;text-decoration:none;-webkit-font-smoothing:antialiased;color:#fff;box-sizing:border-box;vertical-align:top;width:80px;cursor:pointer}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:focus{outline:2px solid #ffdd00}.cdk-overlay-container .mat-datepicker-content .actions .mat-button:hover{background-color:#006400}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-icon{visibility:hidden}.cdk-overlay-container .mat-datepicker-content .actions .mat-button .mat-button-wrapper:before{color:#fff;content:\"Confirm\";position:relative;font-size:15px;left:-3px}.cdk-overlay-container .mat-datepicker-content .mat-datepicker-actions{margin-top:120px;padding:8px 8px 28px;justify-content:flex-start}.cdk-overlay-container .mat-datepicker-content .mat-datepicker-actions button{background-color:#00823b;position:relative;display:-moz-inline-stack;display:inline-block;padding:.526315em .789473em .263157em;border:none;border-radius:0;outline:1px solid transparent;outline-offset:-1px;-webkit-appearance:none;box-shadow:0 2px #003618;font-size:1em;line-height:1.25;text-decoration:none;-webkit-font-smoothing:antialiased;color:#fff;box-sizing:border-box;vertical-align:top;width:80px;cursor:pointer}\n"] }]
|
|
27291
27277
|
}], function () {
|
|
27292
27278
|
return [{ type: FormatTranslatorService }, { type: undefined, decorators: [{
|
|
27293
27279
|
type: Inject,
|
|
@@ -29266,7 +29252,7 @@ i0.ɵɵsetComponentScope(WriteAddressFieldComponent, function () { return [i4.Ng
|
|
|
29266
29252
|
i0.ɵɵsetComponentScope(WriteComplexFieldComponent, function () {
|
|
29267
29253
|
return [i4.NgForOf, i4.NgIf, i4.NgSwitch, i4.NgSwitchCase, i3.NgControlStatusGroup, i3.FormGroupDirective, LabelSubstitutorDirective, FieldReadComponent,
|
|
29268
29254
|
FieldWriteComponent];
|
|
29269
|
-
}, function () { return [FieldLabelPipe, IsReadOnlyPipe
|
|
29255
|
+
}, function () { return [FieldLabelPipe, IsReadOnlyPipe]; });
|
|
29270
29256
|
i0.ɵɵsetComponentScope(WriteDocumentFieldComponent, function () { return [i4.NgClass, i4.NgIf, ReadDocumentFieldComponent]; }, function () { return [FieldLabelPipe, i1.RpxTranslatePipe]; });
|
|
29271
29257
|
i0.ɵɵsetComponentScope(WriteDateContainerFieldComponent, function () {
|
|
29272
29258
|
return [i4.NgIf, i3.NgControlStatusGroup, i3.FormGroupDirective, DatetimePickerComponent,
|
|
@@ -29404,12 +29390,13 @@ function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_7_ng_contain
|
|
|
29404
29390
|
if (rf & 1) {
|
|
29405
29391
|
i0.ɵɵelementStart(0, "th", 25)(1, "span", 20);
|
|
29406
29392
|
i0.ɵɵtext(2);
|
|
29393
|
+
i0.ɵɵpipe(3, "rpxTranslate");
|
|
29407
29394
|
i0.ɵɵelementEnd()();
|
|
29408
29395
|
}
|
|
29409
29396
|
if (rf & 2) {
|
|
29410
29397
|
const field_r17 = i0.ɵɵnextContext(2).$implicit;
|
|
29411
29398
|
i0.ɵɵadvance(2);
|
|
29412
|
-
i0.ɵɵtextInterpolate(field_r17.label);
|
|
29399
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, field_r17.label));
|
|
29413
29400
|
}
|
|
29414
29401
|
}
|
|
29415
29402
|
function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_7_ng_container_1_ng_container_1_ng_container_1_ng_container_5_a_2_Template(rf, ctx) {
|
|
@@ -29451,7 +29438,7 @@ function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_7_ng_contain
|
|
|
29451
29438
|
if (rf & 1) {
|
|
29452
29439
|
i0.ɵɵelementContainerStart(0);
|
|
29453
29440
|
i0.ɵɵelementStart(1, "tr", 21);
|
|
29454
|
-
i0.ɵɵtemplate(2, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_7_ng_container_1_ng_container_1_ng_container_1_th_2_Template,
|
|
29441
|
+
i0.ɵɵtemplate(2, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_7_ng_container_1_ng_container_1_ng_container_1_th_2_Template, 4, 3, "th", 22);
|
|
29455
29442
|
i0.ɵɵelementStart(3, "td", 23);
|
|
29456
29443
|
i0.ɵɵelement(4, "ccd-field-read", 24);
|
|
29457
29444
|
i0.ɵɵelementEnd();
|
|
@@ -29944,7 +29931,7 @@ CaseEditSubmitComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Cas
|
|
|
29944
29931
|
(function () {
|
|
29945
29932
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseEditSubmitComponent, [{
|
|
29946
29933
|
type: Component,
|
|
29947
|
-
args: [{ selector: 'ccd-case-edit-submit', template: "<div *ngIf=\"!caseEdit.isEventCompletionChecksRequired\">\n <!-- Event trigger name -->\n <h1 class=\"govuk-heading-l\">{{eventTrigger.name | rpxTranslate}}</h1>\n\n <!--Case ID or Title -->\n <div *ngIf=\"getCaseTitle(); then titleBlock; else idBlock\"></div>\n <ng-template #titleBlock>\n <ccd-markdown [content]=\"getCaseTitle() | ccdCaseTitle: contextFields : editForm.controls['data']\"></ccd-markdown>\n </ng-template>\n <ng-template #idBlock>\n <h2 *ngIf=\"getCaseId()\" class=\"heading-h2\">#{{ getCaseId() | ccdCaseReference }}</h2>\n </ng-template>\n\n <ccd-case-edit-generic-errors [error]=\"caseEdit.error\"></ccd-case-edit-generic-errors>\n\n <ccd-callback-errors [callbackErrorsSubject]=\"caseEdit.callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\"></ccd-callback-errors>\n\n <form class=\"check-your-answers\" [formGroup]=\"editForm\" (submit)=\"submit()\">\n <ng-container *ngIf=\"checkYourAnswerFieldsToDisplayExists()\">\n\n <h2 class=\"heading-h2\">{{pageTitle | rpxTranslate }}</h2>\n <span class=\"text-16\" *ngIf=\"!caseEdit.isCaseFlagSubmission\">{{'Check the information below carefully.' | rpxTranslate}}</span>\n\n <table class=\"form-table\" aria-describedby=\"check your answers table\">\n <tbody>\n <ng-container *ngFor=\"let page of wizard.pages\">\n <ng-container *ngIf=\"isShown(page)\">\n <ng-container *ngFor=\"let field of page\n | ccdPageFields: editForm\n | ccdReadFieldsFilter: false :undefined :true :allFieldsValues\n | ccdCYAPageLabelFilter\">\n <ng-container *ngIf=\"canShowFieldInCYA(field)\">\n <tr ccdLabelSubstitutor [caseField]=\"field\" [hidden]=\"field.hidden\"\n [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <th *ngIf=\"!isLabel(field) && !caseEdit.isCaseFlagSubmission\" class=\"valign-top case-field-label\"
|
|
29934
|
+
args: [{ selector: 'ccd-case-edit-submit', template: "<div *ngIf=\"!caseEdit.isEventCompletionChecksRequired\">\n <!-- Event trigger name -->\n <h1 class=\"govuk-heading-l\">{{eventTrigger.name | rpxTranslate}}</h1>\n\n <!--Case ID or Title -->\n <div *ngIf=\"getCaseTitle(); then titleBlock; else idBlock\"></div>\n <ng-template #titleBlock>\n <ccd-markdown [content]=\"getCaseTitle() | ccdCaseTitle: contextFields : editForm.controls['data']\"></ccd-markdown>\n </ng-template>\n <ng-template #idBlock>\n <h2 *ngIf=\"getCaseId()\" class=\"heading-h2\">#{{ getCaseId() | ccdCaseReference }}</h2>\n </ng-template>\n\n <ccd-case-edit-generic-errors [error]=\"caseEdit.error\"></ccd-case-edit-generic-errors>\n\n <ccd-callback-errors [callbackErrorsSubject]=\"caseEdit.callbackErrorsSubject\"\n (callbackErrorsContext)=\"callbackErrorsNotify($event)\"></ccd-callback-errors>\n\n <form class=\"check-your-answers\" [formGroup]=\"editForm\" (submit)=\"submit()\">\n <ng-container *ngIf=\"checkYourAnswerFieldsToDisplayExists()\">\n\n <h2 class=\"heading-h2\">{{pageTitle | rpxTranslate }}</h2>\n <span class=\"text-16\" *ngIf=\"!caseEdit.isCaseFlagSubmission\">{{'Check the information below carefully.' | rpxTranslate}}</span>\n\n <table class=\"form-table\" aria-describedby=\"check your answers table\">\n <tbody>\n <ng-container *ngFor=\"let page of wizard.pages\">\n <ng-container *ngIf=\"isShown(page)\">\n <ng-container *ngFor=\"let field of page\n | ccdPageFields: editForm\n | ccdReadFieldsFilter: false :undefined :true :allFieldsValues\n | ccdCYAPageLabelFilter\">\n <ng-container *ngIf=\"canShowFieldInCYA(field)\">\n <tr ccdLabelSubstitutor [caseField]=\"field\" [hidden]=\"field.hidden\"\n [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <th *ngIf=\"!isLabel(field) && !caseEdit.isCaseFlagSubmission\" class=\"valign-top case-field-label\">\n <span class=\"text-16\">{{field.label | rpxTranslate}}</span>\n </th>\n <td class=\"form-cell case-field-content\" [attr.colspan]=\"isLabel(field) ? '2' : '1'\">\n <ccd-field-read\n [formGroup]=\"editForm.controls['data']\" [topLevelFormGroup]=\"editForm.controls['data']\"\n [caseField]=\"summaryCaseField(field)\" [context]=\"paletteContext\" [caseFields]=\"contextFields\"></ccd-field-read>\n </td>\n <ng-container *ngIf=\"!caseEdit.isCaseFlagSubmission\">\n <td class=\"valign-top check-your-answers__change case-field-change\">\n <a *ngIf=\"isChangeAllowed(field)\" (click)=\"navigateToPage(page.id)\"\n href=\"javascript:void(0)\">\n <span class=\"text-16\" attr.aria-label=\"{{'Change' | rpxTranslate}} {{ field.label | rpxTranslate }}\">\n {{'Change' | rpxTranslate}}\n </span>\n </a>\n </td>\n </ng-container>\n </tr>\n </ng-container>\n </ng-container>\n </ng-container>\n </ng-container>\n </tbody>\n </table>\n </ng-container>\n <ng-container *ngIf=\"readOnlySummaryFieldsToDisplayExists()\">\n\n <table class=\"summary-fields\" aria-describedby=\"summary fields table\">\n <tbody>\n <ng-container *ngFor=\"let field of showSummaryFields\">\n <ng-container [ngSwitch]=\"!(field | ccdIsCompound)\">\n <tr *ngSwitchCase=\"true\" ccdLabelSubstitutor [caseField]=\"field\" [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <th id=\"summary-field-label\">{{field.label}}</th>\n <td class=\"form-cell\">\n <ccd-field-read [formGroup]=\"editForm.controls['data']\" [caseField]=\"summaryCaseField(field)\"></ccd-field-read>\n </td>\n </tr>\n <tr *ngSwitchCase=\"false\" class=\"compound-field\" ccdLabelSubstitutor [caseField]=\"field\" [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <td colspan=\"2\">\n <ccd-field-read [formGroup]=\"editForm.controls['data']\" [caseField]=\"summaryCaseField(field)\" [caseFields]=\"contextFields\"></ccd-field-read>\n </td>\n </tr>\n </ng-container>\n </ng-container>\n </tbody>\n </table>\n </ng-container>\n <ng-container *ngIf=\"showEventNotes()\">\n <fieldset id=\"fieldset-event\" formGroupName=\"event\">\n <legend style=\"display: none;\"></legend>\n <div class=\"form-group\">\n <label for=\"field-trigger-summary\" class=\"form-label\">\n Event summary (optional)\n <span class=\"form-hint\">A few words describing the purpose of the event.</span>\n </label>\n <input type=\"text\" id=\"field-trigger-summary\" class=\"form-control bottom-30 width-50\" formControlName=\"summary\" maxlength=\"1024\">\n </div>\n <div class=\"form-group\">\n <label for=\"field-trigger-description\" class=\"form-label\">Event description (optional)</label>\n <textarea id=\"field-trigger-description\" class=\"form-control bottom-30 width-50\" formControlName=\"description\"\n maxlength=\"65536\"></textarea>\n </div>\n </fieldset>\n </ng-container>\n <div class=\"form-group form-group-related\">\n <button *ngIf=\"!caseEdit.isCaseFlagSubmission\" class=\"button button-secondary\" type=\"button\" [disabled]=\"!hasPrevious() || caseEdit.isSubmitting\" (click)=\"previous()\">\n {{'Previous' | rpxTranslate}}\n </button>\n <button type=\"submit\" [disabled]=\"isDisabled\" class=\"button\">\n {{triggerText | rpxTranslate}}\n </button>\n </div>\n <p class=\"cancel\">\n <a (click)=\"cancel()\" href=\"javascript:void(0)\" [class.disabled]=\"caseEdit.isSubmitting\">{{getCancelText() | rpxTranslate}}</a>\n </p>\n </form>\n</div>\n<ccd-case-event-completion *ngIf=\"caseEdit.isEventCompletionChecksRequired\"\n [eventCompletionParams]=\"caseEdit.eventCompletionParams\"\n (eventCanBeCompleted)=\"onEventCanBeCompleted($event)\">\n</ccd-case-event-completion>\n", styles: ["#fieldset-case-data{margin-bottom:30px}#fieldset-case-data th{width:1%;white-space:nowrap;vertical-align:top}.compound-field td{padding:0}#confirmation-header{width:630px;background-color:#17958b;border:solid 1px #979797;color:#fff;text-align:center}#confirmation-body{width:630px;background-color:#fff}.valign-top{vertical-align:top}.summary-fields{margin-bottom:30px}.summary-fields tbody tr th,.summary-fields tbody tr td{border-bottom:0px}a.disabled{pointer-events:none;cursor:default}.case-field-label{width:45%}.case-field-content{width:50%}.no-bottom-border{border-bottom:none}.case-field-change{width:5%}\n"] }]
|
|
29948
29935
|
}], function () { return [{ type: CaseEditComponent }, { type: FieldsUtils }, { type: CaseFieldService }, { type: i1$1.ActivatedRoute }, { type: OrderService }, { type: ProfileNotifier }]; }, null);
|
|
29949
29936
|
})();
|
|
29950
29937
|
|