@hmcts/ccd-case-ui-toolkit 7.0.2-welsh-testing-fix-v1 → 7.0.3-case-flags-v2-1-release
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 +4 -5
- package/esm2020/lib/shared/components/case-editor/services/wizard-page-field-to-case-field.mapper.mjs +4 -3
- package/esm2020/lib/shared/components/palette/address/write-address-field.component.mjs +20 -19
- package/esm2020/lib/shared/components/palette/case-link/write-case-link-field.component.mjs +6 -5
- package/esm2020/lib/shared/components/palette/collection/write-collection-field.component.mjs +26 -25
- package/esm2020/lib/shared/components/palette/complex/read-complex-field.component.mjs +1 -1
- package/esm2020/lib/shared/components/palette/complex/write-complex-field.component.mjs +6 -5
- package/esm2020/lib/shared/components/palette/date/write-date-field.component.mjs +6 -5
- package/esm2020/lib/shared/components/palette/datetime-picker/datetime-picker.component.mjs +6 -5
- package/esm2020/lib/shared/components/palette/document/write-document-field.component.mjs +24 -23
- package/esm2020/lib/shared/components/palette/dynamic-list/write-dynamic-list-field.component.mjs +6 -5
- package/esm2020/lib/shared/components/palette/dynamic-radio-list/write-dynamic-radio-list-field.component.mjs +6 -5
- package/esm2020/lib/shared/components/palette/email/write-email-field.component.mjs +6 -5
- package/esm2020/lib/shared/components/palette/fixed-list/write-fixed-list-field.component.mjs +6 -5
- package/esm2020/lib/shared/components/palette/fixed-radio-list/write-fixed-radio-list-field.component.mjs +6 -5
- package/esm2020/lib/shared/components/palette/history/event-log/event-log-table.component.mjs +7 -9
- package/esm2020/lib/shared/components/palette/markdown/markdown.component.mjs +7 -9
- package/esm2020/lib/shared/components/palette/money-gbp/write-money-gbp-field.component.mjs +6 -5
- package/esm2020/lib/shared/components/palette/multi-select-list/write-multi-select-list-field.component.mjs +6 -5
- package/esm2020/lib/shared/components/palette/number/write-number-field.component.mjs +6 -5
- 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 +6 -5
- package/esm2020/lib/shared/components/palette/text/write-text-field.component.mjs +6 -5
- package/esm2020/lib/shared/components/palette/text-area/write-text-area-field.component.mjs +6 -5
- package/esm2020/lib/shared/components/palette/utils/field-label.pipe.mjs +7 -14
- package/esm2020/lib/shared/components/palette/yes-no/write-yes-no-field.component.mjs +6 -5
- package/esm2020/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.mjs +4 -2
- package/esm2020/lib/shared/pipes/complex/fields-filter.pipe.mjs +4 -2
- package/esm2020/lib/shared/services/fields/fields.utils.mjs +6 -1
- package/esm2020/lib/shared/services/form/form-value.service.mjs +2 -2
- package/fesm2015/hmcts-ccd-case-ui-toolkit.mjs +183 -163
- package/fesm2015/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/fesm2020/hmcts-ccd-case-ui-toolkit.mjs +183 -163
- package/fesm2020/hmcts-ccd-case-ui-toolkit.mjs.map +1 -1
- package/lib/shared/components/case-editor/services/wizard-page-field-to-case-field.mapper.d.ts.map +1 -1
- package/lib/shared/components/palette/complex/read-complex-field.component.d.ts.map +1 -1
- package/lib/shared/components/palette/utils/field-label.pipe.d.ts +0 -3
- package/lib/shared/components/palette/utils/field-label.pipe.d.ts.map +1 -1
- package/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.d.ts.map +1 -1
- package/lib/shared/pipes/complex/fields-filter.pipe.d.ts.map +1 -1
- package/lib/shared/services/fields/fields.utils.d.ts +1 -0
- package/lib/shared/services/fields/fields.utils.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -2645,30 +2645,25 @@ 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
|
-
}
|
|
2651
2648
|
transform(field) {
|
|
2652
2649
|
if (!field || !field.label) {
|
|
2653
2650
|
return '';
|
|
2654
2651
|
}
|
|
2655
2652
|
else if (!field.display_context) {
|
|
2656
|
-
return
|
|
2653
|
+
return field.label;
|
|
2657
2654
|
}
|
|
2658
|
-
return
|
|
2659
|
-
' (' + this.rpxTranslationPipe.transform('Optional') + ')' : '');
|
|
2655
|
+
return field.label + (field.display_context.toUpperCase() === 'OPTIONAL' ? ' (Optional)' : '');
|
|
2660
2656
|
}
|
|
2661
2657
|
}
|
|
2662
|
-
FieldLabelPipe.ɵfac = function FieldLabelPipe_Factory(t) { return new (t || FieldLabelPipe)(
|
|
2663
|
-
FieldLabelPipe.ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ name: "ccdFieldLabel", type: FieldLabelPipe, pure:
|
|
2658
|
+
FieldLabelPipe.ɵfac = function FieldLabelPipe_Factory(t) { return new (t || FieldLabelPipe)(); };
|
|
2659
|
+
FieldLabelPipe.ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ name: "ccdFieldLabel", type: FieldLabelPipe, pure: true });
|
|
2664
2660
|
(function () {
|
|
2665
2661
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FieldLabelPipe, [{
|
|
2666
2662
|
type: Pipe,
|
|
2667
2663
|
args: [{
|
|
2668
|
-
name: 'ccdFieldLabel'
|
|
2669
|
-
pure: false
|
|
2664
|
+
name: 'ccdFieldLabel'
|
|
2670
2665
|
}]
|
|
2671
|
-
}],
|
|
2666
|
+
}], null, null);
|
|
2672
2667
|
})();
|
|
2673
2668
|
|
|
2674
2669
|
class FirstErrorPipe {
|
|
@@ -3427,6 +3422,11 @@ class WorkbasketInput {
|
|
|
3427
3422
|
|
|
3428
3423
|
// @dynamic
|
|
3429
3424
|
class FieldsUtils {
|
|
3425
|
+
static isValidDisplayContext(ctx) {
|
|
3426
|
+
return (ctx === 'MANDATORY' || ctx === 'READONLY'
|
|
3427
|
+
|| ctx === 'OPTIONAL' || ctx === 'HIDDEN'
|
|
3428
|
+
|| ctx === 'COMPLEX');
|
|
3429
|
+
}
|
|
3430
3430
|
static convertToCaseField(obj) {
|
|
3431
3431
|
if (!(obj instanceof CaseField)) {
|
|
3432
3432
|
return plainToClassFromExist(new CaseField(), obj);
|
|
@@ -5654,7 +5654,7 @@ class FormValueService {
|
|
|
5654
5654
|
// Retain anything that is readonly and not a label.
|
|
5655
5655
|
continue;
|
|
5656
5656
|
}
|
|
5657
|
-
if (field.hidden === true && field.display_context !== 'HIDDEN' && field.id !== 'caseLinks' && !field.retain_hidden_value) {
|
|
5657
|
+
if (field.hidden === true && field.display_context !== 'HIDDEN' && field.display_context !== 'HIDDEN_TEMP' && field.id !== 'caseLinks' && !field.retain_hidden_value) {
|
|
5658
5658
|
// Delete anything that is hidden (that is NOT readonly), and that
|
|
5659
5659
|
// hasn't had its display_context overridden to make it hidden.
|
|
5660
5660
|
delete data[field.id];
|
|
@@ -7778,7 +7778,8 @@ class WizardPageFieldToCaseFieldMapper {
|
|
|
7778
7778
|
childrenCaseFields.forEach(e => this.hideParentIfAllChildrenHidden(e));
|
|
7779
7779
|
if (childrenCaseFields.length > 0 && this.allCaseFieldsHidden(childrenCaseFields)) {
|
|
7780
7780
|
caseField.hidden = true;
|
|
7781
|
-
|
|
7781
|
+
// marking display_context as special hidden so field not being deleted in event submission
|
|
7782
|
+
caseField.display_context = 'HIDDEN_TEMP';
|
|
7782
7783
|
}
|
|
7783
7784
|
}
|
|
7784
7785
|
getCaseFieldChildren(caseField) {
|
|
@@ -7792,7 +7793,7 @@ class WizardPageFieldToCaseFieldMapper {
|
|
|
7792
7793
|
return childrenCaseFields;
|
|
7793
7794
|
}
|
|
7794
7795
|
allCaseFieldsHidden(children) {
|
|
7795
|
-
return
|
|
7796
|
+
return children.every(e => e.display_context === 'HIDDEN' || e.display_context === 'HIDDEN_TEMP');
|
|
7796
7797
|
}
|
|
7797
7798
|
}
|
|
7798
7799
|
WizardPageFieldToCaseFieldMapper.ɵfac = function WizardPageFieldToCaseFieldMapper_Factory(t) { return new (t || WizardPageFieldToCaseFieldMapper)(); };
|
|
@@ -11017,7 +11018,7 @@ class AddressOption {
|
|
|
11017
11018
|
}
|
|
11018
11019
|
|
|
11019
11020
|
const _c0$U = ["writeComplexFieldComponent"];
|
|
11020
|
-
function
|
|
11021
|
+
function WriteAddressFieldComponent_div_1_div_5_span_5_Template(rf, ctx) {
|
|
11021
11022
|
if (rf & 1) {
|
|
11022
11023
|
i0.ɵɵelementStart(0, "span", 14);
|
|
11023
11024
|
i0.ɵɵtext(1);
|
|
@@ -11031,17 +11032,17 @@ function WriteAddressFieldComponent_div_1_div_4_span_5_Template(rf, ctx) {
|
|
|
11031
11032
|
}
|
|
11032
11033
|
const _c1$n = function (a0) { return { "form-group-error": a0 }; };
|
|
11033
11034
|
const _c2$2 = function (a0) { return { "govuk-input--error": a0 }; };
|
|
11034
|
-
function
|
|
11035
|
+
function WriteAddressFieldComponent_div_1_div_5_Template(rf, ctx) {
|
|
11035
11036
|
if (rf & 1) {
|
|
11036
11037
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
11037
11038
|
i0.ɵɵelementStart(0, "div", 8)(1, "label", 9)(2, "span", 10);
|
|
11038
11039
|
i0.ɵɵtext(3);
|
|
11039
11040
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
11040
11041
|
i0.ɵɵelementEnd()();
|
|
11041
|
-
i0.ɵɵtemplate(5,
|
|
11042
|
+
i0.ɵɵtemplate(5, WriteAddressFieldComponent_div_1_div_5_span_5_Template, 3, 3, "span", 11);
|
|
11042
11043
|
i0.ɵɵelement(6, "input", 12);
|
|
11043
11044
|
i0.ɵɵelementStart(7, "button", 13);
|
|
11044
|
-
i0.ɵɵlistener("click", function
|
|
11045
|
+
i0.ɵɵlistener("click", function WriteAddressFieldComponent_div_1_div_5_Template_button_click_7_listener() { i0.ɵɵrestoreView(_r7); const ctx_r6 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r6.findAddress()); });
|
|
11045
11046
|
i0.ɵɵtext(8);
|
|
11046
11047
|
i0.ɵɵpipe(9, "rpxTranslate");
|
|
11047
11048
|
i0.ɵɵelementEnd()();
|
|
@@ -11061,7 +11062,7 @@ function WriteAddressFieldComponent_div_1_div_4_Template(rf, ctx) {
|
|
|
11061
11062
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(9, 11, "Find address"));
|
|
11062
11063
|
}
|
|
11063
11064
|
}
|
|
11064
|
-
function
|
|
11065
|
+
function WriteAddressFieldComponent_div_1_div_6_option_6_Template(rf, ctx) {
|
|
11065
11066
|
if (rf & 1) {
|
|
11066
11067
|
i0.ɵɵelementStart(0, "option", 18);
|
|
11067
11068
|
i0.ɵɵtext(1);
|
|
@@ -11075,7 +11076,7 @@ function WriteAddressFieldComponent_div_1_div_5_option_6_Template(rf, ctx) {
|
|
|
11075
11076
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, addressOption_r9.description), " ");
|
|
11076
11077
|
}
|
|
11077
11078
|
}
|
|
11078
|
-
function
|
|
11079
|
+
function WriteAddressFieldComponent_div_1_div_6_Template(rf, ctx) {
|
|
11079
11080
|
if (rf & 1) {
|
|
11080
11081
|
const _r11 = i0.ɵɵgetCurrentView();
|
|
11081
11082
|
i0.ɵɵelementStart(0, "div", 15)(1, "label", 9)(2, "span", 10);
|
|
@@ -11083,8 +11084,8 @@ function WriteAddressFieldComponent_div_1_div_5_Template(rf, ctx) {
|
|
|
11083
11084
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
11084
11085
|
i0.ɵɵelementEnd()();
|
|
11085
11086
|
i0.ɵɵelementStart(5, "select", 16);
|
|
11086
|
-
i0.ɵɵlistener("change", function
|
|
11087
|
-
i0.ɵɵtemplate(6,
|
|
11087
|
+
i0.ɵɵlistener("change", function WriteAddressFieldComponent_div_1_div_6_Template_select_change_5_listener() { i0.ɵɵrestoreView(_r11); const ctx_r10 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r10.addressSelected()); });
|
|
11088
|
+
i0.ɵɵtemplate(6, WriteAddressFieldComponent_div_1_div_6_option_6_Template, 3, 4, "option", 17);
|
|
11088
11089
|
i0.ɵɵelementEnd()();
|
|
11089
11090
|
}
|
|
11090
11091
|
if (rf & 2) {
|
|
@@ -11099,11 +11100,11 @@ function WriteAddressFieldComponent_div_1_div_5_Template(rf, ctx) {
|
|
|
11099
11100
|
i0.ɵɵproperty("ngForOf", ctx_r3.addressOptions);
|
|
11100
11101
|
}
|
|
11101
11102
|
}
|
|
11102
|
-
function
|
|
11103
|
+
function WriteAddressFieldComponent_div_1_a_7_Template(rf, ctx) {
|
|
11103
11104
|
if (rf & 1) {
|
|
11104
11105
|
const _r13 = i0.ɵɵgetCurrentView();
|
|
11105
11106
|
i0.ɵɵelementStart(0, "a", 19);
|
|
11106
|
-
i0.ɵɵlistener("click", function
|
|
11107
|
+
i0.ɵɵlistener("click", function WriteAddressFieldComponent_div_1_a_7_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r13); const ctx_r12 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r12.blankAddress()); });
|
|
11107
11108
|
i0.ɵɵtext(1);
|
|
11108
11109
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
11109
11110
|
i0.ɵɵelementEnd();
|
|
@@ -11117,18 +11118,19 @@ function WriteAddressFieldComponent_div_1_Template(rf, ctx) {
|
|
|
11117
11118
|
if (rf & 1) {
|
|
11118
11119
|
i0.ɵɵelementStart(0, "div")(1, "h2", 4);
|
|
11119
11120
|
i0.ɵɵtext(2);
|
|
11120
|
-
i0.ɵɵpipe(3, "
|
|
11121
|
+
i0.ɵɵpipe(3, "rpxTranslate");
|
|
11122
|
+
i0.ɵɵpipe(4, "ccdFieldLabel");
|
|
11121
11123
|
i0.ɵɵelementEnd();
|
|
11122
|
-
i0.ɵɵtemplate(
|
|
11123
|
-
i0.ɵɵtemplate(
|
|
11124
|
-
i0.ɵɵtemplate(
|
|
11124
|
+
i0.ɵɵtemplate(5, WriteAddressFieldComponent_div_1_div_5_Template, 10, 17, "div", 5);
|
|
11125
|
+
i0.ɵɵtemplate(6, WriteAddressFieldComponent_div_1_div_6_Template, 7, 7, "div", 6);
|
|
11126
|
+
i0.ɵɵtemplate(7, WriteAddressFieldComponent_div_1_a_7_Template, 3, 3, "a", 7);
|
|
11125
11127
|
i0.ɵɵelementEnd();
|
|
11126
11128
|
}
|
|
11127
11129
|
if (rf & 2) {
|
|
11128
11130
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
11129
11131
|
i0.ɵɵadvance(2);
|
|
11130
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 4, ctx_r0.caseField));
|
|
11131
|
-
i0.ɵɵadvance(
|
|
11132
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 4, i0.ɵɵpipeBind1(4, 6, ctx_r0.caseField)));
|
|
11133
|
+
i0.ɵɵadvance(3);
|
|
11132
11134
|
i0.ɵɵproperty("ngIf", !ctx_r0.isExpanded);
|
|
11133
11135
|
i0.ɵɵadvance(1);
|
|
11134
11136
|
i0.ɵɵproperty("ngIf", ctx_r0.addressOptions);
|
|
@@ -11248,7 +11250,7 @@ WriteAddressFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
11248
11250
|
}, 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) {
|
|
11249
11251
|
if (rf & 1) {
|
|
11250
11252
|
i0.ɵɵelementStart(0, "div", 0);
|
|
11251
|
-
i0.ɵɵtemplate(1, WriteAddressFieldComponent_div_1_Template,
|
|
11253
|
+
i0.ɵɵtemplate(1, WriteAddressFieldComponent_div_1_Template, 8, 8, "div", 1);
|
|
11252
11254
|
i0.ɵɵelement(2, "ccd-write-complex-type-field", 2, 3);
|
|
11253
11255
|
i0.ɵɵelementEnd();
|
|
11254
11256
|
}
|
|
@@ -11263,7 +11265,7 @@ WriteAddressFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
11263
11265
|
(function () {
|
|
11264
11266
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteAddressFieldComponent, [{
|
|
11265
11267
|
type: Component,
|
|
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"] }]
|
|
11268
|
+
args: [{ selector: 'ccd-write-address-field', template: "<div class=\"form-group\" [id]=\"id()\">\n <div *ngIf=\"!isComplexWithHiddenFields()\">\n <h2 class=\"heading-h2\">{{caseField | ccdFieldLabel | rpxTranslate}}</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"] }]
|
|
11267
11269
|
}], function () { return [{ type: AddressesService }, { type: IsCompoundPipe }]; }, { writeComplexFieldComponent: [{
|
|
11268
11270
|
type: ViewChild,
|
|
11269
11271
|
args: ['writeComplexFieldComponent', { static: false }]
|
|
@@ -12595,13 +12597,14 @@ function WriteCaseLinkFieldComponent_span_2_Template(rf, ctx) {
|
|
|
12595
12597
|
if (rf & 1) {
|
|
12596
12598
|
i0.ɵɵelementStart(0, "span", 6);
|
|
12597
12599
|
i0.ɵɵtext(1);
|
|
12598
|
-
i0.ɵɵpipe(2, "
|
|
12600
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
12601
|
+
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
12599
12602
|
i0.ɵɵelementEnd();
|
|
12600
12603
|
}
|
|
12601
12604
|
if (rf & 2) {
|
|
12602
12605
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
12603
12606
|
i0.ɵɵadvance(1);
|
|
12604
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
12607
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind1(3, 3, ctx_r0.caseField)));
|
|
12605
12608
|
}
|
|
12606
12609
|
}
|
|
12607
12610
|
function WriteCaseLinkFieldComponent_span_3_Template(rf, ctx) {
|
|
@@ -12688,7 +12691,7 @@ WriteCaseLinkFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
12688
12691
|
}, 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) {
|
|
12689
12692
|
if (rf & 1) {
|
|
12690
12693
|
i0.ɵɵelementStart(0, "div", 0)(1, "label", 1);
|
|
12691
|
-
i0.ɵɵtemplate(2, WriteCaseLinkFieldComponent_span_2_Template,
|
|
12694
|
+
i0.ɵɵtemplate(2, WriteCaseLinkFieldComponent_span_2_Template, 4, 5, "span", 2);
|
|
12692
12695
|
i0.ɵɵelementEnd();
|
|
12693
12696
|
i0.ɵɵtemplate(3, WriteCaseLinkFieldComponent_span_3_Template, 3, 3, "span", 3);
|
|
12694
12697
|
i0.ɵɵtemplate(4, WriteCaseLinkFieldComponent_span_4_Template, 3, 4, "span", 4);
|
|
@@ -12712,7 +12715,7 @@ WriteCaseLinkFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
12712
12715
|
(function () {
|
|
12713
12716
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteCaseLinkFieldComponent, [{
|
|
12714
12717
|
type: Component,
|
|
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" }]
|
|
12718
|
+
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 | rpxTranslate}}</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" }]
|
|
12716
12719
|
}], null, { writeComplexFieldComponent: [{
|
|
12717
12720
|
type: ViewChild,
|
|
12718
12721
|
args: ['writeComplexFieldComponent']
|
|
@@ -12872,7 +12875,7 @@ RemoveDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Remov
|
|
|
12872
12875
|
})();
|
|
12873
12876
|
|
|
12874
12877
|
const _c0$R = ["collectionItem"];
|
|
12875
|
-
function
|
|
12878
|
+
function WriteCollectionFieldComponent_h2_9_span_1_Template(rf, ctx) {
|
|
12876
12879
|
if (rf & 1) {
|
|
12877
12880
|
i0.ɵɵelementStart(0, "span", 9);
|
|
12878
12881
|
i0.ɵɵtext(1);
|
|
@@ -12885,7 +12888,7 @@ function WriteCollectionFieldComponent_h2_8_span_1_Template(rf, ctx) {
|
|
|
12885
12888
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r3.caseField.hint_text));
|
|
12886
12889
|
}
|
|
12887
12890
|
}
|
|
12888
|
-
function
|
|
12891
|
+
function WriteCollectionFieldComponent_h2_9_span_2_Template(rf, ctx) {
|
|
12889
12892
|
if (rf & 1) {
|
|
12890
12893
|
i0.ɵɵelementStart(0, "span", 10);
|
|
12891
12894
|
i0.ɵɵtext(1);
|
|
@@ -12898,11 +12901,11 @@ function WriteCollectionFieldComponent_h2_8_span_2_Template(rf, ctx) {
|
|
|
12898
12901
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r4.formArray.errors, ctx_r4.caseField.label), " ");
|
|
12899
12902
|
}
|
|
12900
12903
|
}
|
|
12901
|
-
function
|
|
12904
|
+
function WriteCollectionFieldComponent_h2_9_Template(rf, ctx) {
|
|
12902
12905
|
if (rf & 1) {
|
|
12903
12906
|
i0.ɵɵelementStart(0, "h2", 2);
|
|
12904
|
-
i0.ɵɵtemplate(1,
|
|
12905
|
-
i0.ɵɵtemplate(2,
|
|
12907
|
+
i0.ɵɵtemplate(1, WriteCollectionFieldComponent_h2_9_span_1_Template, 3, 3, "span", 7);
|
|
12908
|
+
i0.ɵɵtemplate(2, WriteCollectionFieldComponent_h2_9_span_2_Template, 3, 4, "span", 8);
|
|
12906
12909
|
i0.ɵɵelementEnd();
|
|
12907
12910
|
}
|
|
12908
12911
|
if (rf & 2) {
|
|
@@ -12913,7 +12916,7 @@ function WriteCollectionFieldComponent_h2_8_Template(rf, ctx) {
|
|
|
12913
12916
|
i0.ɵɵproperty("ngIf", ctx_r0.formArray.errors);
|
|
12914
12917
|
}
|
|
12915
12918
|
}
|
|
12916
|
-
function
|
|
12919
|
+
function WriteCollectionFieldComponent_div_10_div_1_Template(rf, ctx) {
|
|
12917
12920
|
if (rf & 1) {
|
|
12918
12921
|
const _r10 = i0.ɵɵgetCurrentView();
|
|
12919
12922
|
i0.ɵɵelementStart(0, "div", 0, 13)(2, "div", 14)(3, "div", 15)(4, "label", 16)(5, "h3", 17);
|
|
@@ -12921,7 +12924,7 @@ function WriteCollectionFieldComponent_div_9_div_1_Template(rf, ctx) {
|
|
|
12921
12924
|
i0.ɵɵpipe(7, "rpxTranslate");
|
|
12922
12925
|
i0.ɵɵelementEnd()()();
|
|
12923
12926
|
i0.ɵɵelementStart(8, "div", 18)(9, "button", 19);
|
|
12924
|
-
i0.ɵɵlistener("click", function
|
|
12927
|
+
i0.ɵɵlistener("click", function WriteCollectionFieldComponent_div_10_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)); });
|
|
12925
12928
|
i0.ɵɵtext(10);
|
|
12926
12929
|
i0.ɵɵpipe(11, "rpxTranslate");
|
|
12927
12930
|
i0.ɵɵelementEnd()()();
|
|
@@ -12946,10 +12949,10 @@ function WriteCollectionFieldComponent_div_9_div_1_Template(rf, ctx) {
|
|
|
12946
12949
|
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);
|
|
12947
12950
|
}
|
|
12948
12951
|
}
|
|
12949
|
-
function
|
|
12952
|
+
function WriteCollectionFieldComponent_div_10_Template(rf, ctx) {
|
|
12950
12953
|
if (rf & 1) {
|
|
12951
12954
|
i0.ɵɵelementStart(0, "div", 11);
|
|
12952
|
-
i0.ɵɵtemplate(1,
|
|
12955
|
+
i0.ɵɵtemplate(1, WriteCollectionFieldComponent_div_10_div_1_Template, 13, 18, "div", 12);
|
|
12953
12956
|
i0.ɵɵelementEnd();
|
|
12954
12957
|
}
|
|
12955
12958
|
if (rf & 2) {
|
|
@@ -12959,11 +12962,11 @@ function WriteCollectionFieldComponent_div_9_Template(rf, ctx) {
|
|
|
12959
12962
|
i0.ɵɵproperty("ngForOf", ctx_r1.collItems);
|
|
12960
12963
|
}
|
|
12961
12964
|
}
|
|
12962
|
-
function
|
|
12965
|
+
function WriteCollectionFieldComponent_button_11_Template(rf, ctx) {
|
|
12963
12966
|
if (rf & 1) {
|
|
12964
12967
|
const _r12 = i0.ɵɵgetCurrentView();
|
|
12965
12968
|
i0.ɵɵelementStart(0, "button", 21);
|
|
12966
|
-
i0.ɵɵlistener("click", function
|
|
12969
|
+
i0.ɵɵlistener("click", function WriteCollectionFieldComponent_button_11_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r12); const ctx_r11 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r11.addItem(false)); });
|
|
12967
12970
|
i0.ɵɵtext(1);
|
|
12968
12971
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
12969
12972
|
i0.ɵɵelementEnd();
|
|
@@ -13279,30 +13282,31 @@ WriteCollectionFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ typ
|
|
|
13279
13282
|
let _t;
|
|
13280
13283
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.items = _t);
|
|
13281
13284
|
}
|
|
13282
|
-
}, inputs: { caseFields: "caseFields", formGroup: "formGroup" }, features: [i0.ɵɵInheritDefinitionFeature], decls:
|
|
13285
|
+
}, inputs: { caseFields: "caseFields", formGroup: "formGroup" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 12, vars: 13, 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) {
|
|
13283
13286
|
if (rf & 1) {
|
|
13284
13287
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "h2", 2);
|
|
13285
13288
|
i0.ɵɵtext(3);
|
|
13286
|
-
i0.ɵɵpipe(4, "
|
|
13289
|
+
i0.ɵɵpipe(4, "rpxTranslate");
|
|
13290
|
+
i0.ɵɵpipe(5, "ccdFieldLabel");
|
|
13287
13291
|
i0.ɵɵelementEnd();
|
|
13288
|
-
i0.ɵɵelementStart(
|
|
13289
|
-
i0.ɵɵlistener("click", function
|
|
13290
|
-
i0.ɵɵtext(
|
|
13291
|
-
i0.ɵɵpipe(
|
|
13292
|
+
i0.ɵɵelementStart(6, "button", 3);
|
|
13293
|
+
i0.ɵɵlistener("click", function WriteCollectionFieldComponent_Template_button_click_6_listener() { return ctx.addItem(true); });
|
|
13294
|
+
i0.ɵɵtext(7);
|
|
13295
|
+
i0.ɵɵpipe(8, "rpxTranslate");
|
|
13292
13296
|
i0.ɵɵelementEnd();
|
|
13293
|
-
i0.ɵɵtemplate(
|
|
13294
|
-
i0.ɵɵtemplate(
|
|
13295
|
-
i0.ɵɵtemplate(
|
|
13297
|
+
i0.ɵɵtemplate(9, WriteCollectionFieldComponent_h2_9_Template, 3, 2, "h2", 4);
|
|
13298
|
+
i0.ɵɵtemplate(10, WriteCollectionFieldComponent_div_10_Template, 2, 2, "div", 5);
|
|
13299
|
+
i0.ɵɵtemplate(11, WriteCollectionFieldComponent_button_11_Template, 3, 4, "button", 6);
|
|
13296
13300
|
i0.ɵɵelementEnd()();
|
|
13297
13301
|
}
|
|
13298
13302
|
if (rf & 2) {
|
|
13299
13303
|
i0.ɵɵproperty("id", ctx.id());
|
|
13300
13304
|
i0.ɵɵadvance(3);
|
|
13301
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 7, ctx.caseField), " ");
|
|
13302
|
-
i0.ɵɵadvance(
|
|
13305
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 7, i0.ɵɵpipeBind1(5, 9, ctx.caseField)), " ");
|
|
13306
|
+
i0.ɵɵadvance(3);
|
|
13303
13307
|
i0.ɵɵproperty("disabled", ctx.isNotAuthorisedToCreate() || ctx.isSearchFilter());
|
|
13304
13308
|
i0.ɵɵadvance(1);
|
|
13305
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
13309
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(8, 11, "Add new"));
|
|
13306
13310
|
i0.ɵɵadvance(2);
|
|
13307
13311
|
i0.ɵɵproperty("ngIf", ctx.caseField.hint_text || ctx.formArray.errors);
|
|
13308
13312
|
i0.ɵɵadvance(1);
|
|
@@ -13314,7 +13318,7 @@ WriteCollectionFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ typ
|
|
|
13314
13318
|
(function () {
|
|
13315
13319
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteCollectionFieldComponent, [{
|
|
13316
13320
|
type: Component,
|
|
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"] }]
|
|
13321
|
+
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) | rpxTranslate }}\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"] }]
|
|
13318
13322
|
}], function () { return [{ type: i1$3.MatLegacyDialog }, { type: i2.ScrollToService }, { type: ProfileNotifier }, { type: i0.ChangeDetectorRef }]; }, { caseFields: [{
|
|
13319
13323
|
type: Input
|
|
13320
13324
|
}], formGroup: [{
|
|
@@ -13485,7 +13489,9 @@ class FieldsFilterPipe {
|
|
|
13485
13489
|
.filter(f => keepEmpty || FieldsFilterPipe.keepField(f))
|
|
13486
13490
|
.map(f => {
|
|
13487
13491
|
if (!f.display_context) {
|
|
13488
|
-
|
|
13492
|
+
if (FieldsUtils.isValidDisplayContext(complexField.display_context)) {
|
|
13493
|
+
f.display_context = complexField.display_context;
|
|
13494
|
+
}
|
|
13489
13495
|
}
|
|
13490
13496
|
return f;
|
|
13491
13497
|
});
|
|
@@ -13515,13 +13521,14 @@ function WriteComplexFieldComponent_h2_3_Template(rf, ctx) {
|
|
|
13515
13521
|
if (rf & 1) {
|
|
13516
13522
|
i0.ɵɵelementStart(0, "h2", 3);
|
|
13517
13523
|
i0.ɵɵtext(1);
|
|
13518
|
-
i0.ɵɵpipe(2, "
|
|
13524
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
13525
|
+
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
13519
13526
|
i0.ɵɵelementEnd();
|
|
13520
13527
|
}
|
|
13521
13528
|
if (rf & 2) {
|
|
13522
13529
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
13523
13530
|
i0.ɵɵadvance(1);
|
|
13524
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
13531
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind1(3, 3, ctx_r0.caseField)));
|
|
13525
13532
|
}
|
|
13526
13533
|
}
|
|
13527
13534
|
function WriteComplexFieldComponent_ng_container_4_ccd_field_read_2_Template(rf, ctx) {
|
|
@@ -13658,7 +13665,7 @@ WriteComplexFieldComponent.ɵfac = function WriteComplexFieldComponent_Factory(t
|
|
|
13658
13665
|
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"], ["ccdLabelSubstitutor", "", 3, "caseField", "caseFields", "formGroup", "withLabel", 4, "ngSwitchCase"], ["ccdLabelSubstitutor", "", 3, "caseField", "caseFields", "formGroup", "parent", "idPrefix", "hidden", "isExpanded", "isInSearchBlock", 4, "ngSwitchCase"], ["ccdLabelSubstitutor", "", 3, "caseField", "caseFields", "formGroup", "withLabel"], ["ccdLabelSubstitutor", "", 3, "caseField", "caseFields", "formGroup", "parent", "idPrefix", "hidden", "isExpanded", "isInSearchBlock"]], template: function WriteComplexFieldComponent_Template(rf, ctx) {
|
|
13659
13666
|
if (rf & 1) {
|
|
13660
13667
|
i0.ɵɵelementStart(0, "div", 0)(1, "fieldset")(2, "legend");
|
|
13661
|
-
i0.ɵɵtemplate(3, WriteComplexFieldComponent_h2_3_Template,
|
|
13668
|
+
i0.ɵɵtemplate(3, WriteComplexFieldComponent_h2_3_Template, 4, 5, "h2", 1);
|
|
13662
13669
|
i0.ɵɵelementEnd();
|
|
13663
13670
|
i0.ɵɵtemplate(4, WriteComplexFieldComponent_ng_container_4_Template, 4, 5, "ng-container", 2);
|
|
13664
13671
|
i0.ɵɵelementEnd()();
|
|
@@ -13674,7 +13681,7 @@ WriteComplexFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
13674
13681
|
(function () {
|
|
13675
13682
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteComplexFieldComponent, [{
|
|
13676
13683
|
type: Component,
|
|
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 ccdLabelSubstitutor\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"] }]
|
|
13684
|
+
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) | rpxTranslate}}</h2></legend>\n <ng-container [ngSwitch]=\"field | ccdIsReadOnly\" *ngFor=\"let field of complexFields\">\n <ccd-field-read *ngSwitchCase=\"true\"\n ccdLabelSubstitutor\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"] }]
|
|
13678
13685
|
}], function () { return [{ type: IsCompoundPipe }, { type: FormValidatorsService }]; }, { caseFields: [{
|
|
13679
13686
|
type: Input
|
|
13680
13687
|
}], formGroup: [{
|
|
@@ -13905,7 +13912,7 @@ FileUploadStateService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: F
|
|
|
13905
13912
|
})();
|
|
13906
13913
|
|
|
13907
13914
|
const _c0$Q = ["fileInput"];
|
|
13908
|
-
function
|
|
13915
|
+
function WriteDocumentFieldComponent_span_7_Template(rf, ctx) {
|
|
13909
13916
|
if (rf & 1) {
|
|
13910
13917
|
i0.ɵɵelementStart(0, "span", 12);
|
|
13911
13918
|
i0.ɵɵtext(1);
|
|
@@ -13918,7 +13925,7 @@ function WriteDocumentFieldComponent_span_6_Template(rf, ctx) {
|
|
|
13918
13925
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField.hint_text));
|
|
13919
13926
|
}
|
|
13920
13927
|
}
|
|
13921
|
-
function
|
|
13928
|
+
function WriteDocumentFieldComponent_span_8_Template(rf, ctx) {
|
|
13922
13929
|
if (rf & 1) {
|
|
13923
13930
|
i0.ɵɵelementStart(0, "span", 13);
|
|
13924
13931
|
i0.ɵɵtext(1);
|
|
@@ -13931,7 +13938,7 @@ function WriteDocumentFieldComponent_span_7_Template(rf, ctx) {
|
|
|
13931
13938
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r1.fileUploadMessages));
|
|
13932
13939
|
}
|
|
13933
13940
|
}
|
|
13934
|
-
function
|
|
13941
|
+
function WriteDocumentFieldComponent_ccd_read_document_field_10_Template(rf, ctx) {
|
|
13935
13942
|
if (rf & 1) {
|
|
13936
13943
|
i0.ɵɵelement(0, "ccd-read-document-field", 14);
|
|
13937
13944
|
}
|
|
@@ -14209,39 +14216,40 @@ WriteDocumentFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
14209
14216
|
let _t;
|
|
14210
14217
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fileInput = _t.first);
|
|
14211
14218
|
}
|
|
14212
|
-
}, features: [i0.ɵɵInheritDefinitionFeature], decls:
|
|
14219
|
+
}, features: [i0.ɵɵInheritDefinitionFeature], decls: 19, vars: 22, 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) {
|
|
14213
14220
|
if (rf & 1) {
|
|
14214
14221
|
i0.ɵɵelementStart(0, "div", 0)(1, "label", 1)(2, "span", 2);
|
|
14215
14222
|
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
14216
14223
|
i0.ɵɵtext(4);
|
|
14217
|
-
i0.ɵɵpipe(5, "
|
|
14224
|
+
i0.ɵɵpipe(5, "rpxTranslate");
|
|
14225
|
+
i0.ɵɵpipe(6, "ccdFieldLabel");
|
|
14218
14226
|
i0.ɵɵelementEnd()();
|
|
14219
|
-
i0.ɵɵtemplate(
|
|
14220
|
-
i0.ɵɵtemplate(
|
|
14221
|
-
i0.ɵɵelementStart(
|
|
14222
|
-
i0.ɵɵtemplate(
|
|
14227
|
+
i0.ɵɵtemplate(7, WriteDocumentFieldComponent_span_7_Template, 3, 3, "span", 3);
|
|
14228
|
+
i0.ɵɵtemplate(8, WriteDocumentFieldComponent_span_8_Template, 3, 3, "span", 4);
|
|
14229
|
+
i0.ɵɵelementStart(9, "div");
|
|
14230
|
+
i0.ɵɵtemplate(10, WriteDocumentFieldComponent_ccd_read_document_field_10_Template, 1, 1, "ccd-read-document-field", 5);
|
|
14223
14231
|
i0.ɵɵelementEnd();
|
|
14224
|
-
i0.ɵɵelementStart(
|
|
14225
|
-
i0.ɵɵlistener("click", function
|
|
14232
|
+
i0.ɵɵelementStart(11, "div", 6)(12, "div", 7);
|
|
14233
|
+
i0.ɵɵlistener("click", function WriteDocumentFieldComponent_Template_div_click_12_listener() { return ctx.fileSelectEvent(); });
|
|
14226
14234
|
i0.ɵɵelementEnd();
|
|
14227
|
-
i0.ɵɵelementStart(
|
|
14228
|
-
i0.ɵɵlistener("keydown.Tab", function
|
|
14235
|
+
i0.ɵɵelementStart(13, "input", 8, 9);
|
|
14236
|
+
i0.ɵɵlistener("keydown.Tab", function WriteDocumentFieldComponent_Template_input_keydown_Tab_13_listener() { return ctx.fileValidationsOnTab(); })("change", function WriteDocumentFieldComponent_Template_input_change_13_listener($event) { return ctx.fileChangeEvent($event); });
|
|
14229
14237
|
i0.ɵɵelementEnd()()();
|
|
14230
|
-
i0.ɵɵelementStart(
|
|
14231
|
-
i0.ɵɵlistener("click", function
|
|
14232
|
-
i0.ɵɵtext(
|
|
14233
|
-
i0.ɵɵpipe(
|
|
14238
|
+
i0.ɵɵelementStart(15, "div", 10)(16, "button", 11);
|
|
14239
|
+
i0.ɵɵlistener("click", function WriteDocumentFieldComponent_Template_button_click_16_listener() { return ctx.cancelUpload(); });
|
|
14240
|
+
i0.ɵɵtext(17);
|
|
14241
|
+
i0.ɵɵpipe(18, "rpxTranslate");
|
|
14234
14242
|
i0.ɵɵelementEnd()();
|
|
14235
14243
|
}
|
|
14236
14244
|
if (rf & 2) {
|
|
14237
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
14245
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(20, _c1$k, !ctx.valid));
|
|
14238
14246
|
i0.ɵɵadvance(1);
|
|
14239
14247
|
i0.ɵɵproperty("for", ctx.id());
|
|
14240
14248
|
i0.ɵɵadvance(1);
|
|
14241
14249
|
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(3, 12, ctx.caseField));
|
|
14242
14250
|
i0.ɵɵadvance(2);
|
|
14243
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 14, ctx.caseField));
|
|
14244
|
-
i0.ɵɵadvance(
|
|
14251
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 14, i0.ɵɵpipeBind1(6, 16, ctx.caseField)));
|
|
14252
|
+
i0.ɵɵadvance(3);
|
|
14245
14253
|
i0.ɵɵproperty("ngIf", ctx.caseField.hint_text);
|
|
14246
14254
|
i0.ɵɵadvance(1);
|
|
14247
14255
|
i0.ɵɵproperty("ngIf", ctx.fileUploadMessages && !ctx.valid);
|
|
@@ -14255,13 +14263,13 @@ WriteDocumentFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
14255
14263
|
i0.ɵɵadvance(3);
|
|
14256
14264
|
i0.ɵɵproperty("disabled", !ctx.isUploadInProgress());
|
|
14257
14265
|
i0.ɵɵadvance(1);
|
|
14258
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
14266
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(18, 18, "Cancel upload"));
|
|
14259
14267
|
}
|
|
14260
14268
|
}, encapsulation: 2 });
|
|
14261
14269
|
(function () {
|
|
14262
14270
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteDocumentFieldComponent, [{
|
|
14263
14271
|
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)}}</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" }]
|
|
14272
|
+
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) | rpxTranslate}}</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
14273
|
}], function () { return [{ type: AbstractAppConfig }, { type: CaseNotifier }, { type: DocumentManagementService }, { type: i1$3.MatLegacyDialog }, { type: FileUploadStateService }, { type: JurisdictionService }]; }, { fileInput: [{
|
|
14266
14274
|
type: ViewChild,
|
|
14267
14275
|
args: ['fileInput', { static: false }]
|
|
@@ -14326,13 +14334,14 @@ function WriteDynamicListFieldComponent_span_2_Template(rf, ctx) {
|
|
|
14326
14334
|
if (rf & 1) {
|
|
14327
14335
|
i0.ɵɵelementStart(0, "span", 8);
|
|
14328
14336
|
i0.ɵɵtext(1);
|
|
14329
|
-
i0.ɵɵpipe(2, "
|
|
14337
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
14338
|
+
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
14330
14339
|
i0.ɵɵelementEnd();
|
|
14331
14340
|
}
|
|
14332
14341
|
if (rf & 2) {
|
|
14333
14342
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
14334
14343
|
i0.ɵɵadvance(1);
|
|
14335
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
14344
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind1(3, 3, ctx_r0.caseField)));
|
|
14336
14345
|
}
|
|
14337
14346
|
}
|
|
14338
14347
|
function WriteDynamicListFieldComponent_span_3_Template(rf, ctx) {
|
|
@@ -14416,7 +14425,7 @@ WriteDynamicListFieldComponent.ɵfac = /*@__PURE__*/ function () { let ɵWriteDy
|
|
|
14416
14425
|
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) {
|
|
14417
14426
|
if (rf & 1) {
|
|
14418
14427
|
i0.ɵɵelementStart(0, "div", 0)(1, "label", 1);
|
|
14419
|
-
i0.ɵɵtemplate(2, WriteDynamicListFieldComponent_span_2_Template,
|
|
14428
|
+
i0.ɵɵtemplate(2, WriteDynamicListFieldComponent_span_2_Template, 4, 5, "span", 2);
|
|
14420
14429
|
i0.ɵɵelementEnd();
|
|
14421
14430
|
i0.ɵɵtemplate(3, WriteDynamicListFieldComponent_span_3_Template, 3, 3, "span", 3);
|
|
14422
14431
|
i0.ɵɵtemplate(4, WriteDynamicListFieldComponent_span_4_Template, 3, 3, "span", 2);
|
|
@@ -14453,7 +14462,7 @@ WriteDynamicListFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ ty
|
|
|
14453
14462
|
(function () {
|
|
14454
14463
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteDynamicListFieldComponent, [{
|
|
14455
14464
|
type: Component,
|
|
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" }]
|
|
14465
|
+
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) | rpxTranslate}}</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" }]
|
|
14457
14466
|
}], null, null);
|
|
14458
14467
|
})();
|
|
14459
14468
|
|
|
@@ -14475,23 +14484,22 @@ MarkdownComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MarkdownC
|
|
|
14475
14484
|
if (rf & 1) {
|
|
14476
14485
|
i0.ɵɵlistener("click", function MarkdownComponent_click_HostBindingHandler($event) { return ctx.onMarkdownClick($event); });
|
|
14477
14486
|
}
|
|
14478
|
-
}, inputs: { content: "content", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink" }, decls:
|
|
14487
|
+
}, inputs: { content: "content", markdownUseHrefAsRouterLink: "markdownUseHrefAsRouterLink" }, decls: 3, vars: 3, consts: [[1, "markdown", 3, "data"]], template: function MarkdownComponent_Template(rf, ctx) {
|
|
14479
14488
|
if (rf & 1) {
|
|
14480
14489
|
i0.ɵɵelementStart(0, "div");
|
|
14481
14490
|
i0.ɵɵelement(1, "markdown", 0);
|
|
14482
|
-
i0.ɵɵpipe(2, "
|
|
14483
|
-
i0.ɵɵpipe(3, "ccdCaseReference");
|
|
14491
|
+
i0.ɵɵpipe(2, "ccdCaseReference");
|
|
14484
14492
|
i0.ɵɵelementEnd();
|
|
14485
14493
|
}
|
|
14486
14494
|
if (rf & 2) {
|
|
14487
14495
|
i0.ɵɵadvance(1);
|
|
14488
|
-
i0.ɵɵproperty("data", i0.ɵɵpipeBind1(2, 1,
|
|
14496
|
+
i0.ɵɵproperty("data", i0.ɵɵpipeBind1(2, 1, ctx.content));
|
|
14489
14497
|
}
|
|
14490
|
-
}, dependencies: [i1$4.NgxMdComponent,
|
|
14498
|
+
}, dependencies: [i1$4.NgxMdComponent, CaseReferencePipe], encapsulation: 2 });
|
|
14491
14499
|
(function () {
|
|
14492
14500
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MarkdownComponent, [{
|
|
14493
14501
|
type: Component,
|
|
14494
|
-
args: [{ selector: 'ccd-markdown', template: "<div><markdown class=\"markdown\" [data]=\"content | ccdCaseReference
|
|
14502
|
+
args: [{ selector: 'ccd-markdown', template: "<div><markdown class=\"markdown\" [data]=\"content | ccdCaseReference\"></markdown></div>\n" }]
|
|
14495
14503
|
}], function () { return []; }, { content: [{
|
|
14496
14504
|
type: Input
|
|
14497
14505
|
}], markdownUseHrefAsRouterLink: [{
|
|
@@ -14795,13 +14803,14 @@ function WriteDynamicRadioListFieldComponent_span_4_Template(rf, ctx) {
|
|
|
14795
14803
|
if (rf & 1) {
|
|
14796
14804
|
i0.ɵɵelementStart(0, "span", 7);
|
|
14797
14805
|
i0.ɵɵtext(1);
|
|
14798
|
-
i0.ɵɵpipe(2, "
|
|
14806
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
14807
|
+
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
14799
14808
|
i0.ɵɵelementEnd();
|
|
14800
14809
|
}
|
|
14801
14810
|
if (rf & 2) {
|
|
14802
14811
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
14803
14812
|
i0.ɵɵadvance(1);
|
|
14804
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
14813
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind1(3, 3, ctx_r0.caseField)));
|
|
14805
14814
|
}
|
|
14806
14815
|
}
|
|
14807
14816
|
function WriteDynamicRadioListFieldComponent_span_5_Template(rf, ctx) {
|
|
@@ -14893,7 +14902,7 @@ WriteDynamicRadioListFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent
|
|
|
14893
14902
|
i0.ɵɵelementStart(0, "div", 0)(1, "fieldset");
|
|
14894
14903
|
i0.ɵɵelement(2, "legend", 1);
|
|
14895
14904
|
i0.ɵɵelementStart(3, "label", 2);
|
|
14896
|
-
i0.ɵɵtemplate(4, WriteDynamicRadioListFieldComponent_span_4_Template,
|
|
14905
|
+
i0.ɵɵtemplate(4, WriteDynamicRadioListFieldComponent_span_4_Template, 4, 5, "span", 3);
|
|
14897
14906
|
i0.ɵɵtemplate(5, WriteDynamicRadioListFieldComponent_span_5_Template, 3, 3, "span", 4);
|
|
14898
14907
|
i0.ɵɵtemplate(6, WriteDynamicRadioListFieldComponent_span_6_Template, 3, 3, "span", 3);
|
|
14899
14908
|
i0.ɵɵtemplate(7, WriteDynamicRadioListFieldComponent_span_7_Template, 3, 3, "span", 5);
|
|
@@ -14922,7 +14931,7 @@ WriteDynamicRadioListFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent
|
|
|
14922
14931
|
(function () {
|
|
14923
14932
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteDynamicRadioListFieldComponent, [{
|
|
14924
14933
|
type: Component,
|
|
14925
|
-
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" }]
|
|
14934
|
+
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) | rpxTranslate}}</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" }]
|
|
14926
14935
|
}], null, null);
|
|
14927
14936
|
})();
|
|
14928
14937
|
|
|
@@ -14969,13 +14978,14 @@ function WriteEmailFieldComponent_span_2_Template(rf, ctx) {
|
|
|
14969
14978
|
if (rf & 1) {
|
|
14970
14979
|
i0.ɵɵelementStart(0, "span", 6);
|
|
14971
14980
|
i0.ɵɵtext(1);
|
|
14972
|
-
i0.ɵɵpipe(2, "
|
|
14981
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
14982
|
+
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
14973
14983
|
i0.ɵɵelementEnd();
|
|
14974
14984
|
}
|
|
14975
14985
|
if (rf & 2) {
|
|
14976
14986
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
14977
14987
|
i0.ɵɵadvance(1);
|
|
14978
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
14988
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind1(3, 3, ctx_r0.caseField)));
|
|
14979
14989
|
}
|
|
14980
14990
|
}
|
|
14981
14991
|
function WriteEmailFieldComponent_span_3_Template(rf, ctx) {
|
|
@@ -15015,7 +15025,7 @@ WriteEmailFieldComponent.ɵfac = /*@__PURE__*/ function () { let ɵWriteEmailFie
|
|
|
15015
15025
|
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) {
|
|
15016
15026
|
if (rf & 1) {
|
|
15017
15027
|
i0.ɵɵelementStart(0, "div", 0)(1, "label", 1);
|
|
15018
|
-
i0.ɵɵtemplate(2, WriteEmailFieldComponent_span_2_Template,
|
|
15028
|
+
i0.ɵɵtemplate(2, WriteEmailFieldComponent_span_2_Template, 4, 5, "span", 2);
|
|
15019
15029
|
i0.ɵɵelementEnd();
|
|
15020
15030
|
i0.ɵɵtemplate(3, WriteEmailFieldComponent_span_3_Template, 3, 3, "span", 3);
|
|
15021
15031
|
i0.ɵɵtemplate(4, WriteEmailFieldComponent_span_4_Template, 3, 4, "span", 4);
|
|
@@ -15039,7 +15049,7 @@ WriteEmailFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Wr
|
|
|
15039
15049
|
(function () {
|
|
15040
15050
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteEmailFieldComponent, [{
|
|
15041
15051
|
type: Component,
|
|
15042
|
-
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" }]
|
|
15052
|
+
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) | rpxTranslate}}</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" }]
|
|
15043
15053
|
}], null, null);
|
|
15044
15054
|
})();
|
|
15045
15055
|
|
|
@@ -15073,13 +15083,14 @@ function WriteFixedListFieldComponent_span_2_Template(rf, ctx) {
|
|
|
15073
15083
|
if (rf & 1) {
|
|
15074
15084
|
i0.ɵɵelementStart(0, "span", 8);
|
|
15075
15085
|
i0.ɵɵtext(1);
|
|
15076
|
-
i0.ɵɵpipe(2, "
|
|
15086
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
15087
|
+
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
15077
15088
|
i0.ɵɵelementEnd();
|
|
15078
15089
|
}
|
|
15079
15090
|
if (rf & 2) {
|
|
15080
15091
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
15081
15092
|
i0.ɵɵadvance(1);
|
|
15082
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
15093
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind1(3, 3, ctx_r0.caseField)));
|
|
15083
15094
|
}
|
|
15084
15095
|
}
|
|
15085
15096
|
function WriteFixedListFieldComponent_span_3_Template(rf, ctx) {
|
|
@@ -15148,7 +15159,7 @@ WriteFixedListFieldComponent.ɵfac = /*@__PURE__*/ function () { let ɵWriteFixe
|
|
|
15148
15159
|
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) {
|
|
15149
15160
|
if (rf & 1) {
|
|
15150
15161
|
i0.ɵɵelementStart(0, "div", 0)(1, "label", 1);
|
|
15151
|
-
i0.ɵɵtemplate(2, WriteFixedListFieldComponent_span_2_Template,
|
|
15162
|
+
i0.ɵɵtemplate(2, WriteFixedListFieldComponent_span_2_Template, 4, 5, "span", 2);
|
|
15152
15163
|
i0.ɵɵelementEnd();
|
|
15153
15164
|
i0.ɵɵtemplate(3, WriteFixedListFieldComponent_span_3_Template, 3, 3, "span", 3);
|
|
15154
15165
|
i0.ɵɵtemplate(4, WriteFixedListFieldComponent_span_4_Template, 3, 4, "span", 4);
|
|
@@ -15179,7 +15190,7 @@ WriteFixedListFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type
|
|
|
15179
15190
|
(function () {
|
|
15180
15191
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteFixedListFieldComponent, [{
|
|
15181
15192
|
type: Component,
|
|
15182
|
-
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" }]
|
|
15193
|
+
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) | rpxTranslate}}</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" }]
|
|
15183
15194
|
}], null, null);
|
|
15184
15195
|
})();
|
|
15185
15196
|
|
|
@@ -15231,13 +15242,14 @@ function WriteFixedRadioListFieldComponent_span_4_Template(rf, ctx) {
|
|
|
15231
15242
|
if (rf & 1) {
|
|
15232
15243
|
i0.ɵɵelementStart(0, "span", 6);
|
|
15233
15244
|
i0.ɵɵtext(1);
|
|
15234
|
-
i0.ɵɵpipe(2, "
|
|
15245
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
15246
|
+
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
15235
15247
|
i0.ɵɵelementEnd();
|
|
15236
15248
|
}
|
|
15237
15249
|
if (rf & 2) {
|
|
15238
15250
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
15239
15251
|
i0.ɵɵadvance(1);
|
|
15240
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
15252
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind1(3, 3, ctx_r0.caseField)));
|
|
15241
15253
|
}
|
|
15242
15254
|
}
|
|
15243
15255
|
function WriteFixedRadioListFieldComponent_span_5_Template(rf, ctx) {
|
|
@@ -15299,7 +15311,7 @@ WriteFixedRadioListFieldComponent.ɵfac = /*@__PURE__*/ function () { let ɵWrit
|
|
|
15299
15311
|
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) {
|
|
15300
15312
|
if (rf & 1) {
|
|
15301
15313
|
i0.ɵɵelementStart(0, "div", 0)(1, "fieldset")(2, "legend")(3, "label", 1);
|
|
15302
|
-
i0.ɵɵtemplate(4, WriteFixedRadioListFieldComponent_span_4_Template,
|
|
15314
|
+
i0.ɵɵtemplate(4, WriteFixedRadioListFieldComponent_span_4_Template, 4, 5, "span", 2);
|
|
15303
15315
|
i0.ɵɵelementEnd();
|
|
15304
15316
|
i0.ɵɵtemplate(5, WriteFixedRadioListFieldComponent_span_5_Template, 3, 3, "span", 3);
|
|
15305
15317
|
i0.ɵɵtemplate(6, WriteFixedRadioListFieldComponent_span_6_Template, 3, 4, "span", 4);
|
|
@@ -15326,7 +15338,7 @@ WriteFixedRadioListFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({
|
|
|
15326
15338
|
(function () {
|
|
15327
15339
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteFixedRadioListFieldComponent, [{
|
|
15328
15340
|
type: Component,
|
|
15329
|
-
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" }]
|
|
15341
|
+
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) | rpxTranslate}}</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" }]
|
|
15330
15342
|
}], null, null);
|
|
15331
15343
|
})();
|
|
15332
15344
|
|
|
@@ -18178,13 +18190,14 @@ function WriteMoneyGbpFieldComponent_span_2_Template(rf, ctx) {
|
|
|
18178
18190
|
if (rf & 1) {
|
|
18179
18191
|
i0.ɵɵelementStart(0, "span", 8);
|
|
18180
18192
|
i0.ɵɵtext(1);
|
|
18181
|
-
i0.ɵɵpipe(2, "
|
|
18193
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
18194
|
+
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
18182
18195
|
i0.ɵɵelementEnd();
|
|
18183
18196
|
}
|
|
18184
18197
|
if (rf & 2) {
|
|
18185
18198
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
18186
18199
|
i0.ɵɵadvance(1);
|
|
18187
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
18200
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind1(3, 3, ctx_r0.caseField)));
|
|
18188
18201
|
}
|
|
18189
18202
|
}
|
|
18190
18203
|
function WriteMoneyGbpFieldComponent_span_3_Template(rf, ctx) {
|
|
@@ -18223,7 +18236,7 @@ WriteMoneyGbpFieldComponent.ɵfac = /*@__PURE__*/ function () { let ɵWriteMoney
|
|
|
18223
18236
|
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) {
|
|
18224
18237
|
if (rf & 1) {
|
|
18225
18238
|
i0.ɵɵelementStart(0, "div", 0)(1, "label", 1);
|
|
18226
|
-
i0.ɵɵtemplate(2, WriteMoneyGbpFieldComponent_span_2_Template,
|
|
18239
|
+
i0.ɵɵtemplate(2, WriteMoneyGbpFieldComponent_span_2_Template, 4, 5, "span", 2);
|
|
18227
18240
|
i0.ɵɵelementEnd();
|
|
18228
18241
|
i0.ɵɵtemplate(3, WriteMoneyGbpFieldComponent_span_3_Template, 3, 3, "span", 3);
|
|
18229
18242
|
i0.ɵɵtemplate(4, WriteMoneyGbpFieldComponent_span_4_Template, 3, 4, "span", 4);
|
|
@@ -18251,7 +18264,7 @@ WriteMoneyGbpFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
18251
18264
|
(function () {
|
|
18252
18265
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteMoneyGbpFieldComponent, [{
|
|
18253
18266
|
type: Component,
|
|
18254
|
-
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" }]
|
|
18267
|
+
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 | rpxTranslate}}</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" }]
|
|
18255
18268
|
}], null, null);
|
|
18256
18269
|
})();
|
|
18257
18270
|
|
|
@@ -18309,13 +18322,14 @@ function WriteMultiSelectListFieldComponent_span_3_Template(rf, ctx) {
|
|
|
18309
18322
|
if (rf & 1) {
|
|
18310
18323
|
i0.ɵɵelementStart(0, "span", 5);
|
|
18311
18324
|
i0.ɵɵtext(1);
|
|
18312
|
-
i0.ɵɵpipe(2, "
|
|
18325
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
18326
|
+
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
18313
18327
|
i0.ɵɵelementEnd();
|
|
18314
18328
|
}
|
|
18315
18329
|
if (rf & 2) {
|
|
18316
18330
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
18317
18331
|
i0.ɵɵadvance(1);
|
|
18318
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
18332
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind1(3, 3, ctx_r0.caseField)));
|
|
18319
18333
|
}
|
|
18320
18334
|
}
|
|
18321
18335
|
function WriteMultiSelectListFieldComponent_span_4_Template(rf, ctx) {
|
|
@@ -18414,7 +18428,7 @@ WriteMultiSelectListFieldComponent.ɵfac = /*@__PURE__*/ function () { let ɵWri
|
|
|
18414
18428
|
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) {
|
|
18415
18429
|
if (rf & 1) {
|
|
18416
18430
|
i0.ɵɵelementStart(0, "div", 0)(1, "fieldset")(2, "legend");
|
|
18417
|
-
i0.ɵɵtemplate(3, WriteMultiSelectListFieldComponent_span_3_Template,
|
|
18431
|
+
i0.ɵɵtemplate(3, WriteMultiSelectListFieldComponent_span_3_Template, 4, 5, "span", 1);
|
|
18418
18432
|
i0.ɵɵelementEnd();
|
|
18419
18433
|
i0.ɵɵtemplate(4, WriteMultiSelectListFieldComponent_span_4_Template, 3, 3, "span", 2);
|
|
18420
18434
|
i0.ɵɵtemplate(5, WriteMultiSelectListFieldComponent_span_5_Template, 3, 4, "span", 3);
|
|
@@ -18436,7 +18450,7 @@ WriteMultiSelectListFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent(
|
|
|
18436
18450
|
(function () {
|
|
18437
18451
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteMultiSelectListFieldComponent, [{
|
|
18438
18452
|
type: Component,
|
|
18439
|
-
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" }]
|
|
18453
|
+
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 | rpxTranslate}}</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" }]
|
|
18440
18454
|
}], null, null);
|
|
18441
18455
|
})();
|
|
18442
18456
|
|
|
@@ -18469,13 +18483,14 @@ function WriteNumberFieldComponent_span_2_Template(rf, ctx) {
|
|
|
18469
18483
|
if (rf & 1) {
|
|
18470
18484
|
i0.ɵɵelementStart(0, "span", 6);
|
|
18471
18485
|
i0.ɵɵtext(1);
|
|
18472
|
-
i0.ɵɵpipe(2, "
|
|
18486
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
18487
|
+
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
18473
18488
|
i0.ɵɵelementEnd();
|
|
18474
18489
|
}
|
|
18475
18490
|
if (rf & 2) {
|
|
18476
18491
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
18477
18492
|
i0.ɵɵadvance(1);
|
|
18478
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
18493
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind1(3, 3, ctx_r0.caseField)));
|
|
18479
18494
|
}
|
|
18480
18495
|
}
|
|
18481
18496
|
function WriteNumberFieldComponent_span_3_Template(rf, ctx) {
|
|
@@ -18515,7 +18530,7 @@ WriteNumberFieldComponent.ɵfac = /*@__PURE__*/ function () { let ɵWriteNumberF
|
|
|
18515
18530
|
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) {
|
|
18516
18531
|
if (rf & 1) {
|
|
18517
18532
|
i0.ɵɵelementStart(0, "div", 0)(1, "label", 1);
|
|
18518
|
-
i0.ɵɵtemplate(2, WriteNumberFieldComponent_span_2_Template,
|
|
18533
|
+
i0.ɵɵtemplate(2, WriteNumberFieldComponent_span_2_Template, 4, 5, "span", 2);
|
|
18519
18534
|
i0.ɵɵelementEnd();
|
|
18520
18535
|
i0.ɵɵtemplate(3, WriteNumberFieldComponent_span_3_Template, 3, 3, "span", 3);
|
|
18521
18536
|
i0.ɵɵtemplate(4, WriteNumberFieldComponent_span_4_Template, 3, 4, "span", 4);
|
|
@@ -18539,7 +18554,7 @@ WriteNumberFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: W
|
|
|
18539
18554
|
(function () {
|
|
18540
18555
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteNumberFieldComponent, [{
|
|
18541
18556
|
type: Component,
|
|
18542
|
-
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" }]
|
|
18557
|
+
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 | rpxTranslate}}</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" }]
|
|
18543
18558
|
}], null, null);
|
|
18544
18559
|
})();
|
|
18545
18560
|
|
|
@@ -19213,13 +19228,14 @@ function WritePhoneUKFieldComponent_span_2_Template(rf, ctx) {
|
|
|
19213
19228
|
if (rf & 1) {
|
|
19214
19229
|
i0.ɵɵelementStart(0, "span", 6);
|
|
19215
19230
|
i0.ɵɵtext(1);
|
|
19216
|
-
i0.ɵɵpipe(2, "
|
|
19231
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
19232
|
+
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
19217
19233
|
i0.ɵɵelementEnd();
|
|
19218
19234
|
}
|
|
19219
19235
|
if (rf & 2) {
|
|
19220
19236
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
19221
19237
|
i0.ɵɵadvance(1);
|
|
19222
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
19238
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind1(3, 3, ctx_r0.caseField)));
|
|
19223
19239
|
}
|
|
19224
19240
|
}
|
|
19225
19241
|
function WritePhoneUKFieldComponent_span_3_Template(rf, ctx) {
|
|
@@ -19259,7 +19275,7 @@ WritePhoneUKFieldComponent.ɵfac = /*@__PURE__*/ function () { let ɵWritePhoneU
|
|
|
19259
19275
|
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) {
|
|
19260
19276
|
if (rf & 1) {
|
|
19261
19277
|
i0.ɵɵelementStart(0, "div", 0)(1, "label", 1);
|
|
19262
|
-
i0.ɵɵtemplate(2, WritePhoneUKFieldComponent_span_2_Template,
|
|
19278
|
+
i0.ɵɵtemplate(2, WritePhoneUKFieldComponent_span_2_Template, 4, 5, "span", 2);
|
|
19263
19279
|
i0.ɵɵelementEnd();
|
|
19264
19280
|
i0.ɵɵtemplate(3, WritePhoneUKFieldComponent_span_3_Template, 3, 3, "span", 3);
|
|
19265
19281
|
i0.ɵɵtemplate(4, WritePhoneUKFieldComponent_span_4_Template, 3, 4, "span", 4);
|
|
@@ -19283,7 +19299,7 @@ WritePhoneUKFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
19283
19299
|
(function () {
|
|
19284
19300
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WritePhoneUKFieldComponent, [{
|
|
19285
19301
|
type: Component,
|
|
19286
|
-
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" }]
|
|
19302
|
+
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 | rpxTranslate}}</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" }]
|
|
19287
19303
|
}], null, null);
|
|
19288
19304
|
})();
|
|
19289
19305
|
|
|
@@ -21483,13 +21499,14 @@ function WriteTextAreaFieldComponent_span_2_Template(rf, ctx) {
|
|
|
21483
21499
|
if (rf & 1) {
|
|
21484
21500
|
i0.ɵɵelementStart(0, "span", 6);
|
|
21485
21501
|
i0.ɵɵtext(1);
|
|
21486
|
-
i0.ɵɵpipe(2, "
|
|
21502
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
21503
|
+
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
21487
21504
|
i0.ɵɵelementEnd();
|
|
21488
21505
|
}
|
|
21489
21506
|
if (rf & 2) {
|
|
21490
21507
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
21491
21508
|
i0.ɵɵadvance(1);
|
|
21492
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
21509
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind1(3, 3, ctx_r0.caseField)));
|
|
21493
21510
|
}
|
|
21494
21511
|
}
|
|
21495
21512
|
function WriteTextAreaFieldComponent_span_3_Template(rf, ctx) {
|
|
@@ -21540,7 +21557,7 @@ WriteTextAreaFieldComponent.ɵfac = function WriteTextAreaFieldComponent_Factory
|
|
|
21540
21557
|
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) {
|
|
21541
21558
|
if (rf & 1) {
|
|
21542
21559
|
i0.ɵɵelementStart(0, "div", 0)(1, "label", 1);
|
|
21543
|
-
i0.ɵɵtemplate(2, WriteTextAreaFieldComponent_span_2_Template,
|
|
21560
|
+
i0.ɵɵtemplate(2, WriteTextAreaFieldComponent_span_2_Template, 4, 5, "span", 2);
|
|
21544
21561
|
i0.ɵɵelementEnd();
|
|
21545
21562
|
i0.ɵɵtemplate(3, WriteTextAreaFieldComponent_span_3_Template, 3, 3, "span", 3);
|
|
21546
21563
|
i0.ɵɵtemplate(4, WriteTextAreaFieldComponent_span_4_Template, 3, 4, "span", 4);
|
|
@@ -21565,7 +21582,7 @@ WriteTextAreaFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type:
|
|
|
21565
21582
|
(function () {
|
|
21566
21583
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteTextAreaFieldComponent, [{
|
|
21567
21584
|
type: Component,
|
|
21568
|
-
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" }]
|
|
21585
|
+
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 | rpxTranslate}}</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" }]
|
|
21569
21586
|
}], function () { return [{ type: BrowserService }]; }, null);
|
|
21570
21587
|
})();
|
|
21571
21588
|
|
|
@@ -21598,13 +21615,14 @@ function WriteTextFieldComponent_span_2_Template(rf, ctx) {
|
|
|
21598
21615
|
if (rf & 1) {
|
|
21599
21616
|
i0.ɵɵelementStart(0, "span", 6);
|
|
21600
21617
|
i0.ɵɵtext(1);
|
|
21601
|
-
i0.ɵɵpipe(2, "
|
|
21618
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
21619
|
+
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
21602
21620
|
i0.ɵɵelementEnd();
|
|
21603
21621
|
}
|
|
21604
21622
|
if (rf & 2) {
|
|
21605
21623
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
21606
21624
|
i0.ɵɵadvance(1);
|
|
21607
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
21625
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind1(3, 3, ctx_r0.caseField)));
|
|
21608
21626
|
}
|
|
21609
21627
|
}
|
|
21610
21628
|
function WriteTextFieldComponent_span_3_Template(rf, ctx) {
|
|
@@ -21647,7 +21665,7 @@ WriteTextFieldComponent.ɵfac = /*@__PURE__*/ function () { let ɵWriteTextField
|
|
|
21647
21665
|
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) {
|
|
21648
21666
|
if (rf & 1) {
|
|
21649
21667
|
i0.ɵɵelementStart(0, "div", 0)(1, "label", 1);
|
|
21650
|
-
i0.ɵɵtemplate(2, WriteTextFieldComponent_span_2_Template,
|
|
21668
|
+
i0.ɵɵtemplate(2, WriteTextFieldComponent_span_2_Template, 4, 5, "span", 2);
|
|
21651
21669
|
i0.ɵɵelementEnd();
|
|
21652
21670
|
i0.ɵɵtemplate(3, WriteTextFieldComponent_span_3_Template, 3, 3, "span", 3);
|
|
21653
21671
|
i0.ɵɵtemplate(4, WriteTextFieldComponent_span_4_Template, 3, 4, "span", 4);
|
|
@@ -21672,7 +21690,7 @@ WriteTextFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Wri
|
|
|
21672
21690
|
(function () {
|
|
21673
21691
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteTextFieldComponent, [{
|
|
21674
21692
|
type: Component,
|
|
21675
|
-
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" }]
|
|
21693
|
+
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 | rpxTranslate}}</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" }]
|
|
21676
21694
|
}], null, null);
|
|
21677
21695
|
})();
|
|
21678
21696
|
|
|
@@ -21818,13 +21836,14 @@ function WriteYesNoFieldComponent_span_3_Template(rf, ctx) {
|
|
|
21818
21836
|
if (rf & 1) {
|
|
21819
21837
|
i0.ɵɵelementStart(0, "span", 7);
|
|
21820
21838
|
i0.ɵɵtext(1);
|
|
21821
|
-
i0.ɵɵpipe(2, "
|
|
21839
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
21840
|
+
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
21822
21841
|
i0.ɵɵelementEnd();
|
|
21823
21842
|
}
|
|
21824
21843
|
if (rf & 2) {
|
|
21825
21844
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
21826
21845
|
i0.ɵɵadvance(1);
|
|
21827
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
21846
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind1(3, 3, ctx_r0.caseField)));
|
|
21828
21847
|
}
|
|
21829
21848
|
}
|
|
21830
21849
|
function WriteYesNoFieldComponent_span_4_Template(rf, ctx) {
|
|
@@ -21891,7 +21910,7 @@ WriteYesNoFieldComponent.ɵfac = function WriteYesNoFieldComponent_Factory(t) {
|
|
|
21891
21910
|
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) {
|
|
21892
21911
|
if (rf & 1) {
|
|
21893
21912
|
i0.ɵɵelementStart(0, "div", 0)(1, "fieldset", 1)(2, "legend");
|
|
21894
|
-
i0.ɵɵtemplate(3, WriteYesNoFieldComponent_span_3_Template,
|
|
21913
|
+
i0.ɵɵtemplate(3, WriteYesNoFieldComponent_span_3_Template, 4, 5, "span", 2);
|
|
21895
21914
|
i0.ɵɵelementEnd();
|
|
21896
21915
|
i0.ɵɵtemplate(4, WriteYesNoFieldComponent_span_4_Template, 3, 3, "span", 3);
|
|
21897
21916
|
i0.ɵɵtemplate(5, WriteYesNoFieldComponent_span_5_Template, 3, 4, "span", 4);
|
|
@@ -21916,7 +21935,7 @@ WriteYesNoFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Wr
|
|
|
21916
21935
|
(function () {
|
|
21917
21936
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteYesNoFieldComponent, [{
|
|
21918
21937
|
type: Component,
|
|
21919
|
-
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" }]
|
|
21938
|
+
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 | rpxTranslate}}</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" }]
|
|
21920
21939
|
}], function () { return [{ type: YesNoService }]; }, null);
|
|
21921
21940
|
})();
|
|
21922
21941
|
|
|
@@ -26889,13 +26908,14 @@ function WriteDateFieldComponent_span_3_Template(rf, ctx) {
|
|
|
26889
26908
|
if (rf & 1) {
|
|
26890
26909
|
i0.ɵɵelementStart(0, "span", 5);
|
|
26891
26910
|
i0.ɵɵtext(1);
|
|
26892
|
-
i0.ɵɵpipe(2, "
|
|
26911
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
26912
|
+
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
26893
26913
|
i0.ɵɵelementEnd();
|
|
26894
26914
|
}
|
|
26895
26915
|
if (rf & 2) {
|
|
26896
26916
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
26897
26917
|
i0.ɵɵadvance(1);
|
|
26898
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
26918
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind1(3, 3, ctx_r0.caseField)));
|
|
26899
26919
|
}
|
|
26900
26920
|
}
|
|
26901
26921
|
function WriteDateFieldComponent_span_4_Template(rf, ctx) {
|
|
@@ -26937,7 +26957,7 @@ WriteDateFieldComponent.ɵfac = /*@__PURE__*/ function () { let ɵWriteDateField
|
|
|
26937
26957
|
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) {
|
|
26938
26958
|
if (rf & 1) {
|
|
26939
26959
|
i0.ɵɵelementStart(0, "div", 0)(1, "fieldset")(2, "legend");
|
|
26940
|
-
i0.ɵɵtemplate(3, WriteDateFieldComponent_span_3_Template,
|
|
26960
|
+
i0.ɵɵtemplate(3, WriteDateFieldComponent_span_3_Template, 4, 5, "span", 1);
|
|
26941
26961
|
i0.ɵɵelementEnd();
|
|
26942
26962
|
i0.ɵɵtemplate(4, WriteDateFieldComponent_span_4_Template, 3, 3, "span", 2);
|
|
26943
26963
|
i0.ɵɵtemplate(5, WriteDateFieldComponent_span_5_Template, 3, 4, "span", 3);
|
|
@@ -26960,7 +26980,7 @@ WriteDateFieldComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Wri
|
|
|
26960
26980
|
(function () {
|
|
26961
26981
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteDateFieldComponent, [{
|
|
26962
26982
|
type: Component,
|
|
26963
|
-
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" }]
|
|
26983
|
+
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) | rpxTranslate }}</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" }]
|
|
26964
26984
|
}], null, null);
|
|
26965
26985
|
})();
|
|
26966
26986
|
|
|
@@ -26982,13 +27002,14 @@ function DatetimePickerComponent_span_3_Template(rf, ctx) {
|
|
|
26982
27002
|
if (rf & 1) {
|
|
26983
27003
|
i0.ɵɵelementStart(0, "span", 11);
|
|
26984
27004
|
i0.ɵɵtext(1);
|
|
26985
|
-
i0.ɵɵpipe(2, "
|
|
27005
|
+
i0.ɵɵpipe(2, "rpxTranslate");
|
|
27006
|
+
i0.ɵɵpipe(3, "ccdFieldLabel");
|
|
26986
27007
|
i0.ɵɵelementEnd();
|
|
26987
27008
|
}
|
|
26988
27009
|
if (rf & 2) {
|
|
26989
27010
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
26990
27011
|
i0.ɵɵadvance(1);
|
|
26991
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r0.caseField));
|
|
27012
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, i0.ɵɵpipeBind1(3, 3, ctx_r0.caseField)));
|
|
26992
27013
|
}
|
|
26993
27014
|
}
|
|
26994
27015
|
function DatetimePickerComponent_span_4_Template(rf, ctx) {
|
|
@@ -27225,7 +27246,7 @@ DatetimePickerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Dat
|
|
|
27225
27246
|
]), 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) {
|
|
27226
27247
|
if (rf & 1) {
|
|
27227
27248
|
i0.ɵɵelementStart(0, "div", 0)(1, "fieldset")(2, "legend");
|
|
27228
|
-
i0.ɵɵtemplate(3, DatetimePickerComponent_span_3_Template,
|
|
27249
|
+
i0.ɵɵtemplate(3, DatetimePickerComponent_span_3_Template, 4, 5, "span", 1);
|
|
27229
27250
|
i0.ɵɵtemplate(4, DatetimePickerComponent_span_4_Template, 3, 3, "span", 2);
|
|
27230
27251
|
i0.ɵɵtemplate(5, DatetimePickerComponent_span_5_Template, 3, 4, "span", 3);
|
|
27231
27252
|
i0.ɵɵtemplate(6, DatetimePickerComponent_span_6_Template, 3, 3, "span", 3);
|
|
@@ -27274,7 +27295,7 @@ DatetimePickerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Dat
|
|
|
27274
27295
|
deps: [MAT_LEGACY_DATE_LOCALE, NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS]
|
|
27275
27296
|
},
|
|
27276
27297
|
{ provide: NGX_MAT_MOMENT_DATE_ADAPTER_OPTIONS, useValue: { useUtc: true } }
|
|
27277
|
-
], 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"] }]
|
|
27298
|
+
], 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"] }]
|
|
27278
27299
|
}], function () {
|
|
27279
27300
|
return [{ type: FormatTranslatorService }, { type: undefined, decorators: [{
|
|
27280
27301
|
type: Inject,
|
|
@@ -27414,7 +27435,6 @@ function EventLogTableComponent_tr_20_div_3_a_1_Template(rf, ctx) {
|
|
|
27414
27435
|
i0.ɵɵelementStart(0, "a", 16);
|
|
27415
27436
|
i0.ɵɵlistener("click", function EventLogTableComponent_tr_20_div_3_a_1_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r9); const event_r1 = i0.ɵɵnextContext(2).$implicit; const ctx_r7 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r7.caseHistoryClicked(event_r1.id)); });
|
|
27416
27437
|
i0.ɵɵtext(1);
|
|
27417
|
-
i0.ɵɵpipe(2, "rpxTranslate");
|
|
27418
27438
|
i0.ɵɵelementEnd();
|
|
27419
27439
|
}
|
|
27420
27440
|
if (rf & 2) {
|
|
@@ -27422,13 +27442,13 @@ function EventLogTableComponent_tr_20_div_3_a_1_Template(rf, ctx) {
|
|
|
27422
27442
|
const ctx_r6 = i0.ɵɵnextContext();
|
|
27423
27443
|
i0.ɵɵattribute("aria-label", ctx_r6.getAriaLabelforLink(event_r1));
|
|
27424
27444
|
i0.ɵɵadvance(1);
|
|
27425
|
-
i0.ɵɵtextInterpolate(
|
|
27445
|
+
i0.ɵɵtextInterpolate(event_r1.event_name);
|
|
27426
27446
|
}
|
|
27427
27447
|
}
|
|
27428
27448
|
function EventLogTableComponent_tr_20_div_3_Template(rf, ctx) {
|
|
27429
27449
|
if (rf & 1) {
|
|
27430
27450
|
i0.ɵɵelementStart(0, "div", 14);
|
|
27431
|
-
i0.ɵɵtemplate(1, EventLogTableComponent_tr_20_div_3_a_1_Template,
|
|
27451
|
+
i0.ɵɵtemplate(1, EventLogTableComponent_tr_20_div_3_a_1_Template, 2, 2, "a", 15);
|
|
27432
27452
|
i0.ɵɵelementEnd();
|
|
27433
27453
|
}
|
|
27434
27454
|
if (rf & 2) {
|
|
@@ -27442,22 +27462,21 @@ function EventLogTableComponent_tr_20_div_4_a_1_Template(rf, ctx) {
|
|
|
27442
27462
|
if (rf & 1) {
|
|
27443
27463
|
i0.ɵɵelementStart(0, "a", 18);
|
|
27444
27464
|
i0.ɵɵtext(1);
|
|
27445
|
-
i0.ɵɵpipe(2, "rpxTranslate");
|
|
27446
27465
|
i0.ɵɵelementEnd();
|
|
27447
27466
|
}
|
|
27448
27467
|
if (rf & 2) {
|
|
27449
27468
|
const event_r1 = i0.ɵɵnextContext(2).$implicit;
|
|
27450
27469
|
const ctx_r12 = i0.ɵɵnextContext();
|
|
27451
|
-
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction1(
|
|
27470
|
+
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction1(4, _c0$f, event_r1.id))("target", "_blank");
|
|
27452
27471
|
i0.ɵɵattribute("aria-label", ctx_r12.getAriaLabelforLink(event_r1));
|
|
27453
27472
|
i0.ɵɵadvance(1);
|
|
27454
|
-
i0.ɵɵtextInterpolate(
|
|
27473
|
+
i0.ɵɵtextInterpolate(event_r1.event_name);
|
|
27455
27474
|
}
|
|
27456
27475
|
}
|
|
27457
27476
|
function EventLogTableComponent_tr_20_div_4_Template(rf, ctx) {
|
|
27458
27477
|
if (rf & 1) {
|
|
27459
27478
|
i0.ɵɵelementStart(0, "div");
|
|
27460
|
-
i0.ɵɵtemplate(1, EventLogTableComponent_tr_20_div_4_a_1_Template,
|
|
27479
|
+
i0.ɵɵtemplate(1, EventLogTableComponent_tr_20_div_4_a_1_Template, 2, 6, "a", 17);
|
|
27461
27480
|
i0.ɵɵelementEnd();
|
|
27462
27481
|
}
|
|
27463
27482
|
if (rf & 2) {
|
|
@@ -27639,7 +27658,7 @@ EventLogTableComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Even
|
|
|
27639
27658
|
(function () {
|
|
27640
27659
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EventLogTableComponent, [{
|
|
27641
27660
|
type: Component,
|
|
27642
|
-
args: [{ selector: 'ccd-event-log-table', template: "<table class=\"EventLogTable\">\n <caption><h2 class=\"heading-h2\">{{'History' | rpxTranslate}}</h2></caption>\n <thead>\n <tr>\n <th><span class=\"text-16\">{{'Event' | rpxTranslate}}</span></th>\n <th><span class=\"text-16\">{{'Date' | rpxTranslate}}</span></th>\n <th><span class=\"text-16\">{{'Author' | rpxTranslate}}</span></th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let event of events\" (click)=\"select(event)\" [ngClass]=\"{'EventLogTable-Selected': selected === event}\" tabindex=\"0\" attr.aria-label=\"{{getAriaLabelforRow(event)}}\">\n <td>\n <ng-container [ngSwitch]=\"isPartOfCaseTimeline\">\n <div id=\"case-timeline\" *ngSwitchCase=\"true\">\n <a (click)=\"caseHistoryClicked(event.id)\"\n *ngIf=\"event.state_id !== 'Draft'\" class=\"text-16 event-link\" attr.aria-label=\"{{getAriaLabelforLink(event)}}\">{{event.event_name
|
|
27661
|
+
args: [{ selector: 'ccd-event-log-table', template: "<table class=\"EventLogTable\">\n <caption><h2 class=\"heading-h2\">{{'History' | rpxTranslate}}</h2></caption>\n <thead>\n <tr>\n <th><span class=\"text-16\">{{'Event' | rpxTranslate}}</span></th>\n <th><span class=\"text-16\">{{'Date' | rpxTranslate}}</span></th>\n <th><span class=\"text-16\">{{'Author' | rpxTranslate}}</span></th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let event of events\" (click)=\"select(event)\" [ngClass]=\"{'EventLogTable-Selected': selected === event}\" tabindex=\"0\" attr.aria-label=\"{{getAriaLabelforRow(event)}}\">\n <td>\n <ng-container [ngSwitch]=\"isPartOfCaseTimeline\">\n <div id=\"case-timeline\" *ngSwitchCase=\"true\">\n <a (click)=\"caseHistoryClicked(event.id)\"\n *ngIf=\"event.state_id !== 'Draft'\" class=\"text-16 event-link\" attr.aria-label=\"{{getAriaLabelforLink(event)}}\">{{event.event_name}}</a>\n </div>\n <div *ngSwitchCase=\"false\">\n <a [routerLink]=\"['./', 'event', event.id, 'history']\"\n [target]=\"'_blank'\"\n *ngIf=\"event.state_id !== 'Draft'\" class=\"text-16 event-link\" attr.aria-label=\"{{getAriaLabelforLink(event)}}\">{{event.event_name}}</a>\n </div>\n </ng-container>\n <span *ngIf=\"event.state_id === 'Draft'\">{{event.event_name}}</span>\n <div class=\"tooltip\" *ngIf=\"significantItemExist(event)\">\n <a href=\"{{getSignificantItemUrl(event)}}\" target=\"_blank\" rel=\"noopener\" attr.aria-label=\"{{getAriaLabelforLink(event)}}\">\n <img class=\"doc-img\" alt=\"document image\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABoCAYAAABmOHdtAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwwAADsMBx2+oZAAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4yMfEgaZUAAAkoSURBVHhe7d33c5RFHAZw/wCKiF0s2LAwiigq9l5G/UV/UUeFkEAoQqiWoKKI1Dg6YxQQbGmkXQoJIQQiaSShhiQMkgIphCSXkN4buPtcnnDG9fXCa+FN9mY+M5Lce7f3ZPb2u/vu+3rRsKn+Z4ey4e7BIB4XnQ8doA7QHB2gSTpAk3SAJlk+wOG9VL/7L+gATbrgAxzlHgAM6skVcTDhw2i4daENXvbZCXd9EAU8fqRbADi/5j9JB2jSBRvg2Hmh8MAnMbAl/Ths+jUPqhvboLapHXJKTkPU/mKI2FcEdyyJhOvmhoLqvczQAZp0wQU4YVEAuPnGw5GTtdDd0wOdXd3Q1uGQXVID/HlXdw+0tHVCWU0zvLMhFSZ5R4Dqvc+HDtCkCybAW8RAIHn6xkJpuR3aOrqgqqEVPDanwZu+u8HLLwPY1aduTAF7fSvwuLqmNliweRfc6x0JqrYMxN8FONwj9Cz0Pq8/HWBvEP2Do389wFHugTDROxqOldcDu2hmfiXcucQGN8wLgxHiWOnc6zjKncs9t8DVs4Ih+kAxFFY2QK0IUXr1q11wvRhYJOc2DQSD6B8cDXMLPAuKYyUd4P8d4Eg3B7+UfOgRA4V0XHxYafx7kcCCePT0IHhudTyEZZ6Al9YlAAO+bEbQH8RlnYT6lg4oqW6CG+eHw7Apfg6KNhrRAVo9wAeXxcKu3DJgOTLn53S4cmYwMLiA1AI4VdsCja0dwC5feroZOKXjcWO9woDHtbSLMkfYmHgMVG1zhQ7Q6gHyg/IDnbA3AssRLiLM/SUDyutagc8vrmoEDj4suAsqGuCa2SFwuWcQLAzIhJ6eMxCYVgi3LY4AVRuN6ACtHuALaxKgobUT8kUI0uRlMcAy5+fkfOjsktO5nr4pHrvmG75JUFzdDE1iGie9/s1uuHiaP7y4NgH4B8gtrYFJH8eAqo1GdIBWD5BTs6KqJmCZMW5RBLAgfmd9MvDxeeRhYNe7QhTPUqWYvkFdC2xK/A34fl9EHYZ80b2lmqZ2GPNuKDi3zRU6QKsHyC7F4PjB7vsoBi6eFgCBaQXQ0dkN2cWn4VJRJEvsgtuzSqFdPEd6ZlU8cKr31BfxwN/zDzdZlFKSqo1GdIBWD3D8+1HAQvhQUTWc+/J3BLj1QDHwyz+zwA4MhoH/euQUsJzhFO8SjwC4X4QscZks6Wg5vOKzE1RtNKIDtHqAb36bBOVieiXVN7cDB4crZ24Bt+9TgQXwmpgc4GDDQrm6oRUqxAAi+cTmwAg3f+Agwikfnz9mdjCo2mhEB2j1AN/6Lgn4gVhWjFtkg9EegbA8MgvYNW37ioFTNRbUHIRYmE8XJZLE5TD+u0EMWNLpxjbg8ao2GtEBWj3AmxeEAx9ZYgCR5vllAAeR2EMl0NDSDnweBxGWKzyxztObj6/YDix3uHzGQcS2twg42KjaaEQHaPUAH/9cfEChTgwcUm1zBzz82TZgF14hvvglLiYE7SkEdmEuzXM5jIW55w9pwFMHM8R/S/0Ld8t2YR2g4ocD4bYxBfYXVgG/3Lm5iEv67ptSgY8vt+UCt7dd+24osBzilo5l4QeBC7OrtmYDyxwue42ZEwKqNhrRAVo9QBbMreILXWIXfHtDCnAQCU4/DpzK7cmrgNHTRRcXuBiwJ68S+HrPrNoBl4ivAenplduBiwmJuWXAKZ6qjUZ0gIMlwOa2DiiqaoS31ydDX4BiwJAYYNqxCmB5wkEnI98OXJx4emU8jHKX2z/8UepIDHBXThnoAIdqgAyKm4h4ovxGr1DoG0S+TwE+1okBRLpFFOHSdXPDgEv6nBouDT0AfL/V0Yfhz4NIKDi3zRU6QKsH+NCnscBFBBbULLA5SKyMzgYu6funFsBVs4Lh5gU2KBGhSXy9KRuSgYsJM3/cAyyX8srrYaxXOKjaaEQHaPUAOYXqFhN/iSfMFwdmAhcLth8uBXbxgyeqgL/nhTbx4jkSNylxcOAmo4dEqSNxEAkRpZH0wtoEULXRiA7Q6gG+9nUiFFY2Aif549+LAJYpq7bmABdUt4iSRrp6dghwaZ8bJ9mFueWDS/qzf0qHxtZOsNe3ADdmqtpoRAdo9QB5OrFYfGiJZcWED6OAWzs8f0wHnlRaHpEFXJBlucM/AKeEH4UdAC4mrI3NBS46cAsIl8VUbTSiA7R6gFyOYnBHy+pgmiiaJW5L25F9ErhIkHy0HPj7J1bEAZfFuPD66PI44GDz8Kdiyie0d3ZBgpjGSc+K6Z2kaqMRHaDVA3xMfDiJW3W5NfeRz7YBP3h45nHoEKWJtK/QDiy0n1udAPx5S3sX3Lt0KzDo59fsAAbIQnri0mhQtdGIDtDqAbJ8mLIhBbi5nFs6eKE0p2B8LAnaCzfNDwdukOQF2OzK3MrB91sXmwMn7A3ARQXLDiI6QMUPzwfLDE76+XMW0ryEn4PDT0l5wNOeDJqDREh6IfAPwdOaz68WXVjglJCD1kTRzSXnNrlCBzhYAvwrnIIliBJG4pI+bzLBJX8+n4MO/yA8ngFy0OKUMPVYBXDp3/m9XaEDHOwBcirHDZWcyn0spmcSp3CqY50xUF4yxsHjVE0z8JYDqmON6AAHe4C8gIYX1jBAn225wPJFdawzBsibVHARgUFyEFIda0QHONgDpK/jcoHlB28e4WoBfKmY7kncUtzVLW/S091XHvHiRtWxRnSAgz7A3ptBcNmLS/a8+VjU/iLg7U5YtvB4bioatzAceHkrb27Bk0osf/7w3i7QAQ76AHtxAyVPlPNWTly6z8ivhDd8d8NLPjvBY1Mq8CZlvClZQXkd8OJDHaAO0DWTvG3gtTkRePqSgwJPmPMSLm5zO3PmDBRW1IPHehGucNuicFC9lyt0gEMtQLr7gyjg1g0uCrCrcoq2t8AOyb9VABcTbl9sA9VrD4QOUPHaA2HZAIk3Fxsx1Q/u8Y4GBsugeVKJ2+FUr3U+dIAmWT7A/5sO0CQdoEk6QJN0gCbpAE0yHSBfYKgaMcMG/YMjHeDfMB2g6iDtHB2gSTpAk3SAJukATdIBmvSvBcj/UUnfGwxWitCcKcNxhQ7QQRmOK1iIql50KFGG4wodoIMyHFfoAB2U4bhCB+igDMcVOkAHZTiu0AFK/md/Bw8XevIIyEqZAAAAAElFTkSuQmCC\"/>\n </a>\n <span class=\"tooltiptext doc-tooltip\">{{getSignificantItemDesc(event)}}</span>\n </div>\n </td>\n <td tabindex=\"0\" attr.aria-label=\"{{getAriaLabelforColumn(event)}}\" (keydown.enter)=\"select(event)\"><div class=\"tooltip text-16\">{{event.timestamp | ccdDate : 'local'}}\n <span class=\"tooltiptext\">{{'Local:' | rpxTranslate}} {{event.timestamp | ccdDate : 'local'}}</span>\n </div></td>\n <td tabindex=\"0\"><span class=\"text-16\">{{event.user_first_name | titlecase}} {{event.user_last_name | uppercase}}</span></td>\n </tr>\n </tbody>\n</table>\n", styles: ["#case-timeline a{cursor:pointer;text-decoration:underline;color:#005ea5}#case-timeline a:hover{color:#2b8cc4}#case-timeline a:visited{color:#4c2c92}.EventLogTable tbody>tr td:first-child{padding-left:10px}.EventLogTable tbody>tr.EventLogTable-Selected{border-left:8px solid #005ea5;background-color:#f8f8f8}.EventLogTable tbody>tr.EventLogTable-Selected td:first-child{padding-left:6px}.EventLogTable tbody>tr:not(.EventLogTable-Selected):hover{border-left:8px solid #2b8cc4;background-color:#f8f8f8;cursor:pointer;cursor:hand}.EventLogTable tbody>tr:not(.EventLogTable-Selected):hover td:first-child{padding-left:6px}.EventLogTable tbody>tr .event-link{float:left;padding-right:8px}.EventLogTable tbody>tr .doc-img{width:16px;float:left}.EventLogTable tbody>tr .doc-tooltip{left:35%;bottom:7px}.EventLogTable tbody>tr .doc-tooltip:after{border-color:transparent}\n"] }]
|
|
27643
27662
|
}], null, { events: [{
|
|
27644
27663
|
type: Input
|
|
27645
27664
|
}], selected: [{
|
|
@@ -27950,7 +27969,9 @@ class ReadFieldsFilterPipe {
|
|
|
27950
27969
|
})
|
|
27951
27970
|
.map(f => {
|
|
27952
27971
|
if (!f.display_context) {
|
|
27953
|
-
|
|
27972
|
+
if (FieldsUtils.isValidDisplayContext(complexField.display_context)) {
|
|
27973
|
+
f.display_context = complexField.display_context;
|
|
27974
|
+
}
|
|
27954
27975
|
}
|
|
27955
27976
|
if (setupHidden) {
|
|
27956
27977
|
ReadFieldsFilterPipe.evaluateConditionalShow(f, checkConditionalShowAgainst, path, formGroupAvailable, complexField.id);
|
|
@@ -29255,7 +29276,7 @@ i0.ɵɵsetComponentScope(WriteAddressFieldComponent, function () { return [i4.Ng
|
|
|
29255
29276
|
i0.ɵɵsetComponentScope(WriteComplexFieldComponent, function () {
|
|
29256
29277
|
return [i4.NgForOf, i4.NgIf, i4.NgSwitch, i4.NgSwitchCase, i3.NgControlStatusGroup, i3.FormGroupDirective, LabelSubstitutorDirective, FieldReadComponent,
|
|
29257
29278
|
FieldWriteComponent];
|
|
29258
|
-
}, function () { return [FieldLabelPipe, IsReadOnlyPipe]; });
|
|
29279
|
+
}, function () { return [FieldLabelPipe, IsReadOnlyPipe, i1.RpxTranslatePipe]; });
|
|
29259
29280
|
i0.ɵɵsetComponentScope(WriteDocumentFieldComponent, function () { return [i4.NgClass, i4.NgIf, ReadDocumentFieldComponent]; }, function () { return [FieldLabelPipe, i1.RpxTranslatePipe]; });
|
|
29260
29281
|
i0.ɵɵsetComponentScope(WriteDateContainerFieldComponent, function () {
|
|
29261
29282
|
return [i4.NgIf, i3.NgControlStatusGroup, i3.FormGroupDirective, DatetimePickerComponent,
|
|
@@ -29393,13 +29414,12 @@ function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_7_ng_contain
|
|
|
29393
29414
|
if (rf & 1) {
|
|
29394
29415
|
i0.ɵɵelementStart(0, "th", 25)(1, "span", 20);
|
|
29395
29416
|
i0.ɵɵtext(2);
|
|
29396
|
-
i0.ɵɵpipe(3, "rpxTranslate");
|
|
29397
29417
|
i0.ɵɵelementEnd()();
|
|
29398
29418
|
}
|
|
29399
29419
|
if (rf & 2) {
|
|
29400
29420
|
const field_r17 = i0.ɵɵnextContext(2).$implicit;
|
|
29401
29421
|
i0.ɵɵadvance(2);
|
|
29402
|
-
i0.ɵɵtextInterpolate(
|
|
29422
|
+
i0.ɵɵtextInterpolate(field_r17.label);
|
|
29403
29423
|
}
|
|
29404
29424
|
}
|
|
29405
29425
|
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) {
|
|
@@ -29441,7 +29461,7 @@ function CaseEditSubmitComponent_div_0_ng_container_12_ng_container_7_ng_contain
|
|
|
29441
29461
|
if (rf & 1) {
|
|
29442
29462
|
i0.ɵɵelementContainerStart(0);
|
|
29443
29463
|
i0.ɵɵelementStart(1, "tr", 21);
|
|
29444
|
-
i0.ɵɵtemplate(2, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_7_ng_container_1_ng_container_1_ng_container_1_th_2_Template,
|
|
29464
|
+
i0.ɵɵtemplate(2, CaseEditSubmitComponent_div_0_ng_container_12_ng_container_7_ng_container_1_ng_container_1_ng_container_1_th_2_Template, 3, 1, "th", 22);
|
|
29445
29465
|
i0.ɵɵelementStart(3, "td", 23);
|
|
29446
29466
|
i0.ɵɵelement(4, "ccd-field-read", 24);
|
|
29447
29467
|
i0.ɵɵelementEnd();
|
|
@@ -29934,7 +29954,7 @@ CaseEditSubmitComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Cas
|
|
|
29934
29954
|
(function () {
|
|
29935
29955
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseEditSubmitComponent, [{
|
|
29936
29956
|
type: Component,
|
|
29937
|
-
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\"
|
|
29957
|
+
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\"><span class=\"text-16\">{{field.label}}</span></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"] }]
|
|
29938
29958
|
}], function () { return [{ type: CaseEditComponent }, { type: FieldsUtils }, { type: CaseFieldService }, { type: i1$1.ActivatedRoute }, { type: OrderService }, { type: ProfileNotifier }]; }, null);
|
|
29939
29959
|
})();
|
|
29940
29960
|
|