@hmcts/ccd-case-ui-toolkit 7.4.26-govuk6-v3 → 7.4.26-govuk6-v4
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.
|
@@ -16340,19 +16340,24 @@ function ReadCollectionFieldComponent_table_0_tbody_2_Template(rf, ctx) { if (rf
|
|
|
16340
16340
|
i0.ɵɵproperty("caseField", i0.ɵɵpureFunction7(4, _c0$X, ctx_r0.caseField.label, ctx_r0.caseField.label, ctx_r0.caseField.field_type.collection_field_type, ctx_r0.caseField.display_context_parameter, ctx_r0.caseField.value, ctx_r0.caseField.hidden, ctx_r0.caseField))("context", ctx_r0.context)("caseFields", ctx_r0.caseFields)("topLevelFormGroup", ctx_r0.topLevelFormGroup);
|
|
16341
16341
|
} }
|
|
16342
16342
|
function ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template(rf, ctx) { if (rf & 1) {
|
|
16343
|
-
i0.ɵɵelementStart(0, "tr")(1, "
|
|
16344
|
-
i0.ɵɵ
|
|
16343
|
+
i0.ɵɵelementStart(0, "tr")(1, "th", 7);
|
|
16344
|
+
i0.ɵɵtext(2);
|
|
16345
|
+
i0.ɵɵelementEnd();
|
|
16346
|
+
i0.ɵɵelementStart(3, "td");
|
|
16347
|
+
i0.ɵɵelement(4, "ccd-field-read", 8);
|
|
16345
16348
|
i0.ɵɵelementEnd()();
|
|
16346
16349
|
} if (rf & 2) {
|
|
16347
16350
|
const item_r2 = ctx.$implicit;
|
|
16348
16351
|
const i_r3 = ctx.index;
|
|
16349
16352
|
const ctx_r0 = i0.ɵɵnextContext(3);
|
|
16350
16353
|
i0.ɵɵadvance(2);
|
|
16351
|
-
i0.ɵɵ
|
|
16354
|
+
i0.ɵɵtextInterpolate2("", ctx_r0.caseField.label, " ", i_r3 + 1);
|
|
16355
|
+
i0.ɵɵadvance(2);
|
|
16356
|
+
i0.ɵɵproperty("caseField", i0.ɵɵpureFunction6(7, _c1$l, i_r3 + "", ctx_r0.caseField.label + " " + (i_r3 + 1), ctx_r0.caseField.field_type.collection_field_type, item_r2.value, ctx_r0.caseField.hidden, ctx_r0.caseField))("context", ctx_r0.context)("caseFields", ctx_r0.caseFields)("topLevelFormGroup", ctx_r0.topLevelFormGroup)("idPrefix", ctx_r0.buildIdPrefix(i_r3));
|
|
16352
16357
|
} }
|
|
16353
16358
|
function ReadCollectionFieldComponent_table_0_tbody_3_Template(rf, ctx) { if (rf & 1) {
|
|
16354
16359
|
i0.ɵɵelementStart(0, "tbody");
|
|
16355
|
-
i0.ɵɵtemplate(1, ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template,
|
|
16360
|
+
i0.ɵɵtemplate(1, ReadCollectionFieldComponent_table_0_tbody_3_tr_1_Template, 5, 14, "tr", 6);
|
|
16356
16361
|
i0.ɵɵelementEnd();
|
|
16357
16362
|
} if (rf & 2) {
|
|
16358
16363
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
@@ -16390,7 +16395,7 @@ class ReadCollectionFieldComponent extends AbstractFieldReadComponent {
|
|
|
16390
16395
|
return prefix;
|
|
16391
16396
|
}
|
|
16392
16397
|
static ɵfac = /*@__PURE__*/ (() => { let ɵReadCollectionFieldComponent_BaseFactory; return function ReadCollectionFieldComponent_Factory(__ngFactoryType__) { return (ɵReadCollectionFieldComponent_BaseFactory || (ɵReadCollectionFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ReadCollectionFieldComponent)))(__ngFactoryType__ || ReadCollectionFieldComponent); }; })();
|
|
16393
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadCollectionFieldComponent, selectors: [["ccd-read-collection-field"]], inputs: { caseFields: "caseFields" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["class", "collection-field-table", "aria-label", "collection table", 4, "ngIf"], ["aria-label", "collection table", 1, "collection-field-table"], [3, "ngSwitch"], [4, "ngSwitchCase"], ["id", "hiddenHeader", 2, "display", "none"], [3, "caseField", "context", "caseFields", "topLevelFormGroup"], [4, "ngFor", "ngForOf"], [3, "caseField", "context", "caseFields", "topLevelFormGroup", "idPrefix"]], template: function ReadCollectionFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
16398
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ReadCollectionFieldComponent, selectors: [["ccd-read-collection-field"]], inputs: { caseFields: "caseFields" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["class", "collection-field-table", "aria-label", "collection table", 4, "ngIf"], ["aria-label", "collection table", 1, "collection-field-table"], [3, "ngSwitch"], [4, "ngSwitchCase"], ["id", "hiddenHeader", 2, "display", "none"], [3, "caseField", "context", "caseFields", "topLevelFormGroup"], [4, "ngFor", "ngForOf"], ["scope", "row", 1, "govuk-visually-hidden"], [3, "caseField", "context", "caseFields", "topLevelFormGroup", "idPrefix"]], template: function ReadCollectionFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
16394
16399
|
i0.ɵɵtemplate(0, ReadCollectionFieldComponent_table_0_Template, 4, 3, "table", 0);
|
|
16395
16400
|
} if (rf & 2) {
|
|
16396
16401
|
i0.ɵɵproperty("ngIf", ctx.caseField.value && ctx.caseField.value.length);
|
|
@@ -16398,7 +16403,7 @@ class ReadCollectionFieldComponent extends AbstractFieldReadComponent {
|
|
|
16398
16403
|
}
|
|
16399
16404
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadCollectionFieldComponent, [{
|
|
16400
16405
|
type: Component,
|
|
16401
|
-
args: [{ selector: 'ccd-read-collection-field', standalone: false, template: "<table *ngIf=\"caseField.value && caseField.value.length \" class=\"collection-field-table\" aria-label=\"collection table\">\n <ng-container [ngSwitch]=\"isDisplayContextParameterAvailable\">\n <tbody *ngSwitchCase=\"true\">\n <tr>\n <th id=\"hiddenHeader\" style=\"display: none;\"></th>\n <td>\n <ccd-field-read\n [caseField]=\"{\n id: caseField.label,\n label: caseField.label,\n field_type: caseField.field_type.collection_field_type,\n display_context_parameter: caseField.display_context_parameter,\n value: caseField.value,\n hidden: caseField.hidden,\n parent: caseField\n }\"\n [context]=\"context\"\n [caseFields]=\"caseFields\"\n [topLevelFormGroup]=\"topLevelFormGroup\">\n </ccd-field-read>\n </td>\n </tr>\n </tbody>\n <tbody *ngSwitchCase=\"false\">\n <tr *ngFor=\"let item of caseField.value; let i = index\">\n <td>\n <ccd-field-read\n [caseField]=\"{\n id: i + '',\n label: caseField.label + ' ' + (i + 1),\n field_type: caseField.field_type.collection_field_type,\n value: item.value,\n hidden: caseField.hidden,\n parent: caseField\n }\"\n [context]=\"context\"\n [caseFields]=\"caseFields\"\n [topLevelFormGroup]=\"topLevelFormGroup\"\n [idPrefix]=\"buildIdPrefix(i)\">\n </ccd-field-read>\n </td>\n </tr>\n </tbody>\n </ng-container>\n</table>\n", styles: [".govuk-js-link{appearance:none;background:none;border:none;color:#005ea5;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-decoration:underline}.govuk-js-link:hover{color:#2b8cc4;text-decoration-thickness:max(3px,.1875rem,.12em)}.govuk-js-link:focus{background-color:#ffbf47;color:#000;outline:3px solid transparent;text-decoration:none;box-shadow:0 -2px #ffbf47,0 4px #000}.govuk-js-link:visited{color:#4c2c92}.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}}@media print{.complex-panel .complex-panel-title{font-size:14pt}}.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"] }]
|
|
16406
|
+
args: [{ selector: 'ccd-read-collection-field', standalone: false, template: "<table *ngIf=\"caseField.value && caseField.value.length \" class=\"collection-field-table\" aria-label=\"collection table\">\n <ng-container [ngSwitch]=\"isDisplayContextParameterAvailable\">\n <tbody *ngSwitchCase=\"true\">\n <tr>\n <th id=\"hiddenHeader\" style=\"display: none;\"></th>\n <td>\n <ccd-field-read\n [caseField]=\"{\n id: caseField.label,\n label: caseField.label,\n field_type: caseField.field_type.collection_field_type,\n display_context_parameter: caseField.display_context_parameter,\n value: caseField.value,\n hidden: caseField.hidden,\n parent: caseField\n }\"\n [context]=\"context\"\n [caseFields]=\"caseFields\"\n [topLevelFormGroup]=\"topLevelFormGroup\">\n </ccd-field-read>\n </td>\n </tr>\n </tbody>\n <tbody *ngSwitchCase=\"false\">\n <tr *ngFor=\"let item of caseField.value; let i = index\">\n <th scope=\"row\" class=\"govuk-visually-hidden\">{{ caseField.label }} {{ i + 1 }}</th>\n <td>\n <ccd-field-read\n [caseField]=\"{\n id: i + '',\n label: caseField.label + ' ' + (i + 1),\n field_type: caseField.field_type.collection_field_type,\n value: item.value,\n hidden: caseField.hidden,\n parent: caseField\n }\"\n [context]=\"context\"\n [caseFields]=\"caseFields\"\n [topLevelFormGroup]=\"topLevelFormGroup\"\n [idPrefix]=\"buildIdPrefix(i)\">\n </ccd-field-read>\n </td>\n </tr>\n </tbody>\n </ng-container>\n</table>\n", styles: [".govuk-js-link{appearance:none;background:none;border:none;color:#005ea5;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-decoration:underline}.govuk-js-link:hover{color:#2b8cc4;text-decoration-thickness:max(3px,.1875rem,.12em)}.govuk-js-link:focus{background-color:#ffbf47;color:#000;outline:3px solid transparent;text-decoration:none;box-shadow:0 -2px #ffbf47,0 4px #000}.govuk-js-link:visited{color:#4c2c92}.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}}@media print{.complex-panel .complex-panel-title{font-size:14pt}}.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"] }]
|
|
16402
16407
|
}], null, { caseFields: [{
|
|
16403
16408
|
type: Input
|
|
16404
16409
|
}] }); })();
|
|
@@ -18445,8 +18450,9 @@ function WriteFixedListFieldComponent_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
18445
18450
|
i0.ɵɵelementEnd();
|
|
18446
18451
|
} if (rf & 2) {
|
|
18447
18452
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
18453
|
+
i0.ɵɵproperty("id", ctx_r0.id() + "-hint");
|
|
18448
18454
|
i0.ɵɵadvance();
|
|
18449
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2,
|
|
18455
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 2, ctx_r0.caseField.hint_text));
|
|
18450
18456
|
} }
|
|
18451
18457
|
function WriteFixedListFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
18452
18458
|
i0.ɵɵelementStart(0, "span", 9)(1, "span", 10);
|
|
@@ -18458,10 +18464,11 @@ function WriteFixedListFieldComponent_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
18458
18464
|
i0.ɵɵelementEnd();
|
|
18459
18465
|
} if (rf & 2) {
|
|
18460
18466
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
18467
|
+
i0.ɵɵproperty("id", ctx_r0.id() + "-error");
|
|
18461
18468
|
i0.ɵɵadvance(2);
|
|
18462
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3,
|
|
18469
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 3, "Error:"));
|
|
18463
18470
|
i0.ɵɵadvance(2);
|
|
18464
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(5,
|
|
18471
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(5, 5, ctx_r0.fixedListFormControl.errors, ctx_r0.caseField.label), " ");
|
|
18465
18472
|
} }
|
|
18466
18473
|
function WriteFixedListFieldComponent_option_8_Template(rf, ctx) { if (rf & 1) {
|
|
18467
18474
|
i0.ɵɵelementStart(0, "option", 6);
|
|
@@ -18496,18 +18503,18 @@ class WriteFixedListFieldComponent extends AbstractFieldWriteComponent {
|
|
|
18496
18503
|
this.fixedListFormControl.setValue(this.caseField.value);
|
|
18497
18504
|
}
|
|
18498
18505
|
static ɵfac = /*@__PURE__*/ (() => { let ɵWriteFixedListFieldComponent_BaseFactory; return function WriteFixedListFieldComponent_Factory(__ngFactoryType__) { return (ɵWriteFixedListFieldComponent_BaseFactory || (ɵWriteFixedListFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(WriteFixedListFieldComponent)))(__ngFactoryType__ || WriteFixedListFieldComponent); }; })();
|
|
18499
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteFixedListFieldComponent, selectors: [["ccd-write-fixed-list-field"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 9, vars:
|
|
18506
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteFixedListFieldComponent, selectors: [["ccd-write-fixed-list-field"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 9, vars: 12, consts: [[1, "govuk-form-group", 3, "ngClass"], [1, "govuk-label", 3, "for"], [4, "ngIf"], ["class", "govuk-hint", 3, "id", 4, "ngIf"], ["class", "govuk-error-message", 3, "id", 4, "ngIf"], [1, "govuk-select", "ccd-dropdown", "bottom-30", 3, "id", "formControl"], [3, "ngValue"], [3, "ngValue", 4, "ngFor", "ngForOf"], [1, "govuk-hint", 3, "id"], [1, "govuk-error-message", 3, "id"], [1, "govuk-visually-hidden"]], template: function WriteFixedListFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
18500
18507
|
i0.ɵɵelementStart(0, "div", 0)(1, "label", 1);
|
|
18501
18508
|
i0.ɵɵtemplate(2, WriteFixedListFieldComponent_ng_container_2_Template, 3, 3, "ng-container", 2);
|
|
18502
18509
|
i0.ɵɵelementEnd();
|
|
18503
|
-
i0.ɵɵtemplate(3, WriteFixedListFieldComponent_div_3_Template, 3,
|
|
18510
|
+
i0.ɵɵtemplate(3, WriteFixedListFieldComponent_div_3_Template, 3, 4, "div", 3)(4, WriteFixedListFieldComponent_span_4_Template, 6, 8, "span", 4);
|
|
18504
18511
|
i0.ɵɵelementStart(5, "select", 5)(6, "option", 6);
|
|
18505
18512
|
i0.ɵɵtext(7, "--Select a value--");
|
|
18506
18513
|
i0.ɵɵelementEnd();
|
|
18507
18514
|
i0.ɵɵtemplate(8, WriteFixedListFieldComponent_option_8_Template, 3, 4, "option", 7);
|
|
18508
18515
|
i0.ɵɵelementEnd()();
|
|
18509
18516
|
} if (rf & 2) {
|
|
18510
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
18517
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$Q, !ctx.fixedListFormControl.valid && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched)));
|
|
18511
18518
|
i0.ɵɵadvance();
|
|
18512
18519
|
i0.ɵɵproperty("for", ctx.id());
|
|
18513
18520
|
i0.ɵɵadvance();
|
|
@@ -18518,6 +18525,7 @@ class WriteFixedListFieldComponent extends AbstractFieldWriteComponent {
|
|
|
18518
18525
|
i0.ɵɵproperty("ngIf", ctx.fixedListFormControl.errors && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched));
|
|
18519
18526
|
i0.ɵɵadvance();
|
|
18520
18527
|
i0.ɵɵproperty("id", ctx.id())("formControl", ctx.fixedListFormControl);
|
|
18528
|
+
i0.ɵɵattribute("aria-describedby", ((ctx.caseField.hint_text ? ctx.id() + "-hint " : "") + (ctx.fixedListFormControl.errors && (ctx.fixedListFormControl.dirty || ctx.fixedListFormControl.touched) ? ctx.id() + "-error" : "")).trim() || null);
|
|
18521
18529
|
i0.ɵɵadvance();
|
|
18522
18530
|
i0.ɵɵproperty("ngValue", null);
|
|
18523
18531
|
i0.ɵɵadvance(2);
|
|
@@ -18526,7 +18534,7 @@ class WriteFixedListFieldComponent extends AbstractFieldWriteComponent {
|
|
|
18526
18534
|
}
|
|
18527
18535
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteFixedListFieldComponent, [{
|
|
18528
18536
|
type: Component,
|
|
18529
|
-
args: [{ selector: 'ccd-write-fixed-list-field', standalone: false, template: "<div class=\"govuk-form-group\" [ngClass]=\"{'govuk-form-group--error': !fixedListFormControl.valid && (fixedListFormControl.dirty || fixedListFormControl.touched)}\">\n\n <label class=\"govuk-label\" [for]=\"id()\">\n <ng-container *ngIf=\"caseField.label\">{{(caseField | ccdFieldLabel)}}</ng-container>\n </label>\n <div class=\"govuk-hint\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text | rpxTranslate}}</div>\n <span class=\"govuk-error-message\" *ngIf=\"fixedListFormControl.errors && (fixedListFormControl.dirty || fixedListFormControl.touched)\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{(fixedListFormControl.errors | ccdFirstError:caseField.label)}}\n </span>\n\n <select class=\"govuk-select 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" }]
|
|
18537
|
+
args: [{ selector: 'ccd-write-fixed-list-field', standalone: false, template: "<div class=\"govuk-form-group\" [ngClass]=\"{'govuk-form-group--error': !fixedListFormControl.valid && (fixedListFormControl.dirty || fixedListFormControl.touched)}\">\n\n <label class=\"govuk-label\" [for]=\"id()\">\n <ng-container *ngIf=\"caseField.label\">{{(caseField | ccdFieldLabel)}}</ng-container>\n </label>\n <div class=\"govuk-hint\" [id]=\"id() + '-hint'\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text | rpxTranslate}}</div>\n <span class=\"govuk-error-message\" [id]=\"id() + '-error'\" *ngIf=\"fixedListFormControl.errors && (fixedListFormControl.dirty || fixedListFormControl.touched)\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{(fixedListFormControl.errors | ccdFirstError:caseField.label)}}\n </span>\n\n <select class=\"govuk-select ccd-dropdown bottom-30\" [id]=\"id()\" [formControl]=\"fixedListFormControl\"\n [attr.aria-describedby]=\"((caseField.hint_text ? id() + '-hint ' : '') + (fixedListFormControl.errors && (fixedListFormControl.dirty || fixedListFormControl.touched) ? id() + '-error' : '')).trim() || null\">\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" }]
|
|
18530
18538
|
}], null, null); })();
|
|
18531
18539
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteFixedListFieldComponent, { className: "WriteFixedListFieldComponent", filePath: "lib/shared/components/palette/fixed-list/write-fixed-list-field.component.ts", lineNumber: 10 }); })();
|
|
18532
18540
|
|
|
@@ -29477,8 +29485,9 @@ function WriteTextFieldComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
29477
29485
|
i0.ɵɵelementEnd();
|
|
29478
29486
|
} if (rf & 2) {
|
|
29479
29487
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
29488
|
+
i0.ɵɵproperty("id", ctx_r0.id() + "-hint");
|
|
29480
29489
|
i0.ɵɵadvance();
|
|
29481
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2,
|
|
29490
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 2, ctx_r0.caseField.hint_text));
|
|
29482
29491
|
} }
|
|
29483
29492
|
function WriteTextFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
29484
29493
|
i0.ɵɵelementStart(0, "span", 8)(1, "span", 9);
|
|
@@ -29490,10 +29499,11 @@ function WriteTextFieldComponent_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
29490
29499
|
i0.ɵɵelementEnd();
|
|
29491
29500
|
} if (rf & 2) {
|
|
29492
29501
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
29502
|
+
i0.ɵɵproperty("id", ctx_r0.id() + "-error");
|
|
29493
29503
|
i0.ɵɵadvance(2);
|
|
29494
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3,
|
|
29504
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 3, "Error:"));
|
|
29495
29505
|
i0.ɵɵadvance(2);
|
|
29496
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(5,
|
|
29506
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(5, 5, ctx_r0.textControl.errors, ctx_r0.caseField.label), " ");
|
|
29497
29507
|
} }
|
|
29498
29508
|
class WriteTextFieldComponent extends AbstractFieldWriteComponent {
|
|
29499
29509
|
textControl;
|
|
@@ -29504,14 +29514,14 @@ class WriteTextFieldComponent extends AbstractFieldWriteComponent {
|
|
|
29504
29514
|
$event.target.value = $event.target.value.trim();
|
|
29505
29515
|
}
|
|
29506
29516
|
static ɵfac = /*@__PURE__*/ (() => { let ɵWriteTextFieldComponent_BaseFactory; return function WriteTextFieldComponent_Factory(__ngFactoryType__) { return (ɵWriteTextFieldComponent_BaseFactory || (ɵWriteTextFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(WriteTextFieldComponent)))(__ngFactoryType__ || WriteTextFieldComponent); }; })();
|
|
29507
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteTextFieldComponent, selectors: [["ccd-write-text-field"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 5, vars:
|
|
29517
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteTextFieldComponent, selectors: [["ccd-write-text-field"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 13, consts: [[1, "govuk-form-group", 3, "ngClass"], ["class", "govuk-label", 3, "for", 4, "ngIf"], ["class", "govuk-hint", 3, "id", 4, "ngIf"], ["class", "govuk-error-message", 3, "id", 4, "ngIf"], [1, "govuk-input", "bottom-30", 3, "blur", "ngClass", "id", "type", "formControl"], [1, "govuk-label", 3, "for"], [4, "ngIf"], [1, "govuk-hint", 3, "id"], [1, "govuk-error-message", 3, "id"], [1, "govuk-visually-hidden"]], template: function WriteTextFieldComponent_Template(rf, ctx) { if (rf & 1) {
|
|
29508
29518
|
i0.ɵɵelementStart(0, "div", 0);
|
|
29509
|
-
i0.ɵɵtemplate(1, WriteTextFieldComponent_label_1_Template, 2, 2, "label", 1)(2, WriteTextFieldComponent_div_2_Template, 3,
|
|
29519
|
+
i0.ɵɵtemplate(1, WriteTextFieldComponent_label_1_Template, 2, 2, "label", 1)(2, WriteTextFieldComponent_div_2_Template, 3, 4, "div", 2)(3, WriteTextFieldComponent_span_3_Template, 6, 8, "span", 3);
|
|
29510
29520
|
i0.ɵɵelementStart(4, "input", 4);
|
|
29511
29521
|
i0.ɵɵlistener("blur", function WriteTextFieldComponent_Template_input_blur_4_listener($event) { return ctx.onBlur($event); });
|
|
29512
29522
|
i0.ɵɵelementEnd()();
|
|
29513
29523
|
} if (rf & 2) {
|
|
29514
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
29524
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$C, !!ctx.textControl && !ctx.textControl.valid && (ctx.textControl.dirty || ctx.textControl.touched)));
|
|
29515
29525
|
i0.ɵɵadvance();
|
|
29516
29526
|
i0.ɵɵproperty("ngIf", !ctx.caseField.hidden);
|
|
29517
29527
|
i0.ɵɵadvance();
|
|
@@ -29519,12 +29529,13 @@ class WriteTextFieldComponent extends AbstractFieldWriteComponent {
|
|
|
29519
29529
|
i0.ɵɵadvance();
|
|
29520
29530
|
i0.ɵɵproperty("ngIf", (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched));
|
|
29521
29531
|
i0.ɵɵadvance();
|
|
29522
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
29532
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c1$c, (ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched)))("id", ctx.id())("type", ctx.caseField.hidden ? "hidden" : "text")("formControl", ctx.textControl);
|
|
29533
|
+
i0.ɵɵattribute("aria-describedby", ((ctx.caseField.hint_text ? ctx.id() + "-hint " : "") + ((ctx.textControl == null ? null : ctx.textControl.errors) && (ctx.textControl.dirty || ctx.textControl.touched) ? ctx.id() + "-error" : "")).trim() || null);
|
|
29523
29534
|
} }, dependencies: [i5.NgClass, i5.NgIf, i4.DefaultValueAccessor, i4.NgControlStatus, i4.FormControlDirective, FieldLabelPipe, FirstErrorPipe, i1.RpxTranslatePipe], encapsulation: 2 });
|
|
29524
29535
|
}
|
|
29525
29536
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteTextFieldComponent, [{
|
|
29526
29537
|
type: Component,
|
|
29527
|
-
args: [{ selector: 'ccd-write-text-field', standalone: false, template: "<div class=\"govuk-form-group\" [ngClass]=\"{'govuk-form-group--error': !!textControl && !textControl.valid && (textControl.dirty || textControl.touched)}\">\n <label class=\"govuk-label\" [for]=\"id()\" *ngIf=\"!caseField.hidden\">\n <ng-container *ngIf=\"caseField.label\">{{caseField | ccdFieldLabel}}</ng-container>\n </label>\n <div class=\"govuk-hint\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text | rpxTranslate}}</div>\n <span class=\"govuk-error-message\" *ngIf=\"textControl?.errors && (textControl.dirty || textControl.touched)\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{textControl.errors | ccdFirstError:caseField.label}}\n </span>\n <input class=\"govuk-input bottom-30\" [ngClass]=\"{'govuk-input--error': textControl?.errors && (textControl.dirty || textControl.touched)}\"\n [id]=\"id()\" [type]=\"caseField.hidden ? 'hidden' : 'text'\" [formControl]=\"textControl\" (blur)=\"onBlur($event)\">\n</div>\n" }]
|
|
29538
|
+
args: [{ selector: 'ccd-write-text-field', standalone: false, template: "<div class=\"govuk-form-group\" [ngClass]=\"{'govuk-form-group--error': !!textControl && !textControl.valid && (textControl.dirty || textControl.touched)}\">\n <label class=\"govuk-label\" [for]=\"id()\" *ngIf=\"!caseField.hidden\">\n <ng-container *ngIf=\"caseField.label\">{{caseField | ccdFieldLabel}}</ng-container>\n </label>\n <div class=\"govuk-hint\" [id]=\"id() + '-hint'\" *ngIf=\"caseField.hint_text\">{{caseField.hint_text | rpxTranslate}}</div>\n <span class=\"govuk-error-message\" [id]=\"id() + '-error'\" *ngIf=\"textControl?.errors && (textControl.dirty || textControl.touched)\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{textControl.errors | ccdFirstError:caseField.label}}\n </span>\n <input class=\"govuk-input bottom-30\" [ngClass]=\"{'govuk-input--error': textControl?.errors && (textControl.dirty || textControl.touched)}\"\n [id]=\"id()\" [type]=\"caseField.hidden ? 'hidden' : 'text'\" [formControl]=\"textControl\" (blur)=\"onBlur($event)\"\n [attr.aria-describedby]=\"((caseField.hint_text ? id() + '-hint ' : '') + (textControl?.errors && (textControl.dirty || textControl.touched) ? id() + '-error' : '')).trim() || null\">\n</div>\n" }]
|
|
29528
29539
|
}], null, null); })();
|
|
29529
29540
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteTextFieldComponent, { className: "WriteTextFieldComponent", filePath: "lib/shared/components/palette/text/write-text-field.component.ts", lineNumber: 10 }); })();
|
|
29530
29541
|
|
|
@@ -30764,13 +30775,12 @@ function CaseFileViewFolderComponent_div_11_cdk_nested_tree_node_4_Template(rf,
|
|
|
30764
30775
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
30765
30776
|
i0.ɵɵadvance();
|
|
30766
30777
|
i0.ɵɵclassProp("node--selected", (ctx_r2.selectedNodeItem == null ? null : ctx_r2.selectedNodeItem.name) === node_r2.name);
|
|
30767
|
-
i0.ɵɵattribute("aria-label", node_r2.name);
|
|
30768
30778
|
i0.ɵɵadvance(3);
|
|
30769
30779
|
i0.ɵɵattribute("title", node_r2.name);
|
|
30770
30780
|
i0.ɵɵadvance();
|
|
30771
30781
|
i0.ɵɵtextInterpolate1(" ", node_r2.name, " ");
|
|
30772
30782
|
i0.ɵɵadvance(3);
|
|
30773
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind3(9,
|
|
30783
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind3(9, 6, node_r2.upload_timestamp, "local", "dd MMM yyyy HH:mm"));
|
|
30774
30784
|
i0.ɵɵadvance(3);
|
|
30775
30785
|
i0.ɵɵproperty("allowMoving", ctx_r2.allowMoving);
|
|
30776
30786
|
} }
|
|
@@ -30782,21 +30792,26 @@ function CaseFileViewFolderComponent_div_11_cdk_nested_tree_node_5_Template(rf,
|
|
|
30782
30792
|
i0.ɵɵelementEnd()();
|
|
30783
30793
|
i0.ɵɵelementStart(6, "span", 28);
|
|
30784
30794
|
i0.ɵɵtext(7);
|
|
30795
|
+
i0.ɵɵelementEnd();
|
|
30796
|
+
i0.ɵɵelementStart(8, "span", 29);
|
|
30797
|
+
i0.ɵɵtext(9);
|
|
30785
30798
|
i0.ɵɵelementEnd()();
|
|
30786
|
-
i0.ɵɵelementStart(
|
|
30787
|
-
i0.ɵɵelementContainer(
|
|
30799
|
+
i0.ɵɵelementStart(10, "div", 30);
|
|
30800
|
+
i0.ɵɵelementContainer(11, 31);
|
|
30788
30801
|
i0.ɵɵelementEnd()();
|
|
30789
30802
|
} if (rf & 2) {
|
|
30790
30803
|
const node_r4 = ctx.$implicit;
|
|
30791
30804
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
30792
30805
|
i0.ɵɵadvance();
|
|
30793
|
-
i0.ɵɵattribute("aria-expanded", ctx_r2.nestedTreeControl.isExpanded(node_r4))
|
|
30806
|
+
i0.ɵɵattribute("aria-expanded", ctx_r2.nestedTreeControl.isExpanded(node_r4));
|
|
30794
30807
|
i0.ɵɵadvance(2);
|
|
30795
30808
|
i0.ɵɵproperty("src", ctx_r2.nestedTreeControl.isExpanded(node_r4) ? "/assets/images/folder-open.png" : "/assets/images/folder.png", i0.ɵɵsanitizeUrl);
|
|
30796
30809
|
i0.ɵɵadvance(2);
|
|
30797
30810
|
i0.ɵɵtextInterpolate(node_r4.childDocumentCount);
|
|
30798
30811
|
i0.ɵɵadvance(2);
|
|
30799
30812
|
i0.ɵɵtextInterpolate(node_r4.name);
|
|
30813
|
+
i0.ɵɵadvance(2);
|
|
30814
|
+
i0.ɵɵtextInterpolate1(" folder, ", node_r4.childDocumentCount, " documents");
|
|
30800
30815
|
i0.ɵɵadvance();
|
|
30801
30816
|
i0.ɵɵclassProp("document-tree-invisible", !ctx_r2.nestedTreeControl.isExpanded(node_r4));
|
|
30802
30817
|
} }
|
|
@@ -30804,7 +30819,7 @@ function CaseFileViewFolderComponent_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
|
30804
30819
|
i0.ɵɵelementStart(0, "div", 10);
|
|
30805
30820
|
i0.ɵɵtemplate(1, CaseFileViewFolderComponent_div_11_div_1_Template, 2, 0, "div", 11);
|
|
30806
30821
|
i0.ɵɵelementStart(2, "div")(3, "cdk-tree", 12);
|
|
30807
|
-
i0.ɵɵtemplate(4, CaseFileViewFolderComponent_div_11_cdk_nested_tree_node_4_Template, 12,
|
|
30822
|
+
i0.ɵɵtemplate(4, CaseFileViewFolderComponent_div_11_cdk_nested_tree_node_4_Template, 12, 10, "cdk-nested-tree-node", 13)(5, CaseFileViewFolderComponent_div_11_cdk_nested_tree_node_5_Template, 12, 7, "cdk-nested-tree-node", 14);
|
|
30808
30823
|
i0.ɵɵelementEnd()()();
|
|
30809
30824
|
} if (rf & 2) {
|
|
30810
30825
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
@@ -31069,7 +31084,7 @@ class CaseFileViewFolderComponent {
|
|
|
31069
31084
|
a.remove();
|
|
31070
31085
|
}
|
|
31071
31086
|
static ɵfac = function CaseFileViewFolderComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaseFileViewFolderComponent)(i0.ɵɵdirectiveInject(WindowService), i0.ɵɵdirectiveInject(i1$2.Router), i0.ɵɵdirectiveInject(DocumentManagementService), i0.ɵɵdirectiveInject(i1$3.MatDialog)); };
|
|
31072
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseFileViewFolderComponent, selectors: [["ccd-case-file-view-folder"]], inputs: { categoriesAndDocuments: "categoriesAndDocuments", allowMoving: "allowMoving" }, outputs: { clickedDocument: "clickedDocument", moveDocument: "moveDocument" }, standalone: false, decls: 12, vars: 3, consts: [["role", "search", 1, "document-filter-container"], [1, "govuk-form-group", "document-filter", 3, "formGroup"], ["for", "document-search", 1, "govuk-visually-hidden"], ["type", "search", "id", "document-search", "name", "documentSearchFormControl", "formControlName", "documentSearchFormControl", "placeholder", "Search by document name", 1, "govuk-input", "document-search"], [1, "document-folders-header"], ["id", "document-folders-header-title", "aria-hidden", "true", 1, "document-folders-header__title"], ["role", "toolbar", "aria-label", "Document list actions", "aria-labelledby", "document-folders-header-title", 1, "document-folders-header__flex"], [3, "expandAll", "collapseAll"], [3, "sortAscending", "sortDescending"], ["class", "document-tree-container", 4, "ngIf"], [1, "document-tree-container"], [4, "ngIf"], ["role", "tree", "aria-label", "Case documents", 3, "dataSource", "treeControl"], ["class", "document-tree-container__node document-tree-container__node--document", 4, "cdkTreeNodeDef"], ["class", "document-tree-container__node document-tree-container__folder", 4, "cdkTreeNodeDef", "cdkTreeNodeDefWhen"], [1, "document-tree-container__node", "document-tree-container__node--document"], ["type", "button", 1, "node", "case-file__node", 3, "click"], ["disabled", "", "aria-hidden", "true", 1, "node__icon"], ["src", "/assets/img/case-file-view/case-file-view-document.svg", "alt", "Document icon", "aria-hidden", "true", 1, "node__iconImg"], [1, "node__name", "node-name-document"], [1, "node__document-upload-timestamp"], [1, "node__document-options", "case-file__action"], [3, "changeFolderAction", "openInANewTabAction", "downloadAction", "printAction", "allowMoving"], [1, "document-tree-container__node", "document-tree-container__folder"], ["type", "button", "cdkTreeNodeToggle", "", 1, "node"], ["aria-hidden", "true", 1, "node__icon"], ["alt", "Folder icon", "aria-hidden", "true", 1, "node__iconImg", 3, "src"], [1, "node__count"], [1, "node__name", "node__name--folder"], ["role", "group"], ["cdkTreeNodeOutlet", ""]], template: function CaseFileViewFolderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
31087
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseFileViewFolderComponent, selectors: [["ccd-case-file-view-folder"]], inputs: { categoriesAndDocuments: "categoriesAndDocuments", allowMoving: "allowMoving" }, outputs: { clickedDocument: "clickedDocument", moveDocument: "moveDocument" }, standalone: false, decls: 12, vars: 3, consts: [["role", "search", 1, "document-filter-container"], [1, "govuk-form-group", "document-filter", 3, "formGroup"], ["for", "document-search", 1, "govuk-visually-hidden"], ["type", "search", "id", "document-search", "name", "documentSearchFormControl", "formControlName", "documentSearchFormControl", "placeholder", "Search by document name", 1, "govuk-input", "document-search"], [1, "document-folders-header"], ["id", "document-folders-header-title", "aria-hidden", "true", 1, "document-folders-header__title"], ["role", "toolbar", "aria-label", "Document list actions", "aria-labelledby", "document-folders-header-title", 1, "document-folders-header__flex"], [3, "expandAll", "collapseAll"], [3, "sortAscending", "sortDescending"], ["class", "document-tree-container", 4, "ngIf"], [1, "document-tree-container"], [4, "ngIf"], ["role", "tree", "aria-label", "Case documents", 3, "dataSource", "treeControl"], ["class", "document-tree-container__node document-tree-container__node--document", 4, "cdkTreeNodeDef"], ["class", "document-tree-container__node document-tree-container__folder", 4, "cdkTreeNodeDef", "cdkTreeNodeDefWhen"], [1, "document-tree-container__node", "document-tree-container__node--document"], ["type", "button", 1, "node", "case-file__node", 3, "click"], ["disabled", "", "aria-hidden", "true", 1, "node__icon"], ["src", "/assets/img/case-file-view/case-file-view-document.svg", "alt", "Document icon", "aria-hidden", "true", 1, "node__iconImg"], [1, "node__name", "node-name-document"], [1, "node__document-upload-timestamp"], [1, "node__document-options", "case-file__action"], [3, "changeFolderAction", "openInANewTabAction", "downloadAction", "printAction", "allowMoving"], [1, "document-tree-container__node", "document-tree-container__folder"], ["type", "button", "cdkTreeNodeToggle", "", 1, "node"], ["aria-hidden", "true", 1, "node__icon"], ["alt", "Folder icon", "aria-hidden", "true", 1, "node__iconImg", 3, "src"], [1, "node__count"], [1, "node__name", "node__name--folder"], [1, "govuk-visually-hidden"], ["role", "group"], ["cdkTreeNodeOutlet", ""]], template: function CaseFileViewFolderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
31073
31088
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "label", 2);
|
|
31074
31089
|
i0.ɵɵtext(3, " Search by document name ");
|
|
31075
31090
|
i0.ɵɵelementEnd();
|
|
@@ -31096,7 +31111,7 @@ class CaseFileViewFolderComponent {
|
|
|
31096
31111
|
}
|
|
31097
31112
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseFileViewFolderComponent, [{
|
|
31098
31113
|
type: Component,
|
|
31099
|
-
args: [{ selector: 'ccd-case-file-view-folder', standalone: false, template: "<div class=\"document-filter-container\" role=\"search\">\n <div class=\"govuk-form-group document-filter\" [formGroup]=\"documentFilterFormGroup\">\n <label\n class=\"govuk-visually-hidden\"\n for=\"document-search\">\n Search by document name\n </label>\n <input\n class=\"govuk-input document-search\"\n type=\"search\"\n id=\"document-search\"\n name=\"documentSearchFormControl\"\n formControlName=\"documentSearchFormControl\"\n placeholder=\"Search by document name\"/>\n </div>\n</div>\n\n<div class=\"document-folders-header\">\n <div class=\"document-folders-header__title\" id=\"document-folders-header-title\" aria-hidden=\"true\">\n Documents ({{ documentCount }})\n </div>\n <div\n class=\"document-folders-header__flex\"\n role=\"toolbar\"\n aria-label=\"Document list actions\"\n aria-labelledby=\"document-folders-header-title\">\n <ccd-case-file-view-folder-toggle\n (expandAll)=\"expandAll($event)\"\n (collapseAll)=\"collapseAll($event)\">\n </ccd-case-file-view-folder-toggle>\n <ccd-case-file-view-folder-sort\n (sortAscending)=\"sortDataSourceAscending($event)\"\n (sortDescending)=\"sortDataSourceDescending($event)\">\n </ccd-case-file-view-folder-sort>\n </div>\n</div>\n\n<div class=\"document-tree-container\" *ngIf=\"documentTreeData\">\n <div *ngIf=\"!nestedDataSource || nestedDataSource.length === 0\">\n No results found\n </div>\n <div>\n <cdk-tree\n [dataSource]=\"nestedDataSource\"\n [treeControl]=\"nestedTreeControl\"\n role=\"tree\"\n aria-label=\"Case documents\">\n <!-- document -->\n <cdk-nested-tree-node class=\"document-tree-container__node document-tree-container__node--document\" *cdkTreeNodeDef=\"let node\">\n <button\n type=\"button\"\n class=\"node case-file__node\"\n
|
|
31114
|
+
args: [{ selector: 'ccd-case-file-view-folder', standalone: false, template: "<div class=\"document-filter-container\" role=\"search\">\n <div class=\"govuk-form-group document-filter\" [formGroup]=\"documentFilterFormGroup\">\n <label\n class=\"govuk-visually-hidden\"\n for=\"document-search\">\n Search by document name\n </label>\n <input\n class=\"govuk-input document-search\"\n type=\"search\"\n id=\"document-search\"\n name=\"documentSearchFormControl\"\n formControlName=\"documentSearchFormControl\"\n placeholder=\"Search by document name\"/>\n </div>\n</div>\n\n<div class=\"document-folders-header\">\n <div class=\"document-folders-header__title\" id=\"document-folders-header-title\" aria-hidden=\"true\">\n Documents ({{ documentCount }})\n </div>\n <div\n class=\"document-folders-header__flex\"\n role=\"toolbar\"\n aria-label=\"Document list actions\"\n aria-labelledby=\"document-folders-header-title\">\n <ccd-case-file-view-folder-toggle\n (expandAll)=\"expandAll($event)\"\n (collapseAll)=\"collapseAll($event)\">\n </ccd-case-file-view-folder-toggle>\n <ccd-case-file-view-folder-sort\n (sortAscending)=\"sortDataSourceAscending($event)\"\n (sortDescending)=\"sortDataSourceDescending($event)\">\n </ccd-case-file-view-folder-sort>\n </div>\n</div>\n\n<div class=\"document-tree-container\" *ngIf=\"documentTreeData\">\n <div *ngIf=\"!nestedDataSource || nestedDataSource.length === 0\">\n No results found\n </div>\n <div>\n <cdk-tree\n [dataSource]=\"nestedDataSource\"\n [treeControl]=\"nestedTreeControl\"\n role=\"tree\"\n aria-label=\"Case documents\">\n <!-- document -->\n <cdk-nested-tree-node class=\"document-tree-container__node document-tree-container__node--document\" *cdkTreeNodeDef=\"let node\">\n <button\n type=\"button\"\n class=\"node case-file__node\"\n (click)=\"selectedNodeItem = node; clickedDocument.emit(node)\"\n [class.node--selected]=\"selectedNodeItem?.name === node.name\">\n <div class=\"node__icon\" disabled aria-hidden=\"true\">\n <img src=\"/assets/img/case-file-view/case-file-view-document.svg\"\n class=\"node__iconImg\"\n alt=\"Document icon\"\n aria-hidden=\"true\"\n />\n </div>\n <span class=\"node__name node-name-document\" [attr.title]=\"node.name\">\n {{ node.name }}\n <br />\n <span class=\"node__document-upload-timestamp\">{{\n node.upload_timestamp | ccdDate: \"local\":\"dd MMM yyyy HH:mm\"\n }}</span>\n </span>\n </button>\n <div class=\"node__document-options case-file__action\">\n <ccd-case-file-view-folder-document-actions\n (changeFolderAction)=\"triggerDocumentAction('changeFolder', node)\"\n (openInANewTabAction)=\"triggerDocumentAction('openInANewTab', node)\"\n (downloadAction)=\"triggerDocumentAction('download', node)\"\n (printAction)=\"triggerDocumentAction('print', node)\"\n [allowMoving]=\"allowMoving\"\n >\n </ccd-case-file-view-folder-document-actions>\n </div>\n </cdk-nested-tree-node>\n <!-- folder-->\n <cdk-nested-tree-node class=\"document-tree-container__node document-tree-container__folder\" *cdkTreeNodeDef=\"let node; when: nestedChildren\">\n <button\n type=\"button\"\n class=\"node\"\n cdkTreeNodeToggle\n [attr.aria-expanded]=\"nestedTreeControl.isExpanded(node)\">\n <div class=\"node__icon\" aria-hidden=\"true\">\n <img class=\"node__iconImg\"\n [src]=\"nestedTreeControl.isExpanded(node)\n ? '/assets/images/folder-open.png'\n : '/assets/images/folder.png'\n \"\n alt=\"Folder icon\"\n aria-hidden=\"true\" />\n <span class=\"node__count\">{{ node.childDocumentCount }}</span>\n </div>\n <span class=\"node__name node__name--folder\">{{ node.name }}</span>\n <!-- Name comes from the visible text so it contains what sighted users see (WCAG 2.5.3) -->\n <span class=\"govuk-visually-hidden\"> folder, {{ node.childDocumentCount }} documents</span>\n </button>\n <div\n role=\"group\"\n [class.document-tree-invisible]=\"!nestedTreeControl.isExpanded(node)\">\n <ng-container cdkTreeNodeOutlet></ng-container>\n </div>\n </cdk-nested-tree-node>\n </cdk-tree>\n </div>\n</div>\n", styles: [":host{display:flex;height:100%;flex-direction:column}:host .document-tree-container{flex:1 0}.document-filter-container{border-bottom:2px solid #C9C9C9}.document-filter-container .document-filter{padding:10px}.document-filter-container .document-filter .document-search{background:url(/assets/images/icon-search-black.svg) no-repeat right #fff;background-position-x:calc(100% - 4px);padding-right:30px;width:100%}.document-filter-container .documents-title{height:30%;margin-left:8px;font-weight:700}.document-folders-header__flex{display:flex;flex-direction:row}.document-tree-container{padding:4px;overflow-x:hidden;overflow-y:scroll}.document-tree-container__node{display:block}.document-tree-container__node .document-tree-container__node{padding-left:40px}.document-tree-container .document-tree-invisible{display:none}.document-tree-container::-webkit-scrollbar{width:7px}.document-tree-container::-webkit-scrollbar-thumb{border:4px solid rgba(0,0,0,0);background-clip:padding-box;border-radius:9999px;background-color:#aaa}.document-tree-container::-webkit-scrollbar-button{display:none}.document-tree-container::-webkit-scrollbar-track-piece{background:#eee}.document-tree-container::-webkit-scrollbar-thumb{background:#ccc}.document-folders-header{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #C9C9C9;padding:10px}.document-folders-header__title{font-weight:700}.node{display:flex;align-items:center;width:100%;padding:10px;background:none;border:0;cursor:pointer;white-space:nowrap}.node--selected{background:#fff2cc}.node__icon{position:relative;display:inline-block}.node__count{color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:.875rem;padding-top:4px}.node__iconImg{display:block;height:30px;width:30px}.node__name{margin-left:6px;font-size:1rem;overflow:hidden;text-overflow:ellipsis}.node__document-options{margin-left:auto;margin-right:0}.node__document-upload-timestamp{font-size:.8rem;float:left;padding-left:10px}.node.case-file__node{width:80%;float:left}.node__document-options.case-file__action{width:15%;float:left;box-sizing:border-box;padding:12px}\n"] }]
|
|
31100
31115
|
}], () => [{ type: WindowService }, { type: i1$2.Router }, { type: DocumentManagementService }, { type: i1$3.MatDialog }], { categoriesAndDocuments: [{
|
|
31101
31116
|
type: Input
|
|
31102
31117
|
}], allowMoving: [{
|
|
@@ -37505,7 +37520,7 @@ function CaseEditSubmitComponent_ng_template_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
37505
37520
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
37506
37521
|
} if (rf & 2) {
|
|
37507
37522
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
37508
|
-
i0.ɵɵproperty("content", i0.ɵɵpipeBind1(2, 5, i0.ɵɵpipeBind3(1, 1, ctx_r1.getCaseTitle(), ctx_r1.contextFields, ctx_r1.editForm.controls["data"])));
|
|
37523
|
+
i0.ɵɵproperty("content", ctx_r1.demoteCaseTitleHeadingLevel(i0.ɵɵpipeBind1(2, 5, i0.ɵɵpipeBind3(1, 1, ctx_r1.getCaseTitle(), ctx_r1.contextFields, ctx_r1.editForm.controls["data"]))));
|
|
37509
37524
|
} }
|
|
37510
37525
|
function CaseEditSubmitComponent_ng_template_7_h2_0_Template(rf, ctx) { if (rf & 1) {
|
|
37511
37526
|
i0.ɵɵelementStart(0, "h2", 16);
|
|
@@ -38088,6 +38103,10 @@ class CaseEditSubmitComponent {
|
|
|
38088
38103
|
return (this.caseEdit.caseDetails && this.caseEdit.caseDetails.state &&
|
|
38089
38104
|
this.caseEdit.caseDetails.state.title_display ? this.caseEdit.caseDetails.state.title_display : '');
|
|
38090
38105
|
}
|
|
38106
|
+
// The event name is the page h1, so the case title (usually "# ${[CASE_REFERENCE]}") must not be a second h1.
|
|
38107
|
+
demoteCaseTitleHeadingLevel(title) {
|
|
38108
|
+
return title ? title.replace(/^#(?!#)(\s+)/, '##$1') : title;
|
|
38109
|
+
}
|
|
38091
38110
|
getCancelText() {
|
|
38092
38111
|
if (this.eventTrigger.can_save_draft) {
|
|
38093
38112
|
return 'Return to case list';
|
|
@@ -38168,7 +38187,7 @@ class CaseEditSubmitComponent {
|
|
|
38168
38187
|
}
|
|
38169
38188
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseEditSubmitComponent, [{
|
|
38170
38189
|
type: Component,
|
|
38171
|
-
args: [{ selector: 'ccd-case-edit-submit', standalone: false, template: "<div>\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'] | rpxTranslate\"></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 <div *ngIf=\"!caseEdit.isEventCompletionChecksRequired\">\n <ng-container *ngIf=\"checkYourAnswerFieldsToDisplayExists()\">\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-label=\"check your answers table\">\n <tbody>\n <ng-container *ngFor=\"let page of wizard.pages\">\n <ng-container *ngIf=\"isShown(page)\">\n <ng-container *ngFor=\"let field of page\n | ccdPageFields: editForm\n | ccdReadFieldsFilter: false :undefined :true :allFieldsValues\n | ccdCYAPageLabelFilter\">\n <ng-container *ngIf=\"canShowFieldInCYA(field)\">\n <tr ccdLabelSubstitutor [caseField]=\"field\" [hidden]=\"field.hidden\"\n [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <th *ngIf=\"!isLabel(field) && !caseEdit.isCaseFlagSubmission\" class=\"valign-top case-field-label\">\n <span class=\"text-16\">{{field.label | rpxTranslate}}</span>\n </th>\n <td class=\"form-cell case-field-content text-16\" [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); $event.preventDefault()\"\n href=\"#\">\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-label=\"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\" class=\"govuk-fieldset\" formGroupName=\"event\">\n <legend style=\"display: none;\"></legend>\n <div class=\"govuk-form-group\" [ngClass]=\"{'govuk-form-group--error': !!summary && !summary.valid && (summary.dirty || summary.touched)}\">\n <label for=\"field-trigger-summary\" class=\"govuk-label\">\n Event summary (optional)\n <div class=\"govuk-hint\">A few words describing the purpose of the event.</div>\n </label>\n <span class=\"govuk-error-message\" *ngIf=\"summary?.errors && (summary.dirty || summary.touched)\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{summary.errors | ccdFirstError: eventSummaryLabel | rpxTranslate}}\n </span>\n <input type=\"text\" id=\"field-trigger-summary\" class=\"govuk-input bottom-30 width-50\"\n [ngClass]=\"{'govuk-input--error': summary?.errors && (summary.dirty || summary.touched)}\" formControlName=\"summary\" maxlength=\"1024\">\n </div>\n <div class=\"govuk-form-group\" [ngClass]=\"{'govuk-form-group--error': !!description && !description.valid && (description.dirty || description.touched)}\">\n <label for=\"field-trigger-description\" class=\"govuk-label\">Event description (optional)</label>\n <span class=\"govuk-error-message\" *ngIf=\"description?.errors && (description.dirty || description.touched)\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{description.errors | ccdFirstError: eventDescriptionLabel | rpxTranslate}}\n </span>\n <textarea id=\"field-trigger-description\" class=\"govuk-textarea bottom-30 width-50\" formControlName=\"description\"\n [ngClass]=\"{'govuk-textarea--error': description?.errors && (description.dirty || description.touched)}\" maxlength=\"65536\"></textarea>\n </div>\n </fieldset>\n </ng-container>\n </div>\n <ccd-case-event-completion *ngIf=\"caseEdit.isEventCompletionChecksRequired\"\n [eventCompletionParams]=\"caseEdit.eventCompletionParams\"\n (eventCanBeCompleted)=\"onEventCanBeCompleted($event)\">\n </ccd-case-event-completion>\n <div class=\"govuk-button-group\">\n <button class=\"govuk-button govuk-button--secondary\" type=\"button\" [disabled]=\"!hasPrevious() || caseEdit.isSubmitting\" (click)=\"previous()\">\n {{'Previous' | rpxTranslate}}\n </button>\n <button type=\"submit\" [disabled]=\"isDisabled\" class=\"govuk-button\">\n {{triggerText | rpxTranslate}}\n </button>\n </div>\n <p class=\"cancel\">\n <a (click)=\"cancel(); $event.preventDefault()\" href=\"#\" [class.disabled]=\"caseEdit.isSubmitting\">{{getCancelText() | rpxTranslate}}</a>\n </p>\n </form>\n</div>\n\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%}.refresh-modal-backdrop{position:fixed;inset:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:1000}.refresh-modal{background:#fff;padding:24px;max-width:520px;width:90%;box-shadow:0 8px 24px #0003;border-radius:4px;text-align:center}.refresh-modal .govuk-button{margin-top:12px}\n"] }]
|
|
38190
|
+
args: [{ selector: 'ccd-case-edit-submit', standalone: false, template: "<div>\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]=\"demoteCaseTitleHeadingLevel(getCaseTitle() | ccdCaseTitle: contextFields : editForm.controls['data'] | rpxTranslate)\"></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 <div *ngIf=\"!caseEdit.isEventCompletionChecksRequired\">\n <ng-container *ngIf=\"checkYourAnswerFieldsToDisplayExists()\">\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-label=\"check your answers table\">\n <tbody>\n <ng-container *ngFor=\"let page of wizard.pages\">\n <ng-container *ngIf=\"isShown(page)\">\n <ng-container *ngFor=\"let field of page\n | ccdPageFields: editForm\n | ccdReadFieldsFilter: false :undefined :true :allFieldsValues\n | ccdCYAPageLabelFilter\">\n <ng-container *ngIf=\"canShowFieldInCYA(field)\">\n <tr ccdLabelSubstitutor [caseField]=\"field\" [hidden]=\"field.hidden\"\n [formGroup]=\"editForm.controls['data']\" [contextFields]=\"contextFields\">\n <th *ngIf=\"!isLabel(field) && !caseEdit.isCaseFlagSubmission\" class=\"valign-top case-field-label\">\n <span class=\"text-16\">{{field.label | rpxTranslate}}</span>\n </th>\n <td class=\"form-cell case-field-content text-16\" [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); $event.preventDefault()\"\n href=\"#\">\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-label=\"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\" class=\"govuk-fieldset\" formGroupName=\"event\">\n <legend style=\"display: none;\"></legend>\n <div class=\"govuk-form-group\" [ngClass]=\"{'govuk-form-group--error': !!summary && !summary.valid && (summary.dirty || summary.touched)}\">\n <label for=\"field-trigger-summary\" class=\"govuk-label\">\n Event summary (optional)\n <div class=\"govuk-hint\">A few words describing the purpose of the event.</div>\n </label>\n <span class=\"govuk-error-message\" *ngIf=\"summary?.errors && (summary.dirty || summary.touched)\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{summary.errors | ccdFirstError: eventSummaryLabel | rpxTranslate}}\n </span>\n <input type=\"text\" id=\"field-trigger-summary\" class=\"govuk-input bottom-30 width-50\"\n [ngClass]=\"{'govuk-input--error': summary?.errors && (summary.dirty || summary.touched)}\" formControlName=\"summary\" maxlength=\"1024\">\n </div>\n <div class=\"govuk-form-group\" [ngClass]=\"{'govuk-form-group--error': !!description && !description.valid && (description.dirty || description.touched)}\">\n <label for=\"field-trigger-description\" class=\"govuk-label\">Event description (optional)</label>\n <span class=\"govuk-error-message\" *ngIf=\"description?.errors && (description.dirty || description.touched)\">\n <span class=\"govuk-visually-hidden\">{{'Error:' | rpxTranslate}}</span> {{description.errors | ccdFirstError: eventDescriptionLabel | rpxTranslate}}\n </span>\n <textarea id=\"field-trigger-description\" class=\"govuk-textarea bottom-30 width-50\" formControlName=\"description\"\n [ngClass]=\"{'govuk-textarea--error': description?.errors && (description.dirty || description.touched)}\" maxlength=\"65536\"></textarea>\n </div>\n </fieldset>\n </ng-container>\n </div>\n <ccd-case-event-completion *ngIf=\"caseEdit.isEventCompletionChecksRequired\"\n [eventCompletionParams]=\"caseEdit.eventCompletionParams\"\n (eventCanBeCompleted)=\"onEventCanBeCompleted($event)\">\n </ccd-case-event-completion>\n <div class=\"govuk-button-group\">\n <button class=\"govuk-button govuk-button--secondary\" type=\"button\" [disabled]=\"!hasPrevious() || caseEdit.isSubmitting\" (click)=\"previous()\">\n {{'Previous' | rpxTranslate}}\n </button>\n <button type=\"submit\" [disabled]=\"isDisabled\" class=\"govuk-button\">\n {{triggerText | rpxTranslate}}\n </button>\n </div>\n <p class=\"cancel\">\n <a (click)=\"cancel(); $event.preventDefault()\" href=\"#\" [class.disabled]=\"caseEdit.isSubmitting\">{{getCancelText() | rpxTranslate}}</a>\n </p>\n </form>\n</div>\n\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%}.refresh-modal-backdrop{position:fixed;inset:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:1000}.refresh-modal{background:#fff;padding:24px;max-width:520px;width:90%;box-shadow:0 8px 24px #0003;border-radius:4px;text-align:center}.refresh-modal .govuk-button{margin-top:12px}\n"] }]
|
|
38172
38191
|
}], () => [{ type: CaseEditComponent }, { type: FieldsUtils }, { type: CaseFieldService }, { type: i1$2.ActivatedRoute }, { type: OrderService }, { type: ProfileNotifier }, { type: MultipageComponentStateService }, { type: FormValidatorsService }, { type: CaseFlagStateService }, { type: LinkedCasesService }, { type: PlaceholderService }], null); })();
|
|
38173
38192
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseEditSubmitComponent, { className: "CaseEditSubmitComponent", filePath: "lib/shared/components/case-editor/case-edit-submit/case-edit-submit.component.ts", lineNumber: 32 }); })();
|
|
38174
38193
|
|
|
@@ -39289,8 +39308,8 @@ class CaseListModule {
|
|
|
39289
39308
|
NgxPaginationModule,
|
|
39290
39309
|
PaginationModule, i1.RpxTranslationModule], exports: [CaseListComponent] }); })();
|
|
39291
39310
|
|
|
39292
|
-
function
|
|
39293
|
-
i0.ɵɵelementStart(0, "option",
|
|
39311
|
+
function WorkbasketFiltersComponent_option_25_Template(rf, ctx) { if (rf & 1) {
|
|
39312
|
+
i0.ɵɵelementStart(0, "option", 15);
|
|
39294
39313
|
i0.ɵɵtext(1);
|
|
39295
39314
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
39296
39315
|
i0.ɵɵelementEnd();
|
|
@@ -39299,8 +39318,8 @@ function WorkbasketFiltersComponent_option_21_Template(rf, ctx) { if (rf & 1) {
|
|
|
39299
39318
|
i0.ɵɵadvance();
|
|
39300
39319
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 2, "Select a value"));
|
|
39301
39320
|
} }
|
|
39302
|
-
function
|
|
39303
|
-
i0.ɵɵelementStart(0, "option",
|
|
39321
|
+
function WorkbasketFiltersComponent_option_26_Template(rf, ctx) { if (rf & 1) {
|
|
39322
|
+
i0.ɵɵelementStart(0, "option", 15);
|
|
39304
39323
|
i0.ɵɵtext(1);
|
|
39305
39324
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
39306
39325
|
i0.ɵɵelementEnd();
|
|
@@ -39310,8 +39329,8 @@ function WorkbasketFiltersComponent_option_22_Template(rf, ctx) { if (rf & 1) {
|
|
|
39310
39329
|
i0.ɵɵadvance();
|
|
39311
39330
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 2, j_r1.name));
|
|
39312
39331
|
} }
|
|
39313
|
-
function
|
|
39314
|
-
i0.ɵɵelementStart(0, "option",
|
|
39332
|
+
function WorkbasketFiltersComponent_option_32_Template(rf, ctx) { if (rf & 1) {
|
|
39333
|
+
i0.ɵɵelementStart(0, "option", 15);
|
|
39315
39334
|
i0.ɵɵtext(1);
|
|
39316
39335
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
39317
39336
|
i0.ɵɵelementEnd();
|
|
@@ -39320,8 +39339,8 @@ function WorkbasketFiltersComponent_option_28_Template(rf, ctx) { if (rf & 1) {
|
|
|
39320
39339
|
i0.ɵɵadvance();
|
|
39321
39340
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 2, "Select a value"));
|
|
39322
39341
|
} }
|
|
39323
|
-
function
|
|
39324
|
-
i0.ɵɵelementStart(0, "option",
|
|
39342
|
+
function WorkbasketFiltersComponent_option_33_Template(rf, ctx) { if (rf & 1) {
|
|
39343
|
+
i0.ɵɵelementStart(0, "option", 15);
|
|
39325
39344
|
i0.ɵɵtext(1);
|
|
39326
39345
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
39327
39346
|
i0.ɵɵelementEnd();
|
|
@@ -39331,8 +39350,8 @@ function WorkbasketFiltersComponent_option_29_Template(rf, ctx) { if (rf & 1) {
|
|
|
39331
39350
|
i0.ɵɵadvance();
|
|
39332
39351
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 2, ct_r2.name));
|
|
39333
39352
|
} }
|
|
39334
|
-
function
|
|
39335
|
-
i0.ɵɵelementStart(0, "option",
|
|
39353
|
+
function WorkbasketFiltersComponent_option_42_Template(rf, ctx) { if (rf & 1) {
|
|
39354
|
+
i0.ɵɵelementStart(0, "option", 15);
|
|
39336
39355
|
i0.ɵɵtext(1);
|
|
39337
39356
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
39338
39357
|
i0.ɵɵelementEnd();
|
|
@@ -39342,10 +39361,10 @@ function WorkbasketFiltersComponent_option_38_Template(rf, ctx) { if (rf & 1) {
|
|
|
39342
39361
|
i0.ɵɵadvance();
|
|
39343
39362
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 2, cs_r3.name));
|
|
39344
39363
|
} }
|
|
39345
|
-
function
|
|
39364
|
+
function WorkbasketFiltersComponent_ng_container_43_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
39346
39365
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
39347
|
-
i0.ɵɵelementStart(0, "div",
|
|
39348
|
-
i0.ɵɵlistener("keyup.enter", function
|
|
39366
|
+
i0.ɵɵelementStart(0, "div", 6)(1, "ccd-field-write", 21);
|
|
39367
|
+
i0.ɵɵlistener("keyup.enter", function WorkbasketFiltersComponent_ng_container_43_div_2_Template_ccd_field_write_keyup_enter_1_listener() { i0.ɵɵrestoreView(_r4); const ctx_r4 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r4.apply(null)); });
|
|
39349
39368
|
i0.ɵɵelementEnd()();
|
|
39350
39369
|
} if (rf & 2) {
|
|
39351
39370
|
const workbasketInput_r6 = ctx.$implicit;
|
|
@@ -39353,10 +39372,10 @@ function WorkbasketFiltersComponent_ng_container_39_div_2_Template(rf, ctx) { if
|
|
|
39353
39372
|
i0.ɵɵadvance();
|
|
39354
39373
|
i0.ɵɵproperty("caseField", workbasketInput_r6.field)("formGroup", ctx_r4.formGroup)("isExpanded", true)("isInSearchBlock", true);
|
|
39355
39374
|
} }
|
|
39356
|
-
function
|
|
39357
|
-
i0.ɵɵelementContainerStart(0,
|
|
39358
|
-
i0.ɵɵelementStart(1, "div",
|
|
39359
|
-
i0.ɵɵtemplate(2,
|
|
39375
|
+
function WorkbasketFiltersComponent_ng_container_43_Template(rf, ctx) { if (rf & 1) {
|
|
39376
|
+
i0.ɵɵelementContainerStart(0, 18);
|
|
39377
|
+
i0.ɵɵelementStart(1, "div", 19);
|
|
39378
|
+
i0.ɵɵtemplate(2, WorkbasketFiltersComponent_ng_container_43_div_2_Template, 2, 4, "div", 20);
|
|
39360
39379
|
i0.ɵɵelementEnd();
|
|
39361
39380
|
i0.ɵɵelementContainerEnd();
|
|
39362
39381
|
} if (rf & 2) {
|
|
@@ -39700,79 +39719,85 @@ class WorkbasketFiltersComponent {
|
|
|
39700
39719
|
}
|
|
39701
39720
|
}
|
|
39702
39721
|
static ɵfac = function WorkbasketFiltersComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || WorkbasketFiltersComponent)(i0.ɵɵdirectiveInject(i1$2.ActivatedRoute), i0.ɵɵdirectiveInject(WorkbasketInputFilterService), i0.ɵɵdirectiveInject(OrderService), i0.ɵɵdirectiveInject(JurisdictionService), i0.ɵɵdirectiveInject(AlertService), i0.ɵɵdirectiveInject(WindowService)); };
|
|
39703
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WorkbasketFiltersComponent, selectors: [["ccd-workbasket-filters"]], inputs: { jurisdictions: "jurisdictions", defaults: "defaults" }, outputs: { onApply: "onApply", onReset: "onReset" }, standalone: false, decls:
|
|
39722
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WorkbasketFiltersComponent, selectors: [["ccd-workbasket-filters"]], inputs: { jurisdictions: "jurisdictions", defaults: "defaults" }, outputs: { onApply: "onApply", onReset: "onReset" }, standalone: false, decls: 49, vars: 55, consts: [["id", "filters", 1, "global-display"], [1, "govuk-form-group", "flex"], [1, "heading-h2"], ["type", "button", 1, "govuk-button", "workbasket-filters-apply", 3, "click", "disabled", "title"], [1, "govuk-visually-hidden"], ["type", "button", 1, "govuk-button", "govuk-button--secondary", 3, "click", "title"], [1, "govuk-form-group"], ["for", "wb-jurisdiction", 1, "govuk-label"], ["id", "wb-jurisdiction", "name", "jurisdiction", "aria-controls", "search-result", 1, "govuk-select", "ccd-dropdown", 3, "ngModelChange", "change", "ngModel"], [3, "ngValue", 4, "ngIf"], [3, "ngValue", 4, "ngFor", "ngForOf"], ["for", "wb-case-type", 1, "govuk-label"], ["id", "wb-case-type", "name", "case-type", "aria-controls", "search-result", 1, "govuk-select", "ccd-dropdown", 3, "ngModelChange", "change", "ngModel", "disabled"], ["for", "wb-case-state", 1, "govuk-label"], ["id", "wb-case-state", "name", "state", "aria-controls", "search-result", 1, "govuk-select", "ccd-dropdown", 3, "ngModelChange", "ngModel", "disabled"], [3, "ngValue"], ["ccdConditionalShowForm", "", 3, "formGroup", "contextFields", 4, "ngIf"], ["type", "button", 1, "govuk-button", 3, "click", "title"], ["ccdConditionalShowForm", "", 3, "formGroup", "contextFields"], ["id", "dynamicFilters"], ["class", "govuk-form-group", 4, "ngFor", "ngForOf"], [3, "keyup.enter", "caseField", "formGroup", "isExpanded", "isInSearchBlock"]], template: function WorkbasketFiltersComponent_Template(rf, ctx) { if (rf & 1) {
|
|
39704
39723
|
i0.ɵɵelementStart(0, "form", 0)(1, "div", 1)(2, "h2", 2);
|
|
39705
39724
|
i0.ɵɵtext(3);
|
|
39706
39725
|
i0.ɵɵpipe(4, "rpxTranslate");
|
|
39707
39726
|
i0.ɵɵelementEnd();
|
|
39708
39727
|
i0.ɵɵelementStart(5, "button", 3);
|
|
39709
39728
|
i0.ɵɵpipe(6, "rpxTranslate");
|
|
39710
|
-
i0.ɵɵpipe(7, "rpxTranslate");
|
|
39711
39729
|
i0.ɵɵlistener("click", function WorkbasketFiltersComponent_Template_button_click_5_listener() { return ctx.apply(true); });
|
|
39712
|
-
i0.ɵɵtext(
|
|
39713
|
-
i0.ɵɵpipe(
|
|
39714
|
-
i0.ɵɵ
|
|
39715
|
-
i0.ɵɵtext(10
|
|
39716
|
-
i0.ɵɵ
|
|
39717
|
-
i0.ɵɵpipe(12, "rpxTranslate");
|
|
39718
|
-
i0.ɵɵpipe(13, "rpxTranslate");
|
|
39719
|
-
i0.ɵɵlistener("click", function WorkbasketFiltersComponent_Template_button_click_11_listener() { return ctx.reset(); });
|
|
39720
|
-
i0.ɵɵtext(14);
|
|
39721
|
-
i0.ɵɵpipe(15, "rpxTranslate");
|
|
39730
|
+
i0.ɵɵtext(7);
|
|
39731
|
+
i0.ɵɵpipe(8, "rpxTranslate");
|
|
39732
|
+
i0.ɵɵelementStart(9, "span", 4);
|
|
39733
|
+
i0.ɵɵtext(10);
|
|
39734
|
+
i0.ɵɵpipe(11, "rpxTranslate");
|
|
39722
39735
|
i0.ɵɵelementEnd()();
|
|
39723
|
-
i0.ɵɵ
|
|
39736
|
+
i0.ɵɵtext(12, "\u00A0\u00A0\u00A0 ");
|
|
39737
|
+
i0.ɵɵelementStart(13, "button", 5);
|
|
39738
|
+
i0.ɵɵpipe(14, "rpxTranslate");
|
|
39739
|
+
i0.ɵɵlistener("click", function WorkbasketFiltersComponent_Template_button_click_13_listener() { return ctx.reset(); });
|
|
39740
|
+
i0.ɵɵtext(15);
|
|
39741
|
+
i0.ɵɵpipe(16, "rpxTranslate");
|
|
39742
|
+
i0.ɵɵelementStart(17, "span", 4);
|
|
39724
39743
|
i0.ɵɵtext(18);
|
|
39725
39744
|
i0.ɵɵpipe(19, "rpxTranslate");
|
|
39745
|
+
i0.ɵɵelementEnd()()();
|
|
39746
|
+
i0.ɵɵelementStart(20, "div", 6)(21, "label", 7);
|
|
39747
|
+
i0.ɵɵtext(22);
|
|
39748
|
+
i0.ɵɵpipe(23, "rpxTranslate");
|
|
39726
39749
|
i0.ɵɵelementEnd();
|
|
39727
|
-
i0.ɵɵelementStart(
|
|
39728
|
-
i0.ɵɵtwoWayListener("ngModelChange", function
|
|
39729
|
-
i0.ɵɵlistener("change", function
|
|
39730
|
-
i0.ɵɵtemplate(
|
|
39750
|
+
i0.ɵɵelementStart(24, "select", 8);
|
|
39751
|
+
i0.ɵɵtwoWayListener("ngModelChange", function WorkbasketFiltersComponent_Template_select_ngModelChange_24_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.selected.jurisdiction, $event) || (ctx.selected.jurisdiction = $event); return $event; });
|
|
39752
|
+
i0.ɵɵlistener("change", function WorkbasketFiltersComponent_Template_select_change_24_listener() { return ctx.onJurisdictionIdChange(); });
|
|
39753
|
+
i0.ɵɵtemplate(25, WorkbasketFiltersComponent_option_25_Template, 3, 4, "option", 9)(26, WorkbasketFiltersComponent_option_26_Template, 3, 4, "option", 10);
|
|
39731
39754
|
i0.ɵɵelementEnd()();
|
|
39732
|
-
i0.ɵɵelementStart(
|
|
39733
|
-
i0.ɵɵtext(
|
|
39734
|
-
i0.ɵɵpipe(
|
|
39755
|
+
i0.ɵɵelementStart(27, "div", 6)(28, "label", 11);
|
|
39756
|
+
i0.ɵɵtext(29);
|
|
39757
|
+
i0.ɵɵpipe(30, "rpxTranslate");
|
|
39735
39758
|
i0.ɵɵelementEnd();
|
|
39736
|
-
i0.ɵɵelementStart(
|
|
39737
|
-
i0.ɵɵtwoWayListener("ngModelChange", function
|
|
39738
|
-
i0.ɵɵlistener("change", function
|
|
39739
|
-
i0.ɵɵtemplate(
|
|
39759
|
+
i0.ɵɵelementStart(31, "select", 12);
|
|
39760
|
+
i0.ɵɵtwoWayListener("ngModelChange", function WorkbasketFiltersComponent_Template_select_ngModelChange_31_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.selected.caseType, $event) || (ctx.selected.caseType = $event); return $event; });
|
|
39761
|
+
i0.ɵɵlistener("change", function WorkbasketFiltersComponent_Template_select_change_31_listener() { return ctx.onCaseTypeIdChange(); });
|
|
39762
|
+
i0.ɵɵtemplate(32, WorkbasketFiltersComponent_option_32_Template, 3, 4, "option", 9)(33, WorkbasketFiltersComponent_option_33_Template, 3, 4, "option", 10);
|
|
39740
39763
|
i0.ɵɵelementEnd()();
|
|
39741
|
-
i0.ɵɵelementStart(
|
|
39742
|
-
i0.ɵɵtext(32);
|
|
39743
|
-
i0.ɵɵpipe(33, "rpxTranslate");
|
|
39744
|
-
i0.ɵɵelementEnd();
|
|
39745
|
-
i0.ɵɵelementStart(34, "select", 13);
|
|
39746
|
-
i0.ɵɵtwoWayListener("ngModelChange", function WorkbasketFiltersComponent_Template_select_ngModelChange_34_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.selected.caseState, $event) || (ctx.selected.caseState = $event); return $event; });
|
|
39747
|
-
i0.ɵɵelementStart(35, "option", 14);
|
|
39764
|
+
i0.ɵɵelementStart(34, "div", 6)(35, "label", 13);
|
|
39748
39765
|
i0.ɵɵtext(36);
|
|
39749
39766
|
i0.ɵɵpipe(37, "rpxTranslate");
|
|
39750
39767
|
i0.ɵɵelementEnd();
|
|
39751
|
-
i0.ɵɵ
|
|
39752
|
-
i0.ɵɵ
|
|
39753
|
-
i0.ɵɵ
|
|
39754
|
-
i0.ɵɵ
|
|
39768
|
+
i0.ɵɵelementStart(38, "select", 14);
|
|
39769
|
+
i0.ɵɵtwoWayListener("ngModelChange", function WorkbasketFiltersComponent_Template_select_ngModelChange_38_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.selected.caseState, $event) || (ctx.selected.caseState = $event); return $event; });
|
|
39770
|
+
i0.ɵɵelementStart(39, "option", 15);
|
|
39771
|
+
i0.ɵɵtext(40);
|
|
39755
39772
|
i0.ɵɵpipe(41, "rpxTranslate");
|
|
39756
|
-
i0.ɵɵ
|
|
39757
|
-
i0.ɵɵ
|
|
39758
|
-
i0.ɵɵ
|
|
39759
|
-
i0.ɵɵ
|
|
39773
|
+
i0.ɵɵelementEnd();
|
|
39774
|
+
i0.ɵɵtemplate(42, WorkbasketFiltersComponent_option_42_Template, 3, 4, "option", 10);
|
|
39775
|
+
i0.ɵɵelementEnd()();
|
|
39776
|
+
i0.ɵɵtemplate(43, WorkbasketFiltersComponent_ng_container_43_Template, 3, 3, "ng-container", 16);
|
|
39777
|
+
i0.ɵɵelementStart(44, "button", 17);
|
|
39778
|
+
i0.ɵɵpipe(45, "rpxTranslate");
|
|
39779
|
+
i0.ɵɵpipe(46, "rpxTranslate");
|
|
39780
|
+
i0.ɵɵlistener("click", function WorkbasketFiltersComponent_Template_button_click_44_listener() { return ctx.scrollToTop(); });
|
|
39781
|
+
i0.ɵɵtext(47);
|
|
39782
|
+
i0.ɵɵpipe(48, "rpxTranslate");
|
|
39760
39783
|
i0.ɵɵelementEnd()();
|
|
39761
39784
|
} if (rf & 2) {
|
|
39762
39785
|
i0.ɵɵadvance(3);
|
|
39763
39786
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 27, "Filters"));
|
|
39764
39787
|
i0.ɵɵadvance(2);
|
|
39765
39788
|
i0.ɵɵproperty("disabled", ctx.isApplyButtonDisabled())("title", i0.ɵɵpipeBind1(6, 29, "Apply filter"));
|
|
39766
|
-
i0.ɵɵ
|
|
39789
|
+
i0.ɵɵadvance(2);
|
|
39790
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(8, 31, "Apply"));
|
|
39767
39791
|
i0.ɵɵadvance(3);
|
|
39768
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
39792
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(11, 33, "filter"));
|
|
39769
39793
|
i0.ɵɵadvance(3);
|
|
39770
|
-
i0.ɵɵproperty("title", i0.ɵɵpipeBind1(
|
|
39771
|
-
i0.ɵɵ
|
|
39794
|
+
i0.ɵɵproperty("title", i0.ɵɵpipeBind1(14, 35, "Reset filter"));
|
|
39795
|
+
i0.ɵɵadvance(2);
|
|
39796
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(16, 37, "Reset"));
|
|
39772
39797
|
i0.ɵɵadvance(3);
|
|
39773
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
39798
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(19, 39, "filter"));
|
|
39774
39799
|
i0.ɵɵadvance(4);
|
|
39775
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
39800
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(23, 41, "Jurisdiction"));
|
|
39776
39801
|
i0.ɵɵadvance(2);
|
|
39777
39802
|
i0.ɵɵtwoWayProperty("ngModel", ctx.selected.jurisdiction);
|
|
39778
39803
|
i0.ɵɵadvance();
|
|
@@ -39780,7 +39805,7 @@ class WorkbasketFiltersComponent {
|
|
|
39780
39805
|
i0.ɵɵadvance();
|
|
39781
39806
|
i0.ɵɵproperty("ngForOf", ctx.jurisdictions);
|
|
39782
39807
|
i0.ɵɵadvance(3);
|
|
39783
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
39808
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(30, 43, "Case type"));
|
|
39784
39809
|
i0.ɵɵadvance(2);
|
|
39785
39810
|
i0.ɵɵtwoWayProperty("ngModel", ctx.selected.caseType);
|
|
39786
39811
|
i0.ɵɵproperty("disabled", ctx.isCaseTypesDropdownDisabled());
|
|
@@ -39789,28 +39814,28 @@ class WorkbasketFiltersComponent {
|
|
|
39789
39814
|
i0.ɵɵadvance();
|
|
39790
39815
|
i0.ɵɵproperty("ngForOf", ctx.selectedJurisdictionCaseTypes);
|
|
39791
39816
|
i0.ɵɵadvance(3);
|
|
39792
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
39817
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(37, 45, "State"));
|
|
39793
39818
|
i0.ɵɵadvance(2);
|
|
39794
39819
|
i0.ɵɵtwoWayProperty("ngModel", ctx.selected.caseState);
|
|
39795
39820
|
i0.ɵɵproperty("disabled", ctx.isCaseStatesDropdownDisabled());
|
|
39796
39821
|
i0.ɵɵadvance();
|
|
39797
39822
|
i0.ɵɵproperty("ngValue", null);
|
|
39798
39823
|
i0.ɵɵadvance();
|
|
39799
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
39824
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(41, 47, "Any"));
|
|
39800
39825
|
i0.ɵɵadvance(2);
|
|
39801
39826
|
i0.ɵɵproperty("ngForOf", ctx.selectedCaseTypeStates);
|
|
39802
39827
|
i0.ɵɵadvance();
|
|
39803
39828
|
i0.ɵɵproperty("ngIf", ctx.isSearchableAndWorkbasketInputsReady());
|
|
39804
39829
|
i0.ɵɵadvance();
|
|
39805
|
-
i0.ɵɵproperty("title", i0.ɵɵpipeBind1(
|
|
39806
|
-
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(
|
|
39830
|
+
i0.ɵɵproperty("title", i0.ɵɵpipeBind1(45, 49, "Back to top"));
|
|
39831
|
+
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(46, 51, "Back to top"));
|
|
39807
39832
|
i0.ɵɵadvance(3);
|
|
39808
|
-
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(
|
|
39833
|
+
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(48, 53, "Back to top"), " ");
|
|
39809
39834
|
} }, styles: [".govuk-js-link[_ngcontent-%COMP%]{appearance:none;background:none;border:none;color:#005ea5;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-decoration:underline}.govuk-js-link[_ngcontent-%COMP%]:hover{color:#2b8cc4;text-decoration-thickness:max(3px,.1875rem,.12em)}.govuk-js-link[_ngcontent-%COMP%]:focus{background-color:#ffbf47;color:#000;outline:3px solid transparent;text-decoration:none;box-shadow:0 -2px #ffbf47,0 4px #000}.govuk-js-link[_ngcontent-%COMP%]:visited{color:#4c2c92}div[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{font-family:nta,Arial,sans-serif;font-weight:400;text-transform:none;font-size:11pt;line-height:1.2727272727}@media(min-width:641px){div[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{font-size:12pt;line-height:1.3333333333}}@media print{div[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{font-size:10pt}}.govuk-form-group[_ngcontent-%COMP%]{margin-bottom:7px}.govuk-form-group.flex[_ngcontent-%COMP%]{display:flex;align-items:baseline}.govuk-form-group.flex[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{flex:1 1 auto;margin-bottom:0}.govuk-form-group.flex[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:.25rem}.govuk-form-group[_ngcontent-%COMP%] .heading-h2[_ngcontent-%COMP%], .ccd-dropdown[_ngcontent-%COMP%]{width:100%}span.heading-medium[_ngcontent-%COMP%]{margin-top:0}"] });
|
|
39810
39835
|
}
|
|
39811
39836
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WorkbasketFiltersComponent, [{
|
|
39812
39837
|
type: Component,
|
|
39813
|
-
args: [{ selector: 'ccd-workbasket-filters', standalone: false, template: "<form id=\"filters\" class=\"global-display\">\n <div class=\"govuk-form-group flex\">\n <h2 class=\"heading-h2\">{{'Filters' | rpxTranslate }}</h2>\n <button type=\"button\" class=\"govuk-button workbasket-filters-apply\" (click)=\"apply(true)\" [disabled]=\"isApplyButtonDisabled()\"\n [title]=\"'Apply filter' | rpxTranslate\"
|
|
39838
|
+
args: [{ selector: 'ccd-workbasket-filters', standalone: false, template: "<form id=\"filters\" class=\"global-display\">\n <div class=\"govuk-form-group flex\">\n <h2 class=\"heading-h2\">{{'Filters' | rpxTranslate }}</h2>\n <button type=\"button\" class=\"govuk-button workbasket-filters-apply\" (click)=\"apply(true)\" [disabled]=\"isApplyButtonDisabled()\"\n [title]=\"'Apply filter' | rpxTranslate\">\n {{'Apply' | rpxTranslate}}<span class=\"govuk-visually-hidden\"> {{'filter' | rpxTranslate}}</span>\n </button> \n <button type=\"button\" (click)=\"reset()\" class=\"govuk-button govuk-button--secondary\"\n [title]=\"'Reset filter' | rpxTranslate\">\n {{'Reset' | rpxTranslate}}<span class=\"govuk-visually-hidden\"> {{'filter' | rpxTranslate}}</span>\n </button>\n </div>\n\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"wb-jurisdiction\">{{'Jurisdiction' | rpxTranslate}}</label>\n <select class=\"govuk-select ccd-dropdown\" id=\"wb-jurisdiction\"\n name=\"jurisdiction\" [(ngModel)]=\"selected.jurisdiction\" aria-controls=\"search-result\"\n (change)=\"onJurisdictionIdChange()\">\n <option *ngIf=\"!workbasketDefaults\" [ngValue]=\"null\">{{'Select a value' | rpxTranslate}}</option>\n <option *ngFor=\"let j of jurisdictions\" [ngValue]=\"j\">{{j.name | rpxTranslate}}</option>\n </select>\n </div>\n\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"wb-case-type\">{{'Case type' | rpxTranslate}}</label>\n <select class=\"govuk-select ccd-dropdown\" id=\"wb-case-type\"\n name=\"case-type\" [(ngModel)]=\"selected.caseType\" [disabled]=\"isCaseTypesDropdownDisabled()\"\n (change)=\"onCaseTypeIdChange()\" aria-controls=\"search-result\">\n <option *ngIf=\"!workbasketDefaults\" [ngValue]=\"null\">{{'Select a value' | rpxTranslate}}</option>\n <option *ngFor=\"let ct of selectedJurisdictionCaseTypes\" [ngValue]=\"ct\">{{ct.name | rpxTranslate}}</option>\n </select>\n </div>\n\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"wb-case-state\">{{'State' | rpxTranslate}}</label>\n <select class=\"govuk-select ccd-dropdown\" id=\"wb-case-state\"\n name=\"state\" [(ngModel)]=\"selected.caseState\" [disabled]=\"isCaseStatesDropdownDisabled()\"\n aria-controls=\"search-result\">\n <option [ngValue]=\"null\">{{'Any' | rpxTranslate}}</option>\n <option *ngFor=\"let cs of selectedCaseTypeStates\" [ngValue]=\"cs\">{{cs.name | rpxTranslate}}</option>\n </select>\n </div>\n\n <ng-container ccdConditionalShowForm *ngIf=\"isSearchableAndWorkbasketInputsReady()\" [formGroup]=\"formGroup\" [contextFields]=\"caseFields\">\n <div id=\"dynamicFilters\">\n <div class=\"govuk-form-group\" *ngFor=\"let workbasketInput of workbasketInputs\">\n <ccd-field-write [caseField]=\"workbasketInput.field\" [formGroup]=\"formGroup\" [isExpanded]=\"true\" [isInSearchBlock]=\"true\" (keyup.enter)=\"apply(null)\">\n </ccd-field-write>\n </div>\n </div>\n </ng-container>\n\n <button type=\"button\" class=\"govuk-button\" (click)=\"scrollToTop()\"\n [title]=\"'Back to top' | rpxTranslate\" [attr.aria-label]=\"'Back to top' | rpxTranslate\">{{'Back to top' | rpxTranslate}}\n </button>\n</form>\n", styles: [".govuk-js-link{appearance:none;background:none;border:none;color:#005ea5;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0;text-decoration:underline}.govuk-js-link:hover{color:#2b8cc4;text-decoration-thickness:max(3px,.1875rem,.12em)}.govuk-js-link:focus{background-color:#ffbf47;color:#000;outline:3px solid transparent;text-decoration:none;box-shadow:0 -2px #ffbf47,0 4px #000}.govuk-js-link:visited{color:#4c2c92}div select{font-family:nta,Arial,sans-serif;font-weight:400;text-transform:none;font-size:11pt;line-height:1.2727272727}@media(min-width:641px){div select{font-size:12pt;line-height:1.3333333333}}@media print{div select{font-size:10pt}}.govuk-form-group{margin-bottom:7px}.govuk-form-group.flex{display:flex;align-items:baseline}.govuk-form-group.flex h2{flex:1 1 auto;margin-bottom:0}.govuk-form-group.flex button{margin:.25rem}.govuk-form-group .heading-h2,.ccd-dropdown{width:100%}span.heading-medium{margin-top:0}\n"] }]
|
|
39814
39839
|
}], () => [{ type: i1$2.ActivatedRoute }, { type: WorkbasketInputFilterService }, { type: OrderService }, { type: JurisdictionService }, { type: AlertService }, { type: WindowService }], { jurisdictions: [{
|
|
39815
39840
|
type: Input
|
|
39816
39841
|
}], defaults: [{
|
|
@@ -43633,7 +43658,7 @@ function CaseChallengedAccessRequestComponent_div_24_Template(rf, ctx) { if (rf
|
|
|
43633
43658
|
i0.ɵɵattribute("aria-describedby", ((tmp_5_0 = ctx_r0.formGroup.get("caseReference")) == null ? null : tmp_5_0.invalid) && ctx_r0.submitted ? "case-reference-error-message" : null);
|
|
43634
43659
|
} }
|
|
43635
43660
|
function CaseChallengedAccessRequestComponent_div_40_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
43636
|
-
i0.ɵɵelementStart(0, "div",
|
|
43661
|
+
i0.ɵɵelementStart(0, "div", 36);
|
|
43637
43662
|
i0.ɵɵtext(1);
|
|
43638
43663
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
43639
43664
|
i0.ɵɵelementEnd();
|
|
@@ -43645,19 +43670,25 @@ function CaseChallengedAccessRequestComponent_div_40_div_2_Template(rf, ctx) { i
|
|
|
43645
43670
|
function CaseChallengedAccessRequestComponent_div_40_Template(rf, ctx) { if (rf & 1) {
|
|
43646
43671
|
i0.ɵɵelementStart(0, "div", 32)(1, "div", 3);
|
|
43647
43672
|
i0.ɵɵtemplate(2, CaseChallengedAccessRequestComponent_div_40_div_2_Template, 3, 3, "div", 33);
|
|
43648
|
-
i0.ɵɵ
|
|
43673
|
+
i0.ɵɵelementStart(3, "label", 34);
|
|
43674
|
+
i0.ɵɵtext(4);
|
|
43675
|
+
i0.ɵɵpipe(5, "rpxTranslate");
|
|
43676
|
+
i0.ɵɵelementEnd();
|
|
43677
|
+
i0.ɵɵelement(6, "textarea", 35);
|
|
43649
43678
|
i0.ɵɵelementEnd()();
|
|
43650
43679
|
} if (rf & 2) {
|
|
43651
43680
|
let tmp_1_0;
|
|
43652
|
-
let
|
|
43681
|
+
let tmp_5_0;
|
|
43653
43682
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
43654
43683
|
i0.ɵɵadvance();
|
|
43655
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
43684
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$4, ((tmp_1_0 = ctx_r0.formGroup.get("otherReason")) == null ? null : tmp_1_0.invalid) && ctx_r0.submitted));
|
|
43656
43685
|
i0.ɵɵadvance();
|
|
43657
43686
|
i0.ɵɵproperty("ngIf", ctx_r0.formGroup.get("otherReason").invalid && ctx_r0.submitted);
|
|
43658
|
-
i0.ɵɵadvance();
|
|
43659
|
-
i0.ɵɵ
|
|
43660
|
-
i0.ɵɵ
|
|
43687
|
+
i0.ɵɵadvance(2);
|
|
43688
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 5, ctx_r0.accessReasons[3].reason));
|
|
43689
|
+
i0.ɵɵadvance(2);
|
|
43690
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c2, ctx_r0.formGroup.get("otherReason").invalid && ctx_r0.submitted));
|
|
43691
|
+
i0.ɵɵattribute("aria-describedby", "reason-3-label" + (((tmp_5_0 = ctx_r0.formGroup.get("otherReason")) == null ? null : tmp_5_0.invalid) && ctx_r0.submitted ? " other-reason-error-message" : ""));
|
|
43661
43692
|
} }
|
|
43662
43693
|
class CaseChallengedAccessRequestComponent {
|
|
43663
43694
|
fb;
|
|
@@ -43807,7 +43838,7 @@ class CaseChallengedAccessRequestComponent {
|
|
|
43807
43838
|
return input.value === null || input.value.trim().length === 0;
|
|
43808
43839
|
}
|
|
43809
43840
|
static ɵfac = function CaseChallengedAccessRequestComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaseChallengedAccessRequestComponent)(i0.ɵɵdirectiveInject(i4.FormBuilder), i0.ɵɵdirectiveInject(i1$2.Router), i0.ɵɵdirectiveInject(CasesService), i0.ɵɵdirectiveInject(i1$2.ActivatedRoute), i0.ɵɵdirectiveInject(CaseNotifier), i0.ɵɵdirectiveInject(i4$1.Title)); };
|
|
43810
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseChallengedAccessRequestComponent, selectors: [["ccd-case-challenged-access-request"]], standalone: false, decls: 50, vars: 50, consts: [[3, "error", 4, "ngIf"], ["type", "information"], [3, "submit", "formGroup"], [1, "govuk-form-group", 3, "ngClass"], ["aria-describedby", "reason-hint", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--l"], [1, "govuk-fieldset__heading"], ["id", "reason-hint", 1, "govuk-hint"], ["id", "error-message", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-radios", 1, "govuk-radios", "govuk-radios--conditional"], [1, "govuk-radios__item"], ["id", "reason-0", "name", "radioSelected", "type", "radio", "data-aria-controls", "conditional-reason-0", "formControlName", "radioSelected", 1, "govuk-radios__input", 3, "change", "value", "checked"], ["for", "reason-0", 1, "govuk-label", "govuk-radios__label"], ["id", "conditional-reason-0", "class", "govuk-radios__conditional", 4, "ngIf"], ["id", "reason-1", "name", "radioSelected", "type", "radio", "formControlName", "radioSelected", 1, "govuk-radios__input", 3, "change", "value", "checked"], ["for", "reason-1", 1, "govuk-label", "govuk-radios__label"], ["id", "reason-2", "name", "radioSelected", "type", "radio", "formControlName", "radioSelected", 1, "govuk-radios__input", 3, "change", "value", "checked"], ["for", "reason-2", 1, "govuk-label", "govuk-radios__label"], ["id", "reason-3", "name", "radioSelected", "type", "radio", "data-aria-controls", "conditional-reason-3", "formControlName", "radioSelected", 1, "govuk-radios__input", 3, "change", "value", "checked"], ["for", "reason-3", "id", "reason-3-label", 1, "govuk-label", "govuk-radios__label"], ["id", "conditional-reason-3", "class", "govuk-radios__conditional", 4, "ngIf"], [1, "govuk-button-group"], ["type", "submit", 1, "govuk-button", "govuk-!-margin-right-3"], [1, "govuk-grid-column-full", "govuk-!-padding-left-0"], ["href", "#", 1, "govuk-body", 3, "click"], [3, "error"], ["id", "error-message", 1, "govuk-error-message"], ["id", "conditional-reason-0", 1, "govuk-radios__conditional"], ["for", "case-reference", 1, "govuk-label"], ["id", "case-reference-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "case-reference", "name", "case-reference", "type", "text", "formControlName", "caseReference", 1, "govuk-input", "govuk-!-width-one-third", 3, "ngClass"], ["id", "case-reference-error-message", 1, "govuk-error-message"], ["id", "conditional-reason-3", 1, "govuk-radios__conditional"], ["id", "other-reason-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "other-reason", "name", "other-reason", "rows", "5", "formControlName", "otherReason", 1, "govuk-textarea", 3, "ngClass"], ["id", "other-reason-error-message", 1, "govuk-error-message"]], template: function CaseChallengedAccessRequestComponent_Template(rf, ctx) { if (rf & 1) {
|
|
43841
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaseChallengedAccessRequestComponent, selectors: [["ccd-case-challenged-access-request"]], standalone: false, decls: 50, vars: 50, consts: [[3, "error", 4, "ngIf"], ["type", "information"], [3, "submit", "formGroup"], [1, "govuk-form-group", 3, "ngClass"], ["aria-describedby", "reason-hint", 1, "govuk-fieldset"], [1, "govuk-fieldset__legend", "govuk-fieldset__legend--l"], [1, "govuk-fieldset__heading"], ["id", "reason-hint", 1, "govuk-hint"], ["id", "error-message", "class", "govuk-error-message", 4, "ngIf"], ["data-module", "govuk-radios", 1, "govuk-radios", "govuk-radios--conditional"], [1, "govuk-radios__item"], ["id", "reason-0", "name", "radioSelected", "type", "radio", "data-aria-controls", "conditional-reason-0", "formControlName", "radioSelected", 1, "govuk-radios__input", 3, "change", "value", "checked"], ["for", "reason-0", 1, "govuk-label", "govuk-radios__label"], ["id", "conditional-reason-0", "class", "govuk-radios__conditional", 4, "ngIf"], ["id", "reason-1", "name", "radioSelected", "type", "radio", "formControlName", "radioSelected", 1, "govuk-radios__input", 3, "change", "value", "checked"], ["for", "reason-1", 1, "govuk-label", "govuk-radios__label"], ["id", "reason-2", "name", "radioSelected", "type", "radio", "formControlName", "radioSelected", 1, "govuk-radios__input", 3, "change", "value", "checked"], ["for", "reason-2", 1, "govuk-label", "govuk-radios__label"], ["id", "reason-3", "name", "radioSelected", "type", "radio", "data-aria-controls", "conditional-reason-3", "formControlName", "radioSelected", 1, "govuk-radios__input", 3, "change", "value", "checked"], ["for", "reason-3", "id", "reason-3-label", 1, "govuk-label", "govuk-radios__label"], ["id", "conditional-reason-3", "class", "govuk-radios__conditional", 4, "ngIf"], [1, "govuk-button-group"], ["type", "submit", 1, "govuk-button", "govuk-!-margin-right-3"], [1, "govuk-grid-column-full", "govuk-!-padding-left-0"], ["href", "#", 1, "govuk-body", 3, "click"], [3, "error"], ["id", "error-message", 1, "govuk-error-message"], ["id", "conditional-reason-0", 1, "govuk-radios__conditional"], ["for", "case-reference", 1, "govuk-label"], ["id", "case-reference-error-message", "class", "govuk-error-message", 4, "ngIf"], ["id", "case-reference", "name", "case-reference", "type", "text", "formControlName", "caseReference", 1, "govuk-input", "govuk-!-width-one-third", 3, "ngClass"], ["id", "case-reference-error-message", 1, "govuk-error-message"], ["id", "conditional-reason-3", 1, "govuk-radios__conditional"], ["id", "other-reason-error-message", "class", "govuk-error-message", 4, "ngIf"], ["for", "other-reason", 1, "govuk-label", "govuk-visually-hidden"], ["id", "other-reason", "name", "other-reason", "rows", "5", "formControlName", "otherReason", 1, "govuk-textarea", 3, "ngClass"], ["id", "other-reason-error-message", 1, "govuk-error-message"]], template: function CaseChallengedAccessRequestComponent_Template(rf, ctx) { if (rf & 1) {
|
|
43811
43842
|
i0.ɵɵtemplate(0, CaseChallengedAccessRequestComponent_exui_error_message_0_Template, 1, 1, "exui-error-message", 0);
|
|
43812
43843
|
i0.ɵɵelementStart(1, "cut-alert", 1);
|
|
43813
43844
|
i0.ɵɵtext(2);
|
|
@@ -43856,7 +43887,7 @@ class CaseChallengedAccessRequestComponent {
|
|
|
43856
43887
|
i0.ɵɵtext(38);
|
|
43857
43888
|
i0.ɵɵpipe(39, "rpxTranslate");
|
|
43858
43889
|
i0.ɵɵelementEnd()();
|
|
43859
|
-
i0.ɵɵtemplate(40, CaseChallengedAccessRequestComponent_div_40_Template,
|
|
43890
|
+
i0.ɵɵtemplate(40, CaseChallengedAccessRequestComponent_div_40_Template, 7, 11, "div", 20);
|
|
43860
43891
|
i0.ɵɵelementEnd()()();
|
|
43861
43892
|
i0.ɵɵelementStart(41, "div", 21)(42, "button", 22);
|
|
43862
43893
|
i0.ɵɵtext(43);
|
|
@@ -43920,7 +43951,7 @@ class CaseChallengedAccessRequestComponent {
|
|
|
43920
43951
|
}
|
|
43921
43952
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaseChallengedAccessRequestComponent, [{
|
|
43922
43953
|
type: Component,
|
|
43923
|
-
args: [{ selector: 'ccd-case-challenged-access-request', standalone: false, template: "<exui-error-message *ngIf=\"formGroup.invalid && submitted\" [error]=\"errorMessage\"></exui-error-message>\n<cut-alert type=\"information\">\n {{'This case requires challenged access.' | rpxTranslate}}<br/>\n {{'This is because the case is outside your work area. If you request access to the case, it will be logged for auditing purposes.' | rpxTranslate}}\n</cut-alert>\n<form [formGroup]=\"formGroup\" (submit)=\"onSubmit()\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'govuk-form-group--error': formGroup.get('radioSelected')?.invalid && submitted}\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"reason-hint\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h1 class=\"govuk-fieldset__heading\">\n {{title | rpxTranslate}}\n </h1>\n </legend>\n <div id=\"reason-hint\" class=\"govuk-hint\">\n {{hint | rpxTranslate}}\n </div>\n <div id=\"error-message\" class=\"govuk-error-message\" *ngIf=\"formGroup.get('radioSelected').invalid && submitted\">\n {{errorMessage.description | rpxTranslate}}\n </div>\n <div class=\"govuk-radios govuk-radios--conditional\" data-module=\"govuk-radios\">\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"reason-0\" name=\"radioSelected\" type=\"radio\" [value]=\"accessReasons[0].reason\"\n data-aria-controls=\"conditional-reason-0\" formControlName=\"radioSelected\" [checked]=\"accessReasons[0].checked\"\n [attr.aria-describedby]=\"formGroup.get('radioSelected')?.invalid && submitted ? 'error-message' : null\" (change)=\"onChange()\"/>\n <label class=\"govuk-label govuk-radios__label\" for=\"reason-0\">\n {{accessReasons[0].reason | rpxTranslate}}\n </label>\n </div>\n <div id=\"conditional-reason-0\" *ngIf=\"formGroup.get('radioSelected').value === accessReasons[0].reason\"\n class=\"govuk-radios__conditional\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'govuk-form-group--error': formGroup.get('caseReference')?.invalid && submitted}\">\n <label class=\"govuk-label\" for=\"case-reference\">\n {{caseRefLabel}}\n </label>\n <div id=\"case-reference-error-message\" class=\"govuk-error-message\" *ngIf=\"formGroup.get('caseReference').invalid && submitted\">\n {{errorMessage.description | rpxTranslate}}\n </div>\n <input class=\"govuk-input govuk-!-width-one-third\"\n [ngClass]=\"{'govuk-input--error': formGroup.get('caseReference').invalid && submitted}\" id=\"case-reference\"\n name=\"case-reference\" type=\"text\" [attr.aria-describedby]=\"formGroup.get('caseReference')?.invalid && submitted ? 'case-reference-error-message' : null\" formControlName=\"caseReference\">\n </div>\n </div>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"reason-1\" name=\"radioSelected\" type=\"radio\" [value]=\"accessReasons[1].reason\"\n formControlName=\"radioSelected\" [checked]=\"accessReasons[1].checked\" [attr.aria-describedby]=\"formGroup.get('radioSelected')?.invalid && submitted ? 'error-message' : null\" (change)=\"onChange()\"/>\n <label class=\"govuk-label govuk-radios__label\" for=\"reason-1\">\n {{accessReasons[1].reason | rpxTranslate}}\n </label>\n </div>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"reason-2\" name=\"radioSelected\" type=\"radio\" [value]=\"accessReasons[2].reason\"\n formControlName=\"radioSelected\" [checked]=\"accessReasons[2].checked\" [attr.aria-describedby]=\"formGroup.get('radioSelected')?.invalid && submitted ? 'error-message' : null\" (change)=\"onChange()\"/>\n <label class=\"govuk-label govuk-radios__label\" for=\"reason-2\">\n {{accessReasons[2].reason | rpxTranslate}}\n </label>\n </div>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"reason-3\" name=\"radioSelected\" type=\"radio\" [value]=\"accessReasons[3].reason\"\n data-aria-controls=\"conditional-reason-3\" formControlName=\"radioSelected\" [checked]=\"accessReasons[3].checked\"\n [attr.aria-describedby]=\"formGroup.get('radioSelected')?.invalid && submitted ? 'error-message' : null\" (change)=\"onChange()\"/>\n <label class=\"govuk-label govuk-radios__label\" for=\"reason-3\" id=\"reason-3-label\">\n {{accessReasons[3].reason | rpxTranslate}}\n </label>\n </div>\n <div id=\"conditional-reason-3\" *ngIf=\"formGroup.get('radioSelected').value === accessReasons[3].reason\"\n class=\"govuk-radios__conditional\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'govuk-form-group--error': formGroup.get('otherReason')?.invalid && submitted}\">\n <div id=\"other-reason-error-message\" class=\"govuk-error-message\" *ngIf=\"formGroup.get('otherReason').invalid && submitted\">\n {{errorMessage.description | rpxTranslate}}\n </div>\n <textarea class=\"govuk-textarea\" [ngClass]=\"{'govuk-textarea--error': formGroup.get('otherReason').invalid && submitted}\"\n id=\"other-reason\" name=\"other-reason\" rows=\"5\" [attr.aria-describedby]=\"'reason-3-label' + (formGroup.get('otherReason')?.invalid && submitted ? ' other-reason-error-message' : '')\" formControlName=\"otherReason\"></textarea>\n </div>\n </div>\n </div>\n </fieldset>\n </div>\n <div class=\"govuk-button-group\">\n <button class=\"govuk-button govuk-!-margin-right-3\" type=\"submit\">\n {{'Submit' | rpxTranslate}}\n </button>\n <div class=\"govuk-grid-column-full govuk-!-padding-left-0\">\n <p>\n <a class='govuk-body' (click)=\"onCancel(); $event.preventDefault()\" href=\"#\">\n {{'Cancel' | rpxTranslate}}\n </a>\n </p>\n </div>\n </div>\n</form>\n" }]
|
|
43954
|
+
args: [{ selector: 'ccd-case-challenged-access-request', standalone: false, template: "<exui-error-message *ngIf=\"formGroup.invalid && submitted\" [error]=\"errorMessage\"></exui-error-message>\n<cut-alert type=\"information\">\n {{'This case requires challenged access.' | rpxTranslate}}<br/>\n {{'This is because the case is outside your work area. If you request access to the case, it will be logged for auditing purposes.' | rpxTranslate}}\n</cut-alert>\n<form [formGroup]=\"formGroup\" (submit)=\"onSubmit()\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'govuk-form-group--error': formGroup.get('radioSelected')?.invalid && submitted}\">\n <fieldset class=\"govuk-fieldset\" aria-describedby=\"reason-hint\">\n <legend class=\"govuk-fieldset__legend govuk-fieldset__legend--l\">\n <h1 class=\"govuk-fieldset__heading\">\n {{title | rpxTranslate}}\n </h1>\n </legend>\n <div id=\"reason-hint\" class=\"govuk-hint\">\n {{hint | rpxTranslate}}\n </div>\n <div id=\"error-message\" class=\"govuk-error-message\" *ngIf=\"formGroup.get('radioSelected').invalid && submitted\">\n {{errorMessage.description | rpxTranslate}}\n </div>\n <div class=\"govuk-radios govuk-radios--conditional\" data-module=\"govuk-radios\">\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"reason-0\" name=\"radioSelected\" type=\"radio\" [value]=\"accessReasons[0].reason\"\n data-aria-controls=\"conditional-reason-0\" formControlName=\"radioSelected\" [checked]=\"accessReasons[0].checked\"\n [attr.aria-describedby]=\"formGroup.get('radioSelected')?.invalid && submitted ? 'error-message' : null\" (change)=\"onChange()\"/>\n <label class=\"govuk-label govuk-radios__label\" for=\"reason-0\">\n {{accessReasons[0].reason | rpxTranslate}}\n </label>\n </div>\n <div id=\"conditional-reason-0\" *ngIf=\"formGroup.get('radioSelected').value === accessReasons[0].reason\"\n class=\"govuk-radios__conditional\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'govuk-form-group--error': formGroup.get('caseReference')?.invalid && submitted}\">\n <label class=\"govuk-label\" for=\"case-reference\">\n {{caseRefLabel}}\n </label>\n <div id=\"case-reference-error-message\" class=\"govuk-error-message\" *ngIf=\"formGroup.get('caseReference').invalid && submitted\">\n {{errorMessage.description | rpxTranslate}}\n </div>\n <input class=\"govuk-input govuk-!-width-one-third\"\n [ngClass]=\"{'govuk-input--error': formGroup.get('caseReference').invalid && submitted}\" id=\"case-reference\"\n name=\"case-reference\" type=\"text\" [attr.aria-describedby]=\"formGroup.get('caseReference')?.invalid && submitted ? 'case-reference-error-message' : null\" formControlName=\"caseReference\">\n </div>\n </div>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"reason-1\" name=\"radioSelected\" type=\"radio\" [value]=\"accessReasons[1].reason\"\n formControlName=\"radioSelected\" [checked]=\"accessReasons[1].checked\" [attr.aria-describedby]=\"formGroup.get('radioSelected')?.invalid && submitted ? 'error-message' : null\" (change)=\"onChange()\"/>\n <label class=\"govuk-label govuk-radios__label\" for=\"reason-1\">\n {{accessReasons[1].reason | rpxTranslate}}\n </label>\n </div>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"reason-2\" name=\"radioSelected\" type=\"radio\" [value]=\"accessReasons[2].reason\"\n formControlName=\"radioSelected\" [checked]=\"accessReasons[2].checked\" [attr.aria-describedby]=\"formGroup.get('radioSelected')?.invalid && submitted ? 'error-message' : null\" (change)=\"onChange()\"/>\n <label class=\"govuk-label govuk-radios__label\" for=\"reason-2\">\n {{accessReasons[2].reason | rpxTranslate}}\n </label>\n </div>\n <div class=\"govuk-radios__item\">\n <input class=\"govuk-radios__input\" id=\"reason-3\" name=\"radioSelected\" type=\"radio\" [value]=\"accessReasons[3].reason\"\n data-aria-controls=\"conditional-reason-3\" formControlName=\"radioSelected\" [checked]=\"accessReasons[3].checked\"\n [attr.aria-describedby]=\"formGroup.get('radioSelected')?.invalid && submitted ? 'error-message' : null\" (change)=\"onChange()\"/>\n <label class=\"govuk-label govuk-radios__label\" for=\"reason-3\" id=\"reason-3-label\">\n {{accessReasons[3].reason | rpxTranslate}}\n </label>\n </div>\n <div id=\"conditional-reason-3\" *ngIf=\"formGroup.get('radioSelected').value === accessReasons[3].reason\"\n class=\"govuk-radios__conditional\">\n <div class=\"govuk-form-group\" [ngClass]=\"{'govuk-form-group--error': formGroup.get('otherReason')?.invalid && submitted}\">\n <div id=\"other-reason-error-message\" class=\"govuk-error-message\" *ngIf=\"formGroup.get('otherReason').invalid && submitted\">\n {{errorMessage.description | rpxTranslate}}\n </div>\n <label class=\"govuk-label govuk-visually-hidden\" for=\"other-reason\">{{accessReasons[3].reason | rpxTranslate}}</label>\n <textarea class=\"govuk-textarea\" [ngClass]=\"{'govuk-textarea--error': formGroup.get('otherReason').invalid && submitted}\"\n id=\"other-reason\" name=\"other-reason\" rows=\"5\" [attr.aria-describedby]=\"'reason-3-label' + (formGroup.get('otherReason')?.invalid && submitted ? ' other-reason-error-message' : '')\" formControlName=\"otherReason\"></textarea>\n </div>\n </div>\n </div>\n </fieldset>\n </div>\n <div class=\"govuk-button-group\">\n <button class=\"govuk-button govuk-!-margin-right-3\" type=\"submit\">\n {{'Submit' | rpxTranslate}}\n </button>\n <div class=\"govuk-grid-column-full govuk-!-padding-left-0\">\n <p>\n <a class='govuk-body' (click)=\"onCancel(); $event.preventDefault()\" href=\"#\">\n {{'Cancel' | rpxTranslate}}\n </a>\n </p>\n </div>\n </div>\n</form>\n" }]
|
|
43924
43955
|
}], () => [{ type: i4.FormBuilder }, { type: i1$2.Router }, { type: CasesService }, { type: i1$2.ActivatedRoute }, { type: CaseNotifier }, { type: i4$1.Title }], null); })();
|
|
43925
43956
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaseChallengedAccessRequestComponent, { className: "CaseChallengedAccessRequestComponent", filePath: "lib/shared/components/case-viewer/case-challenged-access-request/case-challenged-access-request.component.ts", lineNumber: 16 }); })();
|
|
43926
43957
|
|
|
@@ -45230,7 +45261,7 @@ class SearchInput {
|
|
|
45230
45261
|
}
|
|
45231
45262
|
|
|
45232
45263
|
function SearchFiltersComponent_option_9_Template(rf, ctx) { if (rf & 1) {
|
|
45233
|
-
i0.ɵɵelementStart(0, "option",
|
|
45264
|
+
i0.ɵɵelementStart(0, "option", 13);
|
|
45234
45265
|
i0.ɵɵtext(1);
|
|
45235
45266
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
45236
45267
|
i0.ɵɵelementEnd();
|
|
@@ -45241,7 +45272,7 @@ function SearchFiltersComponent_option_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
45241
45272
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 2, j_r1.name));
|
|
45242
45273
|
} }
|
|
45243
45274
|
function SearchFiltersComponent_option_15_Template(rf, ctx) { if (rf & 1) {
|
|
45244
|
-
i0.ɵɵelementStart(0, "option",
|
|
45275
|
+
i0.ɵɵelementStart(0, "option", 13);
|
|
45245
45276
|
i0.ɵɵtext(1);
|
|
45246
45277
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
45247
45278
|
i0.ɵɵelementEnd();
|
|
@@ -45253,7 +45284,7 @@ function SearchFiltersComponent_option_15_Template(rf, ctx) { if (rf & 1) {
|
|
|
45253
45284
|
} }
|
|
45254
45285
|
function SearchFiltersComponent_ng_container_16_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
45255
45286
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
45256
|
-
i0.ɵɵelementStart(0, "div", 6)(1, "ccd-field-write",
|
|
45287
|
+
i0.ɵɵelementStart(0, "div", 6)(1, "ccd-field-write", 17);
|
|
45257
45288
|
i0.ɵɵlistener("keyup.enter", function SearchFiltersComponent_ng_container_16_div_2_Template_ccd_field_write_keyup_enter_1_listener() { i0.ɵɵrestoreView(_r3); const ctx_r3 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r3.apply()); });
|
|
45258
45289
|
i0.ɵɵelementEnd()();
|
|
45259
45290
|
} if (rf & 2) {
|
|
@@ -45263,9 +45294,9 @@ function SearchFiltersComponent_ng_container_16_div_2_Template(rf, ctx) { if (rf
|
|
|
45263
45294
|
i0.ɵɵproperty("caseField", searchInput_r5.field)("formGroup", ctx_r3.formGroup)("isExpanded", true);
|
|
45264
45295
|
} }
|
|
45265
45296
|
function SearchFiltersComponent_ng_container_16_Template(rf, ctx) { if (rf & 1) {
|
|
45266
|
-
i0.ɵɵelementContainerStart(0,
|
|
45267
|
-
i0.ɵɵelementStart(1, "div",
|
|
45268
|
-
i0.ɵɵtemplate(2, SearchFiltersComponent_ng_container_16_div_2_Template, 2, 3, "div",
|
|
45297
|
+
i0.ɵɵelementContainerStart(0, 14);
|
|
45298
|
+
i0.ɵɵelementStart(1, "div", 15);
|
|
45299
|
+
i0.ɵɵtemplate(2, SearchFiltersComponent_ng_container_16_div_2_Template, 2, 3, "div", 16);
|
|
45269
45300
|
i0.ɵɵelementEnd();
|
|
45270
45301
|
i0.ɵɵelementContainerEnd();
|
|
45271
45302
|
} if (rf & 2) {
|
|
@@ -45487,7 +45518,7 @@ class SearchFiltersComponent {
|
|
|
45487
45518
|
}
|
|
45488
45519
|
}
|
|
45489
45520
|
static ɵfac = function SearchFiltersComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SearchFiltersComponent)(i0.ɵɵdirectiveInject(SearchService), i0.ɵɵdirectiveInject(OrderService), i0.ɵɵdirectiveInject(JurisdictionService), i0.ɵɵdirectiveInject(WindowService)); };
|
|
45490
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SearchFiltersComponent, selectors: [["ccd-search-filters"]], inputs: { jurisdictions: "jurisdictions", autoApply: "autoApply" }, outputs: { onApply: "onApply", onReset: "onReset", onJurisdiction: "onJurisdiction" }, standalone: false, decls:
|
|
45521
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SearchFiltersComponent, selectors: [["ccd-search-filters"]], inputs: { jurisdictions: "jurisdictions", autoApply: "autoApply" }, outputs: { onApply: "onApply", onReset: "onReset", onJurisdiction: "onJurisdiction" }, standalone: false, decls: 32, vars: 34, consts: [["aria-label", "Filters", 1, "heading-h2"], [1, "global-display"], [1, "govuk-form-group", 2, "margin-top", "13px"], ["for", "s-jurisdiction", 1, "govuk-label"], ["id", "s-jurisdiction", "name", "jurisdiction", "aria-controls", "search-result", 1, "govuk-select", "ccd-dropdown", 3, "ngModelChange", "change", "ngModel"], [3, "ngValue", 4, "ngFor", "ngForOf"], [1, "govuk-form-group"], ["for", "s-case-type", 1, "govuk-label"], ["id", "s-case-type", "name", "case-type", "aria-controls", "search-result", 1, "govuk-select", "ccd-dropdown", 3, "ngModelChange", "change", "disabled", "ngModel"], ["ccdConditionalShowForm", "", 3, "formGroup", "contextFields", 4, "ngIf"], ["type", "button", 1, "govuk-button", 3, "click", "keyup.enter", "disabled", "title"], [1, "govuk-visually-hidden"], ["id", "reset", "type", "button", 1, "govuk-button", "govuk-button--secondary", 3, "click", "title"], [3, "ngValue"], ["ccdConditionalShowForm", "", 3, "formGroup", "contextFields"], ["id", "dynamicFilters"], ["class", "govuk-form-group", 4, "ngFor", "ngForOf"], [3, "keyup.enter", "caseField", "formGroup", "isExpanded"]], template: function SearchFiltersComponent_Template(rf, ctx) { if (rf & 1) {
|
|
45491
45522
|
i0.ɵɵelementStart(0, "h2", 0);
|
|
45492
45523
|
i0.ɵɵtext(1);
|
|
45493
45524
|
i0.ɵɵpipe(2, "rpxTranslate");
|
|
@@ -45513,19 +45544,23 @@ class SearchFiltersComponent {
|
|
|
45513
45544
|
i0.ɵɵtemplate(16, SearchFiltersComponent_ng_container_16_Template, 3, 3, "ng-container", 9);
|
|
45514
45545
|
i0.ɵɵelementStart(17, "button", 10);
|
|
45515
45546
|
i0.ɵɵpipe(18, "rpxTranslate");
|
|
45516
|
-
i0.ɵɵpipe(19, "rpxTranslate");
|
|
45517
45547
|
i0.ɵɵlistener("click", function SearchFiltersComponent_Template_button_click_17_listener() { return ctx.apply(); })("keyup.enter", function SearchFiltersComponent_Template_button_keyup_enter_17_listener() { return ctx.apply(); });
|
|
45518
|
-
i0.ɵɵtext(
|
|
45519
|
-
i0.ɵɵpipe(
|
|
45520
|
-
i0.ɵɵ
|
|
45521
|
-
i0.ɵɵtext(22
|
|
45522
|
-
i0.ɵɵ
|
|
45523
|
-
i0.ɵɵpipe(24, "rpxTranslate");
|
|
45524
|
-
i0.ɵɵpipe(25, "rpxTranslate");
|
|
45525
|
-
i0.ɵɵlistener("click", function SearchFiltersComponent_Template_button_click_23_listener() { return ctx.reset(); });
|
|
45526
|
-
i0.ɵɵtext(26);
|
|
45527
|
-
i0.ɵɵpipe(27, "rpxTranslate");
|
|
45548
|
+
i0.ɵɵtext(19);
|
|
45549
|
+
i0.ɵɵpipe(20, "rpxTranslate");
|
|
45550
|
+
i0.ɵɵelementStart(21, "span", 11);
|
|
45551
|
+
i0.ɵɵtext(22);
|
|
45552
|
+
i0.ɵɵpipe(23, "rpxTranslate");
|
|
45528
45553
|
i0.ɵɵelementEnd()();
|
|
45554
|
+
i0.ɵɵtext(24, " \u00A0\u00A0\u00A0 ");
|
|
45555
|
+
i0.ɵɵelementStart(25, "button", 12);
|
|
45556
|
+
i0.ɵɵpipe(26, "rpxTranslate");
|
|
45557
|
+
i0.ɵɵlistener("click", function SearchFiltersComponent_Template_button_click_25_listener() { return ctx.reset(); });
|
|
45558
|
+
i0.ɵɵtext(27);
|
|
45559
|
+
i0.ɵɵpipe(28, "rpxTranslate");
|
|
45560
|
+
i0.ɵɵelementStart(29, "span", 11);
|
|
45561
|
+
i0.ɵɵtext(30);
|
|
45562
|
+
i0.ɵɵpipe(31, "rpxTranslate");
|
|
45563
|
+
i0.ɵɵelementEnd()()();
|
|
45529
45564
|
} if (rf & 2) {
|
|
45530
45565
|
i0.ɵɵadvance();
|
|
45531
45566
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 16, "Filters"));
|
|
@@ -45546,19 +45581,21 @@ class SearchFiltersComponent {
|
|
|
45546
45581
|
i0.ɵɵproperty("ngIf", ctx.isSearchableAndSearchInputsReady());
|
|
45547
45582
|
i0.ɵɵadvance();
|
|
45548
45583
|
i0.ɵɵproperty("disabled", !ctx.isSearchableAndSearchInputsReady())("title", i0.ɵɵpipeBind1(18, 22, "Apply filter"));
|
|
45549
|
-
i0.ɵɵ
|
|
45584
|
+
i0.ɵɵadvance(2);
|
|
45585
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(20, 24, "Apply"));
|
|
45550
45586
|
i0.ɵɵadvance(3);
|
|
45551
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
45587
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(23, 26, "filter"));
|
|
45552
45588
|
i0.ɵɵadvance(3);
|
|
45553
|
-
i0.ɵɵproperty("title", i0.ɵɵpipeBind1(
|
|
45554
|
-
i0.ɵɵ
|
|
45589
|
+
i0.ɵɵproperty("title", i0.ɵɵpipeBind1(26, 28, "Reset filter"));
|
|
45590
|
+
i0.ɵɵadvance(2);
|
|
45591
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(28, 30, "Reset"));
|
|
45555
45592
|
i0.ɵɵadvance(3);
|
|
45556
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
45593
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(31, 32, "filter"));
|
|
45557
45594
|
} }, encapsulation: 2 });
|
|
45558
45595
|
}
|
|
45559
45596
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SearchFiltersComponent, [{
|
|
45560
45597
|
type: Component,
|
|
45561
|
-
args: [{ selector: 'ccd-search-filters', standalone: false, template: "<h2 class=\"heading-h2\" aria-label=\"Filters\">{{'Filters' | rpxTranslate}}</h2>\n<form class=\"global-display\">\n <div class=\"govuk-form-group\" style=\"margin-top: 13px;\">\n <label class=\"govuk-label\" for=\"s-jurisdiction\">{{'Jurisdiction' | rpxTranslate}}*</label>\n <select class=\"govuk-select ccd-dropdown\" id=\"s-jurisdiction\"\n name=\"jurisdiction\" [(ngModel)]=\"selected.jurisdiction\" aria-controls=\"search-result\"\n (change)=\"onJurisdictionIdChange()\">\n <option *ngFor=\"let j of jurisdictions\" [ngValue]=\"j\">{{j.name | rpxTranslate}}</option>\n </select>\n </div>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"s-case-type\">{{'Case type*' | rpxTranslate}}</label>\n <select [disabled]=\"isJurisdictionSelected()\" class=\"govuk-select ccd-dropdown\"\n id=\"s-case-type\" name=\"case-type\" [(ngModel)]=\"selected.caseType\" aria-controls=\"search-result\"\n (change)=\"onCaseTypeIdChange()\">\n <option *ngFor=\"let ct of selectedJurisdictionCaseTypes\" [ngValue]=\"ct\">{{ct.name | rpxTranslate}}</option>\n </select>\n </div>\n\n <ng-container ccdConditionalShowForm *ngIf=\"isSearchableAndSearchInputsReady()\" [formGroup]=\"formGroup\" [contextFields]=\"caseFields\">\n <div id=\"dynamicFilters\">\n <div class=\"govuk-form-group\" *ngFor=\"let searchInput of searchInputs\">\n <ccd-field-write [caseField]=\"searchInput.field\" [formGroup]=\"formGroup\" [isExpanded]=\"true\" (keyup.enter)=\"apply()\">\n </ccd-field-write>\n </div>\n </div>\n </ng-container>\n\n <button [disabled]=\"!isSearchableAndSearchInputsReady()\" type=\"button\" class=\"govuk-button\" (click)=\"apply()\" (keyup.enter)=\"apply()\" [title]=\"'Apply filter' | rpxTranslate\"
|
|
45598
|
+
args: [{ selector: 'ccd-search-filters', standalone: false, template: "<h2 class=\"heading-h2\" aria-label=\"Filters\">{{'Filters' | rpxTranslate}}</h2>\n<form class=\"global-display\">\n <div class=\"govuk-form-group\" style=\"margin-top: 13px;\">\n <label class=\"govuk-label\" for=\"s-jurisdiction\">{{'Jurisdiction' | rpxTranslate}}*</label>\n <select class=\"govuk-select ccd-dropdown\" id=\"s-jurisdiction\"\n name=\"jurisdiction\" [(ngModel)]=\"selected.jurisdiction\" aria-controls=\"search-result\"\n (change)=\"onJurisdictionIdChange()\">\n <option *ngFor=\"let j of jurisdictions\" [ngValue]=\"j\">{{j.name | rpxTranslate}}</option>\n </select>\n </div>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label\" for=\"s-case-type\">{{'Case type*' | rpxTranslate}}</label>\n <select [disabled]=\"isJurisdictionSelected()\" class=\"govuk-select ccd-dropdown\"\n id=\"s-case-type\" name=\"case-type\" [(ngModel)]=\"selected.caseType\" aria-controls=\"search-result\"\n (change)=\"onCaseTypeIdChange()\">\n <option *ngFor=\"let ct of selectedJurisdictionCaseTypes\" [ngValue]=\"ct\">{{ct.name | rpxTranslate}}</option>\n </select>\n </div>\n\n <ng-container ccdConditionalShowForm *ngIf=\"isSearchableAndSearchInputsReady()\" [formGroup]=\"formGroup\" [contextFields]=\"caseFields\">\n <div id=\"dynamicFilters\">\n <div class=\"govuk-form-group\" *ngFor=\"let searchInput of searchInputs\">\n <ccd-field-write [caseField]=\"searchInput.field\" [formGroup]=\"formGroup\" [isExpanded]=\"true\" (keyup.enter)=\"apply()\">\n </ccd-field-write>\n </div>\n </div>\n </ng-container>\n\n <button [disabled]=\"!isSearchableAndSearchInputsReady()\" type=\"button\" class=\"govuk-button\" (click)=\"apply()\" (keyup.enter)=\"apply()\" [title]=\"'Apply filter' | rpxTranslate\">\n {{'Apply' | rpxTranslate}}<span class=\"govuk-visually-hidden\"> {{'filter' | rpxTranslate}}</span>\n </button> \n <button id=\"reset\" type=\"button\" (click)=\"reset()\" class=\"govuk-button govuk-button--secondary\"\n [title]=\"'Reset filter' | rpxTranslate\">\n {{'Reset' | rpxTranslate}}<span class=\"govuk-visually-hidden\"> {{'filter' | rpxTranslate}}</span>\n </button>\n</form>\n" }]
|
|
45562
45599
|
}], () => [{ type: SearchService }, { type: OrderService }, { type: JurisdictionService }, { type: WindowService }], { jurisdictions: [{
|
|
45563
45600
|
type: Input
|
|
45564
45601
|
}], autoApply: [{
|